[go: up one dir, main page]

CN1758772A - Method for synchronous playing video and audio of medium document and its system - Google Patents

Method for synchronous playing video and audio of medium document and its system Download PDF

Info

Publication number
CN1758772A
CN1758772A CN 200510096299 CN200510096299A CN1758772A CN 1758772 A CN1758772 A CN 1758772A CN 200510096299 CN200510096299 CN 200510096299 CN 200510096299 A CN200510096299 A CN 200510096299A CN 1758772 A CN1758772 A CN 1758772A
Authority
CN
China
Prior art keywords
audio
file
video
coding
module
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
CN 200510096299
Other languages
Chinese (zh)
Other versions
CN1758772B (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.)
Inventec Besta Xian Co Ltd
Original Assignee
Inventec Besta Xian 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 Inventec Besta Xian Co Ltd filed Critical Inventec Besta Xian Co Ltd
Priority to CN 200510096299 priority Critical patent/CN1758772B/en
Publication of CN1758772A publication Critical patent/CN1758772A/en
Application granted granted Critical
Publication of CN1758772B publication Critical patent/CN1758772B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A playing method of multimedia file audio-video synchronization includes presetting audio file storage unit and video file storage unit and setting volume of audio file storage unit and video file storage unit, fetching audio file and video file in multimedia file, processing audio file and processing video file.

Description

Player method that video and audio of medium document is synchronous and system thereof
One, technical field
The present invention relates to synchronous player method of a kind of video and audio of medium document and system thereof.
Two, background technology
The daily life that the prosperity of the progress of manufacture of semiconductor and consumer electronics industry, Various types of data treatment facility are nowadays deeply popular.As individual desktop PC (Desktop Computer), mobile computer (Note book), PDA (Personal Digital Assistant) (Personal Digital Assist), Smart Phone (Smart Phone) and e-dictionary translating machine or the like, bring the digital multimedia amusement and recreation life that people enrich.
Be applied in the development of the multimedia video technology in the above-mentioned Various types of data treatment facility, also be subjected to the suitable attention of electronics and information industry.Multimedia video/audio archive has several formats to circulate in the market at present, wherein MPEG (Motion Picture Experts Group) is the work group of International Standards Organization (ISO), and its audio-visual coding standard of setting up of MPEG digital multimedia has become the main flow of current multimedia video/audio archive form.
The multimedia video/audio archive that meets MPEG all passes through the encoding compression of certain program, have the archives capacity little, be convenient to backup and store and be beneficial to advantages such as world-wide web spreads; And general multimedia file mainly can be divided into two major parts, is respectively video file and audio file.The multimedia file material is play after respectively video file and audio file being deciphered when playing again.More detailed says, in the broadcast operation of multimedia file, audio file is to play constantly, and video file then is to play one by one according to the regular time that timer interruption (Timer Interrupt) is produced.Yet in the actual play running of multimedia file, the time that timer interrupts being produced has a little error, can not be the interval of fixing.In addition, the broadcast operation of audio file is because data processing equipment also has nearmis when setting sampling frequency; So can just in time not equal the time of multimedia file actual play.For instance, when movie, the performer that will produce in the film does not lift up one's voice as yet, but sound just is played out; Or the performer lifts up one's voice, just is played but sound is delayed a period of time.Therefore, it is of a specified duration more that multimedia file is play, and error effects will be more and more obvious.
Three, summary of the invention
The present invention is for solving the above-mentioned technical problem that exists in the background technology, and the adjustment of comparing of a kind of audio frequency number of samples by audio file is provided, and makes method and system thereof that video file in the multimedia file and audio file can synchronous playing.
Technical solution of the present invention is: the present invention is the synchronous player method of a kind of video and audio of medium document, and its special character is: this method may further comprise the steps:
1) builds audio files storage unit and video file memory cell in advance, the capacity of setting audio file storage unit and video file memory cell;
2) read video file and audio file in the multimedia file then;
3) audio file;
3.1) carry out the decoding operation of audio file, and generate the audio coding file;
3.2) then the audio coding file is stored in the audio files storage unit;
3.3) audio plays decoding file;
4) handle video file;
4.1) carry out the decoding operation of video file, and generate the video coding file;
4.2) then the video coding file is stored in the video file memory cell;
4.3) then according to fiducial value break period that timer produced, carry out the broadcast operation of video coding file;
4.4) obtain the audio coding quantity of documents that has been played, and according to the variable quantity of the audio frequency number of samples of audio coding file, and generate the audio video synchronization corrected value;
4.5) then according to the audio video synchronization corrected value, the video file of video coding file was play a numerical value during comparison was play;
4.6) at last according to the result of comparison, adjust the broadcast operation of video coding file.
Above-mentioned steps 4.4) the audio video synchronization corrected value draws by formula P=S*F/ (S1*S2) in, wherein P is the audio video synchronization corrected value, S is the audio frequency number of samples of audio coding file, F is that the picture of video file shows the rate parameter value, S1 is the audio sample frequency parameter value of audio file, and S2 is the broadcast channel number of this audio file.
Above-mentioned demonstration rate parameter value F, audio sample frequency parameter value S1 and broadcast channel number S2 are the fixed value in the audio-visual coding standard of MPEG digital multimedia.
Above-mentioned steps 4.6) in, when a video file broadcast numerical value of video coding file equals the audio video synchronization corrected value, then reads next video coding file, and play this video coding file.
Above-mentioned steps 4.6) in, when the video file of video coding file is play a numerical value less than the audio video synchronization corrected value, the video coding file in the reading cells of Chi Xuing then, play that a numerical value equals or greater than the audio video synchronization corrected value up to video file, and then play selected before this video coding file.
Above-mentioned steps 4.6) in, when video file is play a numerical value greater than the audio video synchronization corrected value, then keeps a video coding file and do not change.
The amount of capacity of above-mentioned audio files storage unit and video file memory cell is system default value or is determined by the user.
A kind of system that realizes the player method that above-mentioned video and audio of medium document is synchronous, its special character is: this system comprises that the audio file that is used in the multimedia file deciphers operation, generate the audio coding module 1 of audio coding file, the audio files storage unit 2 of stored audio decoding file, be used for the audio playing module 3 of the audio coding file that displaying audio file memory cell 2 provided, be used for the video file in the multimedia file is deciphered operation, and the video coding module 4 of generation video coding file, can produce one break period fiducial value timer 5, be used for storing the video file memory cell 6 of video coding file, fiducial value break period that is provided according to timer 5, the video playback module 7 of the video coding file in the playing video file memory cell 6, according to the audio video synchronization corrected value, the audio-visual synchronous control module 8 and being used for of broadcast operation of adjusting the video coding file of video playback module 7 is monitored the voice playing monitoring unit 9 of the file amount that audio coding module 1 is played, audio coding module 1 accessing to audio file storage unit 2, audio files storage unit 2 accessing to audio playing modules 3, timer 5 inserts video coding module 4, video coding module 4 inserts video file memory cell 6, video file memory cell 6 inserts video playback module 7, voice playing monitoring unit 9 is accessing to audio playing module 3 and audio-visual synchronous control module 8 respectively, and audio-visual synchronous control module 8 inserts video playback module 7.
Above-mentioned audio playing module 3 comprises digital analog converter and plays loudspeaker that wherein digital analog converter is to be used for the audio coding file conversion is play signal for simulation, and plays this analog signal by playing loudspeaker.
The player method that video and audio of medium document of the present invention is synchronous is at first to read video file and audio file, then carries out the decoding operation of audio file, generates the audio coding file, carries out the broadcast operation of audio coding file then.Then video file is deciphered, generated the video coding file, and according to fiducial value break period, displaying video decoding file.Then, calculate the variable quantity of the audio frequency number of samples (samples) of audio coding file, and generate the audio video synchronization corrected value, audio video synchronization corrected value according to this continues, the comparison video coding is play a numerical value (video count) as the video file of file, and adjusts the broadcast operation of video coding file.So realize the synchronous playing of audio file and video file, solved the phenomenon that the video and audio of medium document in the background technology can't be synchronous.
Four, description of drawings
Fig. 1 is a system block diagram of the present invention.
Five, embodiment
Specific implementation method of the present invention is as follows:
1) build audio files storage unit and video file memory cell in advance, the capacity of setting audio file storage unit and video file memory cell, amount of capacity is system default value or is determined by the user;
2) read video file and audio file in the multimedia file then, this moment, system can be divided into audio file of two multiple Threads (Multi-Thread), and another handles video file;
3) audio file;
3.1) carry out the decoding operation of audio file, and generate the audio coding file;
3.2) then the audio coding file is stored in the audio files storage unit;
3.3) audio plays decoding file;
4) handle video file;
4.1) carry out the decoding operation of video file, and generate the video coding file;
4.2) then the video coding file is stored in the video file memory cell;
4.3) then according to fiducial value break period that timer produced, carry out the broadcast operation of video coding file;
4.4) obtain the audio coding quantity of documents that has been played, and according to the variable quantity of the audio frequency number of samples of audio coding file, and generate the audio video synchronization corrected value;
4.5) then according to the audio video synchronization corrected value, the video file of video coding file was play a numerical value during comparison was play;
4.6) at last according to the result of comparison, adjust the broadcast operation of video coding file.
Step 4.4 wherein) the audio video synchronization corrected value draws by formula P=S*F/ (S1*S2) in, wherein P is the audio video synchronization corrected value, S is the audio frequency number of samples of audio coding file, F is that the picture of video file shows the rate parameter value, S1 is the audio sample frequency parameter value of audio file, S2 is the broadcast channel number of this audio file, show rate parameter value F, audio sample frequency parameter value S1 and broadcast channel number S2 are the fixed value in the audio-visual coding standard of MPEG digital multimedia, and audio frequency number of samples (S) then changes to some extent according to the current audio coding file of having play.
Step 4.6) in, plays number (image broadcast number) when value equals the audio video synchronization corrected value, then read next video coding file, and play this video coding file when the video file of video coding file; When the video file of video coding file is play a numerical value less than the audio video synchronization corrected value, the video coding file in the reading cells of Chi Xuing then, play that a numerical value equals or greater than the audio video synchronization corrected value up to video file, and then play selected before this video coding file; When video file is play a numerical value greater than the audio video synchronization corrected value, then keep a video coding file and do not change.
Referring to Fig. 1, system of the present invention is applicable to Various types of data treatment facilities such as desktop PC, mobile computer, PDA (Personal Digital Assistant), e-dictionary, mobile phones, and its structure comprises:
Audio coding module 1: be used for the audio file in the multimedia file is deciphered operation, generate the audio coding file.
Audio files storage unit 2: be used for stored audio decoding file.
Audio playing module 3: be used for the audio coding file that audio plays memory cell 2 provided.It includes digital analog converter (D/A converter) and plays loudspeaker (Speaker), and wherein digital analog converter is to be used for the audio coding file conversion is play signal for simulation, and plays this analog signal by playing loudspeaker.
Video coding module 4: be used for the video file in the multimedia file is deciphered operation, and generate the video coding file.
Timer 5: can produce one break period fiducial value.
Video file memory cell 6: be used for storing the video coding file.
Video playback module 7: according to fiducial value break period that timer 5 is provided, the video coding file in the playing video file memory cell 6.
Audio-visual synchronous control module 8:, adjust the broadcast operation of the video coding file of video playback module 7 according to the audio video synchronization corrected value.And the audio video synchronization corrected value is to finish by following formula:
P=S*F/S1*S2
Wherein P is this audio video synchronization corrected value, S be the audio coding file audio frequency number of samples (sample), F is that the picture of video file shows rate parameter value (Frame Rate), S1 is the audio sample frequency parameter value (Sample Rate) of audio file, and S2 is the broadcast channel number (channel) of this audio file.
Voice playing monitoring unit 9: be to be used for monitoring the file amount that the audio coding module is played.Audio-visual synchronous control module 8 can learn that what audio coding file is played by voice playing monitoring unit 9.
Audio coding module 1 accessing to audio file storage unit 2 wherein, audio files storage unit 2 accessing to audio playing modules 3, timer 5 inserts video coding module 4, video coding module 4 inserts video file memory cell 6, video file memory cell 6 inserts video playback module 7, voice playing monitoring unit 9 accessing to audio playing module 3 and audio-visual synchronous control module 8 respectively, and audio-visual synchronous control module 8 inserts video playback module 7.

Claims (9)

1, the synchronous player method of a kind of video and audio of medium document, it is characterized in that: this method may further comprise the steps:
1) builds audio files storage unit and video file memory cell in advance, the capacity of setting audio file storage unit and video file memory cell;
2) read video file and audio file in the multimedia file then;
3) audio file;
3.1) carry out the decoding operation of audio file, and generate the audio coding file;
3.2) then the audio coding file is stored in the audio files storage unit;
3.3) audio plays decoding file;
4) handle video file;
4.1) carry out the decoding operation of video file, and generate the video coding file;
4.2) then the video coding file is stored in the video file memory cell;
4.3) then according to fiducial value break period that timer produced, carry out the broadcast operation of video coding file;
4.4) obtain the audio coding quantity of documents that has been played, and according to the variable quantity of the audio frequency number of samples of audio coding file, and generate the audio video synchronization corrected value;
4.5) then according to the audio video synchronization corrected value, the video file of video coding file was play a numerical value during comparison was play;
4.6) at last according to the result of comparison, adjust the broadcast operation of video coding file.
2, the synchronous player method of video and audio of medium document according to claim 1, it is characterized in that: the audio video synchronization corrected value draws by formula P=S*F/ (S1*S2) described step 4.4), wherein P is the audio video synchronization corrected value, S is the audio frequency number of samples of audio coding file, F is that the picture of video file shows the rate parameter value, S1 is the audio sample frequency parameter value of audio file, and S2 is the broadcast channel number of this audio file.
3, the synchronous player method of video and audio of medium document according to claim 2 is characterized in that: described demonstration rate parameter value F, audio sample frequency parameter value S1 and broadcast channel number S2 are the fixed value in the audio-visual coding standard of MPEG digital multimedia.
4, the synchronous player method of video and audio of medium document according to claim 1 and 2, it is characterized in that: described step 4.6), when a video file broadcast numerical value of video coding file equals the audio video synchronization corrected value, then read next video coding file, and play this video coding file.
5, the synchronous player method of video and audio of medium document according to claim 1 and 2, it is characterized in that: described step 4.5), when the video file of video coding file is play a numerical value less than the audio video synchronization corrected value, the video coding file in the reading cells of Chi Xuing then, play that a numerical value equals or greater than the audio video synchronization corrected value up to video file, and then play selected before this video coding file.
6, the synchronous player method of video and audio of medium document according to claim 1 and 2 is characterized in that: described step 4.5), when video file is play a numerical value greater than the audio video synchronization corrected value, then keep a video coding file and do not change.
7, the synchronous player method of video and audio of medium document according to claim 1 is characterized in that: the amount of capacity of described audio files storage unit and video file memory cell is system default value or is determined by the user.
8, a kind of system that realizes the player method that the described video and audio of medium document of claim 1 is synchronous, it is characterized in that: this system comprises that the audio file that is used in the multimedia file deciphers operation, generate the audio coding module (1) of audio coding file, the audio files storage unit (2) of stored audio decoding file, be used for the audio playing module (3) of the audio coding file that displaying audio file memory cell (2) provided, be used for the video file in the multimedia file is deciphered operation, generate the video coding module (4) of video coding file, can produce one break period fiducial value timer (5), be used for storing the video file memory cell (6) of video coding file, fiducial value break period that is provided according to timer (5), the video playback module (7) of the video coding file in the playing video file memory cell (6), according to the audio video synchronization corrected value, the audio-visual synchronous control module (8) and being used for of broadcast operation of adjusting the video coding file of video playback module (7) is monitored the voice playing monitoring unit (9) of the file amount that audio coding module (1) is played, described audio coding module (1) accessing to audio file storage unit (2), described audio files storage unit (2) accessing to audio playing module (3), described timer (5) inserts video coding module (4), described video coding module (4) inserts video file memory cell (6), described video file memory cell (6) inserts video playback module (7), described voice playing monitoring unit (9) is accessing to audio playing module (3) and audio-visual synchronous control module (8) respectively, and described audio-visual synchronous control module (8) inserts video playback module (7).
9, the synchronous Play System of video and audio of medium document according to claim 8, it is characterized in that: described audio playing module (3) comprises digital analog converter and plays loudspeaker, wherein digital analog converter is to be used for the audio coding file conversion is play signal for simulation, and plays this analog signal by playing loudspeaker.
CN 200510096299 2005-11-04 2005-11-04 Method for synchronous playing video and audio of medium document and its system Expired - Fee Related CN1758772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510096299 CN1758772B (en) 2005-11-04 2005-11-04 Method for synchronous playing video and audio of medium document and its system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510096299 CN1758772B (en) 2005-11-04 2005-11-04 Method for synchronous playing video and audio of medium document and its system

Publications (2)

Publication Number Publication Date
CN1758772A true CN1758772A (en) 2006-04-12
CN1758772B CN1758772B (en) 2010-05-05

Family

ID=36703909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510096299 Expired - Fee Related CN1758772B (en) 2005-11-04 2005-11-04 Method for synchronous playing video and audio of medium document and its system

Country Status (1)

Country Link
CN (1) CN1758772B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100562122C (en) * 2008-03-27 2009-11-18 凌阳科技股份有限公司 System and method for synchronously playing audio and video of multimedia file
CN101119461B (en) * 2006-08-02 2010-05-12 广达电脑股份有限公司 System and method for keeping synchronous playing of video frame and audio frame
CN101420544B (en) * 2007-10-22 2011-09-28 索尼株式会社 Information processing device, information processing method
CN102460577A (en) * 2009-05-13 2012-05-16 李斗汉 Multimedia file playing method and multimedia player
CN107371053A (en) * 2017-08-31 2017-11-21 北京鹏润鸿途科技股份有限公司 Audio and video streams comparative analysis method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2311918B (en) * 1996-04-02 2000-11-01 Sony Uk Ltd Audio signal processor
US6134379A (en) * 1997-03-20 2000-10-17 Avid Technology, Inc. Method and apparatus for synchronizing devices in an audio/video system
CN1233163C (en) * 2002-08-21 2005-12-21 中山正音数字技术有限公司 Compression encoding and decoding apparatus for multi-channel digital audio signal and method thereof
JP4190384B2 (en) * 2003-10-08 2008-12-03 三洋電機株式会社 Video camera

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119461B (en) * 2006-08-02 2010-05-12 广达电脑股份有限公司 System and method for keeping synchronous playing of video frame and audio frame
CN101420544B (en) * 2007-10-22 2011-09-28 索尼株式会社 Information processing device, information processing method
CN100562122C (en) * 2008-03-27 2009-11-18 凌阳科技股份有限公司 System and method for synchronously playing audio and video of multimedia file
CN102460577A (en) * 2009-05-13 2012-05-16 李斗汉 Multimedia file playing method and multimedia player
CN107371053A (en) * 2017-08-31 2017-11-21 北京鹏润鸿途科技股份有限公司 Audio and video streams comparative analysis method and device

Also Published As

Publication number Publication date
CN1758772B (en) 2010-05-05

Similar Documents

Publication Publication Date Title
CN1195274C (en) Division distributed storage method of program source based on cluster video server
CN1507731A (en) Real-time Control Technology of Presentation Content Replay Rate
CN1411275A (en) Method for layered index image and apparatus thereof
CN1202526C (en) Information recording method, information reproduction method and information reproduction device
CN1868210A (en) File reproduction device, file reproduction method, file reproduction method program, and recording medium containing the file reproduction method program
CN1758772A (en) Method for synchronous playing video and audio of medium document and its system
CN1755797A (en) audio decoding device
CN1229991C (en) Recording equipment and recording method
CN1705017A (en) Digital information reproducing apparatus and method
CN1941144A (en) Data recording and reproducing apparatus, method, and program therefor
CN1288906C (en) Method of replaying digital broadcast program at low speed
CN1262906C (en) Computer system
CN1794216A (en) Method of synchronous playing voice frequency document and corresponding literal data
CN2615979Y (en) Broadcasting apparatus for MPEG audio-video frequency and caption data
CN1878315A (en) Video-audio synchronization method
CN1705365A (en) Audio and video signal fast forward playback method
CN1925596A (en) Individual video storing device and its image playing method
CN1169118C (en) Speech playing method for electronic device
CN1236949A (en) Separation-type image-sound processing system and method
CN1798267A (en) Device for matching image to words of a song in Kara-Ok system
CN1260968C (en) Production unit and production method of multimedia audio-visual data stream
CN1832025A (en) Audio playing method and system in game of mobile phone
CN1702602A (en) Method for adjusting processor operating frequency when playing video data
CN101064152A (en) Method for playing MP3 files
CN1564261A (en) MP3 playback device having multi-file synchronous playing function and its 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100505

Termination date: 20171104

CF01 Termination of patent right due to non-payment of annual fee