Broadcast starting acceleration method and device and computer readable storage medium

文档序号:1398607 发布日期:2020-03-03 浏览:9次 中文

阅读说明:本技术 启播加速方法、装置及计算机可读取存储介质 (Broadcast starting acceleration method and device and computer readable storage medium ) 是由 王钺 于 2018-08-22 设计创作,主要内容包括:本发明实施例提供了一种启播加速方法、装置及计算机可读取存储介质。其中,所述方法应用于电子设备,且电子设备内预先创建一软件解码器,所述方法包括:将解封装后的视频流分别发送至硬件解码器的处理队列及软件解码器的处理队列,以使软、硬件解码器同时对视频流进行解码;当软件解码器解码出视频流的第一个I帧数据时,通过显示单元输出显示所述第一个I帧数据;若在预设时间内获得硬件解码器解码出所述视频流,播放基于所述硬件解码器解码出的视频流生成的多媒体数据。并行使用软硬解码器进行解码,缩短了解码器切换过程中所占用的时间,避免在需要软硬解码器切换时出现卡顿,提高视频流的首张画面输出效率。(The embodiment of the invention provides a broadcast starting acceleration method, a broadcast starting acceleration device and a computer readable storage medium. The method is applied to the electronic equipment, a software decoder is pre-created in the electronic equipment, and the method comprises the following steps: respectively sending the decapsulated video stream to a processing queue of a hardware decoder and a processing queue of a software decoder so that the software decoder and the hardware decoder decode the video stream at the same time; when the software decoder decodes the first I frame data of the video stream, the first I frame data is output and displayed through the display unit; and if the video stream decoded by the hardware decoder is obtained within the preset time, playing the multimedia data generated based on the video stream decoded by the hardware decoder. The soft and hard decoders are used for decoding in parallel, the time occupied by the switching process of the decoders is shortened, the phenomenon that the soft and hard decoders are blocked when being switched is avoided, and the output efficiency of the first picture of the video stream is improved.)

1. A broadcast starting acceleration method is applied to electronic equipment, the electronic equipment comprises a hardware decoder and a display unit, the broadcast starting acceleration method is characterized in that the electronic equipment creates a software decoder in advance, and the broadcast starting acceleration method comprises the following steps:

respectively sending the decapsulated video stream to a processing queue of the hardware decoder and a processing queue of the software decoder, so that the hardware decoder and the software decoder decode the video stream simultaneously;

when the software decoder decodes the first I frame data of the video stream, outputting and displaying the first I frame data through the display unit;

and if the video stream decoded by the hardware decoder is obtained within the preset time, playing the multimedia data generated based on the video stream decoded by the hardware decoder.

2. The turbo acceleration method of claim 1, further comprising:

and if the hardware decoder decodes the video stream within the preset time, closing the software decoder to release system resources.

3. The turbo acceleration method of claim 1, further comprising:

and if the video stream decoded by the hardware decoder is not obtained or a decoding failure signal generated by decoding of the hardware decoder is obtained within the preset time, playing the multimedia data generated based on the video stream decoded by the software decoder.

4. The playout acceleration method of claim 3, wherein prior to playing out said multimedia data, said method further comprises:

performing audio decoding on the decapsulated audio stream;

adjusting the audio stream according to the requirement parameters of the electronic equipment;

when the hardware decoder decodes the video stream within a preset time, generating the multimedia data according to the adjusted audio stream and the video stream decoded by the hardware decoder;

and when the hardware decoder does not decode the video stream within preset time or obtains a decoding failure signal generated by decoding of the hardware decoder, generating the multimedia data according to the adjusted audio stream and the video stream decoded by the software decoder.

5. The method for accelerating playback start-up as set forth in claim 4, wherein the step of adjusting the audio stream and the video stream decoded by the hardware decoder according to the adjusted audio stream comprises:

processing the video stream decoded by the hardware decoder based on the demand parameter;

and synchronizing the adjusted audio stream and the processed video stream to generate the multimedia data.

6. The method for accelerating playout as claimed in claim 1, wherein said manner of displaying said first I frame data via said display unit output comprises:

acquiring YUV data corresponding to the first I frame data decoded by the software decoder;

processing YUV data of the first I frame data according to the requirement parameters of the electronic equipment;

and calling a rendering interface of the display unit to output and display the processed YUV data.

7. A broadcast starting accelerating device is applied to electronic equipment, the electronic equipment comprises a hardware decoder and a display unit, the broadcast starting accelerating device is characterized in that the electronic equipment creates a software decoder in advance, and the broadcast starting accelerating device comprises:

the decoding module is used for respectively sending the decapsulated video stream to a processing queue of the hardware decoder and a processing queue of the software decoder so that the hardware decoder and the software decoder can decode the video stream simultaneously;

the output module is used for outputting and displaying the first I frame data through the display unit when the software decoder decodes the first I frame data of the video stream;

and the playing module is used for playing the multimedia data generated based on the video stream decoded by the hardware decoder if the video stream decoded by the hardware decoder is obtained within the preset time.

8. The turbo acceleration apparatus of claim 7, further comprising:

and the process management module is used for closing the software decoder to release system resources if the hardware decoder decodes the video stream within the preset time.

9. The playout acceleration device of claim 7, wherein said play module is further configured to:

and if the video stream decoded by the hardware decoder is not obtained or a decoding failure signal generated by decoding of the hardware decoder is obtained within the preset time, playing the multimedia data generated based on the video stream decoded by the software decoder.

10. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, perform the steps of the method of any one of claims 1 to 6.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种PDCP SDU重排序方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类