[go: up one dir, main page]

CN102110459B - Playing terminal and multimedia file playing method and device thereof - Google Patents

Playing terminal and multimedia file playing method and device thereof Download PDF

Info

Publication number
CN102110459B
CN102110459B CN 200910189375 CN200910189375A CN102110459B CN 102110459 B CN102110459 B CN 102110459B CN 200910189375 CN200910189375 CN 200910189375 CN 200910189375 A CN200910189375 A CN 200910189375A CN 102110459 B CN102110459 B CN 102110459B
Authority
CN
China
Prior art keywords
code rate
rate value
file
video code
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 200910189375
Other languages
Chinese (zh)
Other versions
CN102110459A (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 200910189375 priority Critical patent/CN102110459B/en
Publication of CN102110459A publication Critical patent/CN102110459A/en
Application granted granted Critical
Publication of CN102110459B publication Critical patent/CN102110459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention belongs to the technical field of multimedia playing, and discloses a playing terminal and a multimedia file playing method and device thereof. The method comprises the following steps: reading the file header parameters of a multimedia file, and acquiring the reference note and video bitrate value of file playing; acquiring the actual playing note and video bitrate value of the multimedia file; comparing the reference note and the reference video bitrate value with the actual playing note and the actual video bitrate value; and when the reference note and the reference video bitrate value are not consistent with the actual playing note and the actual video bitrate value, correspondingly controlling the playing speed of the file, so that the reference note and the reference video bitrate value are consistent with the actual playing note and the actual video bitrate value. According to the invention, the synchronicity of audio-video file playing is guaranteed, and the playing quality of the multimedia file is improved, thereby facilitating the popularization of the playing terminal.

Description

The playing method and device of a kind of playback terminal and multimedia file thereof
Technical field
The invention belongs to the Play Technique for Multimedia field, be specifically related to the playing method and device of a kind of playback terminal and multimedia file thereof.
Background technology
Along with the development of multimedia technology, the user is also more and more higher to the requirement of multimedia quality.
Take avi file as example, AVI (Audio Video Interleaved, AVI), i.e. Audio Video Interleaved form is a kind of file layout that voice and image synchronous are combined.
The range of application of AVI is very extensive, and it supports 256 looks and Run-Length Coding (run-lengthencoding, RLE) compression, is mainly used on the multimedia CD, is used for preserving the various multimedia files such as TV, film, Internet video.
Wherein, the data block of AVI comprises actual data stream, i.e. image and sound sequence data.Image and sound sequence data are the main bodys of file, also are the major parts that determines file size.
The data transfer rate that the size of video file equals this document multiply by the time span of this video playback, and index block comprises data block tabulation and their positions hereof, so that data random access ability in the file to be provided.
The file header of avi file comprises the general information of file, definition data layout, the used parameters such as compression algorithm.
Because sound, the audio video synchronization of AVI playing process mainly rely on, read according to the data block order, in case occur sound, video data when encapsulation with regard to nonsynchronous situation, will cause sound, video playback also asynchronous, similar AVI film the inside performer's one's voice in speech and the obvious not corresponding problem of the shape of the mouth as one speaks appear, affect greatly the result of broadcast of file, and then affect spectators' the impression of watching.
Therefore, how to guarantee multimedia file can holding tone in playing process, audio video synchronization, improve the play quality of multimedia file, be one of direction of Play Technique for Multimedia area research.
Summary of the invention
The object of the present invention is to provide a kind of player method of multimedia file, be intended to how to guarantee multimedia file can holding tone in playing process, audio video synchronization, improve the play quality of multimedia file.
The embodiment of the invention is achieved in that a kind of player method of multimedia file, said method comprising the steps of:
Read the file header parameter of multimedia file, obtain reference note, video code rate value that file is play;
Obtain actual play sound, the video code rate value of described multimedia file;
Described reference note, video code rate value and described actual play sound, video code rate value are compared;
When described reference note, video code rate value and described actual play sound, when the video code rate value is inconsistent, the broadcasting speed of corresponding control documents is so that described reference note, video code rate value and described actual play sound, video code rate value are consistent.
Another purpose of the present invention is to provide a kind of playing device of multimedia file, and described device comprises:
Reference note, video code rate value acquisition module for the file header parameter that reads multimedia file, obtain reference note, video code rate value that file is play;
Actual play sound, video code rate value acquisition module are for actual play sound, the video code rate value of obtaining described multimedia file;
Sound, video code rate value contrast module are used for described reference note, video code rate value and described actual play sound, video code rate value are compared;
The file broadcasting speed control module is used for the broadcasting speed of corresponding control documents, so that described reference note, video code rate value and described actual play sound, video code rate value are consistent.
Another purpose of the embodiment of the invention is to provide a kind of playback terminal, and described terminal comprises the playing device of the multimedia file that the embodiment of the invention provides.
The embodiment of the invention compares by reference note, video code rate value and actual play sound, the video code rate value with multimedia file, when reference note, video code rate value and actual play sound, when the video code rate value is inconsistent, the broadcasting speed of corresponding control documents, so that reference note, video code rate value and actual play sound, video code rate value are consistent, guaranteed the synchronism that sound, video file are play, improve the play quality of multimedia file, be beneficial to the popularization of playback terminal.
Description of drawings
The process flow diagram of the player method of the multimedia file that Fig. 1 provides for the embodiment of the invention;
The structural drawing of the playing device of the multimedia file that Fig. 2 provides for the embodiment of the invention;
Actual play sound in the playing device of the multimedia file that Fig. 3 provides for the embodiment of the invention, the structural drawing of video code rate value acquisition module.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the invention compares by reference note, video code rate value and actual play sound, the video code rate value with multimedia file, when reference note, video code rate value and actual play sound, when the video code rate value is inconsistent, the broadcasting speed of corresponding control documents is so that reference note, video code rate value and actual play sound, video code rate value are consistent.
Fig. 1 shows the flow process of the player method of a kind of multimedia file that the embodiment of the invention provides.
In step S101, obtain multimedia file;
In step S102, judge that described multimedia file whether can normal play, if can not normal play, return described multimedia file that can not normal play, proceed step S101, obtain other multimedia file;
In step S103, read the file header parameter of multimedia file, obtain reference note, video code rate value that file is play;
Take avi file as example, can certainly be the file of extended formatting, do not enumerate one by one herein.
At first read avi file head parameter, obtain sound, video code rate value that this document is play, this sound, video code rate value are reference note, video code rate value, and certainly, this reference note, video code rate value include benchmark audio code rate value and REF video code check value.
In step S104, obtain actual play sound, the video code rate value of described multimedia file;
In specific implementation process, at first obtain the reproduction time of system, take the linux system as example, at first obtain the system plays time of linux, then obtain audio frequency played data total amount and the video playback data total amount of multimedia file, calculate described audio frequency played data total amount and described system plays time ratio, obtain actual audio and play the code check value; Calculate simultaneously described video playback data total amount and described system plays time ratio, obtain actual video and play the code check value.
In step S105, described reference note, video code rate value and described actual play sound, video code rate value are compared;
In step S106, judge whether described reference note, video code rate value and described actual play sound, video code rate value be consistent, if then carry out step S109.Otherwise carry out step S107;
Whether wherein, the embodiment of the invention is judged described sound, video code rate value whether within a fluctuation range, and method is the absolute value of the difference of described actual play sound, video code rate value and reference note, video code rate value, within the threshold values scope that system arranges.。
For example, actual play sound, video code rate value are added and subtracted the scope of 20kbps in reference note, video code rate value, namely satisfy when actual sound, video code rate value: (sound of reference note, video code rate value-20kbps)≤actual play, video code rate value≤(when reference note, video code rate value+20kbps), represent that namely described actual play sound, video code rate value and described reference note, video code rate value are consistent.
In step S107, adjust the playback rate of multimedia file, so that described reference note, video code rate value and described actual play sound, video code rate value are consistent.
In specific implementation process, can by increasing or reduce the mode of the frame data amount of input, with the frame per second that control is play, reach the effect of adjusting the file playback rate, can certainly be the purpose that the mode of other deletion data realizes adjusting speed, enumerate no longer one by one herein.
The embodiment of the invention has guaranteed the synchronism that sound, video file are play by adjusting the playback rate of multimedia file, has improved the play quality of multimedia file.
In step S108, record reference note, video code rate value and described actual sound, video playback code check value in the described multimedia file playing process;
By recording played sound, video code rate value, as follow-up reference record, be convenient to further multimedia file be done corresponding analyzing and processing.
In step S109, the play multimedia file.
Fig. 2 shows the structure of the playing device of the multimedia file that the embodiment of the invention provides.
Described device comprises file acquisition module 21, and file is play judge module 22, reference note, video code rate value acquisition module 23, actual play sound, video code rate value acquisition module 24, sound, video code rate value contrast module 25, file broadcasting speed control module 26 and sound, video code rate value record module 27.
Wherein, file acquisition module 21 is obtained multimedia file;
Whether file is play multimedia file that judge module 22 judges that file acquisition module 21 obtains can normal play, if can not normal play, returns described file that can not normal play, and file acquisition module 21 continues to obtain other multimedia files;
Reference note, video code rate value acquisition module 23 read the file header parameter of multimedia file, obtain the benchmark audio code rate value that file is play;
Actual play sound, video code rate value acquisition module 24 obtain actual play sound, the video code rate value of described multimedia file;
Sound, video code rate value contrast module 25 compare described reference note, video code rate value and described actual play sound, video code rate value;
The broadcasting speed of file broadcasting speed control module 26 corresponding control documents is so that described reference note, video code rate value and described actual play sound, video code rate value are consistent.
Reference note, video code rate value and described actual sound, video playback code check value in sound, the described multimedia file playing process of video code rate value record module 27 records are as follow-up reference record.
Fig. 3 shows the structure of actual play sound, video code rate value acquisition module 24.
Described actual play sound, video code rate value acquisition module 24 comprise that specifically system plays time-obtaining module 241, sound, video data total amount acquisition module 242, actual audio are play code check value acquisition module 243 and actual video is play code check value acquisition module 244:
Wherein, system plays time-obtaining module 241 is obtained the system plays time;
Sound, video data total amount acquisition module 242 obtain audio frequency played data total amount and the video playback data total amount of file;
Actual audio is play code check value acquisition module 243 and is calculated described audio frequency played data total amount and the ratio of described system plays time, obtains actual audio and plays the code check value;
Actual video is play code check value acquisition module 244 and is calculated described video playback data total amount and the ratio of described system plays time, obtains actual video and plays the code check value.
The embodiment of the invention also provides a kind of playback terminal, and described terminal comprises the playing device of the multimedia file 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 compares by reference note, video code rate value and actual play sound, the video code rate value with multimedia file, when reference note, video code rate value and actual play sound, when the video code rate value is inconsistent, the broadcasting speed of corresponding control documents, so that reference note, video code rate value and actual play sound, video code rate value are consistent, guaranteed the synchronism that sound, video file are play, improve the play quality of multimedia file, 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 (8)

1. the player method of a multimedia file is characterized in that, said method comprising the steps of:
Read the file header parameter of multimedia file, obtain reference note, video code rate value that file is play;
Obtain actual play sound, the video code rate value of described multimedia file;
Described reference note, video code rate value and described actual play sound, video code rate value are compared;
When described reference note, video code rate value and described actual play sound, when the video code rate value is inconsistent, the broadcasting speed of corresponding control documents is so that described reference note, video code rate value and described actual play sound, video code rate value are consistent;
Described method also comprises:
Record reference note, video code rate value and described actual sound, video playback code check value in the described multimedia file playing process.
2. the player method of multimedia file as claimed in claim 1 is characterized in that, the described step of obtaining actual play sound, video code rate specifically comprises:
Obtain the system plays time;
Obtain audio frequency played data total amount and the video playback data total amount of file;
Described audio frequency played data total amount and described system plays time are carried out ratio calculation, obtain actual audio and play the code check value;
Described video playback data total amount and described system plays time are carried out ratio calculation, obtain actual video and play the code check value.
3. the player method of multimedia file as claimed in claim 1 is characterized in that, the described step that described reference note, video code rate value and described actual play sound, video code rate value are compared specifically comprises:
Whether judge described reference note, video code rate value whether within a fluctuation range, method is the absolute value of the difference of described actual play sound, video code rate value and reference note, video code rate value, within the threshold values scope that system arranges.
4. the player method of multimedia file as claimed in claim 1 is characterized in that, in the described file header parameter that reads multimedia file, obtains after the step of reference note that file plays, video code rate value, and described method also comprises:
Judge that described file whether can normal play, if can not normal play, return described file that can not normal play, obtain other multimedia files.
5. the playing device of a multimedia file is characterized in that, described device comprises:
Reference note, video code rate value acquisition module for the file header parameter that reads multimedia file, obtain reference note, video code rate value that file is play;
Actual play sound, video code rate value acquisition module are for actual play sound, the video code rate value of obtaining described multimedia file;
Sound, video code rate value contrast module are used for described reference note, video code rate value and described actual play sound, video code rate value are compared;
The file broadcasting speed control module is used for the broadcasting speed of corresponding control documents, so that described reference note, video code rate value and described actual play sound, video code rate value are consistent;
Described device also comprises:
Sound, video code rate value record module are for reference note, video code rate value and the described actual sound, the video playback code check value that record described multimedia file playing process.。
6. the playing device of multimedia file as claimed in claim 5 is characterized in that, described actual play sound, video code rate value acquisition module specifically comprise:
The system plays time-obtaining module is used for obtaining the system plays time;
Sound, video data total amount acquisition module are for audio frequency played data total amount and the video playback data total amount of obtaining file;
Actual audio is play code check value acquisition module, is used for described audio frequency played data total amount and described system plays time are carried out ratio calculation, obtains actual audio and plays the code check value;
Actual video is play code check value acquisition module, is used for described video playback data total amount and described system plays time are carried out ratio calculation, obtains actual video and plays the code check value.
7. the playing device of multimedia file as claimed in claim 5 is characterized in that, described device also comprises:
File is play judge module, is used for judging that described file whether can normal play, if can not normal play, returns described file that can not normal play, obtains other multimedia files.
8. a playback terminal is characterized in that, described terminal comprises the playing device of each described multimedia file of claim 5 to 7.
CN 200910189375 2009-12-24 2009-12-24 Playing terminal and multimedia file playing method and device thereof Active CN102110459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910189375 CN102110459B (en) 2009-12-24 2009-12-24 Playing terminal and multimedia file playing method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910189375 CN102110459B (en) 2009-12-24 2009-12-24 Playing terminal and multimedia file playing method and device thereof

Publications (2)

Publication Number Publication Date
CN102110459A CN102110459A (en) 2011-06-29
CN102110459B true CN102110459B (en) 2013-01-16

Family

ID=44174589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910189375 Active CN102110459B (en) 2009-12-24 2009-12-24 Playing terminal and multimedia file playing method and device thereof

Country Status (1)

Country Link
CN (1) CN102110459B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791987B (en) * 2014-12-23 2018-11-02 深圳Tcl数字技术有限公司 media data playing method and terminal
CN109413371B (en) * 2017-08-17 2021-08-03 成都鼎桥通信技术有限公司 Video frame rate calculation method and device
CN111954048B (en) * 2020-08-21 2021-12-17 四川长虹电器股份有限公司 Method for playing high-bit-rate video resource, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022561A (en) * 2006-02-15 2007-08-22 中国科学院声学研究所 Method for realizing MXF video file and PCM audio file synchronous broadcasting
CN101137066A (en) * 2007-05-11 2008-03-05 中兴通讯股份有限公司 Multimedia data flow synchronous control method and device
CN101212679A (en) * 2006-12-30 2008-07-02 凌阳科技股份有限公司 AV synchronization method and device for switching multi-channel audio stream during playing of AVI file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022561A (en) * 2006-02-15 2007-08-22 中国科学院声学研究所 Method for realizing MXF video file and PCM audio file synchronous broadcasting
CN101212679A (en) * 2006-12-30 2008-07-02 凌阳科技股份有限公司 AV synchronization method and device for switching multi-channel audio stream during playing of AVI file
CN101137066A (en) * 2007-05-11 2008-03-05 中兴通讯股份有限公司 Multimedia data flow synchronous control method and device

Also Published As

Publication number Publication date
CN102110459A (en) 2011-06-29

Similar Documents

Publication Publication Date Title
US8204366B2 (en) Method, apparatus and program for recording and playing back content data, method, apparatus and program for playing back content data, and method, apparatus and program for recording content data
JP4518194B2 (en) Generating apparatus, generating method, and program
CN102110458B (en) A playback terminal and method and device for playing audio and video files thereof
US10679675B2 (en) Multimedia file joining method and apparatus
CN102595114B (en) Method and terminal for playing video on low-side embedded product
TWI323602B (en)
CN1510501A (en) System and method for synthesizing filmslide
CN1723703A (en) Data processing device and method
JP3594409B2 (en) MPEG audio playback device and MPEG playback device
CN104333802A (en) Video playing method and video player
US9928876B2 (en) Recording medium recorded with multi-track media file, method for editing multi-track media file, and apparatus for editing multi-track media file
CN1941144B (en) Data recording and reproducing apparatus and method therefor
CN101312460A (en) Method for converting media file of multiple formats into target device supported media file
CN101753946A (en) Merge method and system for video file and audio file
CN101383961B (en) Content reproduction appratus, content reproduction method, and content reproduction system
CN102110459B (en) Playing terminal and multimedia file playing method and device thereof
CN100499823C (en) Method for realizing MXF video file and PCM audio file synchronous broadcasting
JP5406185B2 (en) Media object-based metadata generation method, playback method and apparatus thereof
TWI262718B (en) System and method for high-quality variable speed playback of audio-visual media
JP4577409B2 (en) Playback apparatus, playback method, program, and data structure
KR20070104131A (en) Audio / Video Sync Correction Method and Device
CN102811380B (en) Demultiplexing method and demultiplexing device for audio and video data in multimedia files
CN100530356C (en) Digital information reproducing apparatus and method
US20110022400A1 (en) Audio resume playback device and audio resume playback method
CN102169708A (en) Audio and video play system, method, mobile terminal and 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
C14 Grant of patent or utility model
GR01 Patent grant