CN117459757A - Video playing method, device, equipment and storage medium - Google Patents

Video playing method, device, equipment and storage medium Download PDF

Info

Publication number
CN117459757A
CN117459757A CN202311505513.3A CN202311505513A CN117459757A CN 117459757 A CN117459757 A CN 117459757A CN 202311505513 A CN202311505513 A CN 202311505513A CN 117459757 A CN117459757 A CN 117459757A
Authority
CN
China
Prior art keywords
brightness
target
video signal
target video
peak
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311505513.3A
Other languages
Chinese (zh)
Inventor
王振亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202311505513.3A priority Critical patent/CN117459757A/en
Publication of CN117459757A publication Critical patent/CN117459757A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display

Abstract

The application provides a video playing method, a device, equipment and a storage medium, wherein the method comprises the following steps: responding to a video playing request, and responding to the video playing request, and acquiring a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, wherein the target video signal is a high dynamic range video signal; acquiring brightness distribution data of a target content scene in a target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness; and decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal. According to the technical scheme, the luminance mapping curve of the HDR video signal can be generated through the film metadata, the luminance distribution data of the target content scene and the equipment peak luminance, and the display contrast of each scene when the display equipment plays the HDR video is improved.

Description

Video playing method, device, equipment and storage medium
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a video playing method, device, equipment, and storage medium.
Background
Currently, with rapid development of the technical field of display devices, an HDR (High Dynamic Range ) technology is an important development point of the display device industry, and the HDR technology can expand the dynamic expression range of brightness, and display a picture similar to the dynamic range perceived by human eyes, so as to bring more vivid and excellent image quality and appearance. However, when the existing HDR film source content is played, the metadata of the HDR film source content is static metadata, so that the display device cannot dynamically adjust the playing brightness when playing the HDR film source content, and the display device plays with the highest brightness by default, so that the display contrast is poor.
Disclosure of Invention
The embodiment of the application provides a video playing method, a video playing device, video playing equipment and a video storage medium, and aims to solve the technical problem that in the prior art, display equipment cannot dynamically adjust the playing brightness of HDR film source content to cause poor contrast.
In one aspect, an embodiment of the present application provides a video playing method, where the video playing method includes the following steps:
responding to a video playing request, and acquiring a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, wherein the target video signal is a high dynamic range video signal;
Acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness;
and decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal.
In one possible implementation manner of the present application, generating a luminance mapping curve of the target video signal according to the film metadata, the luminance distribution data and a device peak luminance includes:
determining the peak brightness of a film in the target video signal according to the film metadata, wherein the peak brightness of the film is the peak playing brightness supported by the target video signal;
determining scene peak brightness corresponding to each target content scene in the target video signal according to brightness distribution data of the target content scene;
and generating a brightness mapping curve of the target video signal according to the film peak brightness, each scene peak brightness and the equipment peak brightness.
In one possible implementation manner of the present application, the generating the brightness mapping curve of the target video signal according to the film peak brightness, the scene peak brightness and the device peak brightness includes:
If the scene peak brightness is smaller than the film peak brightness, generating a brightness mapping curve of the target video signal according to the scene peak brightness and the equipment peak brightness;
and if the difference between the film peak brightness and the scene peak brightness is smaller than or equal to a preset brightness threshold value, generating a brightness mapping curve of the target video signal according to the film peak brightness and the equipment peak brightness.
In one possible implementation manner of the present application, the generating a brightness mapping curve of the target video signal according to the scene peak brightness and the device peak brightness includes:
inputting the peak brightness of each target content scene and the peak brightness of the equipment into a preset brightness curve model for tone mapping to obtain a target mapping brightness curve of each target content scene;
fitting a target mapping brightness curve corresponding to each target content scene, and generating a brightness mapping curve of the target video signal.
In one possible implementation manner of the present application, the obtaining the brightness distribution data of the target content scene in the target video signal includes:
acquiring a video image frame corresponding to a target content scene in the target video signal, and performing image conversion on the video image frame to generate a gray image frame;
Performing brightness division on the gray image frames according to preset histogram intervals to obtain pixel information of each preset histogram interval;
and summarizing pixel information of each preset histogram interval, and generating brightness distribution data of the target content scene.
In one possible implementation manner of the present application, the obtaining the target video signal corresponding to the video playing request and the film metadata corresponding to the target video signal includes:
analyzing the video playing request to obtain a target video signal carried by the video playing request;
and acquiring static metadata of the target video signal, and extracting film metadata associated with film peak brightness in the static metadata.
In one possible implementation manner of the present application, the decoding the target video signal based on the brightness mapping curve, playing a target content scene corresponding to the target video signal, includes:
decoding the target video signal to obtain output brightness information of each target content scene in the target video signal;
performing brightness conversion on the output brightness information according to the brightness mapping curve to obtain target brightness information;
And synthesizing the target brightness information and the chromaticity information of each target content scene to obtain target video frames corresponding to each target content scene, and displaying the target video frames corresponding to the target content scenes on a preset terminal screen.
In another aspect, the present application provides a video playing device, including:
the system comprises a signal acquisition module, a video playing module and a video playing module, wherein the signal acquisition module is configured to respond to a video playing request and acquire a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, and the target video signal is a high dynamic range video signal;
the curve generation module is configured to acquire brightness distribution data of a target content scene in the target video signal and generate a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness;
and the video playing module is configured to decode the target video signal based on the brightness mapping curve and play a target content scene corresponding to the target video signal.
In another aspect, the present application further provides a video playing device, including:
One or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the video playback method.
In another aspect, the present application also provides a computer readable storage medium having stored thereon a computer program, the computer program being loaded by a processor to perform the steps of the video playing method.
In the method, a target video signal corresponding to a video playing request and film metadata corresponding to the target video signal are obtained by responding to the video playing request, wherein the target video signal is a high dynamic range video signal; acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness; and decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal. The luminance mapping curve of the HDR video signal is generated through the film metadata, the luminance distribution data of the target content scene and the peak luminance of the device, so that the luminance range of the HDR video signal played by the display screen in different scenes can be fully utilized, and the display contrast of each scene when the HDR video is played by the display device is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a video playing method according to an embodiment of the present application;
fig. 2 is a flowchart of an embodiment of a video playing method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an embodiment of obtaining luminance distribution data of each target content scene in a target video signal in the video playing method according to the embodiment of the present application;
fig. 4 is a flowchart illustrating an embodiment of decoding a target video signal in the video playing method according to the embodiment of the present application;
fig. 5 is a schematic structural diagram of an embodiment of a video playing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an embodiment of a video playing device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In this application, the term "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes have not been described in detail so as not to obscure the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Currently, with rapid development of the technical field of display devices, an HDR (High Dynamic Range ) technology is an important development point of the display device industry, and the HDR technology can expand the dynamic expression range of brightness, and display a picture similar to the dynamic range perceived by human eyes, so as to bring more vivid and excellent image quality and appearance. However, when the existing HDR film source content is played, the metadata of the HDR film source content is static metadata, so that the display device cannot dynamically adjust the playing brightness when playing the HDR film source content, and the display device plays with the highest brightness by default, so that the display contrast is poor.
Based on this, the application proposes a video playing method, device, equipment and computer readable storage medium, so as to solve the technical problem that in the prior art, the display equipment cannot dynamically adjust the playing brightness of the HDR film source content, so that the contrast ratio is poor.
The video playing method in the embodiment of the invention is applied to a video playing device, the video playing device is arranged in video playing equipment, one or more processors, a memory and one or more application programs are arranged in the video playing equipment, wherein the one or more application programs are stored in the memory and are configured to be executed by the processors to implement the video playing method; the video playing device can be an intelligent terminal, such as a mobile phone, a tablet computer, a network device, an intelligent computer and the like; optionally, the video playing device may also be a server, or a service cluster formed by multiple servers.
As shown in fig. 1, fig. 1 is a schematic view of a video playing method according to an embodiment of the present application, where a video playing scene includes a video playing device 100 (a video playing apparatus is integrated in the video playing device 100), and a computer readable storage medium corresponding to the video playing method is run in the video playing device 100 to execute steps of the video playing method.
It may be understood that the video playing device in the video playing method scene shown in fig. 1, or the apparatus included in the video playing device, are not limited to the embodiments of the present invention, that is, the number of devices and the type of devices of the video playing device included in the video playing method scene, or the number of apparatuses and the type of apparatuses included in each device do not affect the overall implementation of the technical solution in the embodiments of the present invention, and may be regarded as equivalent replacement or derivative of the technical solution claimed in the embodiments of the present invention.
The video playing device 100 in the embodiment of the present invention is mainly used for: responding to a video playing request, and acquiring a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, wherein the target video signal is a high dynamic range video signal; acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness; and decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal.
The video playing device 100 in the embodiment of the present invention may be an independent video playing device, such as a mobile phone, a tablet computer, a smart television, a smart computer, and the like, which can decode a video signal and display video content corresponding to the video signal.
Embodiments of the present application provide a video playing method, apparatus, device and computer readable storage medium, which are described in detail below.
It will be understood by those skilled in the art that the application environment shown in fig. 1 is only one application scenario related to the present application scenario, and is not limited to the application scenario of the present application scenario, and other application environments may further include more or fewer video playing devices than those shown in fig. 1, or a video playing network connection relationship, for example, only one video playing device is shown in fig. 1, and it will be understood that the scenario of the video playing method may further include one or more video playing devices, which is not limited herein in particular; a memory may also be included in the video playback device 100 for storing video signals and other data.
It should be noted that, the schematic view of the video playing method shown in fig. 1 is only an example, and the scene of the video playing method described in the embodiment of the present invention is for more clearly describing the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.
Based on the above-mentioned video playing method, various embodiments of the video playing method disclosed in the present invention are provided.
As shown in fig. 2, fig. 2 is a flowchart of one embodiment of a video playing method according to the present application, where the video playing method includes the following steps 201 to 203:
201. responding to a video playing request, and acquiring a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal;
the video playing method in this embodiment is applied to a video playing device, and the type and number of the video playing device are not specifically limited, that is, the video playing device may be one or more smart terminals such as a mobile phone, a tablet computer, a network device, and a smart computer, and in a specific embodiment, the video playing device is a smart television including an HRD function supporting playing of an HDR (High Dynamic Range ) video signal. For example, the video playback device may be a smart television supporting the HDR standards HDR10, HLG, dolby vision, HDR10+, SL-HDR1, and the like.
Specifically, the video playing device responds to a video playing request in the running process, wherein the video playing request is an operation instruction for driving the video playing device to play a target video signal corresponding to the video playing request. The triggering manner of the video playing request is not specifically limited herein, where the video playing request may be actively triggered by a user, for example, by clicking a video playing button associated with a target video signal in the video playing device, to actively trigger the video playing request of the target video signal. Optionally, the video playing request may be actively triggered by the video playing device, for example, the video playing device sets a timing playing process in advance, and when a predetermined condition of the timing playing process is met, the video playing request corresponding to the target video signal is actively triggered. For example, in one specific example, a video playback device automatically triggers a video playback request to play a target video signal at a particular point in time.
Specifically, after receiving a video playing request, the video playing device analyzes the video playing request to obtain a target video signal corresponding to the video playing request, where the target video signal is an HDR (High Dynamic Range ) video signal obtained on line or stored locally through a source input, a network. In one embodiment, the target video signal is an HDR10 movie.
Specifically, when a target video signal such as an HDR10 video signal is produced, static metadata is added to a film source to identify each item of video data of the target video signal. For example, the maximum brightness supported by the movie is identified in the static metadata. Based on the above, after the video playing device obtains the video playing request and determines the target video signal corresponding to the video playing request, the video playing device also analyzes the static metadata corresponding to the target video signal, and obtains the movie metadata of the maximum brightness supported by the identified movie in the static metadata. Wherein the film metadata is static metadata characterizing the maximum film brightness supported by the target video signal.
202. Acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness;
Specifically, after obtaining the film metadata in the target video signal, the video playing device further obtains the brightness distribution data of each target content scene in the target video signal, and generates a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the device peak brightness.
The brightness distribution data are data representing the signal brightness information distribution condition of at least one frame of video frame of each target content scene in the target video signal. Optionally, in a specific example, the luminance distribution data is a luminance histogram of the target content scene. The device peak brightness is the maximum brightness that the hardware characterizing the video playback device can display.
In particular, due to the hardware limitations of existing display devices, the peak device luminance of the display devices currently on the market cannot reach the maximum supported luminance of the HDR standard. When the video playing device plays the HDR video content, the maximum brightness of the content description may exceed the peak brightness of the video playing device, so that part of the high brightness cannot be displayed, and a saturation condition occurs. Therefore, the video playing device generates a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the device peak brightness in advance, and tone mapping is carried out through the brightness mapping curve, so that the content highlight part of the target video signal is mapped to the vicinity of the device peak brightness of the video playing device in a pressing mode, and highlight detail is displayed. In one embodiment, the maximum supported luminance of the HDR standard is 10000nit (units: nit).
Specifically, after the video playing device obtains the film metadata, determining the peak film brightness in the target video signal according to the film metadata, wherein the peak film brightness is static metadata recorded in the film metadata and used for representing the peak playing brightness supported by the target video signal.
Specifically, the video playing device further determines a scene peak luminance corresponding to each target content scene according to luminance distribution data of each target content scene in the target video signal. That is, the video playback device acquires luminance distribution data in each target content scene, calculates the maximum luminance in the target content scene based on the luminance distribution data, and sets the maximum luminance in the target content scene as the scene peak luminance of the target content scene.
Specifically, after the video playing device obtains the film peak brightness of the target video signal and the scene peak brightness of each target content scene, in order to improve the display contrast of the target video signal in the subsequent playing process, the video playing device dynamically adjusts the brightness mapping curve of the target video signal according to the film peak brightness, the scene peak brightness of different target content scenes and the device peak brightness. The brightness mapping curve is a mapping function curve for performing brightness mapping on the target video signal to display highlight details of the target video signal.
Specifically, the video playing device calculates the brightness mapping curve of each target content scene by calculating the difference between the peak brightness of the film and the peak brightness of the scene of each target content scene and comparing the difference between the peak brightness of the film and the peak brightness of the scene of each target content scene with a preset brightness threshold value, thereby selecting the peak brightness of the film or the peak brightness of the scene of the target content scene according to the comparison result. The preset brightness threshold is a brightness threshold which represents the brightness difference degree between the peak brightness of the film and the peak brightness of the scene.
Optionally, if the peak brightness of the film and the peak brightness of the scene are greater than a preset brightness threshold, the video playing device determines that the peak brightness of the scene of the target content is less than the peak brightness of the film and the brightness difference is greater, so as to improve the contrast of the subsequent film, and the video playing device generates the brightness mapping curve of the target video signal according to the peak brightness of the scene and the peak brightness of the device of the video playing device.
Optionally, if the film peak brightness and the scene peak brightness are less than or equal to the preset brightness threshold, the video playing device determines that the brightness difference between the scene peak brightness of the target content scene and the film peak brightness is small, and the video playing device generates the brightness mapping curve of the target video signal according to the film peak brightness and the device peak brightness.
Specifically, after determining the film peak brightness or the scene peak brightness of the brightness mapping curve to be generated, the video playing device inputs the film peak brightness or the scene peak brightness and the device peak brightness into a preset brightness curve model to perform tone mapping, and dynamically generates the brightness mapping curve of the target video signal. The preset brightness curve model comprises a preset brightness compression algorithm.
Optionally, in a specific example, after determining that the difference between the film peak brightness and the scene peak brightness is greater than the preset brightness threshold, the video playing device inputs the scene peak brightness and the device peak brightness of the target content scene to the preset brightness curve model for tone mapping, so as to obtain a target mapped brightness curve of the target content scene. If the difference between the film peak brightness and the scene peak brightness is less than or equal to the preset brightness threshold, the video playing device inputs the film peak brightness and the device peak brightness into a preset brightness curve model for tone mapping, and a target mapping brightness curve of the target content scene is obtained.
Specifically, after generating a target mapping luminance curve of each target content scene according to the film peak luminance or the scene peak luminance and the device peak luminance, the video playing device fits the target mapping luminance curve corresponding to each target content scene to generate a luminance mapping curve of the target video signal.
203. And decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal.
Specifically, after the video playing device generates the brightness mapping curve of the target video signal, the video playing device decodes the target video signal according to the brightness mapping curve, maps the brightness of each target content scene in the target video signal to a brightness area near the peak brightness of the device, and plays the target content scene after the adjustment of the target video signal.
Specifically, after the brightness mapping curve is generated, the video playing device inputs the brightness mapping curve to a preset decoder, configures the preset decoder through the brightness mapping curve, decodes the target video signal by using the configured preset decoder, and plays the target video frame corresponding to the target content scene after decoding.
In this embodiment, a video playing device obtains a target video signal corresponding to a video playing request and film metadata corresponding to the target video signal by responding to the video playing request, where the target video signal is a high dynamic range video signal; acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness; and decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal. The luminance mapping curve of the HDR video signal is generated through the film metadata, the luminance distribution data of the target content scene and the peak luminance of the device, so that the luminance range of the HDR video signal played by the display screen in different scenes can be fully utilized, and the display contrast of each scene when the HDR video is played by the display device is improved.
As shown in fig. 3, fig. 3 is a flow chart of one embodiment of obtaining luminance distribution data of each target content scene in a target video signal in the video playing method provided in the embodiment of the present application, and specifically, in this embodiment, the video playing method further includes steps 301 to 303:
301. acquiring a video image frame corresponding to a target content scene in the target video signal, and performing image conversion on the video image frame to generate a gray image frame;
302. performing brightness division on the gray image frames according to preset histogram intervals to obtain pixel information of each preset histogram interval;
303. and summarizing pixel information of each preset histogram interval, and generating brightness distribution data of the target content scene.
Based on the above embodiment, in this embodiment, after the video playing device acquires the target video signal, the video playing device further acquires the luminance distribution data of each target content scene in the target video signal, and calculates the scene peak luminance of the target content scene based on the luminance distribution data in the subsequent step.
Specifically, the video playing device acquires a video image frame corresponding to a target content scene in a target video signal, and performs image conversion on the acquired video image frame to generate a gray image frame. That is, the video playing device extracts at least one frame of video image frame corresponding to the target content scene through the preset extraction frame.
Specifically, the video playing device also creates preset histogram intervals in advance, and performs brightness division on the gray image frames through the preset histogram intervals to obtain pixel information of each preset histogram interval. The preset histogram interval may be a histogram interval generated in a luminance range of 0-255. The pixel information is the number of pixels in the histogram interval. In one embodiment, the preset histogram interval is in the range of 0-255 luminance ranges, and every 8 luminance ranges is a histogram interval.
Specifically, after obtaining the pixel information of each preset histogram interval, the video playing device gathers the phase velocity information of each preset histogram interval to obtain the brightness distribution data of the target content scene.
Specifically, after the video playing device obtains the brightness distribution data of the target content scenes, the video playing device determines the scene peak brightness corresponding to each target content scene according to the brightness distribution data of each target content scene in the target video signal. The video playing device can generate a brightness mapping curve of the target video signal according to the scene peak brightness and the device peak brightness, decode the target video signal according to the brightness mapping curve, map the brightness of each target content scene in the target video signal to a brightness area near the device peak brightness, and play the target content scene after the adjustment of the target video signal.
In this embodiment, the video playing device performs image conversion on the video image frame by acquiring the video image frame corresponding to the target content scene in the target video signal, so as to generate a gray image frame; performing brightness division on the gray image frames according to preset histogram intervals to obtain pixel information of each preset histogram interval; and summarizing pixel information of each preset histogram interval, and generating brightness distribution data of the target content scene. The brightness distribution condition of the target content scene is acquired, and a data basis is provided for the follow-up determination of the peak brightness of the scene.
As shown in fig. 4, fig. 4 is a schematic flow chart of an embodiment of decoding a target video signal in the video playing method according to the embodiment of the present application, and specifically, in this embodiment, the video playing method further includes steps 401 to 403:
401. decoding the target video signal to obtain output brightness information of each target content scene in the target video signal;
402. performing brightness conversion on the output brightness information according to the brightness mapping curve to obtain target brightness information;
403. and synthesizing the target brightness information and the chromaticity information of each target content scene to obtain target video frames corresponding to each target content scene, and displaying the target video frames corresponding to the target content scenes on a preset terminal screen.
Based on the above embodiments, in this embodiment, after generating the luminance mapping curve of the target video signal, the video playing device decodes the target video signal according to the luminance mapping curve, maps the luminance of each target content scene in the target video signal to the luminance area near the peak luminance of the device, and plays the adjusted target content scene of the target video signal.
Specifically, the video playing device inputs the target video signal to a preset decoder configured by the brightness mapping curve for decoding, and obtains an original decoded image of each target content scene in the target video signal and output brightness information of the original decoded image.
Specifically, after obtaining the output luminance information of the target content scene, the video playing device performs luminance conversion on the output luminance information according to the luminance mapping curve, and maps the output luminance information to the target luminance information associated with the luminance mapping curve. That is, the video playing device converts the brightness value of each pixel in the original decoded image corresponding to the target content scene into the target brightness value through the brightness mapping curve, so as to obtain the target brightness information.
Specifically, after the video playing device obtains the target brightness information, the video playing device synthesizes the target brightness information and the chromaticity information of the target content scene to obtain a target video frame corresponding to the target content scene, and displays at least one frame of target video frame corresponding to the target content scene on a preset terminal screen, so that the scene is compressed dynamically to highlight, and the display contrast is improved.
In this embodiment, the video playing device decodes the target video signal to obtain output brightness information of each target content scene in the target video signal; performing brightness conversion on the output brightness information according to the brightness mapping curve to obtain target brightness information; and synthesizing the target brightness information and the chromaticity information of each target content scene to obtain target video frames corresponding to each target content scene, and displaying the target video frames corresponding to the target content scenes on a preset terminal screen. The brightness conversion of the target content scene is dynamically carried out through the brightness mapping curve, so that the display contrast of the target video frame corresponding to the target content scene is improved.
In order to better implement the video playing method in the embodiment of the present application, on the basis of the video playing method, a video playing device is further provided in the embodiment of the present application, as shown in fig. 5, fig. 5 is a schematic structural diagram of the video playing device provided in the embodiment of the present application, and specifically, the video playing device 500 includes:
a signal obtaining module 501, configured to respond to a video playing request, and obtain a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, where the target video signal is a high dynamic range video signal;
A curve generating module 502 configured to obtain luminance distribution data of a target content scene in the target video signal, and generate a luminance mapping curve of the target video signal according to the film metadata, the luminance distribution data and a device peak luminance;
and the video playing module 503 is configured to decode the target video signal based on the brightness mapping curve, and play a target content scene corresponding to the target video signal.
In one possible implementation manner of this embodiment, the video playing apparatus generates a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the device peak brightness, including:
determining the peak brightness of a film in the target video signal according to the film metadata, wherein the peak brightness of the film is the peak playing brightness supported by the target video signal;
determining scene peak brightness corresponding to each target content scene in the target video signal according to brightness distribution data of the target content scene;
and generating a brightness mapping curve of the target video signal according to the film peak brightness, each scene peak brightness and the equipment peak brightness.
In one possible implementation manner of this embodiment, the generating, by the video playing apparatus, a luminance mapping curve of the target video signal according to the film peak luminance, the scene peak luminance, and the device peak luminance includes:
if the scene peak brightness is smaller than the film peak brightness, generating a brightness mapping curve of the target video signal according to the scene peak brightness and the equipment peak brightness;
and if the difference between the film peak brightness and the scene peak brightness is smaller than or equal to a preset brightness threshold value, generating a brightness mapping curve of the target video signal according to the film peak brightness and the equipment peak brightness.
In one possible implementation manner of this embodiment, the generating, by the video playing device, a brightness mapping curve of the target video signal according to the scene peak brightness and the device peak brightness includes:
inputting the peak brightness of each target content scene and the peak brightness of the equipment into a preset brightness curve model for tone mapping to obtain a target mapping brightness curve of each target content scene;
fitting a target mapping brightness curve corresponding to each target content scene, and generating a brightness mapping curve of the target video signal.
In one possible implementation manner of this embodiment, the video playing device obtains brightness distribution data of a target content scene in the target video signal, including:
acquiring a video image frame corresponding to a target content scene in the target video signal, and performing image conversion on the video image frame to generate a gray image frame;
performing brightness division on the gray image frames according to preset histogram intervals to obtain pixel information of each preset histogram interval;
and summarizing pixel information of each preset histogram interval, and generating brightness distribution data of the target content scene.
In one possible implementation manner of this embodiment, the video playing device obtains a target video signal corresponding to the video playing request, and movie metadata corresponding to the target video signal, including:
analyzing the video playing request to obtain a target video signal carried by the video playing request;
and acquiring static metadata of the target video signal, and extracting film metadata associated with film peak brightness in the static metadata.
In one possible implementation manner of this embodiment, the video playing device decodes the target video signal based on the brightness mapping curve, and plays a target content scene corresponding to the target video signal, including:
Decoding the target video signal to obtain output brightness information of each target content scene in the target video signal;
performing brightness conversion on the output brightness information according to the brightness mapping curve to obtain target brightness information;
and synthesizing the target brightness information and the chromaticity information of each target content scene to obtain target video frames corresponding to each target content scene, and displaying the target video frames corresponding to the target content scenes on a preset terminal screen.
In this embodiment, a video playing device obtains a target video signal corresponding to a video playing request and film metadata corresponding to the target video signal by responding to the video playing request, where the target video signal is a high dynamic range video signal; acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness; and decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal. The luminance mapping curve of the HDR video signal is generated through the film metadata, the luminance distribution data of the target content scene and the peak luminance of the device, so that the luminance range of the HDR video signal played by the display screen in different scenes can be fully utilized, and the display contrast of each scene when the HDR video is played by the display device is improved.
The embodiment of the invention also provides video playing equipment, as shown in fig. 6, and fig. 6 is a schematic structural diagram of one embodiment of the video playing equipment provided in the embodiment of the application.
The video playing device integrates any one of the video playing devices provided by the embodiment of the invention, and the video playing device comprises:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to perform the steps of the video playback method described in any of the embodiments of the video playback method described above.
Specifically, the present invention relates to a method for manufacturing a semiconductor device. The video playback device may include one or more processing cores 'processors 601, one or more computer-readable storage media's memory 602, power supply 603, and input unit 604, among other components. It will be appreciated by those skilled in the art that the video playback device structure shown in fig. 6 does not constitute a limitation of the video playback device and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components. Wherein:
the processor 601 is a control center of the video playback device, connects various parts of the entire video playback device using various interfaces and lines, and performs various functions of the video playback device and processes data by running or executing software programs and/or modules stored in the memory 602, and calling data stored in the memory 602, thereby performing overall monitoring of the video playback device. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 601.
The memory 602 may be used to store software programs and modules, and the processor 601 may execute various functional applications and data processing by executing the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the video playback device, and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 by the processor 601.
The video playback device further comprises a power supply 603 for supplying power to the various components, preferably the power supply 603 may be logically connected to the processor 601 via a power management system, so that functions of managing charging, discharging, power consumption management, etc. are achieved via the power management system. The power supply 603 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The video playback device may further comprise an input unit 604, which input unit 604 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the video playback device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 601 in the video playing device loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 executes the application programs stored in the memory 602, so as to implement various functions as follows:
responding to a video playing request, and acquiring a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, wherein the target video signal is a high dynamic range video signal;
acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness;
And decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal.
To this end, embodiments of the present invention provide a computer-readable storage medium, which may include: read-only memory (ROM, read On ly Memory), random access memory (RAM, random Access Memory), magnetic or optical disk, and the like. On which a computer program is stored, which is loaded by a processor to perform the steps of any of the video playing methods provided by the embodiments of the present invention. For example, the loading of the computer program by the processor may perform the steps of:
responding to a video playing request, and acquiring a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, wherein the target video signal is a high dynamic range video signal;
acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness;
and decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of one embodiment that are not described in detail in the foregoing embodiments may be referred to in the foregoing detailed description of other embodiments, which are not described herein again.
In the implementation, each unit or structure may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit or structure may be referred to the foregoing method embodiments and will not be repeated herein.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The foregoing describes in detail a video playing method provided by the embodiments of the present application, and specific embodiments are applied to describe the principles and implementations of the present invention, where the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (10)

1. A video playing method, characterized in that the video playing method comprises:
Responding to a video playing request, and acquiring a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, wherein the target video signal is a high dynamic range video signal;
acquiring brightness distribution data of a target content scene in the target video signal, and generating a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness;
and decoding the target video signal based on the brightness mapping curve, and playing a target content scene corresponding to the target video signal.
2. The video playback method of claim 1, wherein the generating a luminance map of the target video signal from the movie metadata, the luminance distribution data, and a device peak luminance comprises:
determining the peak brightness of a film in the target video signal according to the film metadata, wherein the peak brightness of the film is the peak playing brightness supported by the target video signal;
determining scene peak brightness corresponding to each target content scene in the target video signal according to brightness distribution data of the target content scene;
And generating a brightness mapping curve of the target video signal according to the film peak brightness, each scene peak brightness and the equipment peak brightness.
3. The video playback method of claim 2, wherein the generating a luminance map of the target video signal from the film peak luminance, scene peak luminance, and device peak luminance comprises:
if the difference between the film peak brightness and the scene peak brightness is larger than a preset brightness threshold, generating a brightness mapping curve of the target video signal according to the scene peak brightness and the equipment peak brightness;
and if the difference between the film peak brightness and the scene peak brightness is smaller than or equal to a preset brightness threshold value, generating a brightness mapping curve of the target video signal according to the film peak brightness and the equipment peak brightness.
4. The video playback method of claim 3, wherein the generating a luminance map of the target video signal from the scene peak luminance and the device peak luminance comprises:
inputting the peak brightness of each target content scene and the peak brightness of the equipment into a preset brightness curve model for tone mapping to obtain a target mapping brightness curve of each target content scene;
Fitting a target mapping brightness curve corresponding to each target content scene, and generating a brightness mapping curve of the target video signal.
5. The video playback method of claim 1, wherein the obtaining luminance distribution data of a target content scene in the target video signal comprises:
acquiring a video image frame corresponding to a target content scene in the target video signal, and performing image conversion on the video image frame to generate a gray image frame;
performing brightness division on the gray image frames according to preset histogram intervals to obtain pixel information of each preset histogram interval;
and summarizing pixel information of each preset histogram interval, and generating brightness distribution data of the target content scene.
6. The video playing method according to claim 1, wherein the obtaining the target video signal corresponding to the video playing request and the film metadata corresponding to the target video signal includes:
analyzing the video playing request to obtain a target video signal carried by the video playing request;
and acquiring static metadata of the target video signal, and extracting film metadata associated with film peak brightness in the static metadata.
7. The video playing method according to any one of claims 1-6, wherein decoding the target video signal based on the brightness map curve, playing a target content scene corresponding to the target video signal, includes:
decoding the target video signal to obtain output brightness information of each target content scene in the target video signal;
performing brightness conversion on the output brightness information according to the brightness mapping curve to obtain target brightness information;
and synthesizing the target brightness information and the chromaticity information of each target content scene to obtain target video frames corresponding to each target content scene, and displaying the target video frames corresponding to the target content scenes on a preset terminal screen.
8. A video playback device, the video playback device comprising:
the system comprises a signal acquisition module, a video playing module and a video playing module, wherein the signal acquisition module is configured to respond to a video playing request and acquire a target video signal corresponding to the video playing request and film metadata corresponding to the target video signal, and the target video signal is a high dynamic range video signal;
the curve generation module is configured to acquire brightness distribution data of a target content scene in the target video signal and generate a brightness mapping curve of the target video signal according to the film metadata, the brightness distribution data and the equipment peak brightness;
And the video playing module is configured to decode the target video signal based on the brightness mapping curve and play a target content scene corresponding to the target video signal.
9. A video playback device, the video playback device comprising:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the video playback method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps of the video playback method of any one of claims 1 to 7.
CN202311505513.3A 2023-11-10 2023-11-10 Video playing method, device, equipment and storage medium Pending CN117459757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311505513.3A CN117459757A (en) 2023-11-10 2023-11-10 Video playing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311505513.3A CN117459757A (en) 2023-11-10 2023-11-10 Video playing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117459757A true CN117459757A (en) 2024-01-26

Family

ID=89596554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311505513.3A Pending CN117459757A (en) 2023-11-10 2023-11-10 Video playing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117459757A (en)

Similar Documents

Publication Publication Date Title
CN108810649B (en) Image quality adjusting method, intelligent television and storage medium
US11812191B2 (en) Display system, display method, and display apparatus
CN109219844B (en) Transitioning between video priority and graphics priority
CN109783178B (en) Color adjusting method, device, equipment and medium for interface component
US20100177247A1 (en) Ambient lighting
CN113518185B (en) Video conversion processing method and device, computer readable medium and electronic equipment
CN114071197B (en) Screen projection data processing method and device
JP7295950B2 (en) Video enhancement control method, device, electronic device and storage medium
WO2019085980A1 (en) Method and device for video caption automatic adjustment, terminal, and readable medium
CN113055742B (en) Video display method, device, terminal and storage medium
CN108495054B (en) Method and device for processing high dynamic range signal and computer storage medium
CN111372002A (en) Display processing method and electronic equipment
WO2022151852A1 (en) Image processing method, apparatus, and system, electronic device, and storage medium
CN109544441B (en) Image processing method and device, and skin color processing method and device in live broadcast
CN117459757A (en) Video playing method, device, equipment and storage medium
US20200267440A1 (en) Display device, control method therefor and recording medium
CN117133245A (en) Data processing method, device, computer equipment and computer readable storage medium
CN114567813A (en) Image quality improving method and device, playing equipment and computer readable storage medium
CN113891136A (en) Video playing method and device, electronic equipment and storage medium
CN111263079B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108495053B (en) Metadata processing method and device for high dynamic range signal
CN113992859A (en) Image quality improving method and device
EP3806026A1 (en) Method and apparatus for enhancing video image quality
US20230237632A1 (en) Electronic device and operating method thereof
CN117041611A (en) Trick play method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination