CN110858827B - Broadcast starting acceleration method and device and computer readable storage medium - Google Patents

Broadcast starting acceleration method and device and computer readable storage medium Download PDF

Info

Publication number
CN110858827B
CN110858827B CN201810958331.4A CN201810958331A CN110858827B CN 110858827 B CN110858827 B CN 110858827B CN 201810958331 A CN201810958331 A CN 201810958331A CN 110858827 B CN110858827 B CN 110858827B
Authority
CN
China
Prior art keywords
video stream
decoder
hardware decoder
software
hardware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810958331.4A
Other languages
Chinese (zh)
Other versions
CN110858827A (en
Inventor
王钺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201810958331.4A priority Critical patent/CN110858827B/en
Publication of CN110858827A publication Critical patent/CN110858827A/en
Application granted granted Critical
Publication of CN110858827B publication Critical patent/CN110858827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

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.

Description

Broadcast starting acceleration method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of playing, in particular to a playing starting acceleration method, a playing starting acceleration device and a computer readable storage medium.
Background
With the progress of communication technology, the transmission of video data is more convenient. The viewing of video data is no longer limited to a particular device, and mobile electronic devices have become the user's preference for viewing video data. The mobile electronic equipment is used for watching the video data without limiting the watching time, the watching place and the like of the user, so that great convenience is brought to the user, and particularly for the monitoring video in the security field.
Video data needs to be encoded before being transmitted in order to be transmitted. And after the electronic equipment receives the video data, decoding and playing the video data. However, the electronic device does not know the encoding method of the received video data in advance, and therefore, it takes a lot of time to decode the video data during the broadcasting starting process. In the process of decoding a large amount of data, a user needs to wait all the time, obviously, the requirement of the user on viewing real-time performance cannot be met, and even the viewing experience of the user is influenced.
Disclosure of Invention
The present invention is directed to a method, an apparatus and a computer readable storage medium for accelerating a broadcast.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a broadcast starting acceleration method, which is applied to an electronic device, where the electronic device includes a hardware decoder and a display unit, and the electronic device creates a software decoder in advance, and the broadcast starting acceleration method includes: 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.
In a second aspect, an embodiment of the present invention provides a broadcast starting acceleration device, which is applied to an electronic device, where the electronic device includes a hardware decoder and a display unit, the electronic device creates a software decoder in advance, and the broadcast starting acceleration device includes: the decoding module is used for respectively sending the unpackaged video streams 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 streams 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.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions, when executed by a processor, implement the foregoing steps of the start-up acceleration method.
Compared with the prior art, the embodiment of the invention provides a broadcast starting acceleration method, wherein a software decoder is pre-established in the electronic equipment, and the broadcast starting acceleration method enables the hardware decoder and the software decoder to decode the video stream simultaneously by respectively sending the unpackaged video stream to a processing queue of the hardware decoder and a processing queue of the software decoder, directly adopts a display unit to output and display when the software decoder decodes the first I frame data of the video stream, and does not need to wait for the completion of the decoding of the complete video stream. In the process, the decodable type of the software decoder is wide, and the software decoder can decode the first I frame data more quickly, so that the image output speed is improved, a user can see the first frame of picture of the video stream quickly, the psychology of waiting for the user is relieved, and the watching experience of the user is improved. The video stream decoded by the hardware decoder is obtained within the preset time, the multimedia data generated based on the video stream decoded by the hardware decoder is played, the characteristic that the whole video stream can be decoded more reliably and quickly by means of the software decoder, the time from outputting and displaying the first I frame data picture to normally playing the video data is shortened, and the watching experience of a user is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of a start-up acceleration method according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating steps of another method for accelerating a broadcast according to an embodiment of the present invention.
Fig. 4 is another part of a flowchart illustrating steps of a start-up acceleration method according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a broadcast starting acceleration device according to an embodiment of the present invention.
Icon: 100-an electronic device; 111-a memory; 112-a processor; 113-a communication unit; 114-a display unit; 115-a hardware decoder; 200-a broadcast starting accelerating device; 201-a decoding module; 202-an output module; 203-a playing module; 204-process management module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, in order to solve the problem that the waiting time is long in the video data starting process, the currently mainly adopted method includes:
1. the hardware decoder is preferentially used, and the video data decoding time length is shortened by utilizing the characteristic that the work performance is good. However, when compatibility of the video code stream and the hardware decoder is in problem, the hardware decoder resource is released, and then a software decoder is created to decode the video data again. However, the creation of the software decoder inevitably requires reloading, parsing, and the like of the video data. The user can only wait for the software decoder to be ready. Affecting the user experience.
2. A smooth stream switching technique is used. Namely, the electronic equipment selects the low-bit-rate video resource of the same video stored in the server to play in the starting process. And after the video starts to be played, selecting the opportunity to switch to the video source of the normal code stream. In this way, the effect of accelerating the picture output is achieved. However, this approach requires server-side intervention to provide the same video multi-rate resource. Meanwhile, the electronic equipment itself needs to perform corresponding processing aiming at smooth code stream switching. The video format support that MP4 and the like can not dynamically switch code rates is not good.
In view of the above situation, an embodiment of the present invention provides a method and an apparatus for accelerating a start-up of a broadcast.
Fig. 1 is a block diagram of an electronic device 100 according to a preferred embodiment of the invention. Preferably, the electronic device 100 is a mobile electronic device 100, such as a notebook computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), and the like. The electronic device 100 includes a playback acceleration apparatus 200, a memory 111, a processor 112, a communication unit 113, a display unit 114, and a hardware decoder 115.
The memory 111, the processor 112, the communication unit 113, the display unit 114 and the hardware decoder 115 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The software implementing the data storage method includes at least one software functional module which can be stored in the memory 111 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the electronic device 100. The processor 112 is used to execute the executable modules stored in the memory 111.
The Memory 111 may be, but is not limited to, a Random Access Memory 111 (RAM), a Read Only Memory 111 (ROM), a Programmable Read Only Memory 111 (PROM), an Erasable Read Only Memory 111 (EPROM), an electrically Erasable Read Only Memory 111 (EEPROM), and the like. The memory 111 is used to store programs or data. For example, the functional module corresponding to the broadcast acceleration apparatus 200 and the functional module corresponding to the pre-created software decoder.
The communication unit 113 is configured to establish a communication connection between the electronic apparatus 100 and another communication terminal through the network, and to receive video data.
It should be understood that the structure shown in fig. 1 is merely a schematic diagram of the structure of the electronic device 100, and that the electronic device 100 may include more or less components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
First embodiment
Referring to fig. 2, fig. 2 is a flowchart of a start-up acceleration method according to a preferred embodiment of the present invention. The starting acceleration method can be applied to the electronic device 100 and is used for improving the image output efficiency of the video data in the starting process of the electronic device 100. The broadcast starting acceleration method comprises the following steps:
step S101, sending the decapsulated video stream to the processing queue of the hardware decoder 115 and the processing queue of the software decoder, respectively.
In the embodiment of the present invention, after receiving the video data to be played, the electronic device 100 performs decapsulation processing on the video data to obtain a video stream and an audio stream. Specifically, in the decapsulation process, a video stream and an audio stream of the video data are identified and split.
Further, the video stream is respectively put into the processing queue of the hardware decoder 115 and the processing queue of the software decoder, and the hardware decoder 115 and the software decoder are started to decode the video stream simultaneously. It should be noted that the processing queue may be a (First Input First Output, FIFO) queue, so that the decoder performs decoding processing on each frame of image data of the video stream in sequence.
Step S102, 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 114.
In the embodiment of the invention, the software decoder has excellent compatibility to the format and flexibility of decoding, and can quickly determine the decoding mode compatible with the format of the video stream in the process of decoding the video stream. And because it can quickly determine the decoding mode compatible with the video stream format, the software decoder can decode the first I frame data of the video stream faster than the hardware decoder 115. After the first I frame data is decoded by the software decoder, the first I frame data is output and displayed through the display unit 114, so that the first I frame data of the display video stream is output before the hardware decoder 115 successfully decodes the video stream, and the efficiency of image output is improved. The time for the user to wait for the video data to be played is relieved, and the watching experience is improved. It should be noted that, in the related art, the decoding of the video stream is usually required to be completed for the output display of the video data, but in this embodiment, after the software decoder decodes the first I frame data, the software decoder forces to output and display the decoded I frame data and the display unit 114 performs the output display. That is, the first picture can be output and displayed earlier than the manner of starting in the related art under the same external conditions.
Alternatively, the step of outputting the first I frame data obtained by decoding the display may be:
(1) And obtaining the YUV data corresponding to the first I frame data decoded by the software decoder. Specifically, the first I frame data may be transmitted into a null BUFFER, and then the corresponding YUV data may be refreshed. It should be noted that YUV is a color coding method. Are often used in various video processing components. YUV allows for reduced bandwidth of chrominance in view of human perception when encoding photos or videos.
(2) And processing the YUV data of the first I frame data according to the requirement parameters of the electronic device 100. Optionally, the required parameters of the electronic device 100 may be a supported format, a size, a screen angle, and the like of a playing platform in the electronic device 100. Correspondingly, the YUV data processing may be format adjustment, cropping, screen rotation, and the like.
(3) And calling a rendering interface of the display unit 114 to output and display the processed YUV data.
Step S103, if the video stream decoded by the hardware decoder 115 is obtained within a preset time, playing the multimedia data generated based on the video stream decoded by the hardware decoder 115.
In the embodiment of the present invention, step S102 and step S103 are parallel steps, and there is no specific sequence between them. When the electronic device 100 actually performs the start-up acceleration method provided by the embodiment of the present invention, step S102 is usually triggered before step S103 due to the time difference between the decoding of the first frame I frame data and the decoding of the video stream.
In the embodiment of the present invention, as the hardware decoder 115 is improved, the supported media formats are more and more abundant, though limited, and it is a preferred solution for decoding video stream with very low power consumption and good stability. The hardware decoder 115 decodes the video stream faster than the software decoder. Therefore, the electronic device 100 preferably selects the video stream decoded by the hardware decoder 115 to generate video data for playback. Alternatively, when the hardware decoder 115 completes decoding the video stream for a preset time, the multimedia data may be generated based on the video stream decoded by the hardware decoder 115. Alternatively, the preset time may be a time period for the hardware decoder 115 to complete decoding of the video stream normally. That is, if the decoding duration of the hardware decoder 115 is within the preset time and the hardware decoder 115 does not generate the decoding failure signal, it can be considered that the hardware decoder 115 is still running normally, and can continue to wait for it to decode the video stream. If the decoding time of the hardware decoder 115 exceeds a preset time or an error indication is generated, it is confirmed that the hardware decoder 115 fails to decode.
Further, after the video stream decoded by the hardware decoder 115 is obtained within the preset time, the flow proceeds to step S104.
And step S104, closing the software decoder.
In the embodiment of the invention, after the software decoder decodes and outputs and displays the first frame of I frame data, the video stream can be continuously decoded according to a normal mode. However, once the hardware decoder 115 decodes the video stream within the preset time, the software decoder is not needed to continue decoding the video stream at this time. Therefore, the software decoder is turned off to release the system resources occupied by the software decoder, thereby saving the system resources and improving the operation efficiency of the whole electronic device 100.
Further, in order to avoid the incompatibility of the hardware decoder 115 with the format of the video stream, repeatedly enabling the hardware decoder 115 to decode results in a waste of decoding time. As shown in fig. 3, the start-up acceleration method provided in the embodiment of the present invention may further include:
step S105, if the video stream decoded by the hardware decoder 115 is not obtained or the decoding failure signal generated by the hardware decoder 115 is obtained within the preset time, playing the multimedia data generated based on the video stream decoded by the software decoder.
In the embodiment of the present invention, step S103 and step S105 have no necessary sequence, but both of them are in parallel. It should be noted that, if the hardware decoder 115 does not decode the video stream within the preset time or generates a decoding failure signal during the decoding process, it means that the hardware decoder 115 fails to decode. Since the software decoder and the hardware decoder 115 decode the video stream at the same time, and the software decoder will continue to decode the video stream normally after decoding the first I frame data. Therefore, after confirming that the hardware decoder 115 fails to decode the video stream, the hardware decoder 115 can smoothly switch to the software decoder, acquire the video stream decoded by the software decoder, and generate the multimedia data for playing. Compared with the related art, the software decoder is newly created after the hardware decoder 115 fails to decode the video stream is determined, and the newly created software decoder restarts decoding of the video stream, so that compared with the scheme provided by the related art, the method provided by the embodiment of the invention can save a large amount of waiting time. The phenomenon of pause caused by switching between the soft decoder and the hard decoder is avoided, and the watching experience of a user is prevented from being influenced.
Further, in order to obtain multimedia data generated based on the decoded video stream, as shown in fig. 4, before playing the multimedia data, the method further includes:
step S201, performing audio decoding on the decapsulated audio stream.
In the embodiment of the present invention, a software decoder may be used to perform audio decoding on the audio stream after being decapsulated.
Step S202, adjusting the audio stream according to the requirement parameter of the electronic device 100.
In the embodiment of the present invention, the requirement parameter may be a support requirement parameter of a platform installed in the electronic device 100 for playing video data, and for example, the support requirement parameter may include a support format, a channel, a playing rate, and the like. And correspondingly adjusts the audio stream accordingly so that the audio stream can be played.
Step S203, when the hardware decoder 115 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 115.
In the embodiment of the present invention, the video stream decoded by the hardware decoder 115 may be processed based on the requirement parameter. Optionally, the required parameters of the electronic device 100 may be a supported format, a size, a screen angle, and the like of a playing platform in the electronic device 100. Correspondingly, the processing of the video stream decoded by the hardware decoder 115 may be supporting format adjustment, cropping, picture rotation, and the like.
And synchronizing the adjusted audio stream with the processed video stream to generate the multimedia data.
Step S204, when the hardware decoder 115 does not decode the video stream within a preset time or obtains a decoding failure signal generated by the hardware decoder 115, generating the multimedia data according to the adjusted audio stream and the video stream decoded by the software decoder.
In the embodiment of the present invention, the video stream decoded by the software decoder may be processed based on the requirement parameter. Optionally, the required parameters of the electronic device 100 may be a supported format, a size, a screen angle, and the like of a playing platform in the electronic device 100. Correspondingly, the processing of the video stream decoded by the software decoder may be supporting format adjustment, cropping, picture rotation, and the like.
And synchronizing the adjusted audio stream with the processed video stream to generate the multimedia data.
Second embodiment
An embodiment of the present invention further provides a broadcast starting acceleration device 200 corresponding to the foregoing method, where the broadcast starting acceleration device 200 is applied to the electronic device 100, and a detailed scheme in the broadcast starting acceleration device 200 may be implemented with reference to the foregoing method, as shown in fig. 5, where the broadcast starting acceleration device 200 may include:
the decoding module 201 is configured to send the decapsulated video stream to the processing queue of the hardware decoder 115 and the processing queue of the software decoder, respectively, so that the hardware decoder 115 and the software decoder decode the video stream simultaneously.
An output module 202, configured to output and display the first I frame data of the video stream through the display unit 114 when the software decoder decodes the first I frame data of the video stream.
The playing module 203 is configured to play multimedia data generated based on the video stream decoded by the hardware decoder 115 if the video stream decoded by the hardware decoder 115 is obtained within a preset time.
Preferably, the playing module 203 is further configured to play the multimedia data generated based on the video stream decoded by the software decoder if the hardware decoder 115 does not decode the video stream or a decoding failure signal generated by the hardware decoder 115 decoding is obtained within the preset time.
The process management module 204 is configured to, if the hardware decoder 115 decodes the video stream within the preset time, close the software decoder to release system resources.
The embodiment of the present invention also discloses a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 112, implements the broadcast start acceleration method disclosed in the foregoing embodiment of the present invention.
In summary, the present invention provides a method, an apparatus and a computer readable storage medium for accelerating a broadcast. The broadcast starting acceleration method, the broadcast starting acceleration device and the computer readable storage medium can be applied to electronic equipment, the electronic equipment comprises a hardware decoder and a display unit, 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. The soft and hard decoders are used for decoding in parallel, the time occupied by the decoders in the switching process is shortened, the phenomenon that the soft and hard decoders are blocked when needing to be switched is avoided, and the output efficiency of the first picture of the video stream is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

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;
if the video stream decoded by the hardware decoder is obtained within the preset time, playing multimedia data generated based on the video stream decoded by the hardware decoder; the manner for displaying the first I frame data through the display unit output includes:
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.
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. 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 unpackaged video streams 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 streams 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; the manner for displaying the first I frame data through the display unit output includes:
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;
calling a rendering interface of the display unit to output and display the processed YUV data;
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.
7. The turbo accelerating device of claim 6, 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.
8. The playout acceleration device of claim 6, 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.
9. 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 5.
CN201810958331.4A 2018-08-22 2018-08-22 Broadcast starting acceleration method and device and computer readable storage medium Active CN110858827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810958331.4A CN110858827B (en) 2018-08-22 2018-08-22 Broadcast starting acceleration method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810958331.4A CN110858827B (en) 2018-08-22 2018-08-22 Broadcast starting acceleration method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110858827A CN110858827A (en) 2020-03-03
CN110858827B true CN110858827B (en) 2023-03-24

Family

ID=69635848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810958331.4A Active CN110858827B (en) 2018-08-22 2018-08-22 Broadcast starting acceleration method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110858827B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672147A (en) * 2020-12-15 2021-04-16 深圳乐播科技有限公司 Decoding method, device and system based on screen projection
CN113055681B (en) * 2021-03-02 2024-02-09 长沙景嘉微电子股份有限公司 Video decoding display method and device, electronic equipment and storage medium
CN113674188A (en) * 2021-08-04 2021-11-19 深圳中兴网信科技有限公司 Video analysis method and device, electronic equipment and readable storage medium
CN113676769B (en) * 2021-08-23 2023-03-31 北京字跳网络技术有限公司 Video decoding method, device and storage medium
CN114363637A (en) * 2021-12-08 2022-04-15 广州方硅信息技术有限公司 Video predecoding method, electronic device and computer readable storage medium
CN114422799B (en) * 2022-01-24 2024-04-19 北京百度网讯科技有限公司 Decoding method and device for video file, electronic equipment and program product
CN115174924B (en) * 2022-07-20 2024-05-28 天翼数字生活科技有限公司 Set top box, video playing time delay calculation method, system, equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6901153B1 (en) * 1996-03-14 2005-05-31 Ati Technologies Inc. Hybrid software/hardware video decoder for personal computer
EP2670155A2 (en) * 2012-05-30 2013-12-04 Technisat Digital Gmbh Hybrid TV receiver with a video mixing device for multiple image playback for the simultaneous visual rendering of media content on a playback screen
CN104185028A (en) * 2013-05-20 2014-12-03 安凯(广州)微电子技术有限公司 Video playing method and terminal thereof
CN104394456A (en) * 2014-11-20 2015-03-04 福建星网视易信息系统有限公司 Method and device for decoding audios and videos in embedded environment
CN104796768A (en) * 2015-04-17 2015-07-22 苏州健雄职业技术学院 OMAP (open multimedia application platform) hardware decoding acceleration based embedded high-definition media player and operation method thereof
CN104837052A (en) * 2014-06-10 2015-08-12 腾讯科技(北京)有限公司 Playing method of multimedia data and device
CN105992056A (en) * 2015-01-30 2016-10-05 腾讯科技(深圳)有限公司 Video decoding method and device
CN107295403A (en) * 2017-08-24 2017-10-24 四川长虹电器股份有限公司 The method that seamless connection is played between video
CN108282164A (en) * 2017-01-05 2018-07-13 腾讯科技(深圳)有限公司 A kind of data encoding and coding/decoding method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9179144B2 (en) * 2012-11-28 2015-11-03 Cisco Technology, Inc. Fast switching hybrid video decoder

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6901153B1 (en) * 1996-03-14 2005-05-31 Ati Technologies Inc. Hybrid software/hardware video decoder for personal computer
EP2670155A2 (en) * 2012-05-30 2013-12-04 Technisat Digital Gmbh Hybrid TV receiver with a video mixing device for multiple image playback for the simultaneous visual rendering of media content on a playback screen
CN104185028A (en) * 2013-05-20 2014-12-03 安凯(广州)微电子技术有限公司 Video playing method and terminal thereof
CN104837052A (en) * 2014-06-10 2015-08-12 腾讯科技(北京)有限公司 Playing method of multimedia data and device
CN104394456A (en) * 2014-11-20 2015-03-04 福建星网视易信息系统有限公司 Method and device for decoding audios and videos in embedded environment
CN105992056A (en) * 2015-01-30 2016-10-05 腾讯科技(深圳)有限公司 Video decoding method and device
CN104796768A (en) * 2015-04-17 2015-07-22 苏州健雄职业技术学院 OMAP (open multimedia application platform) hardware decoding acceleration based embedded high-definition media player and operation method thereof
CN108282164A (en) * 2017-01-05 2018-07-13 腾讯科技(深圳)有限公司 A kind of data encoding and coding/decoding method and device
CN107295403A (en) * 2017-08-24 2017-10-24 四川长虹电器股份有限公司 The method that seamless connection is played between video

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于OpenRISC1200的H.264视频解码器片上系统设计;杨媛等;《固体电子学研究与进展》;20110425(第02期);全文 *

Also Published As

Publication number Publication date
CN110858827A (en) 2020-03-03

Similar Documents

Publication Publication Date Title
CN110858827B (en) Broadcast starting acceleration method and device and computer readable storage medium
US10225613B2 (en) Method and apparatus for video playing processing and television
CN109587570B (en) Video playing method and device
US20230345057A1 (en) System and method for transcoding media stream
US8861926B2 (en) Audio and video streaming for media effects
CN109803151B (en) Multimedia data stream switching method and device, storage medium and electronic device
CN110708564B (en) Live transcoding method and system for dynamically switching video streams
WO2019170073A1 (en) Media playback
WO2016188276A1 (en) Video playing method, client and computer storage medium
US9055272B2 (en) Moving image reproduction apparatus, information processing apparatus, and moving image reproduction method
WO2019192481A1 (en) Media information processing method, related device, and computer storage medium
CN114040243B (en) Live broadcasting room video playing method and device
CN114554277B (en) Multimedia processing method, device, server and computer readable storage medium
CN111510770A (en) Method and device for switching definition, computer equipment and readable storage medium
CN101277407B (en) Set-top box and method for starting the same
CN103841451A (en) Multimedia playing method, device and terminal
CN113873316A (en) Live broadcast room video playing method and device
CN114257572B (en) Data processing method, device, computer readable medium and electronic equipment
CN112118473B (en) Video bullet screen display method and device, computer equipment and readable storage medium
US9473757B2 (en) Presentation of a multi-frame segment of video content
CN112019858B (en) Video playing method and device, computer equipment and storage medium
CN109194975B (en) Audio and video live broadcast stream following method and device
US20210400334A1 (en) Method and apparatus for loop-playing video content
KR20140117889A (en) Client apparatus, server apparatus, multimedia redirection system and the method thereof
CN113542765B (en) Media data jump continuous playing method and display device

Legal Events

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