CN102110458A - Playing terminal as well as method and device for playing an audio/video file - Google Patents

Playing terminal as well as method and device for playing an audio/video file Download PDF

Info

Publication number
CN102110458A
CN102110458A CN2009101893741A CN200910189374A CN102110458A CN 102110458 A CN102110458 A CN 102110458A CN 2009101893741 A CN2009101893741 A CN 2009101893741A CN 200910189374 A CN200910189374 A CN 200910189374A CN 102110458 A CN102110458 A CN 102110458A
Authority
CN
China
Prior art keywords
video
audio
data
time
time marking
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
CN2009101893741A
Other languages
Chinese (zh)
Other versions
CN102110458B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN 200910189374 priority Critical patent/CN102110458B/en
Publication of CN102110458A publication Critical patent/CN102110458A/en
Application granted granted Critical
Publication of CN102110458B publication Critical patent/CN102110458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a playing terminal as well as a method and device for playing an audio/video file, wherein the method comprises the following steps: obtaining an audio time identifier and a video time identifier of audio/video data, and storing the identifiers in a playing data list which is set by a system; storing the audio data and the video data in a buffer area; matching the audio time identifier and video time identifier in the playing data list; when the audio time identifier is not matched with the video time identifier, identifying an audio/video frame corresponding to the time identifier as an error, skipping the audio/video frame corresponding to the time identifier, looking for an audio/video time identifier consistent with the audio/video time identifier; when the audio time identifier is consistent with the video time identifier, respectively transmitting the audio data and video data in the buffer area to an audio decoder and a video decoder; and playing the decoded audio data and video data. According to the invention, the playing of audios and videos to be consistent, and the playing quality is improved.

Description

The playing method and device of a kind of playback terminal and audio-video document thereof
Technical field
The invention belongs to multimedia technology field, be specifically related to the playing method and device of a kind of playback terminal and audio-video document thereof.
Background technology
Along with the continuous development of multimedia technology, the user is also more and more higher to the requirement of multimedia quality.
With MKV is example, MKV is a kind of media file of Matroska, also claim multimedia container (Multimedia Container), be a kind of novel multimedia encapsulation format, the caption stream of the audio frequency of the video of multiple different coding and 16 above different-formats and different language can be encapsulated in the middle of the MatroskaMedia file.
MKV is different from video code models such as DivX, XviD, also is different from audio coding forms such as MP3, Ogg.MKV just provides " combination " and " encapsulation " form of shell for above-mentioned these sounds, video.MKV can be understood as a kind of Container Format, and the XviD that has only video and have only the MP3 of audio frequency to combine, the form with a kind of multimedia medium occurs then.
MKV can use Media player Classic, BSplayer, ZoomPlayer player etc., even comprises Windows Media player.
Because MKV can hold video, audio frequency and the caption stream of number of different types coding, even if very files in stream media such as Feng Bi RealMedia and QuickTime are also included into by MKV, therefore MKV has almost become an omnipotent media container, uses constantly and popularizes.
Because MKV can encapsulate video, the audio frequency of various codings at present, so under the combination of multiple audio/video coding, general played in order according to the audio frequency and video of obtaining, because the difference of the complexity of various audio/video codings, consumption system resource, the decoding length service time difference that causes each frame audio, video data, if above-mentioned situation being accumulated to a certain degree gradually, the inconsistent situation of audio frequency time and video time will appear, and then cause tangible audio frequency and video asynchrony phenomenon, bring very big inconvenience for user's use.
Therefore, how keeping the synchronism of MKV sound intermediate frequency and video playback, improve play quality, is one of direction of multimedia technology field research.
Summary of the invention
The object of the present invention is to provide a kind of player method of audio-video document, be intended to keep the synchronism of Voice ﹠ Video broadcast, improve play quality.
The embodiment of the invention is achieved in that a kind of player method of audio-video document, said method comprising the steps of:
Obtain audio, video data sound intermediate frequency time marking and video time sign;
The audio frequency time marking and the video time that obtain are identified the played data tabulation that is stored to default;
Described voice data and video data are stored to buffer area;
Audio frequency time marking in the described played data tabulation and video time sign are mated;
When finding that audio frequency time marking and video time sign does not match, then the corresponding audio/video frames of time marking is designated mistake, and skips, seek the audio frequency and video time marking of audio frequency and video time marking unanimity;
When matching audio frequency time marking and video time sign when consistent, corresponding voice data and video data in the described buffer area are sent to audio decoder and Video Decoder respectively;
Decoded voice data and video data are play.
An also purpose of the embodiment of the invention is to provide a kind of playing device of audio-video document, it is characterized in that described device comprises:
The time marking acquisition module is used to obtain audio, video data sound intermediate frequency time marking and video time sign;
The time marking memory module, the audio frequency time marking and the video time that are used for obtaining identify the played data tabulation that is stored to default;
The audio, video data memory module is used for described voice data and video data are stored to buffer area;
The time marking matching module is used for the audio frequency time marking and the video time sign of described played data tabulation are mated;
Mark module is used for audio/video frames and is designated mistake, and skips this audio/video frames;
The audio, video data sending module is used for corresponding voice data of described buffer area and video data are sent to audio decoder and Video Decoder respectively; And
The audio, video data playing module is used for decoded voice data and video data are play.
The embodiment of the invention also provides a kind of playback terminal, and described terminal comprises the playing device of the audio-video document that the embodiment of the invention provides.
The embodiment of the invention is by being stored to the time marking of audio frequency and the time marking of video in the tabulation of one played data, simultaneously corresponding voice data and video data are stored to buffer area, when audio identification that in described played data tabulation, finds match time and video labeling, from described buffer area corresponding voice data and video data are sent to audio decoder and Video Decoder respectively, play, make the broadcast of audio frequency and video to be consistent, improve the quality of playing greatly, be beneficial to the popularization of playback terminal.
Description of drawings
Fig. 1 shows the process flow diagram of the player method of the audio-video document that the embodiment of the invention provides;
Fig. 2 shows the structural drawing of the playing device of the audio-video document that the embodiment of the invention provides.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is by being stored to the time marking of audio frequency and the time marking of video in the tabulation of one played data, simultaneously corresponding voice data and video data are stored to buffer area, when audio identification that in described played data tabulation, finds match time and video labeling, from described buffer area corresponding voice data and video data are sent to audio decoder and Video Decoder respectively, play.
Fig. 1 shows the flow process of the player method of the audio-video document that the embodiment of the invention provides.
In step S101, played data tabulation is set, this tabulation is used to deposit audio frequency time marking and video time sign;
For example, be that S1, S2......, video time sign T1, T2...... are example with the audio frequency time marking that obtains, the form that the played data tabulation can be set is as follows:
The audio frequency time marking The video time sign
S1 T1
S2 T2
...... ......
In specific implementation process, also can be not limited to the form of above table by other the mode of tabulation, do not enumerate one by one herein.
In step S102, obtain audio, video data sound intermediate frequency time marking S1, S2...... and video time sign T1, T2......;
In step S103, audio frequency time marking and the video time that obtains identified the played data tabulation that is stored to default, the played data that promptly above illustrates tabulation;
In step S104, described voice data and video data are stored to buffer area;
Wherein, be stored to the voice data of buffer area and video data herein and be time marking corresponding audio data and video data in the played data tabulation.
In step S105, set up related with video data with corresponding time marking the voice data that is stored in buffer area;
In this step,, make things convenient for the back to obtain corresponding voice data or video data according to time marking by setting up association.
In step S106, audio frequency time marking in the described played data tabulation and video time sign are mated;
For example, the audio frequency time marking S1 during above data playback is tabulated and video time sign T1, T2...... are mated one by one.
In step S107, judge that described video time is whether within the fluctuation range of described audio frequency time;
Wherein, whether the absolute value of the difference between described calculating video time and sound apparent time is in system is provided with the threshold values fluctuation range.For example, the absolute value of the difference between video time and sound apparent time is in the scope of 40ms, promptly satisfy when video time sign: (audio frequency time marking-40ms)≤video time sign≤(during audio frequency time marking+40ms), i.e. expression matches and the consistent audio frequency time marking of this video time sign.
If described video time outside the fluctuation range of described audio frequency time, then is designated mistake with the corresponding audio/video frames of time marking, and skips, seek the audio frequency and video time marking of audio frequency and video time marking unanimity.
In step S108, when matching audio frequency time marking and video time sign when consistent, according to corresponding voice data of the associative search of setting up among the step S105 and video data.
As the audio frequency time marking and the video time that match in the played data tabulation are marking matched, promptly satisfy the synchronous playing condition, then obtain the parameter of described time marking corresponding audio data and video data, send corresponding parameter message to data buffer area, requirement passes to the decoding that audio decoder and Video Decoder carry out Frame respectively with voice data and video data in the described time marking corresponding cache district.
In step S109, voice data and the video data that finds is sent to audio decoder and Video Decoder respectively;
In step S110, decoded voice data and video data are play;
In step S111, voice data and video data that deletion has been play are deleted described voice data and video data time corresponding sign simultaneously.
Voice data, video data and time corresponding sign by deletion has timely been play save storage space for the voice data of back and coupling, decoding and the broadcast of video data.
Fig. 2 shows the structure of the playing device of the audio-video document that the embodiment of the invention provides.Described device comprises that played data tabulation is provided with module 21, time marking acquisition module 22, time marking memory module 23, audio, video data memory module 24, time marking association and sets up module 25, time marking matching module 26, mark module 27, audio, video data sending module 28, audio, video data playing module 29 and storage space processing module 30.
Wherein, the played data tabulation is provided with module 21 played data tabulation is set, and this tabulation is used to deposit audio frequency time marking and video time sign;
The structure of concrete data playback tabulation is above being stated, repeats no more herein.
Time marking acquisition module 22 obtains audio, video data sound intermediate frequency time marking and video time sign;
Time marking memory module 23 identifies the played data tabulation that is stored to default with audio frequency time marking and the video time that obtains;
Audio, video data memory module 24 is stored to buffer area with described voice data and video data;
Wherein, be stored to the voice data of buffer area and video data herein and be time marking corresponding audio data and video data in the played data tabulation;
The time marking association is set up the Voice ﹠ Video that module 25 will be stored in buffer area and is set up related with corresponding time marking;
Audio frequency time marking and video time sign in 26 pairs of described played data tabulations of time marking matching module are mated;
Match audio frequency time marking and video time at described time marking matching module 26 and identify when inconsistent, mark module 27 is used for audio/video frames and is designated mistake, and skips this audio/video frames;
Match audio frequency time marking and video time sign when consistent at described time marking matching module 26, audio, video data sending module 28 will be sent to audio decoder and Video Decoder respectively with corresponding voice data of described time marking and video data in the described buffer area;
Audio, video data playing module 29 is play decoded voice data and video data;
Voice data and video data that 30 deletions of storage space processing module have been play, and described voice data and video data time corresponding sign.
The embodiment of the invention also provides a kind of playback terminal, and described terminal comprises the playing device of the audio-video document that the embodiment of the invention provides, and in view of this installs in above existing detailed description, repeats no more herein.
The embodiment of the invention is by being stored to the time marking of audio frequency and the time marking of video in the tabulation of one played data, simultaneously corresponding voice data and video data are stored to buffer area, when in described played data tabulation, matching the Voice ﹠ Video of time marking unanimity, from described buffer area corresponding voice data and video data are sent to audio decoder and Video Decoder respectively, play, make the broadcast of audio frequency and video to be consistent, improve the quality of playing greatly, be beneficial to the popularization of playback terminal.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. the player method of an audio-video document is characterized in that, said method comprising the steps of:
Obtain audio, video data sound intermediate frequency time marking and video time sign;
The audio frequency time marking and the video time that obtain are identified the played data tabulation that is stored to default;
Described voice data and video data are stored to buffer area;
Audio frequency time marking in the described played data tabulation and video time sign are mated;
When finding that audio frequency time marking and video time sign does not match, then the corresponding audio/video frames of time marking is designated mistake, and skips, seek the audio frequency and video time marking of audio frequency and video time marking unanimity;
When finding that audio frequency time marking and video time are marking matched, corresponding voice data and video data in the described buffer area are sent to audio decoder and Video Decoder respectively;
Decoded voice data and video data are play.
2. the player method of audio-video document as claimed in claim 1 is characterized in that, after described voice data and video data are stored to the step of buffer area, also comprises:
The voice data that is stored in buffer area is related with corresponding time marking foundation in the described played data tabulation with video data.
3. the player method of audio-video document as claimed in claim 1 is characterized in that, after the step of decoded voice data and video data broadcast, described method also comprises:
Voice data and video data that deletion has been play, and described voice data and video data time corresponding sign.
4. the player method of audio-video document as claimed in claim 1 is characterized in that, before the step of obtaining audio, video data sound intermediate frequency time marking and video time sign, described method also comprises:
The tabulation of one played data is set, and this tabulation is used to deposit audio frequency time marking and video time sign.
5. the player method of audio-video document as claimed in claim 1 is characterized in that, the step that audio frequency time marking during described played data is tabulated and video time sign are mated specifically comprises:
Whether the absolute value that calculates the difference between video time and sound apparent time is provided with within the threshold values scope in system.
6. the playing device of an audio-video document is characterized in that, described device comprises:
The time marking acquisition module is used to obtain audio, video data sound intermediate frequency time marking and video time sign;
The time marking memory module, the audio frequency time marking and the video time that are used for obtaining identify the played data tabulation that is stored to default;
The audio, video data memory module is used for described voice data and video data are stored to buffer area;
The time marking matching module is used for the audio frequency time marking and the video time sign of described played data tabulation are mated;
Mark module is used for audio/video frames and is designated mistake, and skips this audio/video frames;
The audio, video data sending module is used for corresponding voice data of described buffer area and video data are sent to audio decoder and Video Decoder respectively; And
The audio, video data playing module is used for decoded voice data and video data are play.
7. the playing device of audio-video document as claimed in claim 6 is characterized in that, described device also comprises:
Module is set up in the time marking association, is used for setting up related with video data with corresponding time marking the voice data that is stored in buffer area.
8. the playing device of audio-video document as claimed in claim 6 is characterized in that, described device also comprises:
The storage space processing module is used to delete voice data and the video data play, and described voice data and video data time corresponding sign.
9. the playing device of audio-video document as claimed in claim 6 is characterized in that, described device also comprises:
The played data tabulation is provided with module, is used to be provided with played data tabulation, and this tabulation is used to deposit audio frequency time marking and video time sign.
10. a playback terminal is characterized in that, described terminal comprises the playing device of each described audio-video document of claim 6 to 9.
CN 200910189374 2009-12-24 2009-12-24 Playing terminal as well as method and device for playing an audio/video file Active CN102110458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910189374 CN102110458B (en) 2009-12-24 2009-12-24 Playing terminal as well as method and device for playing an audio/video file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910189374 CN102110458B (en) 2009-12-24 2009-12-24 Playing terminal as well as method and device for playing an audio/video file

Publications (2)

Publication Number Publication Date
CN102110458A true CN102110458A (en) 2011-06-29
CN102110458B CN102110458B (en) 2013-02-06

Family

ID=44174588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910189374 Active CN102110458B (en) 2009-12-24 2009-12-24 Playing terminal as well as method and device for playing an audio/video file

Country Status (1)

Country Link
CN (1) CN102110458B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506793A (en) * 2015-01-16 2015-04-08 东北大学 Safe video conference system and method based on internet
CN105513619A (en) * 2014-09-26 2016-04-20 惠州市德赛西威汽车电子股份有限公司 Processing method of error tracks of on-board entertainment system
CN105872699A (en) * 2016-04-28 2016-08-17 乐视控股(北京)有限公司 Video playing control method and device
CN105959774A (en) * 2016-05-05 2016-09-21 青岛海信电器股份有限公司 Sound-image synchronization method and system, and television
CN105979259A (en) * 2016-06-16 2016-09-28 乐视控股(北京)有限公司 Test method and test device
CN106210846A (en) * 2016-08-15 2016-12-07 深圳Tcl新技术有限公司 Audio and video playing method and system
CN108735239A (en) * 2018-04-08 2018-11-02 平安科技(深圳)有限公司 A kind of control method and terminal device of audio broadcasting
CN109165558A (en) * 2018-07-26 2019-01-08 浙江大学 Unusual checking system in a kind of elevator based on deep learning
CN111669625A (en) * 2020-06-12 2020-09-15 北京字节跳动网络技术有限公司 Processing method, device and equipment for shot file and storage medium
CN112379857A (en) * 2020-11-24 2021-02-19 惠州Tcl移动通信有限公司 Audio data processing method and device, storage medium and mobile terminal
CN113763918A (en) * 2021-08-18 2021-12-07 单百通 Text-to-speech conversion method and device, electronic equipment and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100349137C (en) * 2002-11-18 2007-11-14 英保达股份有限公司 Video and audio playing method
CN1794216A (en) * 2005-11-01 2006-06-28 无敌科技(西安)有限公司 Method of synchronous playing voice frequency document and corresponding literal data

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105513619B (en) * 2014-09-26 2019-02-01 惠州市德赛西威汽车电子股份有限公司 The processing method of wrong song in a kind of vehicle entertainment system
CN105513619A (en) * 2014-09-26 2016-04-20 惠州市德赛西威汽车电子股份有限公司 Processing method of error tracks of on-board entertainment system
CN104506793B (en) * 2015-01-16 2018-04-27 东北大学 A kind of security video conference system and method based on internet
CN104506793A (en) * 2015-01-16 2015-04-08 东北大学 Safe video conference system and method based on internet
CN105872699A (en) * 2016-04-28 2016-08-17 乐视控股(北京)有限公司 Video playing control method and device
CN105959774A (en) * 2016-05-05 2016-09-21 青岛海信电器股份有限公司 Sound-image synchronization method and system, and television
CN105959774B (en) * 2016-05-05 2020-05-01 青岛海信电器股份有限公司 Sound and picture synchronization method and system and television
CN105979259A (en) * 2016-06-16 2016-09-28 乐视控股(北京)有限公司 Test method and test device
CN106210846A (en) * 2016-08-15 2016-12-07 深圳Tcl新技术有限公司 Audio and video playing method and system
WO2018032680A1 (en) * 2016-08-15 2018-02-22 深圳Tcl新技术有限公司 Method and system for playing audio and video
CN108735239A (en) * 2018-04-08 2018-11-02 平安科技(深圳)有限公司 A kind of control method and terminal device of audio broadcasting
CN108735239B (en) * 2018-04-08 2021-05-04 平安科技(深圳)有限公司 Audio playing control method and terminal equipment
CN109165558A (en) * 2018-07-26 2019-01-08 浙江大学 Unusual checking system in a kind of elevator based on deep learning
CN111669625A (en) * 2020-06-12 2020-09-15 北京字节跳动网络技术有限公司 Processing method, device and equipment for shot file and storage medium
CN112379857A (en) * 2020-11-24 2021-02-19 惠州Tcl移动通信有限公司 Audio data processing method and device, storage medium and mobile terminal
CN112379857B (en) * 2020-11-24 2022-01-04 惠州Tcl移动通信有限公司 Audio data processing method and device, storage medium and mobile terminal
CN113763918A (en) * 2021-08-18 2021-12-07 单百通 Text-to-speech conversion method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN102110458B (en) 2013-02-06

Similar Documents

Publication Publication Date Title
CN102110458B (en) Playing terminal as well as method and device for playing an audio/video file
CN100388261C (en) Information storage medium including event occurrence information, apparatus and method for reproducing the same
CN103414949B (en) A kind of multimedia edit system based on intelligent television and method
US7707485B2 (en) System and method for dynamic transrating based on content
CN103780977B (en) A kind of flow media playing method based on frame alignment technology
CN102118539A (en) Multimedia playing terminal as well as playing method and device for dragging multimedia files
CN102017651A (en) Apparatus and method for composing scenes using rich media contents
CN101802803B (en) Method and apparatus for generating and reproducing media object-based metadata
CN102857833B (en) Audio decoding system and method adapted to android stagefright multimedia framework
CN104853132A (en) Delay video recording method and system
CN101572778B (en) Method and system for broadcasting programs
US8615153B2 (en) Multi-media data editing system, method and electronic device using same
CN100531354C (en) Video frequency source material synthesizing method
CN101645967B (en) Mobile terminal for processing multimedia data in user-defined format and realization method thereof
CN206075591U (en) A kind of wireless points with intelligent terminal interconnection read equipment
CN107231578A (en) The system and method that video file is quickly played
CN102110459B (en) Playing terminal and multimedia file playing method and device thereof
CN105744297A (en) Method and device for code stream transmission
CN102098570A (en) Digital television information playing method and system
CN108282678A (en) A kind of playback method of multi-medium data, apparatus and system
CN109120966B (en) Method, device and system for intelligently judging and identifying code rate of 4K video-on-demand
CN102169708A (en) Audio and video play system, method, mobile terminal and player
CN107615768A (en) Dispensing device, sending method, reception device and method of reseptance
CN101330398A (en) Method for transmitting business data flow
CN102111614A (en) Video and audio format conversion method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant