WO2017113600A1 - 视频播放方法及装置 - Google Patents
视频播放方法及装置 Download PDFInfo
- Publication number
- WO2017113600A1 WO2017113600A1 PCT/CN2016/084553 CN2016084553W WO2017113600A1 WO 2017113600 A1 WO2017113600 A1 WO 2017113600A1 CN 2016084553 W CN2016084553 W CN 2016084553W WO 2017113600 A1 WO2017113600 A1 WO 2017113600A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video
- played
- dynamic range
- processed
- high dynamic
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000001960 triggered effect Effects 0.000 claims abstract description 22
- 238000004891 communication Methods 0.000 claims description 20
- 230000002194 synthesizing effect Effects 0.000 claims description 6
- 230000015572 biosynthetic process Effects 0.000 claims description 2
- 238000000605 extraction Methods 0.000 claims description 2
- 238000003786 synthesis reaction Methods 0.000 claims description 2
- 238000006243 chemical reaction Methods 0.000 abstract description 9
- 239000000284 extract Substances 0.000 description 22
- 238000010586 diagram Methods 0.000 description 13
- 230000003287 optical effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440263—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
Definitions
- the present invention relates to the field of intelligent terminals, and in particular, to a video playing method and apparatus.
- High dynamic range Video has the advantages that ordinary video does not have: bright areas can be very bright, dark areas can be very dark, details of bright and dark parts are obvious, and so on.
- smart TV programs are mostly low dynamic range video, while high dynamic range video is mostly in the form of DVD discs.
- the source of the film is limited and cannot be popularized.
- the high dynamic range programs that smart TV can see are few. Therefore, for the problem that the existing smart television system has a low dynamic range video resource, the problem in this aspect needs to be solved by the inventor.
- the main object of the present invention is to solve the problem that the existing smart television system has low dynamic range video resources.
- the present invention provides a video playing method, where the video playing method includes the following steps:
- the video frame to be processed is extracted from the to-be-played video according to a preset ratio
- the present invention provides a video playing method, where the video playing method includes the following steps:
- the present invention further provides a video playing device, where the video playing device includes:
- the acquiring module is configured to acquire a video to be played when detecting a play instruction triggered by the user;
- a determining module configured to determine whether the to-be-played video is a high dynamic range video
- a compensation module configured to perform a compensation process of a bright pixel and a dark pixel on the video frame of the to-be-played video to convert the to-be-played video into a high dynamic range video, if the to-be-played video is not a high dynamic range video ;
- a playback module for playing the converted high dynamic range video.
- the invention realizes the conversion of the traditional low dynamic range video to the high dynamic range video by compensating the light and dark pixels of the video frame of the low dynamic range video, effectively increasing the source of the high dynamic range video program in the smart television, and solving the problem.
- the problem of sparse video resources in high dynamic range in smart TV systems improves the user experience.
- FIG. 1 is a schematic flow chart of a first embodiment of a video playing method according to the present invention.
- FIG. 2 is a schematic flow chart of a second embodiment of a video playing method according to the present invention.
- FIG. 3 is a schematic flow chart of a preferred embodiment of performing compensation processing of bright pixels and dark pixels for each video frame to be processed according to the present invention
- FIG. 4 is a schematic flowchart diagram of a third embodiment of a video playing method according to the present invention.
- FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a video playing method according to the present invention.
- FIG. 6 is a schematic diagram of functional modules of a first embodiment of a video playback device according to the present invention.
- FIG. 7 is a schematic diagram of functional modules of a second embodiment of a video playback apparatus according to the present invention.
- FIG. 8 is a schematic diagram of functional modules of a third embodiment of a video playback apparatus according to the present invention.
- FIG. 9 is a schematic diagram of functional modules of a fourth embodiment of a video playback apparatus according to the present invention.
- the invention provides a video playing method.
- FIG. 1 is a schematic flowchart of a first embodiment of a video playing method according to the present invention.
- the video playing method includes:
- Step S10 Acquire a video to be played when detecting a play instruction triggered by the user
- the smart TV of the present invention detects the play command triggered by the user, the smart TV corresponding to the play instruction acquires the to-be-played video.
- the play instruction may trigger the play instruction by detecting a button operation of the play button by using a play button provided by the control panel of the smart TV or a remote controller; or the playing The command may also provide a play interface through the mobile terminal associated with the smart TV, and trigger the play instruction when detecting a touch operation by the user based on the play interface of the mobile terminal.
- the video to be played may be a video file stored locally by the smart TV, or a video file acquired by the smart TV from the cloud through the Internet, or may be a video file received by the smart TV from a mobile terminal, or the like. Wait.
- Step S20 determining whether the to-be-played video is a high dynamic range video
- the smart television determines whether the to-be-played video is a high dynamic range video. Specifically, the smart TV may determine whether the to-be-played video is a high dynamic range video by using a resolution of the to-be-played video; or the smart television may also read the format of the to-be-played video. The information determines whether the to-be-played video is a high dynamic range video.
- Step S30 if not, performing compensation processing of the bright pixel and the dark pixel on the video frame of the video to be played to convert the to-be-played video into a high dynamic range video;
- step S40 the converted high dynamic range video is played.
- the smart TV determines that the to-be-played video is not a high dynamic range video, performing compensation processing of the bright pixel and the dark pixel on the video frame of the to-be-played video to convert the to-be-played video into a high dynamic range video
- the smart TV plays the converted high dynamic range video.
- the smart TV may further play the video to be played directly if it is determined that the to-be-played video is a high dynamic range video.
- the smart TV may perform compensation processing of the bright pixel and the dark pixel on a part of the video frame of the to-be-played video, or may compensate the bright pixel and the dark pixel in each video frame of the to-be-played video. deal with.
- the bright pixel and the dark pixel may determine the gain value of each pixel in the video frame, determine the pixel point whose gain value is in the first preset range as a bright pixel point, and set the gain value to the second preset.
- the pixels of the range are determined to be dark pixel points.
- the video frame of the low dynamic range video is compensated for the light and dark pixels, thereby realizing the conversion of the traditional low dynamic range video to the high dynamic range video, effectively increasing the source of the high dynamic range video program in the smart TV, and solving the problem.
- the problem of sparse high-dynamic video resources in smart TV systems has improved the user experience.
- FIG. 2 is a schematic flowchart diagram of a second embodiment of a video playing method according to the present invention. Based on the first embodiment of the video playing method, the step 30 includes:
- Step S31 extracting a video frame to be processed from the to-be-played video according to a preset ratio
- the smart television extracts a video frame to be processed from the to-be-played video according to a preset ratio.
- the smart TV may save the video file of the to-be-played video in the first storage area, and the smart TV extracts the video frame from the first storage area according to the red, green, and blue gains.
- the smart TV extracts a preset proportion of the to-be-processed video frame from the second storage area.
- the preset ratio may be specifically set according to an actual situation.
- the preset ratio may be set to 1/3, and 1/3 of the video frame is extracted from the to-be-played video as a video frame to be processed; Or setting the preset ratio to 3/10, and extracting a 3/10 video frame from the to-be-played video as a video frame to be processed.
- the smart TV may extract a preset proportion of video frames as a to-be-processed video frame per unit time from a video frame of the to-be-played video.
- the smart TV can extract 1/3 of a total of 20 frames of video frames as a to-be-processed video frame from 60 frames of 1 second in units of 1 second, and sequentially extract 1/3 of the to-be-played video.
- the video frame is used as a video frame to be processed.
- the smart TV may further extract 3 frames as a to-be-processed video frame from every 10 frames of the to-be-played video according to a play time axis sequence, and sequentially extract all the video frames to be processed.
- 3 frames Frame1_Part1(x2) 10/60
- Step S32 performing compensation processing of bright pixels and dark pixels on each of the to-be-processed video frames
- FIG. 3 is a schematic flowchart of a preferred embodiment of performing compensation processing of bright pixels and dark pixels on each video frame to be processed according to the present invention
- Step S321 determining dark pixel points in which the red, green and blue gains of the to-be-processed video frames are smaller than the first threshold, and bright pixel points whose red, green and blue gains are greater than the second threshold;
- Step S322 adding a pixel point in the horizontal direction and/or the vertical direction of the determined pixel point, and reducing a corresponding number of pixel points in the middle position of each video frame to be processed to ensure that the resolution is unchanged, and is processed. After the video frame.
- the first threshold may be one tenth of the total gain, that is, the red, green and blue gain is zero to one tenth of the total gain as a dark pixel; the second threshold may be a total gain of ten Eighth, the red, green and blue gains are between eight and ten tenths of the total gain as bright pixels.
- the smart television may respectively add one pixel point in the horizontal direction and the vertical direction of the determined pixel point, and reduce a corresponding number of pixel points in the middle position of each to-be-processed video frame; or, the smart television also A pixel point may be added in the horizontal direction of the determined pixel point, and a corresponding number of pixel points are reduced in the middle of each of the to-be-processed video frames.
- the first dark picture is increased by 1 pixel point gain
- Add_R_G_BGain(x1) 0x05
- the fourth dark picture is increased by 1 pixel point gain
- Add_R_G_BGain (x4) 0x02
- Step S33 acquiring the processed video frame and the remaining unprocessed video frames in the to-be-played video, and synthesizing the acquired video frames into high dynamic range video according to the playing time axis.
- the video frame of the low dynamic range video is compensated for the light and dark pixels, thereby realizing the conversion of the traditional low dynamic range video to the high dynamic range video, effectively increasing the source of the high dynamic range video program in the smart TV, and solving the problem.
- the problem of sparse high-dynamic video resources in smart TV systems has improved the user experience.
- FIG. 4 is a schematic flowchart diagram of a third embodiment of a video playing method according to the present invention. Based on the first embodiment of the video playing method, the step S20 includes:
- Step S21 extracting a video frame from the to-be-played video, and determining a corresponding video frame resolution according to the number of horizontal pixel points and the number of vertical pixel lines of the extracted video frame;
- Step S22 matching the video frame resolution with a preset standard resolution
- step S23 if the standard resolution is the same as the resolution of the video frame, it is determined that the to-be-played video is not a high dynamic range video.
- the smart TV matches the video frame resolution with a preset standard resolution, which is a resolution of a conventional low dynamic range video, for example, the preset standard resolution Can be VESA (Video Electronics Standards Association, the standard resolution of the Video Electronics Standards Association; if the smart TV matches the standard resolution with the same resolution as the video frame, it is determined that the to-be-played video is a conventional low-resolution video, and the The playback video is not a high dynamic range video.
- VESA Video Electronics Standards Association, the standard resolution of the Video Electronics Standards Association
- the horizontal resolution of the video is determined by the number of pixels in the horizontal direction in the video frame of the video to be played
- the vertical resolution of the video is determined by the number of pixel lines in the vertical direction of the video frame of the video to be played.
- the horizontal and vertical resolution of the video determines whether the video is a high dynamic range video. If it is not a high dynamic range video, the traditional low dynamic range video is achieved by compensating the video frame of the video for dark and dark pixels.
- the conversion of dynamic range video effectively increases the source of high dynamic range video programs in smart TVs, solves the problem of scarce video resources in high dynamic range in smart TV systems, and improves user experience.
- FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a video playing method according to the present invention. Based on the first embodiment of the video playing method, before the step S10, the method further includes:
- Step S11 when detecting a connection instruction triggered by the user, establishing a communication connection with the corresponding terminal;
- Step S12 Receive a video file sent by the terminal, and save the received video file as a to-be-played video.
- the smart TV establishes a communication connection with the corresponding terminal when detecting a connection instruction triggered by the user, and the communication connection may be a wireless communication connection established by a wireless communication module in the smart television, or The communication connection may also be a communication channel established through an interface module in the smart TV and a wired connection with the terminal; the smart TV receives a video file sent by the terminal, and uses the received video file as a The video to be played is saved.
- Xiaomei shoots a video of her own clothes on the mobile phone.
- the video is saved in the mobile phone in a low dynamic range video format, which occupies less storage space and consumes less power.
- Xiaomei pushes the video.
- the smart TV converts the low dynamic range video into a high dynamic range video for playback, which effectively improves the user experience.
- the communication connection between the mobile terminal and the smart TV is established, and the non-high dynamic range video sent by the terminal is converted into a high dynamic range video for playing, which not only effectively increases the source of the high dynamic range video program in the smart TV, but also reduces The problem that the mobile terminal stores high dynamic range video will occupy a large amount of storage resources of the terminal.
- the execution bodies of the video playing methods of the above first to fourth embodiments may each be a video playing device or a smart TV. Further, the video playing method can be implemented by a client player installed on a video playing device or a smart TV.
- the invention further provides a video playback device.
- FIG. 6 is a schematic diagram of functional modules of a first embodiment of a video playback apparatus according to the present invention.
- the video playback device includes: an acquisition module 10, a determination module 20, a compensation module 30, and a playback module 40.
- the acquiring module 10 is configured to acquire a video to be played when detecting a play instruction triggered by the user;
- the smart TV of the present invention detects the play command triggered by the user, the smart TV corresponding to the play instruction acquires the to-be-played video.
- the play instruction may trigger the play instruction by detecting a button operation of the play button by using a play button provided by the control panel of the smart TV or a remote controller; or the playing The command may also provide a play interface through the mobile terminal associated with the smart TV, and trigger the play instruction when detecting a touch operation by the user based on the play interface of the mobile terminal.
- the video to be played may be a video file stored locally by the smart TV, or a video file acquired by the smart TV from the cloud through the Internet, or may be a video file received by the smart TV from a mobile terminal, or the like. Wait.
- the determining module 20 is configured to determine whether the to-be-played video is a high dynamic range video
- the smart television determines whether the to-be-played video is a high dynamic range video. Specifically, the smart TV may determine whether the to-be-played video is a high dynamic range video by using a resolution of the to-be-played video; or the smart television may also read the format of the to-be-played video. The information determines whether the to-be-played video is a high dynamic range video.
- the compensation module 30 is configured to perform a compensation process of the bright pixel and the dark pixel on the video frame of the to-be-played video to convert the to-be-played video to high if the to-be-played video is not a high dynamic range video.
- Dynamic range video
- the playing module 40 is configured to play the converted high dynamic range video.
- the smart TV determines that the to-be-played video is not a high dynamic range video, performing compensation processing of the bright pixel and the dark pixel on the video frame of the to-be-played video to convert the to-be-played video into a high dynamic range video
- the smart TV plays the converted high dynamic range video.
- the smart TV may further play the video to be played directly if it is determined that the to-be-played video is a high dynamic range video.
- the smart TV may perform compensation processing of the bright pixel and the dark pixel on a part of the video frame of the to-be-played video, or may compensate the bright pixel and the dark pixel in each video frame of the to-be-played video. deal with.
- the bright pixel and the dark pixel may determine the gain value of each pixel in the video frame, determine the pixel point whose gain value is in the first preset range as a bright pixel point, and set the gain value to the second preset.
- the pixels of the range are determined to be dark pixel points.
- the video frame of the low dynamic range video is compensated for the light and dark pixels, thereby realizing the conversion of the traditional low dynamic range video to the high dynamic range video, effectively increasing the source of the high dynamic range video program in the smart TV, and solving the problem.
- the problem of sparse high-dynamic video resources in smart TV systems has improved the user experience.
- FIG. 7 is a schematic diagram of functional modules of a second embodiment of the apparatus of the present invention.
- the compensation module 30 includes an extraction unit 31, a compensation unit 32, and a synthesis unit 33;
- the extracting unit 31 is configured to extract a video frame to be processed from the to-be-played video according to a preset ratio
- the smart television extracts a video frame to be processed from the to-be-played video according to a preset ratio.
- the smart TV may save the video file of the to-be-played video in the first storage area, and the smart TV extracts the video frame from the first storage area according to the red, green, and blue gains.
- the smart TV extracts a preset proportion of the to-be-processed video frame from the second storage area.
- the preset ratio may be specifically set according to an actual situation.
- the preset ratio may be set to 1/3, and 1/3 of the video frame is extracted from the to-be-played video as a video frame to be processed; Or setting the preset ratio to 3/10, and extracting a 3/10 video frame from the to-be-played video as a video frame to be processed.
- the smart TV may extract a preset proportion of video frames as a to-be-processed video frame per unit time from a video frame of the to-be-played video.
- the smart TV can extract 1/3 of a total of 20 frames of video frames as a to-be-processed video frame from 60 frames of 1 second in units of 1 second, and sequentially extract 1/3 of the to-be-played video.
- the video frame is used as a video frame to be processed.
- the smart TV may further extract 3 frames as a to-be-processed video frame from every 10 frames of the to-be-played video according to a play time axis sequence, and sequentially extract all the video frames to be processed.
- 3 frames Frame1_Part1(x2) 10/60
- the compensation unit 32 is configured to perform compensation processing of bright pixels and dark pixels on each video frame to be processed
- the smart TV performs compensation processing of bright pixels and dark pixels on each of the to-be-processed video frames.
- the compensation unit 32 is further configured to determine, in each of the to-be-processed video frames, a dark pixel with a red, green, and blue gain less than a first threshold, and a bright pixel with a red, green, and blue gain greater than a second threshold;
- the unit 32 is further configured to add a pixel point in the horizontal direction and/or the vertical direction of the determined pixel point, and reduce a corresponding number of pixel points in the middle position of each of the to-be-processed video frames to ensure the resolution is unchanged. , get the processed video frame.
- the first threshold may be one tenth of the total gain, that is, the red, green and blue gain is zero to one tenth of the total gain as a dark pixel; the second threshold may be a total gain of ten Eighth, the red, green and blue gains are between eight and ten tenths of the total gain as bright pixels.
- the smart television may respectively add one pixel point in the horizontal direction and the vertical direction of the determined pixel point, and reduce a corresponding number of pixel points in the middle position of each to-be-processed video frame; or, the smart television also A pixel point may be added in the horizontal direction of the determined pixel point, and a corresponding number of pixel points are reduced in the middle of each of the to-be-processed video frames.
- the first dark picture is increased by 1 pixel point gain
- Add_R_G_BGain(x1) 0x05
- the fourth dark picture is increased by 1 pixel point gain
- Add_R_G_BGain (x4) 0x02
- the synthesizing unit 33 is configured to acquire the processed video frame and the remaining unprocessed video frames in the to-be-played video, and synthesize the acquired video frames into a high dynamic range video according to a playing time axis.
- the video frame of the low dynamic range video is compensated for the light and dark pixels, thereby realizing the conversion of the traditional low dynamic range video to the high dynamic range video, effectively increasing the source of the high dynamic range video program in the smart TV, and solving the problem.
- the problem of sparse high-dynamic video resources in smart TV systems has improved the user experience.
- FIG. 8 is a schematic diagram of functional modules of a third embodiment of the apparatus of the present invention.
- the determining module 20 includes a determining unit 21 and a matching unit 22;
- the determining unit 21 is configured to extract a video frame from the to-be-played video, and determine a corresponding video frame resolution according to the number of horizontal pixel points and the number of vertical pixel lines of the extracted video frame;
- the matching unit 22 is configured to match the video frame resolution with a preset standard resolution
- the determining unit 21 is further configured to determine that the to-be-played video is not a high dynamic range video if the standard resolution is the same as the video frame resolution.
- the smart TV matches the video frame resolution with a preset standard resolution, which is a resolution of a conventional low dynamic range video, for example, the preset standard resolution Can be VESA (Video Electronics Standards Association, the standard resolution of the Video Electronics Standards Association; if the smart TV matches the standard resolution with the same resolution as the video frame, it is determined that the to-be-played video is a conventional low-resolution video, and the The playback video is not a high dynamic range video.
- VESA Video Electronics Standards Association, the standard resolution of the Video Electronics Standards Association
- the horizontal resolution of the video is determined by the number of pixels in the horizontal direction in the video frame of the video to be played
- the vertical resolution of the video is determined by the number of pixel lines in the vertical direction of the video frame of the video to be played.
- the horizontal and vertical resolution of the video determines whether the video is a high dynamic range video. If it is not a high dynamic range video, the traditional low dynamic range video is achieved by compensating the video frame of the video for dark and dark pixels.
- the conversion of dynamic range video effectively increases the source of high dynamic range video programs in smart TVs, solves the problem of scarce video resources in high dynamic range in smart TV systems, and improves user experience.
- FIG. 9 is a schematic diagram of functional modules of a fourth embodiment of the apparatus of the present invention.
- the video playback device further includes a connection module 50 and a storage module 60, based on the first embodiment of the video playback device;
- the connection module 50 is configured to establish a communication connection with the corresponding terminal when detecting a connection instruction triggered by the user;
- the storage module 60 is configured to receive a video file sent by the terminal, and save the received video file as a to-be-played video.
- the smart TV establishes a communication connection with the corresponding terminal when detecting a connection instruction triggered by the user, and the communication connection may be a wireless communication connection established by a wireless communication module in the smart television, or The communication connection may also be a communication channel established through an interface module in the smart TV and a wired connection with the terminal; the smart TV receives a video file sent by the terminal, and uses the received video file as a The video to be played is saved.
- Xiaomei shoots a video of her own clothes on the mobile phone.
- the video is saved in the mobile phone in a low dynamic range video format, which occupies less storage space and consumes less power.
- Xiaomei pushes the video.
- the smart TV converts the low dynamic range video into a high dynamic range video for playback, which effectively improves the user experience.
- the communication connection between the mobile terminal and the smart TV is established, and the non-high dynamic range video sent by the terminal is converted into a high dynamic range video for playing, which not only effectively increases the source of the high dynamic range video program in the smart TV, but also reduces The problem that the mobile terminal stores high dynamic range video will occupy a large amount of storage resources of the terminal.
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
一种视频播放方法及视频播放装置,所述视频播放方法包括以下步骤:在侦测到用户触发的播放指令时,获取待播放视频;判断所述待播放视频是否为高动态范围视频;若不是,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;对转换得到的高动态范围视频进行播放。实现了传统的低动态范围视频向高动态范围视频的转换,有效的增加了智能电视中高动态范围视频节目的来源,解决了智能电视系统中高动态范围视频资源稀少的问题,提高了用户体验。
Description
技术领域
本发明涉及智能终端领域,尤其涉及一种视频播放方法及装置。
背景技术
随着智能电视系统的发展,高动态范围(HDR,High-Dynamic
Range)视频也越来越流行。高动态范围视频具有普通视频所不具有的优势:亮的地方可以非常亮、暗的地方可以非常暗、亮暗部的细节很明显等等。目前智能电视节目多为低动态范围视频,而高动态范围视频多以DVD光碟的形式出现,片源很有限,不能普及,智能电视能够看到的高动态范围节目很少。因此,对于现有的智能电视系统高动态范围视频资源稀少的问题,此方面的问题亟待发明人解决。
发明内容
本发明的主要目的在于解决现有的智能电视系统高动态范围视频资源稀少的问题。
为实现上述目的,本发明提供一种一种视频播放方法,所述视频播放方法包括以下步骤:
在侦测到用户触发的播放指令时,获取待播放视频;
通过所述待播放视频的分辨率判断所述待播放视频是否为高动态范围视频;或者,通过读取到的所述待播放视频的格式信息判断所述待播放视频是否为高动态范围视频;
若不是,则按照预设比例从所述待播放视频中提取出待处理的视频帧;
对各个待处理的视频帧进行亮像素和暗像素的补偿处理;
获取处理后的视频帧和所述待播放视频中剩下的未处理的视频帧,并将所获取的视频帧按照播放时间轴合成为高动态范围视频,以将所述待播放视频转换为高动态范围视频;
对转换得到的高动态范围视频进行播放。
此外,为实现上述目的,本发明提供还一种视频播放方法,所述视频播放方法包括以下步骤:
在侦测到用户触发的播放指令时,获取待播放视频;
判断所述待播放视频是否为高动态范围视频;
若不是,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;
对转换得到的高动态范围视频进行播放。
此外,为实现上述目的,本发明还提供一种视频播放装置,所述视频播放装置包括:
获取模块,用于在侦测到用户触发的播放指令时,获取待播放视频;
判断模块,用于判断所述待播放视频是否为高动态范围视频;
补偿模块,用于若所述待播放视频不是高动态范围视频,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;
播放模块,用于对转换得到的高动态范围视频进行播放。
本发明通过对低动态范围视频的视频帧进行亮暗像素的补偿,实现了传统的低动态范围视频向高动态范围视频的转换,有效的增加了智能电视中高动态范围视频节目的来源,解决了智能电视系统中高动态范围视频资源稀少的问题,提高了用户体验。
附图说明
图1为本发明视频播放方法的第一实施例的流程示意图;
图2为本发明视频播放方法的第二实施例的流程示意图;
图3为本发明中对各个待处理的视频帧进行亮像素和暗像素的补偿处理的较佳实施例的流程示意图;
图4为本发明视频播放方法的第三实施例的流程示意图;
图5为本发明视频播放方法的第四实施例的流程示意图;
图6为本发明视频播放装置的第一实施例的功能模块示意图;
图7为本发明视频播放装置的第二实施例的功能模块示意图;
图8为本发明视频播放装置的第三实施例的功能模块示意图;
图9为本发明视频播放装置的第四实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种视频播放方法。
参照图1,图1为本发明视频播放方法的第一实施例的流程示意图。
在本实施例中,所述视频播放方法包括:
步骤S10,在侦测到用户触发的播放指令时,获取待播放视频;
本发明中的智能电视在侦测到用户触发的播放指令时,获取所述播放指令对应的待播放视频。具体的,所述播放指令可以通过所述智能电视的控制面板或者遥控器提供的播放按钮,在侦测到用户基于所述播放按钮的按键操作时,触发所述播放指令;或者,所述播放指令也可以通过所述智能电视关联的移动终端提供播放界面,在侦测到用户基于所述移动终端的播放界面的触摸操作时,触发所述播放指令。
所述待播放视频,可以是所述智能电视本地存储的视频文件、或者是所述智能电视通过互联网从云端获取的视频文件、或者也可以是所述智能电视接收的来自移动终端的视频文件等等。
步骤S20,判断所述待播放视频是否为高动态范围视频;
所述智能电视判断所述待播放视频是否为高动态范围视频。具体的,所述智能电视可以通过所述待播放视频的分辨率判断所述待播放视频是否为高动态范围视频;或者,所述智能电视也可以通过读取到的所述待播放视频的格式信息判断所述待播放视频是否为高动态范围视频。
步骤S30,若不是,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;
步骤S40,对转换得到的高动态范围视频进行播放。
若所述智能电视判断所述待播放视频不是高动态范围视频,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;所述智能电视对转换得到的高动态范围视频进行播放。进一步的,所述智能电视还可以,若判断所述待播放视频是高动态范围视频,则直接对所述待播放视频进行播放。
具体的,所述智能电视可以对所述待播放视频的部分视频帧进行亮像素和暗像素的补偿处理,或者也可以对所述待播放视频的各个视频帧均进行亮像素和暗像素的补偿处理。所述亮像素及所述暗像素可以通过对视频帧内各个像素点的增益值进行判断,将增益值处于第一预设范围的像素点确定为亮像素点,将增益值处于第二预设范围的像素点确定为暗像素点。
本实施例通过对低动态范围视频的视频帧进行亮暗像素的补偿,实现了传统的低动态范围视频向高动态范围视频的转换,有效的增加了智能电视中高动态范围视频节目的来源,解决了智能电视系统中高动态范围视频资源稀少的问题,提高了用户体验。
参照图2,图2为本发明视频播放方法的第二实施例的流程示意图。基于上述视频播放方法的第一实施例,所述步骤30包括:
步骤S31,按照预设比例从所述待播放视频中提取出待处理的视频帧;
在所述智能电视判断所述待播放视频不是高动态范围视频时,所述智能电视按照预设比例从所述待播放视频中提取出待处理的视频帧。具体的,所述智能电视可以将所述待播放视频的视频文件保存在第一存储区内,所述智能电视从所述第一存储区内按照红绿蓝增益分别提取出视频帧保存在第二存储区内,所述智能电视从所述第二存储区内提取出预设比例的待处理视频帧。所述预设比例可以根据实际进行具体设定,例如:可以将所述预设比例设置为1/3,从所述待播放视频中提取出1/3的视频帧作为待处理的视频帧;或者将所述预设比例设置为3/10,从所述待播放视频中提取出3/10的视频帧作为待处理的视频帧。
具体的,所述智能电视可以从所述待播放视频的视频帧中,按照每单位时间抽取预设比例的视频帧作为待处理的视频帧。例如:所述智能电视可以按照1秒为单位时间,从1秒的60帧内抽取1/3共20帧的视频帧作为待处理的视频帧,依次提取出所述待播放视频1/3的视频帧作为待处理的视频帧。
进一步的,所述智能电视还可以按照播放时间轴顺序,从所述待播放视频中每10帧提取出3帧作为待处理的视频帧,依次提取出所有待处理的视频帧。例如:所述智能电视可以从1秒对应的60帧内Frame_Total(x1)=60,60帧的1/6处提取出3帧Frame1_Part1(x1)=10/60,60帧的2/6处提取出3帧Frame1_Part1(x2)=10/60,直至60帧的6/6处提取出3帧Frame1_Part1(x6)=10/60,共抽取出18帧的视频帧作为待处理视频帧Frame1_Part_Total(x7)=18。
步骤S32,对各个待处理的视频帧进行亮像素和暗像素的补偿处理;
所述智能电视对各个待处理的视频帧进行亮像素和暗像素的补偿处理。具体的,参照图3,图3为本发明中对各个待处理的视频帧进行亮像素和暗像素的补偿处理的较佳实施例的流程示意图;
步骤S321,确定各个待处理的视频帧内红绿蓝增益小于第一阈值的暗像素点,以及红绿蓝增益大于第二阈值的亮像素点;
步骤S322,在所确定的像素点的水平方向和/或竖直方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点以保证分辨率不变,得到处理后的视频帧。
所述智能电视确定各个待处理的视频帧内红绿蓝增益小于第一阈值的暗像素点,以及红绿蓝增益大于第二阈值的亮像素点;所述智能电视在所确定的像素点的水平方向和/或竖直方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点以保证分辨率不变,得到处理后的视频帧。所述第一阈值可以为总增益的十分之一,即将红绿蓝增益为零到总增益的十分之一的像素点作为暗像素点;所述第二阈值可以为总增益的十分之八,即将红绿蓝增益为总增益的十分之八到十分之十的像素点作为亮像素点。
所述智能电视可以在所确定的像素点的水平方向和竖直方向分别增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点;或者,所述智能电视也可以在所确定的像素点的水平方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点。
例如:所述智能电视的暗画面增益为R_G_BGain(x1)=0x06,第一处暗画面增加1个像素点增益为Add_R_G_BGain(x1)=0x05,第四处暗画面增加1个像素点增益为Add_R_G_BGain(x4)=0x02,该视频帧的中间位置减少2个像素点DEC_Midd_RGBGain(x)=4/2=2。
步骤S33,获取处理后的视频帧和所述待播放视频中剩下的未处理的视频帧,并将所获取的视频帧按照播放时间轴合成为高动态范围视频。
所述智能电视获取处理后的视频帧和所述待播放视频中剩下的未处理的视频帧,并将所获取的视频帧按播放时间轴合成为高动态范围视频。例如:所述智能电视获取高动态范围18帧EnhanPic(x)=18,低动态范围42帧OtherPic(x)=60-18=42,按照时间对应关系发送给播放解码设备进行播放。
本实施例通过对低动态范围视频的视频帧进行亮暗像素的补偿,实现了传统的低动态范围视频向高动态范围视频的转换,有效的增加了智能电视中高动态范围视频节目的来源,解决了智能电视系统中高动态范围视频资源稀少的问题,提高了用户体验。
参照图4,图4为本发明视频播放方法的第三实施例的流程示意图。基于上述视频播放方法的第一实施例,所述步骤S20包括:
步骤S21,从所述待播放视频中提取出视频帧,并根据提取出的视频帧的水平像素点个数和竖直像素线条数确定对应的视频帧分辨率;
所述智能电视从所述待播放视频中提取出视频帧,并根据提取出的视频帧的水平像素点个数和竖直像素线条数确定对应的视频帧分辨率。例如:从视频的视频帧中取出一视频帧,该视频帧中红色像素增益个数为Video_Frame_X_RGain(x1)=1920个,则该视频的水平方向上的分辨率为Video_X_Size(x1)=Video_Frame_X_RGain(x1)=1920,该视频帧中绿色像素线条数为Video_Frame_Y_GGain(y1)=1080,则该视频竖直方向上的分辨率为Video_Y_Size(y1)=Video_Frame_Y_GGain(y1)=1080。
步骤S22,将所述视频帧分辨率与预设的标准分辨率进行匹配;
步骤S23,若匹配到与所述视频帧分辨率相同的标准分辨率,则确定所述待播放视频不是高动态范围视频。
所述智能电视将所述视频帧分辨率与预设的标准分辨率进行匹配,所述预设的标准分辨率为传统的低动态范围视频的分辨率,例如:所述预设的标准分辨率可以为VESA(Video
Electronics Standards
Association,视频电子标准协会)的标准分辨率;所述智能电视若匹配到与所述视频帧分辨率相同的标准分辨率,则确定所述待播放视频为传统的低分辨率视频,所述待播放视频不是高动态范围视频。
本实施例通过待播放视频的视频帧内水平方向的像素点个数确定视频的水平分辨率,通过待播放视频的视频帧内竖直方向的像素线条数确定视频的竖直分辨率,以通过视频的水平和竖直分辨率判断该视频是否为高动态范围视频,若不是高动态范围视频,则通过对该视频的视频帧进行亮暗像素的补偿,实现了传统的低动态范围视频向高动态范围视频的转换,有效的增加了智能电视中高动态范围视频节目的来源,解决了智能电视系统中高动态范围视频资源稀少的问题,提高了用户体验。
参照图5,图5为本发明视频播放方法的第四实施例的流程示意图。基于上述视频播放方法的第一实施例,所述步骤S10之前,还包括:
步骤S11,在侦测到用户触发的连接指令时,建立与对应终端的通讯连接;
步骤S12,接收所述终端发送的视频文件,并将所接收到的视频文件作为待播放视频进行保存。
所述智能电视在侦测到用户触发的连接指令时,建立与对应终端的通讯连接,所述通讯连接可以是通过所述智能电视内的无线通信模块所建立的无线通信连接,或者,所述通讯连接也可以是通过所述智能电视内的接口模块以及与所述终端的有线连接所建立的通讯通道;所述智能电视接收所述终端发送的视频文件,并将所接收到的视频文件作为待播放视频进行保存。
例如:小美通过手机拍摄一段自己买衣服的视频,该视频以低动态范围视频的格式保存在手机中,占用的存储空间较小,耗电量也相对较低,而小美将该视频推送到智能电视上面进行播放时,智能电视将该低动态范围视频转换为高动态范围视频进行播放,有效的提高了用户体验。
本实施例通过建立移动终端与智能电视的通讯连接,并将终端发送的非高动态范围视频转换为高动态范围视频进行播放,不仅有效的增加了智能电视中高动态范围视频节目的来源,并且减少了移动终端存储高动态范围视频会大量占用终端的存储资源的问题。
上述第一至第四实施例的视频播放方法的执行主体均可以为视频播放设备或智能电视。更进一步地,该视频播放方法可以由安装在视频播放设备或智能电视上的客户端播放程序实现。
本发明进一步提供一种视频播放装置。
参照图6,图6为本发明视频播放装置的第一实施例的功能模块示意图。
在本实施例中,所述视频播放装置包括:获取模块10、判断模块20、补偿模块30及播放模块40。
所述获取模块10,用于在侦测到用户触发的播放指令时,获取待播放视频;
本发明中的智能电视在侦测到用户触发的播放指令时,获取所述播放指令对应的待播放视频。具体的,所述播放指令可以通过所述智能电视的控制面板或者遥控器提供的播放按钮,在侦测到用户基于所述播放按钮的按键操作时,触发所述播放指令;或者,所述播放指令也可以通过所述智能电视关联的移动终端提供播放界面,在侦测到用户基于所述移动终端的播放界面的触摸操作时,触发所述播放指令。
所述待播放视频,可以是所述智能电视本地存储的视频文件、或者是所述智能电视通过互联网从云端获取的视频文件、或者也可以是所述智能电视接收的来自移动终端的视频文件等等。
所述判断模块20,用于判断所述待播放视频是否为高动态范围视频;
所述智能电视判断所述待播放视频是否为高动态范围视频。具体的,所述智能电视可以通过所述待播放视频的分辨率判断所述待播放视频是否为高动态范围视频;或者,所述智能电视也可以通过读取到的所述待播放视频的格式信息判断所述待播放视频是否为高动态范围视频。
所述补偿模块30,用于若所述待播放视频不是高动态范围视频,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;
所述播放模块40,用于对转换得到的高动态范围视频进行播放。
若所述智能电视判断所述待播放视频不是高动态范围视频,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;所述智能电视对转换得到的高动态范围视频进行播放。进一步的,所述智能电视还可以,若判断所述待播放视频是高动态范围视频,则直接对所述待播放视频进行播放。
具体的,所述智能电视可以对所述待播放视频的部分视频帧进行亮像素和暗像素的补偿处理,或者也可以对所述待播放视频的各个视频帧均进行亮像素和暗像素的补偿处理。所述亮像素及所述暗像素可以通过对视频帧内各个像素点的增益值进行判断,将增益值处于第一预设范围的像素点确定为亮像素点,将增益值处于第二预设范围的像素点确定为暗像素点。
本实施例通过对低动态范围视频的视频帧进行亮暗像素的补偿,实现了传统的低动态范围视频向高动态范围视频的转换,有效的增加了智能电视中高动态范围视频节目的来源,解决了智能电视系统中高动态范围视频资源稀少的问题,提高了用户体验。
参照图7,图7为本发明装置的第二实施例的功能模块示意图。基于上述视频播放装置的第一实施例,所述补偿模块30包括提取单元31、补偿单元32和合成单元33;
所述提取单元31,用于按照预设比例从所述待播放视频中提取出待处理的视频帧;
在所述智能电视判断所述待播放视频不是高动态范围视频时,所述智能电视按照预设比例从所述待播放视频中提取出待处理的视频帧。具体的,所述智能电视可以将所述待播放视频的视频文件保存在第一存储区内,所述智能电视从所述第一存储区内按照红绿蓝增益分别提取出视频帧保存在第二存储区内,所述智能电视从所述第二存储区内提取出预设比例的待处理视频帧。所述预设比例可以根据实际进行具体设定,例如:可以将所述预设比例设置为1/3,从所述待播放视频中提取出1/3的视频帧作为待处理的视频帧;或者将所述预设比例设置为3/10,从所述待播放视频中提取出3/10的视频帧作为待处理的视频帧。
具体的,所述智能电视可以从所述待播放视频的视频帧中,按照每单位时间抽取预设比例的视频帧作为待处理的视频帧。例如:所述智能电视可以按照1秒为单位时间,从1秒的60帧内抽取1/3共20帧的视频帧作为待处理的视频帧,依次提取出所述待播放视频1/3的视频帧作为待处理的视频帧。
进一步的,所述智能电视还可以按照播放时间轴顺序,从所述待播放视频中每10帧提取出3帧作为待处理的视频帧,依次提取出所有待处理的视频帧。例如:所述智能电视可以从1秒对应的60帧内Frame_Total(x1)=60,60帧的1/6处提取出3帧Frame1_Part1(x1)=10/60,60帧的2/6处提取出3帧Frame1_Part1(x2)=10/60,直至60帧的6/6处提取出3帧Frame1_Part1(x6)=10/60,共抽取出18帧的视频帧作为待处理视频帧Frame1_Part_Total(x7)=18。
所述补偿单元32,用于对各个待处理的视频帧进行亮像素和暗像素的补偿处理;
所述智能电视对各个待处理的视频帧进行亮像素和暗像素的补偿处理。具体的,所述补偿单元32,还用于确定各个待处理的视频帧内红绿蓝增益小于第一阈值的暗像素点,以及红绿蓝增益大于第二阈值的亮像素点;所述补偿单元32,还用于在所确定的像素点的水平方向和/或竖直方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点以保证分辨率不变,得到处理后的视频帧。
所述智能电视确定各个待处理的视频帧内红绿蓝增益小于第一阈值的暗像素点,以及红绿蓝增益大于第二阈值的亮像素点;所述智能电视在所确定的像素点的水平方向和/或竖直方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点以保证分辨率不变,得到处理后的视频帧。所述第一阈值可以为总增益的十分之一,即将红绿蓝增益为零到总增益的十分之一的像素点作为暗像素点;所述第二阈值可以为总增益的十分之八,即将红绿蓝增益为总增益的十分之八到十分之十的像素点作为亮像素点。
所述智能电视可以在所确定的像素点的水平方向和竖直方向分别增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点;或者,所述智能电视也可以在所确定的像素点的水平方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点。
例如:所述智能电视的暗画面增益为R_G_BGain(x1)=0x06,第一处暗画面增加1个像素点增益为Add_R_G_BGain(x1)=0x05,第四处暗画面增加1个像素点增益为Add_R_G_BGain(x4)=0x02,该视频帧的中间位置减少2个像素点DEC_Midd_RGBGain(x)=4/2=2。
所述合成单元33,用于获取处理后的视频帧和所述待播放视频中剩下的未处理的视频帧,并将所获取的视频帧按照播放时间轴合成为高动态范围视频。
所述智能电视获取处理后的视频帧和所述待播放视频中剩下的未处理的视频帧,并将所获取的视频帧按播放时间轴合成为高动态范围视频。例如:所述智能电视获取高动态范围18帧EnhanPic(x)=18,低动态范围42帧OtherPic(x)=60-18=42,按照时间对应关系发送给播放解码设备进行播放。
本实施例通过对低动态范围视频的视频帧进行亮暗像素的补偿,实现了传统的低动态范围视频向高动态范围视频的转换,有效的增加了智能电视中高动态范围视频节目的来源,解决了智能电视系统中高动态范围视频资源稀少的问题,提高了用户体验。
参照图8,图8为本发明装置的第三实施例的功能模块示意图。基于上述视频播放装置的第一实施例,所述判断模块20包括确定单元21和匹配单元22;
所述确定单元21,用于从所述待播放视频中提取出视频帧,并根据提取出的视频帧的水平像素点个数和竖直像素线条数确定对应的视频帧分辨率;
所述智能电视从所述待播放视频中提取出视频帧,并根据提取出的视频帧的水平像素点个数和竖直像素线条数确定对应的视频帧分辨率。例如:从视频的视频帧中取出一视频帧,该视频帧中红色像素增益个数为Video_Frame_X_RGain(x1)=1920个,则该视频的水平方向上的分辨率为Video_X_Size(x1)=Video_Frame_X_RGain(x1)=1920,该视频帧中绿色像素线条数为Video_Frame_Y_GGain(y1)=1080,则该视频竖直方向上的分辨率为Video_Y_Size(y1)=Video_Frame_Y_GGain(y1)=1080。
所述匹配单元22,用于将所述视频帧分辨率与预设的标准分辨率进行匹配;
所述确定单元21,还用于若匹配到与所述视频帧分辨率相同的标准分辨率,则确定所述待播放视频不是高动态范围视频。
所述智能电视将所述视频帧分辨率与预设的标准分辨率进行匹配,所述预设的标准分辨率为传统的低动态范围视频的分辨率,例如:所述预设的标准分辨率可以为VESA(Video
Electronics Standards
Association,视频电子标准协会)的标准分辨率;所述智能电视若匹配到与所述视频帧分辨率相同的标准分辨率,则确定所述待播放视频为传统的低分辨率视频,所述待播放视频不是高动态范围视频。
本实施例通过待播放视频的视频帧内水平方向的像素点个数确定视频的水平分辨率,通过待播放视频的视频帧内竖直方向的像素线条数确定视频的竖直分辨率,以通过视频的水平和竖直分辨率判断该视频是否为高动态范围视频,若不是高动态范围视频,则通过对该视频的视频帧进行亮暗像素的补偿,实现了传统的低动态范围视频向高动态范围视频的转换,有效的增加了智能电视中高动态范围视频节目的来源,解决了智能电视系统中高动态范围视频资源稀少的问题,提高了用户体验。
参照图9,图9为本发明装置的第四实施例的功能模块示意图。基于上述视频播放装置的第一实施例,所述视频播放装置还包括连接模块50和存储模块60;
所述连接模块50,用于在侦测到用户触发的连接指令时,建立与对应终端的通讯连接;
所述存储模块60,用于接收所述终端发送的视频文件,并将所接收到的视频文件作为待播放视频进行保存。
所述智能电视在侦测到用户触发的连接指令时,建立与对应终端的通讯连接,所述通讯连接可以是通过所述智能电视内的无线通信模块所建立的无线通信连接,或者,所述通讯连接也可以是通过所述智能电视内的接口模块以及与所述终端的有线连接所建立的通讯通道;所述智能电视接收所述终端发送的视频文件,并将所接收到的视频文件作为待播放视频进行保存。
例如:小美通过手机拍摄一段自己买衣服的视频,该视频以低动态范围视频的格式保存在手机中,占用的存储空间较小,耗电量也相对较低,而小美将该视频推送到智能电视上面进行播放时,智能电视将该低动态范围视频转换为高动态范围视频进行播放,有效的提高了用户体验。
本实施例通过建立移动终端与智能电视的通讯连接,并将终端发送的非高动态范围视频转换为高动态范围视频进行播放,不仅有效的增加了智能电视中高动态范围视频节目的来源,并且减少了移动终端存储高动态范围视频会大量占用终端的存储资源的问题。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (20)
- 一种视频播放方法,其特征在于,所述视频播放方法包括以下步骤:在侦测到用户触发的播放指令时,获取待播放视频;通过所述待播放视频的分辨率判断所述待播放视频是否为高动态范围视频;或者,通过读取到的所述待播放视频的格式信息判断所述待播放视频是否为高动态范围视频;若不是,则按照预设比例从所述待播放视频中提取出待处理的视频帧;对各个待处理的视频帧进行亮像素和暗像素的补偿处理;获取处理后的视频帧和所述待播放视频中剩下的未处理的视频帧,并将所获取的视频帧按照播放时间轴合成为高动态范围视频,以将所述待播放视频转换为高动态范围视频;对转换得到的高动态范围视频进行播放。
- 如权利要求1所述的视频播放方法,其特征在于,所述的对各个待处理的视频帧进行亮像素和暗像素的补偿处理的步骤包括:确定各个待处理的视频帧内红绿蓝增益小于第一阈值的暗像素点,以及红绿蓝增益大于第二阈值的亮像素点;在所确定的像素点的水平方向和/或竖直方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点以保证分辨率不变,得到处理后的视频帧。
- 如权利要求1所述的视频播放方法,其特征在于,所述的视频播放方法,其特征在于,通过所述待播放视频的分辨率判断所述待播放视频是否为高动态范围视频的步骤包括:从所述待播放视频中提取出视频帧,并根据提取出的视频帧的水平像素点个数和竖直像素线条数确定对应的视频帧分辨率;将所述视频帧分辨率与预设的标准分辨率进行匹配;若匹配到与所述视频帧分辨率相同的标准分辨率,则确定所述待播放视频不是高动态范围视频。
- 如权利要求1所述的视频播放方法,其特征在于,所述的在侦测到用户触发的播放指令时,获取待播放视频的步骤之前,还包括:在侦测到用户触发的连接指令时,建立与对应终端的通讯连接;接收所述终端发送的视频文件,并将所接收到的视频文件作为待播放视频进行保存。
- 如权利要求1所述的视频播放方法,其特征在于,所述按照预设比例从所述待播放视频中提取出待处理的视频帧的步骤包括:从所述待播放视频的视频帧中,按照每单位时间抽取预设比例的视频帧作为待处理的视频帧;或者,从所述待播放视频中每第一数量帧提取出第二预设数量帧作为待处理的视频帧,依次提取出所有待处理的视频帧。
- 一种视频播放方法,其特征在于,所述视频播放方法包括以下步骤:在侦测到用户触发的播放指令时,获取待播放视频;判断所述待播放视频是否为高动态范围视频;若不是,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;对转换得到的高动态范围视频进行播放。
- 如权利要求6所述的视频播放方法,其特征在于,所述的对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频的步骤包括:按照预设比例从所述待播放视频中提取出待处理的视频帧;对各个待处理的视频帧进行亮像素和暗像素的补偿处理;获取处理后的视频帧和所述待播放视频中剩下的未处理的视频帧,并将所获取的视频帧按照播放时间轴合成为高动态范围视频。
- 如权利要求7所述的视频播放方法,其特征在于,所述的对各个待处理的视频帧进行亮像素和暗像素的补偿处理的步骤包括:确定各个待处理的视频帧内红绿蓝增益小于第一阈值的暗像素点,以及红绿蓝增益大于第二阈值的亮像素点;在所确定的像素点的水平方向和/或竖直方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点以保证分辨率不变,得到处理后的视频帧。
- 如权利要求7所述的视频播放方法,其特征在于,所述的在侦测到用户触发的播放指令时,获取待播放视频的步骤之前,还包括:在侦测到用户触发的连接指令时,建立与对应终端的通讯连接;接收所述终端发送的视频文件,并将所接收到的视频文件作为待播放视频进行保存。
- 如权利要求7所述的视频播放方法,其特征在于,所述按照预设比例从所述待播放视频中提取出待处理的视频帧的步骤包括:从所述待播放视频的视频帧中,按照每单位时间抽取预设比例的视频帧作为待处理的视频帧;或者,从所述待播放视频中每第一数量帧提取出第二预设数量帧作为待处理的视频帧,依次提取出所有待处理的视频帧。
- 如权利要求6所述的视频播放方法,其特征在于,所述的判断所述待播放视频是否为高动态范围视频的步骤包括:从所述待播放视频中提取出视频帧,并根据提取出的视频帧的水平像素点个数和竖直像素线条数确定对应的视频帧分辨率;将所述视频帧分辨率与预设的标准分辨率进行匹配;若匹配到与所述视频帧分辨率相同的标准分辨率,则确定所述待播放视频不是高动态范围视频。
- 如权利要求6所述的视频播放方法,其特征在于,通过所述待播放视频的分辨率判断所述待播放视频是否为高动态范围视频;或者,通过读取到的所述待播放视频的格式信息判断所述待播放视频是否为高动态范围视频。
- 如权利要求6所述的视频播放方法,其特征在于,所述的在侦测到用户触发的播放指令时,获取待播放视频的步骤之前,还包括:在侦测到用户触发的连接指令时,建立与对应终端的通讯连接;接收所述终端发送的视频文件,并将所接收到的视频文件作为待播放视频进行保存。
- 一种视频播放装置,其特征在于,所述视频播放装置包括:获取模块,用于在侦测到用户触发的播放指令时,获取待播放视频;判断模块,用于判断所述待播放视频是否为高动态范围视频;补偿模块,用于若所述待播放视频不是高动态范围视频,则对所述待播放视频的视频帧进行亮像素和暗像素的补偿处理,以将所述待播放视频转换为高动态范围视频;播放模块,用于对转换得到的高动态范围视频进行播放。
- 如权利要求14所述的视频播放装置,其特征在于,所述补偿模块包括提取单元、补偿单元和合成单元;所述提取单元,用于按照预设比例从所述待播放视频中提取出待处理的视频帧;所述补偿单元,用于对各个待处理的视频帧进行亮像素和暗像素的补偿处理;所述合成单元,用于获取处理后的视频帧和所述待播放视频中剩下的未处理的视频帧,并将所获取的视频帧按照播放时间轴合成为高动态范围视频。
- 如权利要求15所述的视频播放装置,其特征在于,所述补偿单元,还用于确定各个待处理的视频帧内红绿蓝增益小于第一阈值的暗像素点,以及红绿蓝增益大于第二阈值的亮像素点;所述补偿单元,还用于在所确定的像素点的水平方向和/或竖直方向增加一个像素点,并在各个待处理的视频帧的中间位置减少对应个数的像素点以保证分辨率不变,得到处理后的视频帧。
- 如权利要求15所述的视频播放装置,其特征在于,所述提取单元还用于:从所述待播放视频的视频帧中,按照每单位时间抽取预设比例的视频帧作为待处理的视频帧;或者,从所述待播放视频中每第一数量帧提取出第二预设数量帧作为待处理的视频帧,依次提取出所有待处理的视频帧。
- 如权利要求14所述的视频播放装置,其特征在于,所述判断模块包括确定单元和匹配单元;所述确定单元,用于从所述待播放视频中提取出视频帧,并根据提取出的视频帧的水平像素点个数和竖直像素线条数确定对应的视频帧分辨率;所述匹配单元,用于将所述视频帧分辨率与预设的标准分辨率进行匹配;所述确定单元,还用于若匹配到与所述视频帧分辨率相同的标准分辨率,则确定所述待播放视频不是高动态范围视频。
- 如权利要求14所述的视频播放装置,其特征在于,所述判断模块还用于通过所述待播放视频的分辨率判断所述待播放视频是否为高动态范围视频;或者,通过读取到的所述待播放视频的格式信息判断所述待播放视频是否为高动态范围视频。
- 如权利要求14所述的视频播放装置,其特征在于,所述视频播放装置还包括连接模块和存储模块;所述连接模块,用于在侦测到用户触发的连接指令时,建立与对应终端的通讯连接;所述存储模块,用于接收所述终端发送的视频文件,并将所接收到的视频文件作为待播放视频进行保存。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511026565.8A CN105657539B (zh) | 2015-12-30 | 2015-12-30 | 视频播放方法及装置 |
CN201511026565.8 | 2015-12-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017113600A1 true WO2017113600A1 (zh) | 2017-07-06 |
Family
ID=56490370
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/084553 WO2017113600A1 (zh) | 2015-12-30 | 2016-06-02 | 视频播放方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105657539B (zh) |
WO (1) | WO2017113600A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333556A (zh) * | 2020-07-31 | 2021-02-05 | 深圳Tcl新技术有限公司 | 监控视频传输带宽的控制方法、终端设备及可读存储介质 |
CN112423059A (zh) * | 2020-10-09 | 2021-02-26 | 深圳Tcl新技术有限公司 | 基于手势的视频控制方法、电视和计算机可读存储介质 |
CN115022713A (zh) * | 2022-05-26 | 2022-09-06 | 京东科技信息技术有限公司 | 视频数据处理方法及装置、存储介质及电子设备 |
CN116684668A (zh) * | 2023-08-03 | 2023-09-01 | 湖南马栏山视频先进技术研究院有限公司 | 一种自适应的视频帧处理方法及播放终端 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6729055B2 (ja) * | 2016-06-23 | 2020-07-22 | セイコーエプソン株式会社 | 映像処理装置、表示装置および映像処理方法 |
CN108024032A (zh) * | 2017-11-24 | 2018-05-11 | 深圳Tcl新技术有限公司 | 图像增强处理方法、电视、服务器及计算机可读存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841631A (zh) * | 2009-03-20 | 2010-09-22 | 微星科技股份有限公司 | 暗部曝光补偿方法及应用该方法的图像处理装置 |
US20110249135A1 (en) * | 2010-04-08 | 2011-10-13 | Canon Kabushiki Kaisha | Image processing apparatus and method of controlling same |
CN103002291A (zh) * | 2012-12-06 | 2013-03-27 | 杭州藏愚科技有限公司 | 一种摄像机宽动态图像增强方法及装置 |
CN103618943A (zh) * | 2013-11-27 | 2014-03-05 | 深圳创维-Rgb电子有限公司 | 一种显示终端的视频数据显示方法及显示终端 |
US20150243200A1 (en) * | 2014-02-25 | 2015-08-27 | Apple Inc. | Non-linear display brightness adjustment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2617195B1 (en) * | 2010-09-16 | 2019-03-13 | Koninklijke Philips N.V. | Apparatuses and methods for improved encoding of images |
CN104967865B (zh) * | 2015-03-24 | 2019-10-11 | 腾讯科技(北京)有限公司 | 视频预览方法和装置 |
-
2015
- 2015-12-30 CN CN201511026565.8A patent/CN105657539B/zh active Active
-
2016
- 2016-06-02 WO PCT/CN2016/084553 patent/WO2017113600A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841631A (zh) * | 2009-03-20 | 2010-09-22 | 微星科技股份有限公司 | 暗部曝光补偿方法及应用该方法的图像处理装置 |
US20110249135A1 (en) * | 2010-04-08 | 2011-10-13 | Canon Kabushiki Kaisha | Image processing apparatus and method of controlling same |
CN103002291A (zh) * | 2012-12-06 | 2013-03-27 | 杭州藏愚科技有限公司 | 一种摄像机宽动态图像增强方法及装置 |
CN103618943A (zh) * | 2013-11-27 | 2014-03-05 | 深圳创维-Rgb电子有限公司 | 一种显示终端的视频数据显示方法及显示终端 |
US20150243200A1 (en) * | 2014-02-25 | 2015-08-27 | Apple Inc. | Non-linear display brightness adjustment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333556A (zh) * | 2020-07-31 | 2021-02-05 | 深圳Tcl新技术有限公司 | 监控视频传输带宽的控制方法、终端设备及可读存储介质 |
CN112333556B (zh) * | 2020-07-31 | 2024-03-12 | 深圳Tcl新技术有限公司 | 监控视频传输带宽的控制方法、终端设备及可读存储介质 |
CN112423059A (zh) * | 2020-10-09 | 2021-02-26 | 深圳Tcl新技术有限公司 | 基于手势的视频控制方法、电视和计算机可读存储介质 |
CN112423059B (zh) * | 2020-10-09 | 2023-08-01 | 深圳Tcl新技术有限公司 | 基于手势的视频控制方法、电视和计算机可读存储介质 |
CN115022713A (zh) * | 2022-05-26 | 2022-09-06 | 京东科技信息技术有限公司 | 视频数据处理方法及装置、存储介质及电子设备 |
CN116684668A (zh) * | 2023-08-03 | 2023-09-01 | 湖南马栏山视频先进技术研究院有限公司 | 一种自适应的视频帧处理方法及播放终端 |
CN116684668B (zh) * | 2023-08-03 | 2023-10-20 | 湖南马栏山视频先进技术研究院有限公司 | 一种自适应的视频帧处理方法及播放终端 |
Also Published As
Publication number | Publication date |
---|---|
CN105657539B (zh) | 2019-05-31 |
CN105657539A (zh) | 2016-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017113600A1 (zh) | 视频播放方法及装置 | |
WO2018023926A1 (zh) | 电视与移动终端的互动方法及系统 | |
WO2016029594A1 (zh) | 终端连接显示设备的方法及系统 | |
WO2018223607A1 (zh) | 电视终端及hdr图像转为sdr的方法和计算机可读存储介质 | |
WO2016091011A1 (zh) | 字幕切换方法及装置 | |
WO2016101698A1 (zh) | 基于dlna技术实现屏幕推送的方法及系统 | |
WO2017005066A1 (zh) | 录制音视频同步时间戳的方法和装置 | |
WO2018192253A1 (zh) | 视频信号的传输方法及装置 | |
WO2017177524A1 (zh) | 音视频同步播放的方法及装置 | |
WO2017005062A1 (zh) | 图片帧播放方法和装置 | |
WO2017201893A1 (zh) | 视频处理方法和装置 | |
WO2018028124A1 (zh) | 电视机及其信号源的切换方法 | |
WO2017088427A1 (zh) | 音频输出控制方法及装置 | |
WO2017190452A1 (zh) | 背光自适应调节方法及装置 | |
WO2020256185A1 (ko) | 디스플레이 장치 | |
WO2017020649A1 (zh) | 音视频播放控制方法及装置 | |
WO2017206368A1 (zh) | 高动态范围画面切换方法及装置 | |
WO2017211009A1 (zh) | 智能电视的启动方法及系统 | |
WO2019076087A1 (zh) | 电视机及其显示图效控制方法、计算机可读存储介质 | |
WO2017190451A1 (zh) | 图片推送方法和装置 | |
WO2018223602A1 (zh) | 显示终端、画面对比度提高方法及计算机可读存储介质 | |
WO2016101252A1 (zh) | 智能电视的频道信息显示方法及装置 | |
WO2018006581A1 (zh) | 智能电视的播放方法及装置 | |
WO2022030857A1 (ko) | 오디오 신호 처리 장치 및 그 동작 방법 | |
WO2019051901A1 (zh) | 终端控制方法、装置及计算机可读存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16880408 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19/11/2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16880408 Country of ref document: EP Kind code of ref document: A1 |