CN106604115A - Video play control device and method - Google Patents

Video play control device and method Download PDF

Info

Publication number
CN106604115A
CN106604115A CN201611270949.9A CN201611270949A CN106604115A CN 106604115 A CN106604115 A CN 106604115A CN 201611270949 A CN201611270949 A CN 201611270949A CN 106604115 A CN106604115 A CN 106604115A
Authority
CN
China
Prior art keywords
module
video
hardware
information
audio
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.)
Granted
Application number
CN201611270949.9A
Other languages
Chinese (zh)
Other versions
CN106604115B (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201611270949.9A priority Critical patent/CN106604115B/en
Publication of CN106604115A publication Critical patent/CN106604115A/en
Application granted granted Critical
Publication of CN106604115B publication Critical patent/CN106604115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4333Processing operations in response to a pause request
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440227Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by decomposing into layers, e.g. base layer and one or more enhancement layers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a video play control device. The video play control device comprises a play control module and a video pipeline. The video play control device also comprises a hardware abstraction layer module, a hardware decoding module and a hardware display module. The hardware abstraction layer module is used for receiving information of the play control module and/or the video pipeline, and carrying out control operation on the hardware decoding module and/or the hardware display module according to the information. The invention also provides a video play control method. Through control operation, carried out by the hardware abstraction layer module, on the hardware decoding module and the hardware display module, the hardware decoding module and the hardware display module are allowed to be arranged outside the video pipeline, thereby reducing state switching of internal modules in the video pipeline, and reducing consumed time.

Description

Video playback control device and method
Technical field
The present invention relates to video playback field, more particularly to video playback control device and method.
Background technology
Video is watched by network and has become one of recreations indispensable in people's daily life.It is existing to regard Frequency player generally carries out the broadcasting of video file using video tube, and referring to Fig. 1, video tube includes data source modules, solution Multiplexing module, decoder module and display module, and each module corresponds to four kinds of states, respectively GST_STATE_NULL is (silent Recognize state), GST_STATE_READY (SBR), GST_STATE_PAUSED (halted state) and GST_STATE_ PLAYING (running status).It is when video player is performed suspends broadcasting and positioning playing operation, all in video player Module is required for being switched to GST_STATE_PAUSED (halted state) from GST_STATE_PLAYING (running status), then GST_STATE_PLAYING (running status) is switched to from GST_STATE_PAUSED (halted state) again, this mode is present Defect be to complete that the consumed time is long to operation response from starting to perform operation, response speed is slow.
The content of the invention
Present invention is primarily targeted at providing a kind of video playback control device and method, it is intended to by decoder module and Display module is placed in outside video tube, is not controlled by the video tube, so as to reduce between video tube internal module Frequency is changed, and shortens time-consuming.
For achieving the above object, a kind of video playback control device that the present invention is provided, the video playback control device Including play control module and video tube, the video playback control device also includes that hardware abstraction layer module, hardware are decoded Module and hardware display module;The hardware abstraction layer module receives the play control module and/or the video tube Information, and operation is controlled to the hardware decoder module and/or the hardware display module according to described information.
Preferably, described information includes the audio, video data and coding/decoding information of the video tube transmission;
The hardware abstraction layer module, is additionally operable to when the audio, video data and encoding and decoding that receive the video tube transmission During information, control the hardware decoder module execution and the audio, video data is decoded according to the coding/decoding information, with The step of obtaining video data and voice data;
The hardware display module, for showing video data, and exports the voice data.
Preferably, the video tube includes data source modules and demultiplexing module;
The data source modules, for obtaining original audio, video data and the corresponding parameter letter of the original audio, video data Breath, and the corresponding demultiplexing module of the video tube loading is triggered according to the parameter information;
The demultiplexing module, it is for parsing the original audio, video data that the data source modules are obtained, described to extract Audio, video data and the coding/decoding information.
Preferably, described information also includes the time-out information that the play control module sends;
The hardware abstraction layer module, is additionally operable to the time-out information sent according to the play control module, and obstruction is described Video tube is input into the audio, video data, and controls the hardware decoder module and the hardware display module is out of service.
Preferably, described information also includes the positioning playing information that the play control module sends;
The hardware abstraction layer module, is additionally operable to after the positioning playing information is received, and controls the hardware decoding Module and the hardware display module empty caching, and receive the audio, video data that the video tube resends, to control The audio, video data that video tube described in the hardware decoder module perform decoding resends, to obtain decoded sound again The step of frequency evidence and video data;Wherein, the audio, video data that the video tube resends is the video tube root According to the audio, video data that the positioning playing information that the play control module sends is reacquired.
Additionally, for achieving the above object, the present invention also provides a kind of video playing control method, the video playback control Method is comprised the following steps:
Hardware abstraction layer module receives the information of play control module and/or video tube;
The hardware abstraction layer module is controlled to hardware decoder module and/or hardware display module according to described information Operation.
Preferably, described information includes the audio, video data and coding/decoding information of the video tube transmission;The hardware Abstraction layer module includes the step of being controlled operation to hardware decoder module and/or hardware display module according to described information:
When audio, video data and the coding/decoding information that the video tube sends is received, the hardware abstraction layer module Control the hardware decoder module execution to decode the audio, video data according to the coding/decoding information, to obtain video The step of data and voice data;
After the hardware decoder module obtains video data and voice data, the hardware abstraction layer module control is described Hardware display module shows the video data and the output voice data.
Preferably, the video tube includes data source modules and demultiplexing module;It is described to receive the video tube The step of audio, video data and coding/decoding information of transmission, includes:
The hardware abstraction layer module receives the demultiplexing module and parses the audio frequency and video extracted by original audio, video data Data and coding/decoding information;Wherein, the demultiplexing module is that the data source modules are obtaining the original audio, video data And after the corresponding parameter information of the original audio, video data, the solution of the video tube loading is triggered according to the parameter information Multiplexing module.
Preferably, described information also includes the time-out information that the play control module sends;The hardware abstraction layer mould Tuber includes the step of being controlled operation to hardware decoder module and/or hardware display module according to described information:
The time-out information that the hardware abstraction layer module is sent according to the play control module, blocks the video tube It is input into the audio, video data, and controls the hardware decoder module and the hardware display module is out of service.
Preferably, described information also includes the positioning playing information that the play control module sends;The hardware abstraction Layer module includes the step of being controlled operation to hardware decoder module and/or hardware display module according to described information:
The hardware abstraction layer module controls the hardware decoder module and institute after the positioning playing information is received State hardware display module and empty caching, and receive the audio, video data that the video tube resends, to control the hardware The audio, video data that video tube described in decoder module perform decoding resends, with obtain again decoded voice data and The step of video data;Wherein, the audio, video data that the video tube resends is the video tube according to receiving The audio, video data that reacquires of the positioning playing information that sends of the play control module.
The embodiment of the present invention is by, on the premise of play control module and video tube is arranged, arranging hardware abstraction layer mould Block, hardware decoder module and hardware display module;The hardware abstraction layer module receives the play control module and/or described The information of video tube, and the hardware decoder module and/or the hardware display module are controlled according to described information Operation.So as to decoding operate and display operation are placed on outside video tube, the state switching of video tube inner module, contracting are reduced Short Video processing it is time-consuming.
Description of the drawings
Fig. 1 is the structural representation of current video playback control device;
Fig. 2 is the high-level schematic functional block diagram of video playback control device first embodiment of the present invention;
Fig. 3 is that the refinement functional module of the video channel in video playback control device second embodiment of the present invention is illustrated Figure;
Fig. 4 is the structural representation of video playback control device of the present invention;
Fig. 5 is the schematic flow sheet of video playing control method first embodiment of the present invention;
Fig. 6 is hardware abstraction layer module described in video playing control method second embodiment of the present invention according to described information The refinement schematic flow sheet of the step of operation is controlled to hardware decoder module and/or hardware display module;
Fig. 7 is the schematic flow sheet of video playing control method 3rd embodiment of the present invention;
Fig. 8 is the schematic flow sheet of video playing control method fourth embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The present invention provides a kind of video playback control device, with reference to Fig. 2, in the first embodiment of the present invention, described to regard Frequency broadcast control device includes play control module 10 and video tube 20;The video playback control device is also taken out including hardware As layer module 30, hardware decoder module 40 and hardware display module 50;The hardware abstraction layer module 30 receives described broadcasting and controls The information of molding block 10 and/or the video tube 20, and according to described information to the hardware decoder module 40 and/or described Hardware display module 50 is controlled operation.
The embodiment of the present invention suitable for the video player based on Gstreamer, Gstreamer be it is a kind of increase income it is many Media framework, is widely used in the video playback of the intelligent terminals such as intelligent television, Set Top Box, its software module at present The degree of change is high and module between there is good loose coupling, facilitate developer quickly to realize the exploitation of New function and daily Safeguard.
It should be noted that current video tube 20 includes data source modules, demultiplexing module, decoder module and shows Show module, when video playback being carried out by video tube 20, upper layer application can control described by play control module 10 The module status of module or inquiry 20 inner module of video channel in video channel 20.Above-mentioned module status are specifically referred in video During passage 20 performs operation, each module has four states, respectively GST_STATE_NULL (default conditions), GST_STATE_READY (SBR), GST_STATE_PAUSED (halted state) and GST_STATE_PLAYING (operations State).Wherein default conditions when current block take resource can be released;During SBR, work as front mould in the state Block can obtain all required global resources, and these global resources will be used by the data flow of the module;Halted state When, the module in the state can change the positional information of data flow, read or Treatment Analysis video data;Running status When, in addition to operation clock is currently running, other states are consistent with halted state for the module in the state.It can thus be seen that Difference effect with regard to halted state and running status is fewer, when the data source modules in video tube 20, demultiplexing module And after decoder module reaches halted state, with regard to the operation that can be demultiplexed to data and decoded, with running status Compare, simply time stamp can not be obtained by video tube 20, it is impossible to carry out positioning playing and suspend playing by video tube 20 Operation.Therefore can be by arranging SDK (Software Development Kit, SDK) module, the SDK Module includes hardware abstraction layer module 30, hardware decoder module 40 and hardware display module 50, by decoding operate and display operation It is placed on outside video tube 20, and then allows broadcasting control operation and system decoding display to region be directly facing hardware abstraction layer module 30, So as to pass through the control hardware of hardware abstraction layer module 30 decoder module 40 and hardware display module 50.Directly can be obtained by hardware The currently playing time, and positioning playing and pausing operation are performed, the internal module being prevented effectively from video channel 20 needs frequency The problem of numerous switching state, accelerates player response speed, shortens response time.
Propose that video playback control device of the present invention second is real based on video playback control device first embodiment of the present invention Example is applied, in the present embodiment, described information includes the audio, video data and coding/decoding information of the transmission of the video tube 20;
The hardware abstraction layer module 30, is additionally operable to when the audio, video data and volume that receive the transmission of the video tube 20 During decoded information, control the hardware decoder module 40 and perform to solve the audio, video data according to the coding/decoding information Code, the step of to obtain video data and voice data;
The hardware display module 50, for showing video data, and exports the voice data.
It should be noted that the module that above-mentioned video tube 20 is included can be configured according to actual needs, alternatively, Referring to Fig. 3, the video tube 20 includes data source modules 21 and demultiplexing module 22.In the present embodiment, work as described information When the audio, video data sent for the video tube 20 and coding/decoding information, i.e., current video player is opened in quick broadcasting Dynamic flow process, now the data source modules 21, corresponding for obtaining original audio, video data and the original audio, video data Parameter information, and the video tube 20 is triggered according to the parameter information load corresponding demultiplexing module 21;It is described to demultiplex With module 22, for parsing the original audio, video data of the acquisition of the data source modules 21, with extract the audio, video data and The coding/decoding information.
Please with reference to Fig. 4, specifically, when in quick broadcasting Booting sequence, play control module 10 is being received Video tube 20 is created after the play command of outside media file, and the address information of media file is sent to into the video Pipeline 20, video tube 20 load corresponding data source modules 21 according to the address information of media file.The data source modules 21 obtain original audio, video data, and the original audio, video data is parsed, it is to be resolved after the completion of extract it is corresponding Parameter information, then triggers the loading demultiplexing module 21 of video tube 20, now, data source modules 21 according to the parameter information SBR is switched to from default conditions with demultiplexing module 22.
The demultiplexing module 22 is parsed to the original audio, video data that data source modules 21 are obtained, and compiles solution to extract Then the coding/decoding information and audio, video data are sent to the hardware abstraction layer module by code information and audio, video data 30.The hardware abstraction layer module 30 after coding/decoding information and audio, video data is received, initiating hardware decoder module 40 And hardware display module 50, now, data source modules 21 and demultiplexing module 22 are switched to halted state by SBR.Need Illustrate, above-mentioned audio, video data is the file for possessing image and sound, and the video tube 20 can be according to media file The difference of address information, creates different types of data source modules 21, and common 21 type of data source modules includes HTTP (HyperText Transfer Protocol, HTML (Hypertext Markup Language)) and RSTP (Rapid Spanning Tree Protocol, RSTP) etc.;Common 22 type of demultiplexing module includes ts_demux, mp4_demux and flv_ Demux etc.;The demultiplexing module 22 also can load different volumes according to the different parameters information type of original audio, video data Decoded information.
When the hardware decoder module 40 receives the audio, video data of the transmission of hardware abstraction layer module 30 and compiles solution After code information, the audio, video data is decoded according to the coding/decoding information, and by decoded voice data and regarded Frequency evidence is sent to hardware display module 50, so that hardware display module 50 shows video data and exports voice data.Need Illustrate, above-mentioned video data is the file for possessing image, and above-mentioned voice data is the file for possessing sound.By such scheme Understand, in video channel 20, all modules only need to be switched to SBR from default conditions, then be switched to temporarily from SBR Stop state, eliminate running status, while the video tube 20 is when video playback is carried out, without the need for built-in decoder module and aobvious Show module, therefore shorten the operation response time of video tube 20.
Propose that video playback control device of the present invention 3rd is real based on video playback control device second embodiment of the present invention Example is applied, in the present embodiment, described information also includes the time-out information that the play control module sends;
The hardware abstraction layer module 30, is additionally operable to the time-out information sent according to the play control module 10, obstruction The video tube 20 is input into the audio, video data, and controls the hardware decoder module 40 and the hardware display module 50 It is out of service.
In the present embodiment, when described information is the time-out information that the play control module 10 sends, the video Player is in time-out playing flow.Concrete implementation procedure be play control module 10 after suspending message is received, to hard Part abstraction layer module 30 sends suspending message.Wherein, the video player is played by the suspending message request The operational order of video pause.The hardware abstraction layer module 30 after suspending message is received, the sound of blocked video pipeline 20 The input of video data, and pausing operation is carried out to hardware decoder module 40 and hardware display module 50.Now, video tube The output of 20 audio, video datas is blocked, and data processing is suspended, and need not process suspending message, need not more carry out internal mode block Switching between state, therefore video player is when time-out play operation is carried out, video tube 20 is passive stop tone video counts According to output, state switching need not be carried out between internal module, without operation, it is achieved that quick response.
It should be noted that after receiving broadcasting message during 10 here of play control module is suspended again, wherein, institute The operational order for playing that message is that request video player plays video is stated, the play control module 10 can be taken out by hardware Recover decoding operate as the control hardware of layer module 30 decoder module 40 is performed, and perform recovery to hardware display module 50 to show behaviour Make, recover the purpose played so as to reach, additionally, recover process being actively engaged in without video channel 20 played, when connecing After receiving broadcasting message, the hardware abstraction layer module 30 stops blocking the audio frequency and video input of the video channel 20 and is capable of achieving The audio, video data output of video channel 20.
Propose that video playback control device of the present invention 4th is real based on video playback control device second embodiment of the present invention Example is applied, in the present embodiment, described information also includes the positioning playing information that the play control module sends;
The hardware abstraction layer module, is additionally operable to after the positioning playing information is received, and controls the hardware decoding Module 40 and the hardware display module 50 empty caching, and receive the audio, video data that the video tube 20 resends, With the audio, video data that video tube 20 described in control 40 perform decoding of hardware decoder module resends, to obtain again The step of decoded voice data and video data;Wherein, the audio, video data that the video tube 20 resends is institute State the audio, video data that video tube 20 is reacquired according to the positioning playing information that the play control module 10 sends.
In the present embodiment, it is when described information is the positioning playing information that the play control module 10 sends, described Video player is in positioning playing state, wherein, the positioning playing refers to that selection fixed position commences play out.It is concrete to perform Process is:Positioning playing information is sent to 20 He of video tube after positioning playing information is received by play control module 10 Hardware abstraction layer module 30.The video tube 20 after positioning playing information is received empties data source modules 21 and demultiplexes With the caching of module 22, and new play position information is produced with by the new play position according to the positioning playing information Information is sent to data source modules 21.Data source modules 21 re-read audio, video data according to new play position information, and By the audio, video data for re-reading output to demultiplexing module 22.The demultiplexing module 22 parses the data source modules 21 The original audio, video data for resending is to obtain new audio, video data, and new audio, video data output is arrived hardware Abstraction layer module 30.And hardware abstraction layer module 30 is after positioning playing message is received, hardware decoder module 40 and hard is emptied The caching of part display module 50;And after the audio, video data of the transmission of demultiplexing module 22 is received again, the hardware abstraction The audio, video data for receiving is decoded to generate video data and audio frequency number by the layer control hardware of module 30 decoder module 40 According to, and shown and exported by hardware display module 50.
During whole positioning playing be can be seen that from above-mentioned implementation procedure, the video tube 20 has simply carried out clear The operation of empty buffer, other handling processes are consistent with the quick playing flow that starts, therefore need not carry out other modules switching behaviour Make, while the hardware decoder module 40 and hardware display module 50 are emptied caching and can be regarded with the sound of video tube 20 Frequency flow chart of data processing is synchronously carried out, and further improves the response speed of positioning playing.
Additionally, the present invention also provides a kind of video playing control method, referring to Fig. 5, in the first embodiment of the present invention, The video playing control method is comprised the following steps:
Step S100, hardware abstraction layer module receive the information of play control module and/or video tube;
Step S200, the hardware abstraction layer module show mould to hardware decoder module and/or hardware according to described information Block is controlled operation.
The embodiment of the present invention suitable for the video player based on Gstreamer, Gstreamer be it is a kind of increase income it is many Media framework, is widely used in the video playback of the intelligent terminals such as intelligent television, Set Top Box, its software module at present The degree of change is high and module between there is good loose coupling, facilitate developer quickly to realize the exploitation of New function and daily Safeguard.
It should be noted that current video tube includes data source modules, demultiplexing module, decoder module and display Module, when video playback is carried out by video tube, upper layer application can control the video by play control module and lead to The module status of module or inquiry video channel inner module in road.Above-mentioned module status specifically refer to perform behaviour in video channel During work, each module has four states, respectively GST_STATE_NULL (default conditions), GST_STATE_ READY (SBR), GST_STATE_PAUSED (halted state) and GST_STATE_PLAYING (running status).Wherein The resource that current block takes during default conditions can be released;During SBR, the current block in the state can obtain institute Global resource needed for having, these global resources will be used by the data flow of the module;During halted state, in the shape The module of state can change the positional information of data flow, read or Treatment Analysis video data;During running status, in the state Module except operation clock be currently running in addition to, other states are consistent with halted state.It can thus be seen that with regard to halted state and The difference effect of running status is fewer, when the data source modules in video tube, demultiplexing module and decoder module reach After halted state, with regard to the operation that can be demultiplexed to data and decoded, compared with running status, can not simply pass through Video tube obtains time stamp, it is impossible to carries out positioning playing by video tube 20 and suspends play operation.Therefore can be by setting SDK (Software Development Kit, SDK) module is put, the SDK modules include hardware abstraction layer Module, hardware decoder module and hardware display module, by decoding operate and show that operation is placed on outside video tube, and then allow and broadcast Put control operation and system decoding display region be directly facing hardware abstraction layer module, so as to pass through hardware abstraction layer module control hardware Decoder module and hardware display module.The currently playing time can be obtained by hardware directly, and perform positioning playing and time-out Operation, the internal module being prevented effectively from video channel need the problem of frequent switching state, accelerate player response speed, contracting Short response time.
Referring to Fig. 6, video playback controlling party of the present invention is proposed based on video playing control method first embodiment of the present invention Method second embodiment, in the present embodiment, described information includes the audio, video data and encoding and decoding letter of the video tube transmission Breath;Step S200 includes:
Step S211, when audio, video data and the coding/decoding information that the video tube sends is received, the hardware Abstraction layer module controls the hardware decoder module execution and the audio, video data is decoded according to the coding/decoding information, The step of to obtain video data and voice data;
Step S212, after the hardware decoder module obtains video data and voice data, the hardware abstraction layer mould Block controls the hardware display module and shows the video data and the output voice data.
It should be noted that the module that above-mentioned video tube is included can be configured according to actual needs, and alternatively, institute Stating video tube includes data source modules and demultiplexing module.In the present embodiment, when described information is sent out for the video tube When the audio, video data for sending and coding/decoding information, i.e., current video player plays Booting sequence in quick, now the number According to source module, for obtaining original audio, video data and the corresponding parameter information of the original audio, video data, and according to described Parameter information triggers the video tube and loads corresponding demultiplexing module;The demultiplexing module, for parsing the data The original audio, video data that source module is obtained, to extract the audio, video data and the coding/decoding information.
Specifically, when in quick broadcasting Booting sequence, play control module is in the media file for receiving outside Create video tube after play command, and the address information of media file be sent to into the video tube, video tube according to The address information of media file loads corresponding data source modules.The data source modules obtain original audio, video data, and right The original audio, video data is parsed, it is to be resolved after the completion of extract corresponding parameter information, then according to the parameter Information triggering video tube loading demultiplexing module, now, data source modules and demultiplexing module are switched to standard from default conditions Standby state.
The demultiplexing module is parsed to the original audio, video data that data source modules are obtained, to extract encoding and decoding letter Then the coding/decoding information and audio, video data are sent to the hardware abstraction layer module by breath and audio, video data.It is described After coding/decoding information and audio, video data is received, initiating hardware decoder module and hardware show mould to hardware abstraction layer module Block, now, data source modules and demultiplexing module are switched to halted state by SBR.It should be noted that above-mentioned sound is regarded Frequency can be created according to the difference of the address information of media file according to the file to possess image and sound, the video tube Different types of data source modules, common data source modules type include HTTP (HyperText Transfer Protocol, HTML (Hypertext Markup Language)) and RSTP (Rapid Spanning Tree Protocol, RSTP) Deng;Common demultiplexing module type includes ts_demux, mp4_demux and flv_demux etc.;The demultiplexing module also can Different coding/decoding informations are loaded according to the different parameters information type of original audio, video data.
When the hardware decoder module receives the audio, video data of the hardware abstraction layer module transfer and encoding and decoding letter After breath, the audio, video data is decoded according to the coding/decoding information, and by decoded voice data and video counts According to hardware display module is sent to, so that hardware display module shows video data and exports voice data.It should be noted that Above-mentioned video data is the file for possessing image, and above-mentioned voice data is the file for possessing sound.From such scheme, regarding In frequency passage, all modules only need to be switched to SBR from default conditions, then be switched to halted state from SBR, omit Running status, while the video tube is when video playback is carried out, without the need for built-in decoder module and display module, therefore contracts The short operation response time of video tube.
Referring to Fig. 7, video playback controlling party of the present invention is proposed based on video playing control method second embodiment of the present invention Method 3rd embodiment, in the present embodiment, described information also includes the time-out information that the play control module sends;The step Rapid S200 also includes:
Step S220, the time-out information that the hardware abstraction layer module is sent according to the play control module block institute State video tube and be input into the audio, video data, and control the hardware decoder module and hardware display module stopping fortune OK.
In the present embodiment, when described information is the time-out information that the play control module sends, the video is broadcast Put device and be in and suspend in playing flow.Concrete implementation procedure is play control module after suspending message is received, and is taken out to hardware As layer module sends suspending message.Wherein, the suspending message is that the video that the video player is being played by request is temporary The operational order for stopping.The hardware abstraction layer module after suspending message is received, the audio, video data of blocked video pipeline Input, and pausing operation is carried out to hardware decoder module and hardware display module.Now, video tube audio, video data output Blocked, data processing is suspended, and need not process suspending message, need not more carry out the switching between internal module state, because When time-out play operation is carried out, video tube is passively to stop audio, video data output, internal module to this video player Between need not carry out state switching, without operation, it is achieved that quick response.
It should be noted that after receiving broadcasting message during play control module here is suspended again, wherein, it is described The operational order that message is that request video player plays video is played, the play control module can pass through hardware abstraction layer Module control hardware decoder module is performed and recovers decoding operate, and the execution of hardware display module is recovered to show operation, so as to reach To the purpose for recovering to play, additionally, recover process being actively engaged in without video channel played, when receiving broadcasting message Afterwards, the hardware abstraction layer module stops the audio frequency and video of the i.e. achievable video channel of audio frequency and video input of the obstruction video channel Data output.
Referring to Fig. 8, video playback controlling party of the present invention is proposed based on video playing control method second embodiment of the present invention Method fourth embodiment, in the present embodiment, described information also includes the positioning playing information that the play control module sends;Institute Stating step S200 also includes:
Step S230, the hardware abstraction layer module control the hardware solution after the positioning playing information is received Code module and the hardware display module empty caching, and receive the audio, video data that the video tube resends, to control The audio, video data that video tube described in making the hardware decoder module perform decoding resends, it is again decoded to obtain The step of voice data and video data;Wherein, the audio, video data that the video tube resends is the video tube The audio, video data that the positioning playing information that the play control module according to receiving sends is reacquired.
In the present embodiment, it is when described information is the positioning playing information that the play control module sends, described to regard Frequency player is in positioning playing state, wherein, the positioning playing refers to that selection fixed position commences play out.Specifically performed Cheng Wei:Positioning playing information after positioning playing information is received is sent to video tube and hardware is taken out by play control module As layer module.The video tube empties the caching of data source modules and demultiplexing module after positioning playing information is received, And produce new play position information the new play position information is sent to data according to the positioning playing information Source module.Data source modules re-read audio, video data according to new play position information, and by the audio frequency and video for re-reading Data output is to demultiplexing module.The demultiplexing module parses the original audio frequency and video that the data source modules resend Data are to obtain new audio, video data, and new audio, video data output is arrived hardware abstraction layer module.And hardware abstraction layer Module empties the caching of hardware decoder module and hardware display module after positioning playing message is received;And ought receive again After the audio, video data sent to demultiplexing module, the hardware abstraction layer module controls hardware decoder module by the sound for receiving Video data is decoded to generate video data and voice data, and is shown and exported by hardware display module.
During whole positioning playing be can be seen that from above-mentioned implementation procedure, the video tube is simply emptied The operation of buffering, other handling processes are consistent with the quick playing flow that starts, therefore need not carry out other module handover operations, Simultaneously the hardware decoder module and hardware display module empty caching can with the audio, video data of video tube at Reason flow process is synchronously carried out, and further improves the response speed of positioning playing.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of video playback control device, the video playback control device include play control module and video tube, its It is characterised by, the video playback control device also includes hardware abstraction layer module, hardware decoder module and hardware display module; The hardware abstraction layer module receives the information of the play control module and/or the video tube, and according to described information Operation is controlled to the hardware decoder module and/or the hardware display module.
2. video playback control device as claimed in claim 1, it is characterised in that described information includes that the video tube is sent out The audio, video data for sending and coding/decoding information;
The hardware abstraction layer module, is additionally operable to when the audio, video data and coding/decoding information that receive the video tube transmission When, control the hardware decoder module execution and the audio, video data is decoded according to the coding/decoding information, to obtain The step of video data and voice data;
The hardware display module, for showing video data, and exports the voice data.
3. video playback control device as claimed in claim 2, it is characterised in that the video tube includes data source modules And demultiplexing module;
The data source modules, for obtaining original audio, video data and the corresponding parameter information of the original audio, video data, And the corresponding demultiplexing module of the video tube loading is triggered according to the parameter information;
The demultiplexing module, for parsing the original audio, video data that the data source modules are obtained, is regarded with extracting the sound Frequency evidence and the coding/decoding information.
4. video playback control device as claimed in claim 3, it is characterised in that described information also includes described playing control The time-out information that module sends;
The hardware abstraction layer module, is additionally operable to the time-out information sent according to the play control module, blocks the video Pipeline is input into the audio, video data, and controls the hardware decoder module and the hardware display module is out of service.
5. video playback control device as claimed in claim 3, it is characterised in that described information also includes described playing control The positioning playing information that module sends;
The hardware abstraction layer module, is additionally operable to after the positioning playing information is received, and controls the hardware decoder module Caching is emptied with the hardware display module, and receives the audio, video data that the video tube resends, it is described to control The audio, video data that video tube described in hardware decoder module perform decoding resends, to obtain decoded audio frequency number again According to and the step of video data;Wherein, the audio, video data that the video tube resends is the video tube according to institute State the audio, video data that the positioning playing information of play control module transmission is reacquired.
6. a kind of video playing control method, it is characterised in that the video playing control method is comprised the following steps:
Hardware abstraction layer module receives the information of play control module and/or video tube;
The hardware abstraction layer module is controlled behaviour to hardware decoder module and/or hardware display module according to described information Make.
7. video playing control method as claimed in claim 6, it is characterised in that described information includes that the video tube is sent out The audio, video data for sending and coding/decoding information;The hardware abstraction layer module according to described information to hardware decoder module and/or The step of hardware display module is controlled operation includes:
When audio, video data and the coding/decoding information that the video tube sends is received, the hardware abstraction layer module control The hardware decoder module is performed and the audio, video data is decoded according to the coding/decoding information, to obtain video data And the step of voice data;
After the hardware decoder module obtains video data and voice data, the hardware abstraction layer module controls the hardware Display module shows the video data and the output voice data.
8. video playing control method as claimed in claim 7, it is characterised in that the video tube includes data source modules And demultiplexing module;It is described to include the step of receive audio, video data and the coding/decoding information that the video tube sends:
The hardware abstraction layer module receives the demultiplexing module and parses the audio, video data extracted by original audio, video data And coding/decoding information;Wherein, the demultiplexing module is obtaining the original audio, video data and institute for the data source modules After stating the corresponding parameter information of original audio, video data, the demultiplexing of the video tube loading is triggered according to the parameter information Module.
9. video playing control method as claimed in claim 7, it is characterised in that described information also includes described playing control The time-out information that module sends;The hardware abstraction layer module is shown to hardware decoder module and/or hardware according to described information The step of module is controlled operation includes:
The time-out information that the hardware abstraction layer module is sent according to the play control module, blocks the video tube input The audio, video data, and control the hardware decoder module and the hardware display module is out of service.
10. video playing control method as claimed in claim 7, it is characterised in that described information also includes described playing control The positioning playing information that molding block sends;The hardware abstraction layer module is according to described information to hardware decoder module and/or hard The step of part display module is controlled operation includes:
The hardware abstraction layer module controls the hardware decoder module and described hard after the positioning playing information is received Part display module empties caching, and receives the audio, video data that the video tube resends, to control the hardware decoding The audio, video data that video tube described in module perform decoding resends, to obtain decoded voice data and video again The step of data;Wherein, the audio, video data that the video tube resends is the video tube according to the institute for receiving State the audio, video data that the positioning playing information of play control module transmission is reacquired.
CN201611270949.9A 2016-12-30 2016-12-30 Video playing control device and method Active CN106604115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611270949.9A CN106604115B (en) 2016-12-30 2016-12-30 Video playing control device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611270949.9A CN106604115B (en) 2016-12-30 2016-12-30 Video playing control device and method

Publications (2)

Publication Number Publication Date
CN106604115A true CN106604115A (en) 2017-04-26
CN106604115B CN106604115B (en) 2020-08-14

Family

ID=58582015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611270949.9A Active CN106604115B (en) 2016-12-30 2016-12-30 Video playing control device and method

Country Status (1)

Country Link
CN (1) CN106604115B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360470A (en) * 2017-08-16 2017-11-17 青岛海信电器股份有限公司 Player method and device, the electronic equipment of a kind of media file
CN114466231A (en) * 2021-12-15 2022-05-10 瑞芯微电子股份有限公司 Method for receiving and playing hardware source, electronic equipment and display device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120042310A1 (en) * 2010-02-14 2012-02-16 Nokia Corporation Method, apparatus and computer program product for platform independent framework
CN103309680A (en) * 2013-07-03 2013-09-18 苏州科达科技股份有限公司 Hierarchical design method and system for multimedia host
CN103796049A (en) * 2013-12-10 2014-05-14 中山大学深圳研究院 Dual core-based smart media player system design method
CN104333808A (en) * 2014-11-14 2015-02-04 复旦大学 General player applied to Android and Linux smart televisiosn
CN104394456A (en) * 2014-11-20 2015-03-04 福建星网视易信息***有限公司 Method and device for decoding audios and videos in embedded environment
CN104394475A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Streaming media file playing method and media player
CN105472457A (en) * 2015-03-27 2016-04-06 深圳Tcl数字技术有限公司 Video-based starting playing method and video starting device
CN105744344A (en) * 2014-12-11 2016-07-06 深圳Tcl数字技术有限公司 playing control method and system
CN105828126A (en) * 2016-03-14 2016-08-03 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120042310A1 (en) * 2010-02-14 2012-02-16 Nokia Corporation Method, apparatus and computer program product for platform independent framework
CN103309680A (en) * 2013-07-03 2013-09-18 苏州科达科技股份有限公司 Hierarchical design method and system for multimedia host
CN103796049A (en) * 2013-12-10 2014-05-14 中山大学深圳研究院 Dual core-based smart media player system design method
CN104333808A (en) * 2014-11-14 2015-02-04 复旦大学 General player applied to Android and Linux smart televisiosn
CN104394456A (en) * 2014-11-20 2015-03-04 福建星网视易信息***有限公司 Method and device for decoding audios and videos in embedded environment
CN104394475A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Streaming media file playing method and media player
CN105744344A (en) * 2014-12-11 2016-07-06 深圳Tcl数字技术有限公司 playing control method and system
CN105472457A (en) * 2015-03-27 2016-04-06 深圳Tcl数字技术有限公司 Video-based starting playing method and video starting device
CN105828126A (en) * 2016-03-14 2016-08-03 联想(北京)有限公司 Information processing method and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360470A (en) * 2017-08-16 2017-11-17 青岛海信电器股份有限公司 Player method and device, the electronic equipment of a kind of media file
CN107360470B (en) * 2017-08-16 2020-01-24 青岛海信电器股份有限公司 Media file playing method and device and electronic equipment
CN114466231A (en) * 2021-12-15 2022-05-10 瑞芯微电子股份有限公司 Method for receiving and playing hardware source, electronic equipment and display device
CN114466231B (en) * 2021-12-15 2024-01-23 瑞芯微电子股份有限公司 Method for receiving and playing hardware source, electronic equipment and display device

Also Published As

Publication number Publication date
CN106604115B (en) 2020-08-14

Similar Documents

Publication Publication Date Title
US9491505B2 (en) Frame capture and buffering at source device in wireless display system
KR20140007907A (en) Transmission device, transmission method, receiving device, receiving method, program, and broadcasting system
KR102126257B1 (en) Method for providing of multi-view streaming service, and apparatus therefor
CN101322408A (en) Triggerless interactive television
US9298601B2 (en) Conditional processing method and apparatus
JP5590881B2 (en) Method and apparatus for reconstructing media from media representation
CN107484011B (en) Video resource decoding method and device
CN101883097A (en) Method and device for realizing that server equipment shares screen of client equipment
US9578333B2 (en) Method for decreasing the bit rate needed to transmit videos over a network by dropping video frames
JP2011518526A (en) Terminal user interface device and method for rich media service
CN101202919B (en) Digital television receiver and intermediate part
CN106604115A (en) Video play control device and method
KR20090005510A (en) Method and apparatus for receiving digital broadcasting file data
CN104702758B (en) A kind of terminal and its method for managing multimedia notepad
CN103414939B (en) A kind of channel switching method and device
KR20030063694A (en) Software upgrade apparatus and method for digital broadcasting receiver
CN114125542B (en) Video insertion method and device for realizing single-channel hardware decoder based on software mode
CN102123320A (en) Information sending and receiving method and system based on bidirectional digital television network
CN105120323A (en) Distributed player task scheduling method and system
CN104333765A (en) Processing method and device of video live streams
CN202258375U (en) Double-chip audio/ video player and mobile terminal
CN106507194A (en) A kind of Android intelligent television scene management method
CN113630643A (en) Media stream recording method and device, computer storage medium and electronic equipment
CN110602061A (en) Method, system and equipment for expanding network protocol and format of android player
WO2011079628A1 (en) China mobile multimedia broadcasting player and playing method

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