WO2014183566A1 - Picture playback method and apparatus, computer storage medium, and set top box - Google Patents

Picture playback method and apparatus, computer storage medium, and set top box Download PDF

Info

Publication number
WO2014183566A1
WO2014183566A1 PCT/CN2014/076737 CN2014076737W WO2014183566A1 WO 2014183566 A1 WO2014183566 A1 WO 2014183566A1 CN 2014076737 W CN2014076737 W CN 2014076737W WO 2014183566 A1 WO2014183566 A1 WO 2014183566A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
program stream
hardware decoder
playback
decoder resources
Prior art date
Application number
PCT/CN2014/076737
Other languages
French (fr)
Chinese (zh)
Inventor
陈勇
王峰
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014183566A1 publication Critical patent/WO2014183566A1/en

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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4425Monitoring of client processing errors or hardware failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/156Availability of hardware or computational resources, e.g. encoding based on power-saving criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field

Definitions

  • the present invention relates to the field of multimedia technologies, and in particular, to a method and device for playing a picture, a computer storage medium, and a set top box. Background technique
  • Streaming refers to the form of media that streams audio, video, and multimedia files over a network.
  • the typical feature of streaming media is that compressed audio and video information is compressed and placed on a web server, and the user can watch while downloading without waiting for the entire file to be downloaded.
  • Hardware decoding refers to decoding high-definition video through the video acceleration function of the graphics card. Therefore, hardware decoding can release the central processing unit (CPU) from the heavy video decoding operation, so that the computer has the ability to smoothly play high-definition video.
  • the graphics processing unit (GPU) of the graphics card/VPU Video Processing Unit
  • the video decoding work is separated from the processor and processed by the graphics card, which is called hardware decoding.
  • FFmpeg is an open source, free, cross-platform video and audio streaming solution that is free software and uses the General Public License (LGPL, Lesser General Public License) or the General Public License (GPL).
  • LGPL General Public License
  • GPL General Public License
  • FFmpeg provides a complete solution for recording, converting and streaming audio and video, including a very advanced audio/video codec library (eg libavcodec), and many codecs in libavcodec for high portability and codec quality. (codec) is developed from scratch.
  • the embodiment of the present invention is to provide a method, a device, a computer storage medium, and a set top box for playing a picture, which can solve the problem that after the hardware decoder resource is completely occupied, hardware decoding is performed to make the CPU overburden, and the video is emphasized. Caton, so users can't choose the problem of HD program playback.
  • the embodiment of the invention provides a picture playing method, and the method includes:
  • the hardware decoder resource is in the first occupied moment, if the picture playback instruction of the current program stream is received, and the original hardware decoder resource is still occupied, the program stream is processed to obtain a picture. And play the picture.
  • the method further includes: when the hardware decoder resource is in the first time that all the resources are occupied, the method further includes:
  • the prompt playback capability is insufficient.
  • the method when the picture is played, the method further includes:
  • the picture playback is stopped, and the current program stream is hardware decoded using the idle hardware decoder resource, and the decoded program stream is played from the first time.
  • the process of processing the program stream, obtaining a picture, and playing the picture includes: drawing a frame of the program stream and generating a picture process, obtaining a picture, and playing the picture.
  • the performing, by performing frame drawing on the program stream and generating a picture process, obtaining a picture, and Play the picture including:
  • the program stream obtained from the streaming server is stored in the buffer list
  • the image path is stored in the image linked list, and further includes:
  • the method further includes:
  • the picture path node and the played picture are deleted.
  • an embodiment of the present invention further provides a picture playing device, where the device includes:
  • the acquiring module is configured to acquire the occupation of the hardware decoder resource when the program stream of the current channel is detected to be played;
  • the first processing module is configured to: when the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, the program is The stream is processed, the picture is taken, and the picture is played.
  • the device further includes:
  • the prompt module is configured to indicate that the playback capability is insufficient.
  • the device further includes:
  • the application module is configured to periodically apply for hardware decoder resources
  • a second processing module configured to stop picture playback if an idle hardware decoder resource is applied, and perform hardware decoding on the current program stream by using the idle hardware decoder resource, and play decoding from the first time After the program stream.
  • the first processing module includes:
  • a first processing submodule configured to perform frame drawing on the program stream and generate image processing, Get the picture and play the picture.
  • the first processing submodule includes:
  • a storage unit configured to store the program stream obtained from the streaming server in a buffer list
  • the frame drawing unit is configured to: cyclically draw a frame from the buffer in the buffer linked list;
  • the image generating unit is configured to convert each frame of the framed data into a picture, and store the image linked list through the picture path;
  • the picture playing unit is configured to loop the pictures in the picture linked list.
  • the first processing submodule further includes:
  • the first deleting unit is configured to delete the fetch buffer of the fetched frame data.
  • the first processing submodule further includes:
  • the second deleting unit is configured to delete the picture path node and the played picture after a predetermined time.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the picture playing method described above.
  • the embodiment of the present invention further provides a set top box, wherein the set top box includes the picture playing device as described above, and the set top box includes:
  • the acquiring module is configured to acquire the occupation of the hardware decoder resource when the program stream of the current channel is detected to be played;
  • the first processing module is configured to: when the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, the program is The stream is processed, the picture is taken, and the picture is played.
  • the method, the device, the computer storage medium and the set top box provided by the embodiment of the present invention detect whether the hardware decoder resource is completely occupied when the current channel is played, and if the hardware decoder resource is completely occupied, Select the picture broadcast of the current program stream The instruction is placed, and the service of the originally occupied hardware decoder resource is not stopped, and the picture stream is processed to obtain a picture and play the picture. In this way, when the hardware decoder resource has no resources, the program stream is processed to perform picture playback, the program stream is buffered, the utilization of the hardware decoder resources is reduced, the CPU occupancy rate is reduced, the CPU load is reduced, and the user experience is improved.
  • FIG. 1 is a schematic diagram of basic steps of a picture playing method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of overall processing of a picture playing according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a frame drawing and a picture playing according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of the overall structure of a picture playing device according to an embodiment of the present invention. detailed description
  • the method, device, computer storage medium and set top box provided by the embodiment of the invention, after the hardware decoder resource is completely occupied, the program stream is processed by software decoding without adding a new hardware decoder, thereby reducing the burden on the CPU. .
  • the picture playing method provided by the embodiment of the present invention mainly includes: Step 101: When detecting a program stream of a current channel for playing, acquiring a occupation condition of a hardware decoder resource;
  • the program stream of the current channel refers to that the user currently selects a high-definition program to play.
  • Step 102 When the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, the program stream is processed. Get the picture and play the picture.
  • the processing of the program stream can be realized by the optimized FFmpeg.
  • the method when the hardware decoder resource is in the first occupied moment, the method further includes:
  • the prompt playback capability is insufficient.
  • the lack of the playback capability means that there is no idle hardware decoder resource.
  • the prompting manner can facilitate the user to perform an autonomous selection operation.
  • the hardware decoder resource is at the first moment of being occupied, that is, there is no idle hardware decoder resource, in order to facilitate the user to understand the current CPU occupancy status, the playback capability is performed. Insufficient reminder.
  • the picture is played to ease the CPU's share, but in order to improve the playback quality, the picture cannot be played all the time. Therefore, in the picture playing method according to the embodiment of the present invention, in the process of playing the picture, the following processing is further included:
  • the picture playback is stopped, and the current program stream is hardware decoded using the idle hardware decoder resource, and the decoded program stream is played from the first time.
  • the first moment refers to a moment when the hardware decoder has no resources and starts to play the picture.
  • the resources of the hardware decoder are all occupied, the picture is played to alleviate the CPU pressure, but the picture cannot be played all the time, and the program stream is played by periodically applying the hardware decoder resources. This will help improve the user experience.
  • FIG. 2 is a flowchart of overall processing of picture playback according to an embodiment of the present invention.
  • the set-top box side can provide a hardware decoder resource management module, and has the application/release/query capability of the hardware decoder resource.
  • the overall process mainly includes the following steps:
  • Step 201 detecting a program stream of the current channel for playing
  • the program stream of the current channel refers to a program in which the current user selects high definition.
  • Step 202 Obtain the occupation status of the hardware decoder resource, and determine whether the hardware decoder resource is completely occupied, if yes, go to step 203; if no, go to step 209;
  • Step 203 pop-up prompt box, indicating that the playing ability is insufficient; then performing step 204;
  • the electronic program guide (EPG, Electronic Program Guide) can be notified to pop up a prompt box, indicating that the playback capability is insufficient.
  • the user is prompted to select whether or not to perform the picture playback of the current channel by popping up a prompt box.
  • Step 204 Determine whether the picture needs to be played; if necessary, go to step 205; if not, go to step 208;
  • Step 205 Using FFmpeg to frame the program stream and generate picture processing, and perform picture playback; then perform step 206;
  • the set-top box background starts to use the FFmpeg to extract the frame and the picture generation operation from the high-definition code stream transmitted from the network. And start playing the picture.
  • Step 206 During the process of playing the picture, periodically request whether the hardware decoder resource exists, if yes, go to step 207; otherwise, continue to step 205;
  • Step 207 Stop the picture playing, and perform hardware decoding on the current program stream by using the idle hardware decoder resource, and play the decoded program stream from the first time;
  • the time can be set by the timer, and the resource management module applies for the hardware decoder resource. If the hardware decoder resource can be applied, the FFmpeg frame drawing and the picture playing operation are stopped, and the current operation is started.
  • the program stream is hardware decoded.
  • the first moment may be a moment when the hardware decoder has no resources and starts to play the picture.
  • Step 208 Exit the prompt box, and end the processing flow;
  • Step 209 Continue to perform normal HD playback on the program stream of the current channel.
  • the program stream is processed and obtained
  • the steps to get a picture, and play the picture mainly include:
  • Step 102a Perform frame drawing on the program stream and generate picture processing, obtain a picture, and play the picture.
  • the step 102a specifically includes:
  • Step 102al storing the program stream obtained from the streaming media server into the buffer linked list;
  • Step 102a2 Looping the frame from the buffer in the buffer linked list;
  • Step 102a3 Convert each frame of the framed data into a picture, store the picture in the picture link table, and delete the fetch buffer of the fetched frame data;
  • Step 102a4 Looping the picture in the picture linked list, and deleting the picture path node and the played picture after a predetermined time.
  • the program stream to be buffered is first stored in the corresponding buffer linked list by step 102al, and then cyclically framed by step 102a2, and the framed data is converted into a picture according to step 102a3, stored in the picture linked list, and then The picture is played back in step 102a4, so that the program stream to be buffered is converted into a picture by the conversion of the frame and the picture, and can be realized by software decoding, without adding a hardware decoder, which can reduce the CPU occupation rate and improve Practicality.
  • FIG. 3 is a flowchart of a frame drawing and a picture playing according to an embodiment of the present invention.
  • the specific implementation process of processing the program stream by using FFmpeg, obtaining a picture, and playing the picture provided by the embodiment of the present invention mainly includes the following steps:
  • Step 301 Receive a media stream from a streaming server.
  • Step 302 The media stream is stored in a buffer linked list according to a size of 188*200.
  • each block size in the buffer linked list may be 188*200.
  • Step 303 Query whether the buffer linked list is empty; if not, proceed to step 304; if it is empty, continue to step 302;
  • Step 304 Looping a buffer from the buffer list to perform frame drawing
  • Step 305 Convert each frame of data after the frame is converted into a picture, and delete the data in the buffer list.
  • the picture can be stored locally in the set top box.
  • Step 306 Generate a picture linked list of the converted picture; then perform step 307;
  • Step 307 Query whether the picture path list is empty, if not empty, go to step 308; if it is empty, continue to step 306;
  • Step 308 The loop takes the picture path from the picture linked list to the page, and deletes the picture path node and the displayed picture itself after 5 seconds.
  • the embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the picture playing method shown in FIG. 1 in the embodiment of the present invention.
  • the embodiment of the present invention further provides a picture playing device, where the device includes:
  • the obtaining module 41 is configured to: when the program stream of the current channel is detected to be played, acquire the occupation status of the hardware decoder resource;
  • the first processing module 42 is configured to: when the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, The program stream is processed, the picture is obtained, and the picture is played.
  • the processing of the program stream can be realized by the software FFmpeg.
  • the above software processing is only an example, and any software that processes the program stream can be applied to this, and is not here - for example.
  • the acquisition module 41 detects that the program stream belongs to play, the remaining condition of the hardware decoder resource is obtained, so that when the hardware decoder resources are all occupied, the first processing module 42 needs to buffer the current.
  • the program stream is processed by the corresponding picture, so that the program stream can be decoded by the software, the program stream is turned into a picture, the burden of the CPU is reduced, and the buffering of the picture is played, the phenomenon of the card is alleviated, and the comfort of the user is improved.
  • the device further includes:
  • the prompt module 43 is configured to indicate that the playback capability is insufficient.
  • the prompting module 43 can be an EPG.
  • the device further includes:
  • the application module 44 is configured to periodically apply for a hardware decoder resource
  • the hardware decoder resource can be applied by setting a certain time by the timer.
  • the second processing module 45 is configured to stop the picture play if the idle hardware decoder resource is applied, and perform hardware decoding on the current program stream by using the idle hardware decoder resource, and play from the first time The decoded program stream.
  • the obtaining module 41, the first processing module 42, the application module 44, and the second processing module 45 may be fused together as a hardware decoder resource management module, having the application/release/query capability of the hardware decoder resource.
  • the application module 44 needs to perform real-time occupancy rate inquiry on the hardware decoder, when there is idle hardware decoder resource,
  • the second processing module 45 performs processing decoding to restore normal HD video playback, providing convenience for the user.
  • the first processing module 42 includes: a first processing submodule 421 configured to perform frame drawing on the program stream and generate image processing, obtain a picture, and play the picture. .
  • the first processing submodule 421 includes:
  • the storage unit 4210 is configured to store the program stream obtained from the streaming media server in a buffer list
  • the frame drawing unit 4211 is configured to: cyclically draw a frame from a buffer in the buffer linked list;
  • the picture generating unit 4212 is configured to convert each frame of the framed data into a picture, and store the picture into the picture linked list via the picture path;
  • the picture playing unit 4213 is configured to cyclically play the pictures in the picture linked list.
  • the first processing submodule 421 further includes:
  • the first deleting unit 4214 is configured to delete the fetch buffer of the fetched frame data.
  • the first processing submodule 421 further includes:
  • the second deleting unit 4215 is configured to delete the picture path node and the played picture after a predetermined time.
  • the picture playing device may be applied to the field of multimedia technology; the acquiring module 41, the first processing module 42, the application module 44, and the second processing module 45 may each belong to the picture playing device or the picture playing device.
  • the device is implemented by a central processing unit, a digital signal processor (DSP) or a Field Programmable Gate Array (FPGA).
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • the acquiring module 41 detects that the program stream belongs to play
  • the remaining condition of the hardware decoder resource is acquired, so that when the hardware decoder resources are all occupied
  • the prompting module 43 prompts
  • the first processing module 42 performs corresponding picture processing on the program stream that needs to be buffered, so that the program stream can be decoded by software decoding
  • the data in the storage unit 4210 is framed by the frame drawing unit 4211.
  • the picture generation unit 4212 changes the data of the extracted frame to a picture
  • the picture playback unit 4213 displays the picture to the page play, thereby reducing the burden on the CPU.
  • the application module 44 needs to perform real-time occupancy inquiry on the hardware decoder, and when there is an idle hardware decoder, the second processing module 45 performs decoding, that is, returns to normal.
  • the playback of HD video is convenient for users.
  • All of the above embodiments of the picture playback device and their beneficial effects are applicable to the set top box.
  • the embodiment of the present invention further provides a set top box, including the picture playing device as described above. As shown in FIG. 4, the set top box includes:
  • the obtaining module 41 is configured to: when the program stream of the current channel is detected to be played, acquire the occupation status of the hardware decoder resource;
  • the first processing module 42 is configured to: when the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, The program stream is processed, the picture is obtained, and the picture is played.
  • the set top box further includes:
  • the prompt module 43 is configured to indicate that the playback capability is insufficient.
  • the set top box further includes:
  • the application module 44 is configured to periodically apply for a hardware decoder resource
  • the second processing module 45 is configured to stop the picture play if the idle hardware decoder resource is applied, and perform hardware decoding on the current program stream by using the idle hardware decoder resource, and play from the first time The decoded program stream.
  • the first processing module 42 includes:
  • the first processing sub-module 421 is configured to perform frame extraction on the program stream and generate a picture process, obtain a picture, and play the picture.
  • the first processing submodule 421 includes:
  • the storage unit 4210 is configured to store the program stream obtained from the streaming media server in a buffer list
  • the frame drawing unit 4211 is configured to cyclically draw a frame from the buffer in the buffer list; the image generating unit 4212 is configured to convert each frame of the framed data into a picture, and deposit the picture through the picture path.
  • Link list
  • the picture playing unit 4213 is configured to cyclically play the pictures in the picture linked list.
  • the first processing submodule 421 further includes:
  • the first deleting unit 4214 is configured to delete the fetch buffer of the fetched frame data.
  • the first processing submodule 421 further includes:
  • the second deleting unit 4215 is configured to delete the picture path node and the played picture after a predetermined time.
  • the occupation of the hardware decoder resource is obtained; if the hardware decoder resource is in the first occupied moment, if the current program stream is received, When the instruction is played and the original hardware decoder resource is still occupied, the program stream is processed to obtain a picture and play the picture. In this way, after the hardware decoder resources are completely occupied, the program stream is processed by software decoding without adding a new hardware decoder, thereby reducing the burden on the CPU.

Abstract

The present invention provides a picture playback method and apparatus, a computer storage medium, and a set top box. The picture playback method comprises: when it is detected that a program stream of a current channel is played, obtaining an occupation condition of a hardware decoder resource; and in a first time period when the hardware decoder resource is fully occupied, if a picture playback instruction of the current program stream is received and the original hardware decoder resource is still occupied, processing the program stream, obtaining a picture, and playing the picture.

Description

一种图片播放的方法、 装置、 计算 * ^储介质及机顶盒 技术领域  Method, device and calculation for picture playing *^Storage medium and set top box
本发明涉及多媒体技术领域, 特别是涉及一种图片播放的方法、 装置、 计算机存储介质及机顶盒。 背景技术  The present invention relates to the field of multimedia technologies, and in particular, to a method and device for playing a picture, a computer storage medium, and a set top box. Background technique
流媒体是指以流方式在网络中传送音频、 视频和多媒体文件的媒体形 式。 相对于下载后观看的网络播放形式而言, 流媒体的典型特征是把连续 的音频和视频信息压缩后放到网络服务器上, 用户可以边下载边观看, 而 不必等待整个文件下载完毕。  Streaming refers to the form of media that streams audio, video, and multimedia files over a network. Relative to the form of network play after downloading, the typical feature of streaming media is that compressed audio and video information is compressed and placed on a web server, and the user can watch while downloading without waiting for the entire file to be downloaded.
硬件解码是指通过显卡的视频加速功能对高清视频进行解码。 因此, 硬件解码能够将中央处理器(CPU, Central Processing Unit )从繁重的视频 解码运算中释放出来, 使电脑具备流畅播放高清视频的能力。 显卡的图形 处理器( GPU, Graphic Processing Unit )/视觉处理器( VPU, Video Processing Unit )要比 CPU更适合硬件解码这类大数据量的、 低难度的重复工作。 一 般来说, 将视频解码工作从处理器那分离出来, 交由显卡处理, 就叫做硬 件解码。  Hardware decoding refers to decoding high-definition video through the video acceleration function of the graphics card. Therefore, hardware decoding can release the central processing unit (CPU) from the heavy video decoding operation, so that the computer has the ability to smoothly play high-definition video. The graphics processing unit (GPU) of the graphics card/VPU (Video Processing Unit) is more suitable than the CPU for hardware decoding such large amount of data and low difficulty. In general, the video decoding work is separated from the processor and processed by the graphics card, which is called hardware decoding.
FFmpeg是一个开源免费跨平台的视频和音频流方案, 属于自由软件, 釆用宽通用公共许可证 ( LGPL, Lesser General Public License )或通用公共 许可证( GPL, General Public License )。 FFmpeg提供了录制、 转换以及流 化音视频的完整解决方案, 包含了非常先进的音频 /视频编解码库 (例如 libavcodec ), 而为了保证高可移植性和编解码质量, libavcodec中很多编译 码器(codec )都是从头开发的。  FFmpeg is an open source, free, cross-platform video and audio streaming solution that is free software and uses the General Public License (LGPL, Lesser General Public License) or the General Public License (GPL). FFmpeg provides a complete solution for recording, converting and streaming audio and video, including a very advanced audio/video codec library (eg libavcodec), and many codecs in libavcodec for high portability and codec quality. (codec) is developed from scratch.
在现有技术中存在如下技术问题: 在发现硬件解码器资源已经完全被 占用后, 继续进行硬件解码将使 CPU负担过重, 进而导致加重视频卡顿, 从而使用户无法选择高清节目播放。 发明内容 The following technical problems exist in the prior art: When the hardware decoder resource is found to have been completely After the occupation, continuing the hardware decoding will overburden the CPU, which will cause the video to be jammed, so that the user cannot select the HD program to play. Summary of the invention
有鉴于此, 本发明实施例期望提供一种图片播放的方法、 装置、 计算 机存储介质及机顶盒, 能解决在发现硬件解码器资源已经完全被占用后, 进行硬件解码使 CPU负担过重, 加重视频卡顿, 让用户无法选择高清节目 播放的问题。  In view of this, the embodiment of the present invention is to provide a method, a device, a computer storage medium, and a set top box for playing a picture, which can solve the problem that after the hardware decoder resource is completely occupied, hardware decoding is performed to make the CPU overburden, and the video is emphasized. Caton, so users can't choose the problem of HD program playback.
为达到上述目的, 本发明实施例的技术方案是这样实现的:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种图片播放方法, 所述方法包括:  The embodiment of the invention provides a picture playing method, and the method includes:
检测到当前频道的节目流进行播放时, 获取硬件解码器资源的占用情 况;  Obtaining the occupation of the hardware decoder resource when the program stream of the current channel is detected for playing;
在所述硬件解码器资源处于全部被占用的第一时刻, 若接收到当前节 目流的图片播放指令, 且仍占用原有的硬件解码器资源时, 对所述节目流 进行处理, 获得图片, 并播放图片。  If the hardware decoder resource is in the first occupied moment, if the picture playback instruction of the current program stream is received, and the original hardware decoder resource is still occupied, the program stream is processed to obtain a picture. And play the picture.
其中, 在所述硬件解码器资源处于全部被占用的第一时刻时, 所述方 法还包括:  The method further includes: when the hardware decoder resource is in the first time that all the resources are occupied, the method further includes:
提示播放能力不足。  The prompt playback capability is insufficient.
其中, 所述播放图片时, 还包括:  Wherein, when the picture is played, the method further includes:
定时申请硬件解码器资源;  Apply for hardware decoder resources periodically;
若申请到空闲的硬件解码器资源时, 则停止图片播放, 并利用所述空 闲的硬件解码器资源对当前节目流进行硬件解码, 并从所述第一时刻播放 解码后的节目流。  If an idle hardware decoder resource is applied, the picture playback is stopped, and the current program stream is hardware decoded using the idle hardware decoder resource, and the decoded program stream is played from the first time.
其中, 所述对所述节目流进行处理, 获得图片, 并播放图片, 包括: 对所述节目流进行抽帧以及生成图片处理, 获得图片, 并播放图片。  The process of processing the program stream, obtaining a picture, and playing the picture includes: drawing a frame of the program stream and generating a picture process, obtaining a picture, and playing the picture.
其中, 所述对所述节目流进行抽帧以及生成图片处理, 获得图片, 并 播放图片, 包括: The performing, by performing frame drawing on the program stream and generating a picture process, obtaining a picture, and Play the picture, including:
将从流媒体服务器获取的节目流, 存入緩冲区链表中;  The program stream obtained from the streaming server is stored in the buffer list;
从所述緩冲区链表中的取緩冲区中, 循环抽帧;  Looping the frame from the buffer in the buffer list;
将抽帧出的每帧数据转为图片, 经图片路径存入图片链表;  Converting each frame of the framed data into a picture and storing it in the picture link table through the picture path;
循环播放所述图片链表中的图片。  Looping through the pictures in the picture linked list.
其中, 所述经图片路径存入图片链表后, 还包括:  The image path is stored in the image linked list, and further includes:
删除取过帧数据的取緩冲区。  Delete the fetch buffer of the fetched frame data.
其中, 所述循环播放所述图片链表中的图片后, 还包括:  After the loop playing the picture in the picture linked list, the method further includes:
经预定时间后, 删除图片路径节点以及所播放的图片。  After the predetermined time, the picture path node and the played picture are deleted.
相应地, 为了解决上述技术问题, 本发明实施例还提供了一种图片播 放装置, 其中, 所述装置包括:  Correspondingly, in order to solve the above technical problem, an embodiment of the present invention further provides a picture playing device, where the device includes:
获取模块, 配置为检测到当前频道的节目流进行播放时, 获取硬件解 码器资源的占用情况;  The acquiring module is configured to acquire the occupation of the hardware decoder resource when the program stream of the current channel is detected to be played;
第一处理模块, 配置为在所述硬件解码器资源处于全部被占用的第一 时刻, 若接收到当前节目流的图片播放指令, 且仍占用原有的硬件解码器 资源时, 对所述节目流进行处理, 获得图片, 并播放图片。  The first processing module is configured to: when the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, the program is The stream is processed, the picture is taken, and the picture is played.
其中, 所述装置还包括:  The device further includes:
提示模块, 配置为提示播放能力不足。  The prompt module is configured to indicate that the playback capability is insufficient.
其中, 所述装置还包括:  The device further includes:
申请模块, 配置为定时申请硬件解码器资源;  The application module is configured to periodically apply for hardware decoder resources;
第二处理模块, 配置为若申请到空闲的硬件解码器资源时, 则停止图 片播放, 并利用所述空闲的硬件解码器资源对当前节目流进行硬件解码, 并从所述第一时刻播放解码后的节目流。  a second processing module, configured to stop picture playback if an idle hardware decoder resource is applied, and perform hardware decoding on the current program stream by using the idle hardware decoder resource, and play decoding from the first time After the program stream.
优选地, 所述第一处理模块, 包括:  Preferably, the first processing module includes:
第一处理子模块, 配置为对所述节目流进行抽帧以及生成图片处理, 获得图片, 并播放图片。 a first processing submodule configured to perform frame drawing on the program stream and generate image processing, Get the picture and play the picture.
优选地, 所述第一处理子模块, 包括:  Preferably, the first processing submodule includes:
存储单元, 配置为将从流媒体服务器获取的节目流, 存入緩冲区链表 中;  a storage unit configured to store the program stream obtained from the streaming server in a buffer list;
抽帧单元, 配置为从所述緩冲区链表中的取緩冲区中, 循环抽帧; 图片生成单元, 配置为抽帧出的每帧数据转为图片, 经图片路径存入 图片链表;  The frame drawing unit is configured to: cyclically draw a frame from the buffer in the buffer linked list; the image generating unit is configured to convert each frame of the framed data into a picture, and store the image linked list through the picture path;
图片播放单元, 配置为循环播放所述图片链表中的图片。  The picture playing unit is configured to loop the pictures in the picture linked list.
优选地, 所述第一处理子模块, 还包括:  Preferably, the first processing submodule further includes:
第一删除单元, 配置为删除取过帧数据的取緩冲区。  The first deleting unit is configured to delete the fetch buffer of the fetched frame data.
优选地, 所述第一处理子模块, 还包括:  Preferably, the first processing submodule further includes:
第二删除单元, 配置为经预定时间后, 删除图片路径节点以及所播放 的图片。  The second deleting unit is configured to delete the picture path node and the played picture after a predetermined time.
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机程序, 所述计算机程序用于执行以上所述的图片播放方法。  The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the picture playing method described above.
本发明实施例还提供了一种机顶盒, 其中, 所述机顶盒包括如上述所 述的图片播放装置, 所述机顶盒包括:  The embodiment of the present invention further provides a set top box, wherein the set top box includes the picture playing device as described above, and the set top box includes:
获取模块, 配置为检测到当前频道的节目流进行播放时, 获取硬件解 码器资源的占用情况;  The acquiring module is configured to acquire the occupation of the hardware decoder resource when the program stream of the current channel is detected to be played;
第一处理模块, 配置为在所述硬件解码器资源处于全部被占用的第一 时刻, 若接收到当前节目流的图片播放指令, 且仍占用原有的硬件解码器 资源时, 对所述节目流进行处理, 获得图片, 并播放图片。  The first processing module is configured to: when the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, the program is The stream is processed, the picture is taken, and the picture is played.
本发明实施例所提供的图片播放的方法、 装置、 计算机存储介质及机 顶盒, 检测到当前频道进行节目流播放时, 查看硬件解码器资源是否被完 全占有, 如果硬件解码器资源被完全占有, 此时选择当前节目流的图片播 放指令, 并且没有停止原有占用的硬件解码器资源的业务, 通过对所述节 目流进行处理, 获得图片, 并播放图片。 如此, 在硬件解码器资源没有资 源的时候, 通过处理节目流进行图片播放, 緩冲节目流, 减少硬件解码器 资源的利用, 降低了 CPU的占有率, 减轻了 CPU负担, 提高了用户体验。 附图说明 The method, the device, the computer storage medium and the set top box provided by the embodiment of the present invention detect whether the hardware decoder resource is completely occupied when the current channel is played, and if the hardware decoder resource is completely occupied, Select the picture broadcast of the current program stream The instruction is placed, and the service of the originally occupied hardware decoder resource is not stopped, and the picture stream is processed to obtain a picture and play the picture. In this way, when the hardware decoder resource has no resources, the program stream is processed to perform picture playback, the program stream is buffered, the utilization of the hardware decoder resources is reduced, the CPU occupancy rate is reduced, the CPU load is reduced, and the user experience is improved. DRAWINGS
图 1为本发明实施例提供的图片播放方法的基本步骤示意图; 图 2为本发明实施例提供的图片播放的总体处理流程图;  1 is a schematic diagram of basic steps of a picture playing method according to an embodiment of the present invention; FIG. 2 is a flowchart of overall processing of a picture playing according to an embodiment of the present invention;
图 3为本发明实施例提供的抽帧及图片播放的流程图;  FIG. 3 is a flowchart of a frame drawing and a picture playing according to an embodiment of the present invention;
图 4为本发明实施例提供的图片播放装置的总体结构示意图。 具体实施方式  FIG. 4 is a schematic diagram of the overall structure of a picture playing device according to an embodiment of the present invention. detailed description
为使本发明要解决的技术问题、 技术方案和优点更加清楚, 下面将结 合附图及具体实施例进行详细描述。  The technical problems, the technical solutions, and the advantages of the present invention will become more apparent from the following detailed description.
本发明实施例所提供的图片播放的方法、 装置、 计算机存储介质及机 顶盒, 在硬件解码器资源被完全占有后, 不用添加新的硬件解码器, 利用 软件解码处理节目流, 从而减少 CPU的负担。  The method, device, computer storage medium and set top box provided by the embodiment of the invention, after the hardware decoder resource is completely occupied, the program stream is processed by software decoding without adding a new hardware decoder, thereby reducing the burden on the CPU. .
如图 1所示, 本发明实施例提供的图片播放方法, 主要包括: 步骤 101 : 检测到当前频道的节目流进行播放时, 获取硬件解码器资源 的占用情况;  As shown in FIG. 1 , the picture playing method provided by the embodiment of the present invention mainly includes: Step 101: When detecting a program stream of a current channel for playing, acquiring a occupation condition of a hardware decoder resource;
其中, 所述当前频道的节目流是指用户当前选择高清节目播放。  The program stream of the current channel refers to that the user currently selects a high-definition program to play.
步骤 102: 在所述硬件解码器资源处于全部被占用的第一时刻, 若接收 到当前节目流的图片播放指令, 且仍占用原有的硬件解码器资源时, 对所 述节目流进行处理, 获得图片, 并播放图片。  Step 102: When the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, the program stream is processed. Get the picture and play the picture.
其中, 对节目流的处理可以是通过优化的 FFmpeg实现。  Among them, the processing of the program stream can be realized by the optimized FFmpeg.
这里, 如果不经过用户选择, 直接对节目流进行处理, 将会影响用户 使用效果。 因此, 本发明实施例的图片播放方法中, 在所述硬件解码器资 源处于全部被占用的第一时刻时, 还包括: Here, if the program stream is processed directly without user selection, it will affect the user. Effect. Therefore, in the picture playing method of the embodiment of the present invention, when the hardware decoder resource is in the first occupied moment, the method further includes:
提示播放能力不足。  The prompt playback capability is insufficient.
其中, 所述播放能力不足是指没有空闲的硬件解码器资源。  The lack of the playback capability means that there is no idle hardware decoder resource.
具体地, 通过提示方式能够便于用户进行自主选择操作。  Specifically, the prompting manner can facilitate the user to perform an autonomous selection operation.
也就是说, 当用户选择高清节目之后, 硬件解码器资源处于全部被占 用的第一时刻时, 也就是没有空闲的硬件解码器资源, 为了方便用户了解 到当前的 CPU的占有状况, 进行播放能力不足的提醒。  That is to say, when the user selects the high-definition program, the hardware decoder resource is at the first moment of being occupied, that is, there is no idle hardware decoder resource, in order to facilitate the user to understand the current CPU occupancy status, the playback capability is performed. Insufficient reminder.
进行图片播放是为了緩解 CPU的占有率, 但为了提高播放质量, 不能 一直进行图片播放。 因此, 本发明实施例所述的图片播放方法中, 在播放 图片的过程中, 还包括以下处理:  The picture is played to ease the CPU's share, but in order to improve the playback quality, the picture cannot be played all the time. Therefore, in the picture playing method according to the embodiment of the present invention, in the process of playing the picture, the following processing is further included:
定时申请硬件解码器资源;  Apply for hardware decoder resources periodically;
若申请到空闲的硬件解码器资源时, 则停止图片播放, 并利用所述空 闲的硬件解码器资源对当前节目流进行硬件解码, 并从所述第一时刻播放 解码后的节目流。  If an idle hardware decoder resource is applied, the picture playback is stopped, and the current program stream is hardware decoded using the idle hardware decoder resource, and the decoded program stream is played from the first time.
其中, 所述第一时刻是指硬件解码器无资源, 开始图片播放的时刻。 在硬件解码器的资源全部被占用时, 进行图片播放以緩解 CPU压力, 但不能一直进行图片播放, 通过定时申请硬件解码器资源, 进行节目流的 播放。 这样, 更有助于提高用户体验效果。  The first moment refers to a moment when the hardware decoder has no resources and starts to play the picture. When the resources of the hardware decoder are all occupied, the picture is played to alleviate the CPU pressure, but the picture cannot be played all the time, and the program stream is played by periodically applying the hardware decoder resources. This will help improve the user experience.
如图 2所示, 图 2为本发明实施例提供的图片播放的总体处理流程图。 本实施例中, 机顶盒侧能提供硬件解码器资源管理模块, 具备硬件解 码器资源的申请 /释放 /查询能力。  As shown in FIG. 2, FIG. 2 is a flowchart of overall processing of picture playback according to an embodiment of the present invention. In this embodiment, the set-top box side can provide a hardware decoder resource management module, and has the application/release/query capability of the hardware decoder resource.
具体地, 该总体流程主要包括以下步骤:  Specifically, the overall process mainly includes the following steps:
步骤 201 : 检测到当前频道的节目流进行播放;  Step 201: detecting a program stream of the current channel for playing;
其中, 所述当前频道的节目流是指当前用户选择高清的节目。 步骤 202: 获取硬件解码器资源的占用情况, 并判断所述硬件解码器资 源是否被完全占用, 如果是, 执行步骤 203; 如果否, 执行步骤 209; The program stream of the current channel refers to a program in which the current user selects high definition. Step 202: Obtain the occupation status of the hardware decoder resource, and determine whether the hardware decoder resource is completely occupied, if yes, go to step 203; if no, go to step 209;
步骤 203: 弹出提示框, 提示播放能力不足; 然后执行步骤 204;  Step 203: pop-up prompt box, indicating that the playing ability is insufficient; then performing step 204;
具体地, 可以通知电子节目菜单 ( EPG, Electronic Program Guide ) 弹 出提示框, 提示播放能力不足。  Specifically, the electronic program guide (EPG, Electronic Program Guide) can be notified to pop up a prompt box, indicating that the playback capability is insufficient.
这里, 通过弹出提示框的形式让用户选择是否需要进行当前频道的图 片播放。  Here, the user is prompted to select whether or not to perform the picture playback of the current channel by popping up a prompt box.
步骤 204: 判断是否需要进行图片播放; 如果需要, 执行步骤 205; 如 果不需要, 执行步骤 208;  Step 204: Determine whether the picture needs to be played; if necessary, go to step 205; if not, go to step 208;
步骤 205: 利用 FFmpeg对节目流进行抽帧以及生成图片处理, 并进行 图片播放; 然后执行步骤 206;  Step 205: Using FFmpeg to frame the program stream and generate picture processing, and perform picture playback; then perform step 206;
也就是说, 当用户没有选择停止原有占用硬件解码器的业务, 并且选 择了进行当前频道的图片播放时,机顶盒后台开始利用 FFmpeg将从网络传 送过来的高清码流进行抽帧以及图片生成操作, 并开始播放图片。  That is to say, when the user does not choose to stop the service that originally occupied the hardware decoder, and selects to play the picture of the current channel, the set-top box background starts to use the FFmpeg to extract the frame and the picture generation operation from the high-definition code stream transmitted from the network. And start playing the picture.
步骤 206: 在播放图片的过程中, 定时申请硬件解码器资源是否存在, 如果存在, 执行步骤 207; 否则, 继续执行步骤 205;  Step 206: During the process of playing the picture, periodically request whether the hardware decoder resource exists, if yes, go to step 207; otherwise, continue to step 205;
步骤 207: 停止图片播放, 并利用所述空闲的硬件解码器资源对当前节 目流进行硬件解码, 并从所述第一时刻播放解码后的节目流;  Step 207: Stop the picture playing, and perform hardware decoding on the current program stream by using the idle hardware decoder resource, and play the decoded program stream from the first time;
这里, 在播放图片的过程中, 可以由定时器设定时间, 资源管理模块 申请硬件解码器资源, 如果可以申请到硬件解码器资源, 则停止 FFmpeg 的抽帧以及播放图片操作, 并开始对当前节目流进行硬件解码。  Here, in the process of playing a picture, the time can be set by the timer, and the resource management module applies for the hardware decoder resource. If the hardware decoder resource can be applied, the FFmpeg frame drawing and the picture playing operation are stopped, and the current operation is started. The program stream is hardware decoded.
这里, 所述第一时刻可以为硬件解码器无资源, 开始图片播放的时刻。 步骤 208: 退出提示框, 结束本处理流程;  Here, the first moment may be a moment when the hardware decoder has no resources and starts to play the picture. Step 208: Exit the prompt box, and end the processing flow;
步骤 209: 继续对当前频道的节目流进行正常高清播放。  Step 209: Continue to perform normal HD playback on the program stream of the current channel.
本发明的又一实施例的图片播放方法中, 对所述节目流进行处理, 获 得图片, 并播放图片的步骤, 主要包括: In a picture playing method according to still another embodiment of the present invention, the program stream is processed and obtained The steps to get a picture, and play the picture, mainly include:
步骤 102a, 对所述节目流进行抽帧以及生成图片处理, 获得图片, 并 播放图片。  Step 102a: Perform frame drawing on the program stream and generate picture processing, obtain a picture, and play the picture.
其中, 所述步骤 102a具体包括:  The step 102a specifically includes:
步骤 102al:将从流媒体服务器获取的节目流, 存入緩冲区链表中; 步骤 102a2:从所述緩冲区链表中的取緩冲区中, 循环抽帧;  Step 102al: storing the program stream obtained from the streaming media server into the buffer linked list; Step 102a2: Looping the frame from the buffer in the buffer linked list;
步骤 102a3:将抽帧出的每帧数据转为图片,经图片路径存入图片链表, 删除取过帧数据的所述取緩冲区;  Step 102a3: Convert each frame of the framed data into a picture, store the picture in the picture link table, and delete the fetch buffer of the fetched frame data;
步骤 102a4:循环播放所述图片链表中的图片, 经预定时间后, 删除图 片路径节点以及所播放的图片。  Step 102a4: Looping the picture in the picture linked list, and deleting the picture path node and the played picture after a predetermined time.
通过步骤 102al 先将需要緩冲的节目流存储在相应的緩冲区链表中, 再经过步骤 102a2进行循环抽帧,并根据步骤 102a3将抽帧的数据转为图片, 存储在图片链表中, 然后经步骤 102a4播放图片, 这样, 将需要緩冲的节 目流通过抽帧和图片的转化, 变为图片播放, 可以通过软件解码实现, 不 需要另外添加硬件解码器, 能降低 CPU的占有率, 提高实用性。  The program stream to be buffered is first stored in the corresponding buffer linked list by step 102al, and then cyclically framed by step 102a2, and the framed data is converted into a picture according to step 102a3, stored in the picture linked list, and then The picture is played back in step 102a4, so that the program stream to be buffered is converted into a picture by the conversion of the frame and the picture, and can be realized by software decoding, without adding a hardware decoder, which can reduce the CPU occupation rate and improve Practicality.
如图 3所示, 图 3为本发明实施例提供的抽帧及图片播放的流程图。 本发明实施例提供的利用 FFmpeg对所述节目流进行处理,获得图片,并播 放图片的具体的实现过程, 主要包括以下步骤:  As shown in FIG. 3, FIG. 3 is a flowchart of a frame drawing and a picture playing according to an embodiment of the present invention. The specific implementation process of processing the program stream by using FFmpeg, obtaining a picture, and playing the picture provided by the embodiment of the present invention mainly includes the following steps:
步骤 301 : 从流媒体服务器接收媒体流;  Step 301: Receive a media stream from a streaming server.
步骤 302: 将所述媒体流按照 188*200的大小存入緩冲区链表; 这里, 所述緩冲区链表中每个块大小可以为 188*200。  Step 302: The media stream is stored in a buffer linked list according to a size of 188*200. Here, each block size in the buffer linked list may be 188*200.
步骤 303: 查询緩冲区链表是否为空; 如果不为空, 则执行步骤 304; 如果为空, 继续执行步骤 302;  Step 303: Query whether the buffer linked list is empty; if not, proceed to step 304; if it is empty, continue to step 302;
步骤 304: 循环从緩冲区链表中取緩冲区进行抽帧;  Step 304: Looping a buffer from the buffer list to perform frame drawing;
步骤 305: 将抽帧后的每帧数据转化为图片, 并在緩冲区链表中, 删除 已经处理的緩冲区; Step 305: Convert each frame of data after the frame is converted into a picture, and delete the data in the buffer list. The buffer that has been processed;
这里, 可以将图片存储在机顶盒本地。  Here, the picture can be stored locally in the set top box.
步骤 306: 将转化的图片生成图片链表; 然后执行步骤 307;  Step 306: Generate a picture linked list of the converted picture; then perform step 307;
步骤 307: 查询图片路径链表是否为空, 如果不为空, 执行步骤 308; 如果为空, 继续执行步骤 306;  Step 307: Query whether the picture path list is empty, if not empty, go to step 308; if it is empty, continue to step 306;
步骤 308: 循环从图片链表中取图片路径展示到页面, 5秒钟后删除图 片路径节点以及展示的图片本身。  Step 308: The loop takes the picture path from the picture linked list to the page, and deletes the picture path node and the displayed picture itself after 5 seconds.
本发明实施例还记载一种计算机存储介质, 所述计算机存储介质中存 储有计算机程序, 所述计算机程序用于执行本发明实施例中图 1 所示的图 片播放方法。  The embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the picture playing method shown in FIG. 1 in the embodiment of the present invention.
如图 4所示, 相应地, 本发明实施例还提供了一种图片播放装置, 其 中, 所述装置包括:  As shown in FIG. 4, the embodiment of the present invention further provides a picture playing device, where the device includes:
获取模块 41, 配置为检测到当前频道的节目流进行播放时, 获取硬件 解码器资源的占用情况;  The obtaining module 41 is configured to: when the program stream of the current channel is detected to be played, acquire the occupation status of the hardware decoder resource;
第一处理模块 42, 配置为在所述硬件解码器资源处于全部被占用的第 一时刻, 若接收到当前节目流的图片播放指令, 且仍占用原有的硬件解码 器资源时, 对所述节目流进行处理, 获得图片, 并播放图片。  The first processing module 42 is configured to: when the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, The program stream is processed, the picture is obtained, and the picture is played.
其中, 对节目流的处理可以通过软件 FFmpeg实现。 当然, 以上软件处 理仅仅是举例说明, 对节目流处理的任何软件均可应用于此, 在此不—— 举例。  Among them, the processing of the program stream can be realized by the software FFmpeg. Of course, the above software processing is only an example, and any software that processes the program stream can be applied to this, and is not here - for example.
本发明实施例中, 通过获取模块 41检测到属于节目流播放时, 得到硬 件解码器资源的剩余情况, 从而在硬件解码器资源全部被占用时, 通过第 一处理模块 42对当前需要緩冲的节目流进行相应图片处理, 这样可以通过 软件进行节目流解码, 将节目流变成图片播放, 减轻 CPU的负担, 同时通 过图片播放的緩冲, 减轻卡顿现象, 提高用户使用的舒适度。 如图 4所示, 在本发明上述实施例的图片播放装置中, 所述装置还包 括: In the embodiment of the present invention, when the acquisition module 41 detects that the program stream belongs to play, the remaining condition of the hardware decoder resource is obtained, so that when the hardware decoder resources are all occupied, the first processing module 42 needs to buffer the current. The program stream is processed by the corresponding picture, so that the program stream can be decoded by the software, the program stream is turned into a picture, the burden of the CPU is reduced, and the buffering of the picture is played, the phenomenon of the card is alleviated, and the comfort of the user is improved. As shown in FIG. 4, in the picture playing device of the above embodiment of the present invention, the device further includes:
提示模块 43, 配置为提示播放能力不足。  The prompt module 43 is configured to indicate that the playback capability is insufficient.
其中, 所述提示模块 43可以是 EPG。  The prompting module 43 can be an EPG.
本发明的又一实施例的图片播放装置中, 所述装置还包括:  In a picture playing device according to still another embodiment of the present invention, the device further includes:
申请模块 44, 配置为定时申请硬件解码器资源;  The application module 44 is configured to periodically apply for a hardware decoder resource;
其中, 可以通过定时器设定一定的时间进行申请硬件解码器资源。 第二处理模块 45, 配置为若申请到空闲的硬件解码器资源时, 则停止 图片播放, 并利用所述空闲的硬件解码器资源对当前节目流进行硬件解码, 并从所述第一时刻播放解码后的节目流。  Among them, the hardware decoder resource can be applied by setting a certain time by the timer. The second processing module 45 is configured to stop the picture play if the idle hardware decoder resource is applied, and perform hardware decoding on the current program stream by using the idle hardware decoder resource, and play from the first time The decoded program stream.
其中, 对于获取模块 41、 第一处理模块 42、 申请模块 44以及第二处 理模块 45可以融合称为硬件解码器资源管理模块, 具有硬件解码器资源的 申请 /释放 /查询能力。  The obtaining module 41, the first processing module 42, the application module 44, and the second processing module 45 may be fused together as a hardware decoder resource management module, having the application/release/query capability of the hardware decoder resource.
本发明实施例中, 在软件解码对节目流的处理中, 若用户需要高清播 放视频, 申请模块 44需要对硬件解码器进行实时的占有率的查询, 在有空 闲的硬件解码器资源存在时, 第二处理模块 45进行处理解码, 恢复正常的 高清视频的播放, 为用户提供方便。  In the embodiment of the present invention, in the process of software decoding and processing the program stream, if the user needs to play the video in high definition, the application module 44 needs to perform real-time occupancy rate inquiry on the hardware decoder, when there is idle hardware decoder resource, The second processing module 45 performs processing decoding to restore normal HD video playback, providing convenience for the user.
本发明的又一实施例的图片播放装置中, 所述第一处理模块 42包括: 第一处理子模块 421, 配置为对所述节目流进行抽帧以及生成图片处 理, 获得图片, 并播放图片。  In the picture playing device of the embodiment of the present invention, the first processing module 42 includes: a first processing submodule 421 configured to perform frame drawing on the program stream and generate image processing, obtain a picture, and play the picture. .
本发明的又一实施例的图片播放装置中, 所述第一处理子模块 421 包 括:  In the picture playing device of the embodiment of the present invention, the first processing submodule 421 includes:
存储单元 4210, 配置为将从流媒体服务器获取的节目流, 存入緩冲区 链表中;  The storage unit 4210 is configured to store the program stream obtained from the streaming media server in a buffer list;
抽帧单元 4211, 配置为从所述緩冲区链表中的取緩冲区中, 循环抽帧; 图片生成单元 4212, 配置为将抽帧出的每帧数据转为图片, 经图片路 径存入图片链表; The frame drawing unit 4211 is configured to: cyclically draw a frame from a buffer in the buffer linked list; The picture generating unit 4212 is configured to convert each frame of the framed data into a picture, and store the picture into the picture linked list via the picture path;
图片播放单元 4213, 配置为循环播放所述图片链表中的图片。  The picture playing unit 4213 is configured to cyclically play the pictures in the picture linked list.
本发明的又一实施例的图片播放装置中, 所述第一处理子模块 421 还 包括:  In the picture playing device of the embodiment of the present invention, the first processing submodule 421 further includes:
第一删除单元 4214, 配置为删除取过帧数据的取緩冲区。  The first deleting unit 4214 is configured to delete the fetch buffer of the fetched frame data.
本发明的又一实施例的图片播放装置中, 所述第一处理子模块 421 还 包括:  In the picture playing device of the embodiment of the present invention, the first processing submodule 421 further includes:
第二删除单元 4215, 配置为经预定时间后, 删除图片路径节点以及所 播放的图片。  The second deleting unit 4215 is configured to delete the picture path node and the played picture after a predetermined time.
实际应用中, 上述图片播放装置可应用于多媒体技术领域; 所述获取 模块 41、 第一处理模块 42、 申请模块 44以及第二处理模块 45均可由所述 图片播放装置或所述图片播放装置所属设备的中央处理器、 数字信号处理 器 ( DSP, Digital Signal Processor ) 或现场可编程门阵列 ( FPGA, Field Programmable Gate Array ) 实现。  In an actual application, the picture playing device may be applied to the field of multimedia technology; the acquiring module 41, the first processing module 42, the application module 44, and the second processing module 45 may each belong to the picture playing device or the picture playing device. The device is implemented by a central processing unit, a digital signal processor (DSP) or a Field Programmable Gate Array (FPGA).
在本发明实施例的图片播放装置中, 通过获取模块 41检测到属于节目 流播放时, 获取硬件解码器资源的剩余情况, 从而在硬件解码器资源全部 被占用时, 通过提示模块 43进行提示后, 然后由第一处理模块 42对当前 需要緩冲的节目流进行相应图片处理, 这样可以通过软件解码进行节目流 解码, 将存储单元 4210中的数据, 通过抽帧单元 4211抽帧出数据后, 利 用图片生成单元 4212将所抽帧的数据变为图片, 图片播放单元 4213将图 片显示至页面播放, 从而减轻 CPU的负担。 同时, 为了满足用户高清播放 视频的需要, 申请模块 44需要对硬件解码器进行实时的占有率的查询, 在 有空闲的硬件解码器存在时, 由第二处理模块 45进行解码, 也就是恢复正 常的高清视频的播放, 为用户提供方便。 以上图片播放装置所有实现实施例及其有益效果均适用于该机顶盒。 相应地, 本发明实施例还提供了一种机顶盒, 包括如上述所述的图片 播放装置, 如图 4所示, 所述机顶盒包括: In the picture playing device of the embodiment of the present invention, when the acquiring module 41 detects that the program stream belongs to play, the remaining condition of the hardware decoder resource is acquired, so that when the hardware decoder resources are all occupied, the prompting module 43 prompts Then, the first processing module 42 performs corresponding picture processing on the program stream that needs to be buffered, so that the program stream can be decoded by software decoding, and the data in the storage unit 4210 is framed by the frame drawing unit 4211. The picture generation unit 4212 changes the data of the extracted frame to a picture, and the picture playback unit 4213 displays the picture to the page play, thereby reducing the burden on the CPU. At the same time, in order to meet the needs of the user to play video in high definition, the application module 44 needs to perform real-time occupancy inquiry on the hardware decoder, and when there is an idle hardware decoder, the second processing module 45 performs decoding, that is, returns to normal. The playback of HD video is convenient for users. All of the above embodiments of the picture playback device and their beneficial effects are applicable to the set top box. Correspondingly, the embodiment of the present invention further provides a set top box, including the picture playing device as described above. As shown in FIG. 4, the set top box includes:
获取模块 41, 配置为检测到当前频道的节目流进行播放时, 获取硬件 解码器资源的占用情况;  The obtaining module 41 is configured to: when the program stream of the current channel is detected to be played, acquire the occupation status of the hardware decoder resource;
第一处理模块 42, 配置为在所述硬件解码器资源处于全部被占用的第 一时刻, 若接收到当前节目流的图片播放指令, 且仍占用原有的硬件解码 器资源时, 对所述节目流进行处理, 获得图片, 并播放图片。  The first processing module 42 is configured to: when the hardware decoder resource is in the first occupied moment, if the picture play instruction of the current program stream is received, and the original hardware decoder resource is still occupied, The program stream is processed, the picture is obtained, and the picture is played.
所述机顶盒还包括:  The set top box further includes:
提示模块 43, 配置为提示播放能力不足。  The prompt module 43 is configured to indicate that the playback capability is insufficient.
所述机顶盒还包括:  The set top box further includes:
申请模块 44, 配置为定时申请硬件解码器资源;  The application module 44 is configured to periodically apply for a hardware decoder resource;
第二处理模块 45, 配置为若申请到空闲的硬件解码器资源时, 则停止 图片播放, 并利用所述空闲的硬件解码器资源对当前节目流进行硬件解码, 并从所述第一时刻播放解码后的节目流。  The second processing module 45 is configured to stop the picture play if the idle hardware decoder resource is applied, and perform hardware decoding on the current program stream by using the idle hardware decoder resource, and play from the first time The decoded program stream.
优选地, 所述第一处理模块 42包括:  Preferably, the first processing module 42 includes:
第一处理子模块 421, 配置为对所述节目流进行抽帧以及生成图片处 理, 获得图片, 并播放图片。  The first processing sub-module 421 is configured to perform frame extraction on the program stream and generate a picture process, obtain a picture, and play the picture.
优选地, 所述第一处理子模块 421包括:  Preferably, the first processing submodule 421 includes:
存储单元 4210, 配置为将从流媒体服务器获取的节目流, 存入緩冲区 链表中;  The storage unit 4210 is configured to store the program stream obtained from the streaming media server in a buffer list;
抽帧单元 4211, 配置为从所述緩冲区链表中的取緩冲区中, 循环抽帧; 图片生成单元 4212, 配置为抽帧出的每帧数据转为图片, 经图片路径 存入图片链表;  The frame drawing unit 4211 is configured to cyclically draw a frame from the buffer in the buffer list; the image generating unit 4212 is configured to convert each frame of the framed data into a picture, and deposit the picture through the picture path. Link list
图片播放单元 4213, 配置为循环播放所述图片链表中的图片。 优选地, 所述第一处理子模块 421还包括: The picture playing unit 4213 is configured to cyclically play the pictures in the picture linked list. Preferably, the first processing submodule 421 further includes:
第一删除单元 4214, 配置为删除取过帧数据的取緩冲区。  The first deleting unit 4214 is configured to delete the fetch buffer of the fetched frame data.
优选地, 所述第一处理子模块 421还包括:  Preferably, the first processing submodule 421 further includes:
第二删除单元 4215, 配置为经预定时间后, 删除图片路径节点以及所 播放的图片。  The second deleting unit 4215 is configured to delete the picture path node and the played picture after a predetermined time.
以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明所述原理的前提下, 还可以作出若干改 进和润饰, 这些改进和润饰也应视为本发明的保护范围。 工业实用性  The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention. Industrial applicability
本发明实施例中, 检测到当前频道的节目流进行播放时, 获取硬件解 码器资源的占用情况; 在所述硬件解码器资源处于全部被占用的第一时刻, 若接收到当前节目流的图片播放指令, 且仍占用原有的硬件解码器资源时, 对所述节目流进行处理, 获得图片, 并播放图片。 如此, 在硬件解码器资 源被完全占有后, 不用添加新的硬件解码器, 利用软件解码处理节目流, 从而减少 CPU的负担。  In the embodiment of the present invention, when the program stream of the current channel is detected to be played, the occupation of the hardware decoder resource is obtained; if the hardware decoder resource is in the first occupied moment, if the current program stream is received, When the instruction is played and the original hardware decoder resource is still occupied, the program stream is processed to obtain a picture and play the picture. In this way, after the hardware decoder resources are completely occupied, the program stream is processed by software decoding without adding a new hardware decoder, thereby reducing the burden on the CPU.

Claims

权利要求书 claims
1、 一种图片播放方法, 所述方法包括: 1. A picture playing method, the method includes:
检测到当前频道的节目流进行播放时, 获取硬件解码器资源的占用情 况; When the program stream of the current channel is detected and played, the occupancy status of the hardware decoder resources is obtained;
在所述硬件解码器资源处于全部被占用的第一时刻, 若接收到当前节 目流的图片播放指令, 且仍占用原有的硬件解码器资源时, 对所述节目流 进行处理, 获得图片, 并播放图片。 At the first moment when the hardware decoder resources are all occupied, if the picture playback instruction of the current program stream is received and the original hardware decoder resources are still occupied, the program stream is processed to obtain the picture, and play the picture.
2、 根据权利要求 1所述的方法, 其中, 在所述硬件解码器资源处于全 部被占用的第一时刻时, 所述方法还包括: 2. The method according to claim 1, wherein when the hardware decoder resources are all occupied at the first moment, the method further includes:
提示播放能力不足。 It indicates insufficient playback capability.
3、 根据权利要求 1所述的方法, 其中, 所述播放图片时, 所述方法还 包括: 3. The method according to claim 1, wherein when playing the picture, the method further includes:
定时申请硬件解码器资源; Apply for hardware decoder resources regularly;
若申请到空闲的硬件解码器资源时, 则停止图片播放, 并利用所述空 闲的硬件解码器资源对当前节目流进行硬件解码, 并从所述第一时刻播放 解码后的节目流。 If idle hardware decoder resources are applied for, picture playback is stopped, and the idle hardware decoder resources are used to hardware decode the current program stream, and the decoded program stream is played from the first moment.
4、根据权利要求 1所述的方法, 其特征在于,对所述节目流进行处理, 获得图片, 并播放图片, 包括: 4. The method according to claim 1, characterized in that processing the program stream, obtaining pictures, and playing the pictures includes:
对所述节目流进行抽帧以及生成图片处理, 获得图片, 并播放图片。 Perform frame extraction and picture generation processing on the program stream to obtain pictures, and play the pictures.
5、 根据权利要求 4所述的方法, 其特征在于, 对所述节目流进行抽帧 以及生成图片处理, 获得图片, 并播放图片, 包括: 5. The method according to claim 4, characterized in that: performing frame extraction and picture generation processing on the program stream, obtaining pictures, and playing the pictures, including:
将从流媒体服务器获取的节目流, 存入緩冲区链表中; Store the program stream obtained from the streaming media server in the buffer linked list;
从所述緩冲区链表中的取緩冲区中, 循环抽帧; Cyclically extract frames from the buffer in the buffer linked list;
将抽帧出的每帧数据转为图片, 并经图片路径存入图片链表; 循环播放所述图片链表中的图片。 Convert each frame of data extracted into a picture and store it in the picture linked list via the picture path; play the pictures in the picture linked list in a loop.
6、 根据权利要求 5所述的方法, 其中, 所述经图片路径存入图片链表 后, 所述方法还包括: 6. The method according to claim 5, wherein after the picture link list is stored via the picture path, the method further includes:
删除取过帧数据的取緩冲区。 Delete the fetch buffer of fetched frame data.
7、 根据权利要求 5所述的方法, 其中, 所述循环播放所述图片链表中 的图片后, 所述方法还包括: 7. The method according to claim 5, wherein after the pictures in the picture linked list are played in a loop, the method further includes:
经预定时间后, 删除图片路径节点以及所播放的图片。 After a predetermined time, the picture path node and the played picture are deleted.
8、 一种图片播放装置, 所述装置包括: 8. A picture playback device, the device includes:
获取模块, 配置为检测到当前频道的节目流进行播放时, 获取硬件解 码器资源的占用情况; The acquisition module is configured to acquire the occupancy status of hardware decoder resources when detecting the program stream of the current channel for playback;
第一处理模块, 配置为在所述硬件解码器资源处于全部被占用的第一 时刻, 若接收到当前节目流的图片播放指令, 且仍占用原有的硬件解码器 资源时, 对所述节目流进行处理, 获得图片, 并播放图片。 The first processing module is configured to: at the first moment when the hardware decoder resources are all occupied, if a picture playback instruction of the current program stream is received and the original hardware decoder resources are still occupied, the program The stream is processed, the picture is obtained, and the picture is played.
9、 根据权利要求 8所述的装置, 其中, 所述装置还包括: 9. The device according to claim 8, wherein the device further includes:
提示模块, 配置为提示播放能力不足。 Prompt module, configured to prompt insufficient playback capabilities.
10、 根据权利要求 8所述的装置, 其中, 所述装置还包括: 10. The device according to claim 8, wherein the device further includes:
申请模块, 配置为定时申请硬件解码器资源; The application module is configured to apply for hardware decoder resources regularly;
第二处理模块, 配置为若申请到空闲的硬件解码器资源时, 则停止图 片播放, 并利用所述空闲的硬件解码器资源对当前节目流进行硬件解码, 并从所述第一时刻播放解码后的节目流。 The second processing module is configured to stop picture playback when applying for idle hardware decoder resources, and use the idle hardware decoder resources to perform hardware decoding of the current program stream, and play the decoded video from the first moment. The subsequent program stream.
11、 根据权利要求 8 所述的图片播放的装置, 其中, 所述第一处理模 块, 包括: 11. The picture playing device according to claim 8, wherein the first processing module includes:
第一处理子模块, 配置为对所述节目流进行抽帧以及生成图片处理, 获得图片, 并播放图片。 The first processing submodule is configured to perform frame extraction and picture generation processing on the program stream, obtain pictures, and play the pictures.
12、根据权利要求 11所述的装置, 其中, 所述第一处理子模块, 包括: 存储单元, 配置为将从流媒体服务器获取的节目流, 存入緩冲区链表 中; 12. The device according to claim 11, wherein the first processing sub-module includes: a storage unit configured to store the program stream obtained from the streaming media server in a buffer linked list middle;
抽帧单元, 配置为从所述緩冲区链表中的取緩冲区中, 循环抽帧; 图片生成单元, 配置为将抽帧出的每帧数据转为图片, 经图片路径存 入图片链表; The frame extraction unit is configured to cyclically extract frames from the buffer in the buffer linked list; the picture generation unit is configured to convert each frame of data extracted from the frame into a picture, and store it in the picture linked list through the picture path. ;
图片播放单元, 配置为循环播放所述图片链表中的图片。 The picture playback unit is configured to play the pictures in the picture linked list in a loop.
13、 根据权利要求 12所述的装置, 其中, 所述第一处理子模块, 还包 括: 13. The device according to claim 12, wherein the first processing sub-module further includes:
第一删除单元, 配置为删除取过帧数据的取緩冲区。 The first deletion unit is configured to delete the fetch buffer of fetched frame data.
14、 根据权利要求 12所述的装置, 其特征在于, 所述第一处理子模块 还包括: 14. The device according to claim 12, characterized in that the first processing sub-module further includes:
第二删除单元, 配置为经预定时间后, 删除图片路径节点以及所播放 的图片。 The second deletion unit is configured to delete the picture path node and the played picture after a predetermined time.
15、 一种机顶盒, 所述机顶盒包括如权利要求 8至 14任一项所述的图 片播放装置; 所述机顶盒包括: 15. A set-top box, the set-top box including the picture playback device as claimed in any one of claims 8 to 14; the set-top box including:
获取模块, 配置为检测到当前频道的节目流进行播放时, 获取硬件解 码器资源的占用情况; The acquisition module is configured to acquire the occupancy status of hardware decoder resources when detecting the program stream of the current channel for playback;
第一处理模块, 配置为在所述硬件解码器资源处于全部被占用的第一 时刻, 若接收到当前节目流的图片播放指令, 且仍占用原有的硬件解码器 资源时, 对所述节目流进行处理, 获得图片, 并播放图片。 The first processing module is configured to: at the first moment when the hardware decoder resources are all occupied, if a picture playback instruction of the current program stream is received and the original hardware decoder resources are still occupied, the program The stream is processed, the picture is obtained, and the picture is played.
16、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令配置为执行权利要求 1至 7任一项所述的 方法。 16. A computer storage medium, the computer storage medium stores computer-executable instructions, and the computer-executable instructions are configured to execute the method described in any one of claims 1 to 7.
PCT/CN2014/076737 2013-11-20 2014-05-04 Picture playback method and apparatus, computer storage medium, and set top box WO2014183566A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310589446.8 2013-11-20
CN201310589446.8A CN104661059A (en) 2013-11-20 2013-11-20 Picture playing method and device as well as set-top box

Publications (1)

Publication Number Publication Date
WO2014183566A1 true WO2014183566A1 (en) 2014-11-20

Family

ID=51897694

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076737 WO2014183566A1 (en) 2013-11-20 2014-05-04 Picture playback method and apparatus, computer storage medium, and set top box

Country Status (2)

Country Link
CN (1) CN104661059A (en)
WO (1) WO2014183566A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396125A (en) * 2017-05-27 2017-11-24 联发科技(新加坡)私人有限公司 Decoder resources distribution method and device
WO2023246946A1 (en) * 2022-06-24 2023-12-28 杭州海康威视数字技术股份有限公司 Coding and decoding resource allocation method and apparatus, and electronic device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491448B (en) * 2015-12-07 2018-11-23 广州华多网络科技有限公司 A kind of animation data playback method and device
CN106658174A (en) * 2016-10-31 2017-05-10 努比亚技术有限公司 Video decoding terminal and method
CN107124637A (en) * 2017-05-18 2017-09-01 北京视博云科技有限公司 Method and device, computer-readable storage medium in the enterprising row information notice of light terminal
CN109905768B (en) * 2017-12-07 2021-04-06 卓望数码技术(深圳)有限公司 Method and device for judging blocking of output video of internet television set top box
CN110175061B (en) * 2019-05-20 2022-09-09 北京大米科技有限公司 Animation-based interaction method and device and electronic equipment
CN114125432B (en) * 2021-11-22 2022-09-16 北京天融信网络安全技术有限公司 Video data processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075342A (en) * 2006-09-26 2007-11-21 腾讯科技(深圳)有限公司 Method and device for cutting fluid-medium video image
CN101114437A (en) * 2007-06-07 2008-01-30 中兴通讯股份有限公司 Image output processing system used for mobile terminal and method thereof
CN103339959A (en) * 2011-01-19 2013-10-02 高通股份有限公司 Dynamic video switching

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819643A (en) * 2006-03-16 2006-08-16 许江平 Picture and accompanying sound cutting method and use for digital TV-set
US8380864B2 (en) * 2006-12-27 2013-02-19 Microsoft Corporation Media stream slicing and processing load allocation for multi-user media systems
JP5521403B2 (en) * 2009-06-23 2014-06-11 ソニー株式会社 Information processing apparatus, resource management method, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075342A (en) * 2006-09-26 2007-11-21 腾讯科技(深圳)有限公司 Method and device for cutting fluid-medium video image
CN101114437A (en) * 2007-06-07 2008-01-30 中兴通讯股份有限公司 Image output processing system used for mobile terminal and method thereof
CN103339959A (en) * 2011-01-19 2013-10-02 高通股份有限公司 Dynamic video switching

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396125A (en) * 2017-05-27 2017-11-24 联发科技(新加坡)私人有限公司 Decoder resources distribution method and device
WO2023246946A1 (en) * 2022-06-24 2023-12-28 杭州海康威视数字技术股份有限公司 Coding and decoding resource allocation method and apparatus, and electronic device

Also Published As

Publication number Publication date
CN104661059A (en) 2015-05-27

Similar Documents

Publication Publication Date Title
WO2014183566A1 (en) Picture playback method and apparatus, computer storage medium, and set top box
US11622134B2 (en) System and method for low-latency content streaming
US8321905B1 (en) Fast switching of media streams
WO2017063399A1 (en) Video playback method and device
US20210183408A1 (en) Gapless video looping
TWI342162B (en) Video processing method and computer-readable storage medium therefor
US20040268397A1 (en) Rate change
WO2019170073A1 (en) Media playback
US20220124403A1 (en) Seamless switching method, device and storage medium of software and hardware decoding resolution
JP7151004B2 (en) Interruptible video transcoding
CN106792154B (en) Frame skipping synchronization system of video player and control method thereof
CA2908718C (en) System and method for streaming a media file from a server to a client device
WO2013182011A1 (en) Method and system of playing real time online video at variable speed
WO2016015667A1 (en) Video stream decoding method and device
WO2020215454A1 (en) Screen recording method, client, and terminal device
WO2017162015A1 (en) Data processing method and apparatus, and storage medium
WO2017071428A1 (en) Fast forward/rewind processing method and terminal
US20170062004A1 (en) Method for enabling seamless and bidirectional playback of video
AU2018266806A1 (en) Methods and apparatus for ordered serial synchronization of multimedia streams upon sensor changes
CN114268830A (en) Cloud director synchronization method, device, equipment and storage medium
KR101970787B1 (en) Video decoding apparatus and method based on android platform using dual memory
US20160117796A1 (en) Content Adaptive Decoder Quality Management
JP2015510727A (en) Method and system for providing file data for media files
US10893331B1 (en) Subtitle processing for devices with limited memory
US11638044B1 (en) Preparation of warm inputs for digital content streaming

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: 14798671

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14798671

Country of ref document: EP

Kind code of ref document: A1