CN102811383A - Video file playing method and device based on set top box - Google Patents

Video file playing method and device based on set top box Download PDF

Info

Publication number
CN102811383A
CN102811383A CN201210232932XA CN201210232932A CN102811383A CN 102811383 A CN102811383 A CN 102811383A CN 201210232932X A CN201210232932X A CN 201210232932XA CN 201210232932 A CN201210232932 A CN 201210232932A CN 102811383 A CN102811383 A CN 102811383A
Authority
CN
China
Prior art keywords
video file
data
container format
video
box chip
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.)
Pending
Application number
CN201210232932XA
Other languages
Chinese (zh)
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 Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics 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 Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN201210232932XA priority Critical patent/CN102811383A/en
Publication of CN102811383A publication Critical patent/CN102811383A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to the field of a set top box and discloses a video file playing method and device based on the set top box. The method comprises the following steps of: converting video files with different container formats into a container format which is supported by a set top box chip; and calling a driving interface and utilizing a data injection manner to play the files with the container format which is supported by the set top box chip. The video file playing device based on the set top box comprises a converting device for converting the video files with the different container formats into the container format which is supported by the set top box chip, and a playing device for calling the driving interface and utilizing the data injection manner to play the files with the container format which is supported by the set top box chip. According to the video file playing method and device based on the set top box disclosed by the invention, advantages of software decoding and set top box chip decoding are combined, so that the previous middle-low-end set top box which only can support the direct playing of single video format can support the playing of the various video files, and the video files with the greater resolution ratio can be smoothly played.

Description

A kind of video file broadcasting method and device based on STB
Technical field
The present invention relates to the set-top box technique field, relate in particular to a kind of video file broadcasting method and device based on STB.
Background technology
At present; The method that STB satisfies the video file broadcast of different-format generally has two kinds: the one, and the software of STB has the function of video decode; Can be the supported data format of set-top-box chip with the video file data decode of different-format; The file transfers of this data format is given to drive and is play, and this method generally is used to play better simply video file.Another kind method is the function that set-top-box chip carries video decode, and the software of STB directly passes to video file to drive and plays, and this method relies on the video decoding capability of set-top-box chip fully, generally needs special video decoding chip.
STB chip system resource consumption is big when using above-mentioned first method; Playing efficiency is low; Performance requirement to set-top-box chip is very high; This method of STB employing of low and middle-end decode rate can occur when decoding than the video file of big resolution and not catch up with playback rate, thereby causes the slack problem of video playback.And the set-top-box chip of low and middle-end is generally only paid close attention to the playing function of DVB; Only support the broadcast of TS formatted file; Therefore because it does not support the broadcast of the file of other form of the overwhelming majority except that the TS form, can't adopt second method to realize the broadcast of the video file of multiple form.
Summary of the invention
The problems referred to above to prior art; Technical problem to be solved by this invention provides a kind of video file broadcasting method and device based on STB; Make the STB that can only support the low and middle-end of play-overing of more single video format originally can support the broadcast of various video file, and the video file of the big resolution of broadcast that can be smooth.
A kind of video file broadcasting method based on STB provided by the invention may further comprise the steps:
Convert the video file of different vessels form into Container Format that set-top-box chip is supported;
Call driving interface, the mode that adopts data to inject is play the video file of the Container Format of said set-top-box chip support.
As a kind of possible execution mode, said video file with the different vessels form converts the step of the Container Format of set-top-box chip support to, specifically can comprise:
The data of video file that read said different vessels form in order are in internal memory, to start flow path switch;
File header to the video file of said different vessels form is resolved, to obtain the Container Format of this document;
According to said Container Format, be that the data that comprise in the video file of unit with said different vessels form are unpacked with the frame of video, obtain audio, video data and with the audio-visual synchronization relevant control information irrelevant with Container Format;
Reach the control information relevant according to said with the irrelevant audio, video data of Container Format, data encapsulation is become the frame data of the Container Format of said set-top-box chip support with audio-visual synchronization.
The Container Format of said set-top-box chip support is the TS form.
Wherein, the Container Format of said set-top-box chip support can be the TS form.
Correspondingly, the said driving interface of calling, the mode that adopts data to inject is play specifically and can be comprised the video file of the Container Format of said set-top-box chip support:
Call driving interface, the mode that adopts data to inject is play the frame data that are packaged into the TS form.
A kind of video file playing device based on STB provided by the invention comprises:
Conversion equipment is used for converting the video file of different vessels form into Container Format that set-top-box chip is supported;
Playing device is used to call driving interface, and the mode that adopts data to inject is play the video file of the Container Format of said set-top-box chip support.
Wherein, conversion equipment can comprise:
First module, the data of video file that are used for reading in order said different vessels form are to internal memory, to start flow path switch;
Unit second, the data of the said video file that is used for reading according to first module are resolved the file header of the video file of said different vessels form, to obtain the Container Format of this document;
Unit the 3rd; Be used for the said Container Format that obtains according to Unit second; With the frame of video is that the data that comprise in the video file of unit with said different vessels form are unpacked, and obtains audio, video data and with the audio-visual synchronization relevant control information irrelevant with Container Format;
Unit the 4th, the irrelevant audio, video data of said and Container Format that is used for obtaining according to Unit second reaches the control information relevant with audio-visual synchronization, data encapsulation is become the frame data of the Container Format of said set-top-box chip support.
Wherein, the Container Format of said set-top-box chip support can be the TS form.
Correspondingly, said playing device specifically is used to call driving interface, and the mode that adopts data to inject is play the frame data that are packaged into the TS form.
A kind of advantage that has combined software decode and set-top-box chip decoding based on the video file broadcasting method and the device of STB provided by the invention; Make the STB that can only support the low and middle-end of play-overing of more single video format originally can support the broadcast of various video file, and the video file of the big resolution of broadcast that can be smooth.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; To do to introduce simply to the accompanying drawing of required use among the embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of video file broadcasting method flow chart based on STB that the embodiment of the invention one provides;
Fig. 2 is the method flow diagram that a kind of video file with the different vessels form that the embodiment of the invention two provides converts the Container Format that set-top-box chip supports into;
Fig. 3 is the structural representation of a kind of video file playing device based on STB of providing of the embodiment of the invention three;
Fig. 4 is the structural representation of a kind of video file playing device based on STB of providing of the embodiment of the invention four.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of video file broadcasting method and device based on STB; Make the STB that can only support the low and middle-end of play-overing of more single video format originally can support the broadcast of various video file, and the video file of the big resolution of broadcast that can be smooth.Below be elaborated respectively.
See also Fig. 1, Fig. 1 is the flow chart of a kind of video file broadcasting method based on STB of providing of the embodiment of the invention one.As shown in Figure 1, should can may further comprise the steps based on the video file broadcasting method of STB.
101, the video file with the different vessels form converts the Container Format that set-top-box chip is supported into.
102, call driving interface, the mode that adopts data to inject is play the Container Format file of set-top-box chip support.
At present, the set-top-box chip of low and middle-end is generally only paid close attention to the playing function of DVB, and therefore, the STB of low and middle-end is generally only supported the broadcast of TS formatted file.That is to say, in the above-mentioned steps 101, can the video file of different vessels form be converted into the TS form that set-top-box chip is supported.
In the embodiment of the invention, when the Container Format of STB support was the TS form, the video file with the different vessels form in the above-mentioned steps 101 converts the concrete implementation method of the Container Format that set-top-box chip supports into can be as shown in Figure 2, may further comprise the steps:
201, the data of video file that read the different vessels form in order are in internal memory, to start flow path switch.
Wherein, the Data Source of the video file of above-mentioned different vessels form can be local flash card or internal memory, perhaps http network data.
Wherein, step 201 does not need once to run through the entire video data collection when reading of data, but can carry out with the mode of the conversion while reading.
202, the file header of the video file of different vessels form is resolved, to obtain the Container Format of this document.
Wherein, the file header of the video file of step 202 pair different vessels form is resolved and can also be obtained: global informations such as audio, video data descriptor that video file comprises and file duration, code check, frame per second.
203, according to the said vesse form, be that the data that comprise in the video file of unit with said different vessels form are unpacked with the frame of video, obtain audio, video data and with the audio-visual synchronization relevant control information irrelevant with Container Format.
Wherein, the data that comprise in the above-mentioned video file to the different vessels form are unpacked and are realized by software.
204, based on the standard of TS form,, data encapsulation is become the frame data of TS form according to reaching the control information relevant with audio-visual synchronization with the irrelevant audio, video data of Container Format.
205, call driving interface, the mode that adopts data to inject is play the frame data that are packaged into the TS form.
The embodiment of the invention is used software mode, and different video file formats is converted into the TS form, and owing to a convert file form is not decoded, so amount of calculation is little, and efficient is higher.At present, the STB of main flow low and middle-end is all supported to annotate and is put broadcast, so the scheme that provides of the embodiment of the invention can realize that the STB of low and middle-end supports the broadcast of various video file, and can reach smooth result of broadcast.
In the embodiment of the invention; Processing method when set-top-box chip is supported file to inject the Container Format of playing be other form is identical when being the TS form; Difference only is data encapsulation is become the frame data that adapt with other above-mentioned form, gives unnecessary details its process here no longer one by one.
See also Fig. 3, Fig. 3 is the structural representation of a kind of video file playing device based on STB of providing of the embodiment of the invention three.As shown in Figure 3, should can comprise based on the video file playing device of STB:
Conversion equipment 301 is used for converting the video file of different vessels form into Container Format that set-top-box chip is supported.
Wherein, the Container Format of set-top-box chip support can be the TS form.
Playing device 302 is used to call driving interface, and the mode that adopts data to inject is play the video file of the Container Format of set-top-box chip support.
Please consult Fig. 4 in the lump, Fig. 4 is the structural representation of a kind of video file playing device based on STB of providing of the embodiment of the invention four.Wherein, Video file playing device based on STB shown in Figure 4 is to be optimized by the video file playing device based on STB shown in Figure 3 to obtain, shown in Figure 4 based on the video file playing device of STB in conversion equipment 301 can comprise:
First module 3011, the data of video file that are used for reading in order the different vessels form are to internal memory, to start flow path switch.
Second unit 3012, the data of the video file that is used for reading according to first module 3011 are resolved the file header of the video file of different vessels form, to obtain the Container Format of this document.
Wherein, the file header of the video file of the 3022 pairs of different vessels forms in Unit second is resolved and can also be obtained: global informations such as audio, video data descriptor that video file comprises and file duration, code check, frame per second.
The 3rd unit 3013; Be used for the said Container Format that obtains according to second unit 3012; With the frame of video is that the data that comprise in the video file of unit with the different vessels form are unpacked, and obtains audio, video data and with the audio-visual synchronization relevant control information irrelevant with Container Format.
The 4th unit 3014 is used for data encapsulation being become the frame data of the Container Format (being the TS form) of set-top-box chip support according to Unit the 3rd 3013 audio, video data and control informations relevant with audio-visual synchronization that have nothing to do with Container Format that obtain.
Correspondingly, in Fig. 3, the video file playing device based on STB shown in Figure 4, playing device 302 specifically is used to call driving interface, and the mode that adopts data to inject is play the frame data that are packaged into the TS form.
The video playback apparatus based on STB that the embodiment of the invention provides has combined the advantage of software decode and set-top-box chip decoding; Different video file formats is converted into the Container Format that STB is supported; Because a convert file form is not decoded; Therefore amount of calculation is little, and efficient is higher.At present, the STB of main flow low and middle-end is all supported to annotate and is put broadcast, so the scheme of present embodiment can realize that the STB of low and middle-end supports the broadcast of various video file, and can reach smooth result of broadcast.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
Above disclosedly be merely preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (8)

1. the video file broadcasting method based on STB is characterized in that, comprising:
Convert the video file of different vessels form into Container Format that set-top-box chip is supported;
Call driving interface, the mode that adopts data to inject is play the video file of the Container Format of said set-top-box chip support.
2. video file broadcasting method according to claim 1 is characterized in that,
Said video file with the different vessels form converts the Container Format that set-top-box chip is supported into, and step comprises:
The data of video file that read said different vessels form in order are in internal memory, to start flow path switch;
File header to the video file of said different vessels form is resolved, to obtain the Container Format of this document;
According to said Container Format, be that the data that comprise in the video file of unit with said different vessels form are unpacked with the frame of video, obtain audio, video data and with the audio-visual synchronization relevant control information irrelevant with Container Format;
Reach the control information relevant according to said with the irrelevant audio, video data of Container Format, data encapsulation is become the frame data of the Container Format of said set-top-box chip support with audio-visual synchronization.
3. video file broadcasting method according to claim 2 is characterized in that, the Container Format of said set-top-box chip support is the TS form.
4. video file broadcasting method according to claim 3; It is characterized in that; The said driving interface of calling; The mode that adopts data to inject is play the video file of the Container Format of said set-top-box chip support and comprised: call driving interface, the mode that adopts data to inject is play the frame data that are packaged into the TS form.
5. the video file playing device based on STB is characterized in that, comprising:
Conversion equipment is used for the video file of different vessels form is converted into the Container Format that the top box chip is supported;
Playing device is used to call driving interface, and the mode that adopts data to inject is play the video file of the Container Format of said set-top-box chip support.
6. video file playing device according to claim 5 is characterized in that, said conversion equipment comprises:
First module, the data of video file that are used for reading in order said different vessels form are to internal memory, to start flow path switch;
Unit second, the data of the said video file that is used for reading according to first module are resolved the file header of the video file of said different vessels form, to obtain the Container Format of this document;
Unit the 3rd; Be used for the said Container Format that obtains according to Unit second; With the frame of video is that the data that comprise in the video file of unit with said different vessels form are unpacked, and obtains audio, video data and with the audio-visual synchronization relevant control information irrelevant with Container Format;
Unit the 4th, the irrelevant audio, video data of said and Container Format that is used for obtaining according to Unit the 3rd reaches the control information relevant with audio-visual synchronization, data encapsulation is become the frame data of the Container Format of said set-top-box chip support.
7. video file playing device according to claim 6 is characterized in that, the Container Format of said set-top-box chip support is the TS form.
8. video file playing device according to claim 7 is characterized in that, said playing device specifically is used to call driving interface, and the mode that adopts data to inject is play the frame data that are packaged into the TS form.
CN201210232932XA 2012-07-06 2012-07-06 Video file playing method and device based on set top box Pending CN102811383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210232932XA CN102811383A (en) 2012-07-06 2012-07-06 Video file playing method and device based on set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210232932XA CN102811383A (en) 2012-07-06 2012-07-06 Video file playing method and device based on set top box

Publications (1)

Publication Number Publication Date
CN102811383A true CN102811383A (en) 2012-12-05

Family

ID=47234940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210232932XA Pending CN102811383A (en) 2012-07-06 2012-07-06 Video file playing method and device based on set top box

Country Status (1)

Country Link
CN (1) CN102811383A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103400064A (en) * 2013-08-20 2013-11-20 北京网秦天下科技有限公司 Method and equipment for encrypting and decrypting file
CN104023260A (en) * 2013-02-28 2014-09-03 腾讯科技(深圳)有限公司 Hardware decoding implementation method and device, and player
CN104394456A (en) * 2014-11-20 2015-03-04 福建星网视易信息系统有限公司 Method and device for decoding audios and videos in embedded environment
CN108141624A (en) * 2015-10-13 2018-06-08 三星电子株式会社 For the method and apparatus sent and received of multi-medium data
CN114189728A (en) * 2021-12-13 2022-03-15 深圳市日声数码科技有限公司 Playing system for converting digital video and audio input into analog format

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060447A (en) * 2006-04-21 2007-10-24 张伟明 IP network-based method and system for realizing the multi-media communication
CN101605243A (en) * 2008-06-12 2009-12-16 华为技术有限公司 The method that program provides, media device and user side equipment
US20110032856A1 (en) * 2008-04-18 2011-02-10 Kazunori Ozawa Gateway apparatus, method and program
CN202095051U (en) * 2011-03-17 2011-12-28 广东九联科技股份有限公司 Set-top box for converting video format

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060447A (en) * 2006-04-21 2007-10-24 张伟明 IP network-based method and system for realizing the multi-media communication
US20110032856A1 (en) * 2008-04-18 2011-02-10 Kazunori Ozawa Gateway apparatus, method and program
CN101605243A (en) * 2008-06-12 2009-12-16 华为技术有限公司 The method that program provides, media device and user side equipment
CN202095051U (en) * 2011-03-17 2011-12-28 广东九联科技股份有限公司 Set-top box for converting video format

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023260A (en) * 2013-02-28 2014-09-03 腾讯科技(深圳)有限公司 Hardware decoding implementation method and device, and player
CN104023260B (en) * 2013-02-28 2018-04-27 腾讯科技(深圳)有限公司 Hardware decoding realization method, device and player
CN103400064A (en) * 2013-08-20 2013-11-20 北京网秦天下科技有限公司 Method and equipment for encrypting and decrypting file
CN103400064B (en) * 2013-08-20 2016-08-24 北京网秦天下科技有限公司 For file encryption and the method and apparatus of deciphering
CN104394456A (en) * 2014-11-20 2015-03-04 福建星网视易信息系统有限公司 Method and device for decoding audios and videos in embedded environment
CN104394456B (en) * 2014-11-20 2017-12-01 福建星网视易信息系统有限公司 The method and device of audio/video decoding under a kind of embedded environment
CN108141624A (en) * 2015-10-13 2018-06-08 三星电子株式会社 For the method and apparatus sent and received of multi-medium data
CN108141624B (en) * 2015-10-13 2021-06-11 三星电子株式会社 Method and apparatus for transmission and reception of multimedia data
CN114189728A (en) * 2021-12-13 2022-03-15 深圳市日声数码科技有限公司 Playing system for converting digital video and audio input into analog format

Similar Documents

Publication Publication Date Title
CN102404624B (en) All-format media player capable of supporting hardware decoding for digital STB (Set Top Box)
KR102130429B1 (en) Method and device for decoding multimedia file
CN102811383A (en) Video file playing method and device based on set top box
CN104572686A (en) Method and device for processing PPT (power point) files
CN103051941B (en) A kind of method and system playing local video on a mobile platform
CN101540826A (en) Multi-media device for TV set and TV set
CN103731672A (en) Audio and video decoding method and smart television
CN113938470A (en) Method and device for playing RTSP data source by browser and streaming media server
CN101778287B (en) Digital television navigation method, system and device
CN105681893A (en) Method and device for decoding stream media video data
CN101741587B (en) Multimedia terminal playing PPT and method for playing PPT thereon
WO2022135105A1 (en) Video dubbing method and apparatus for functional machine, terminal device and storage medium
CN103841451A (en) Multimedia playing method, device and terminal
US20080106640A1 (en) Method of multiple stream formatting in a multimedia system
CN105898320A (en) Panorama video decoding method and device and terminal equipment based on Android platform
CN104768052A (en) Method and device for extracting voice frequency and subtitles according to language
CN101882079A (en) Method and device for recording multimedia web page
CN103747249A (en) Audio and video decoding method and android mobile terminal
US20150249861A1 (en) Broadcasting signal receiving apparatus and control method of the same
US20070024702A1 (en) Storage apparatus for digial/analog TV video/audio media
CN201629156U (en) Vehicular DVD navigation video and audio device with high-definition MP5 playing function
CN201467322U (en) Multi-channel digital television signal receiving device
CN101894556B (en) Method and device for testing audio decoding program
CN201607950U (en) Multimedia player
CN202153433U (en) High-definition network multimedia player

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121205