CN1564261A - MP3 playback device having multi-file synchronous playing function and its method - Google Patents

MP3 playback device having multi-file synchronous playing function and its method Download PDF

Info

Publication number
CN1564261A
CN1564261A CN 200410025953 CN200410025953A CN1564261A CN 1564261 A CN1564261 A CN 1564261A CN 200410025953 CN200410025953 CN 200410025953 CN 200410025953 A CN200410025953 A CN 200410025953A CN 1564261 A CN1564261 A CN 1564261A
Authority
CN
China
Prior art keywords
file
synchronous
playing
format
message
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 200410025953
Other languages
Chinese (zh)
Other versions
CN100549987C (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 CNB200410025953XA priority Critical patent/CN100549987C/en
Publication of CN1564261A publication Critical patent/CN1564261A/en
Application granted granted Critical
Publication of CN100549987C publication Critical patent/CN100549987C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The disclosed device includes following parts and relevant functions: CPU for controlling data transmission and signal processing; communication port for inputting ad outputting data; storage device for storing data; audio decoder for decoding digital audio; video display; loudspeaker, and synchronous play back unit for controlling play back from multiple files. The synchronous play back unit includes synchronous information generation module and synchronous play back control module. Based on synchronous frames of multiple files, the synchronous information generation module generates synchronous message. Based on synchronous message, the synchronous play back control module plays back multiple files synchronistically. The invention realizes synchronous playing back between MP3 songs and animation to combine music with video correctly.

Description

MP3 player with multi-file synchronous playing function and method thereof
One, the technical field
The present invention relates to an MP3 player and a method thereof, and more particularly, to an MP3 player with a multi-file synchronous playing function and a method thereof.
Second, background Art
MP3 is short for MPEG (MPEG: Moving Picture Experts Group) Audio Layer-3, is a derivative encoding scheme of MPEG1, and was successfully developed in 1993 by Fraunhofer IIS institute in Germany and Thomson corporation. MP3 can make a dramatic compression ratio of 12: 1 and maintain a substantially audible sound quality, with the popularity of networks, MP3 is accepted by hundreds of millions of users. Various software products related to MP3 are coming up endlessly, and more hardware products are beginning to support MP3, and many of the currently available VCD/DVD players are capable of supporting MP3 playback functions, more portable MP3 players, and so on.
Many sound formats can be recorded with "song basic material" (IDTAG, song information), and the current standard format is ID3V1 (i.e. ID3 tag information V1, MP3 standard header tag message, V1 version number) or ID3V 2. Now that ID3V2 is gradually replacing ID3V1 and becoming a new standard format, it is superior to previous ID3V1 in that ID3V1 format is a fixed field format, which can only define and fix fields in 128bytes at the end of a song file, while ID3V2 can flexibly define each type format according to different frames (Frame IDs), and obtain different valid song messages according to different keywords, and provide flexible function of editing song messages. For example, the MP3 format supports the ID3V2 song essence format, and the MP3 song file may record: song name, album name, singer and band name, production time, lyrics, record cover, MP3 disc-storing music quality, author website, etc.
In general, the MP3 function is mostly added to the electronic devices of today, and although a lot of meaningful attempts are made to display the voice and lyrics by the MP3 on the market, the function is quite good, but the perfect function is still not achieved.
The traditional MP3 player has the functions of playing sound and subtitles, besides playing songs, a user can only see the pure text contents of song names, lyrics and the like of the songs through a liquid crystal display, an interface is dull, dynamic colors are lacked, and perfect audio-visual enjoyment cannot be realized, so the visual effect is just the defect of the current MP 3.
Therefore, the development of the audio-visual MP3 player with the function of synchronously playing sound and visual effect can ensure that a user can feel music easily and pleasantly and can well experience the interest of MTV, fully realize the audio-visual enjoyment and be an ideal method for helping the user to enjoy the music.
Third, the invention
The invention solves the technical problem that the MP3 can only play sound effect files but not video files in the background technology.
The technical scheme of the invention is as follows: an MP3 player with multi-file synchronous playing function, characterized in that: the device comprises a central processing unit for centralized control of data transmission and signal processing; a communication interface for providing data input and output; a storage device for storing document data; an audio decoder for decoding the digital audio; a display for displaying video images; a speaker for playing an audio signal; the synchronous playing device for controlling the synchronous playing of multiple files comprises a synchronous message generating module for generating synchronous messages according to synchronous frames of multiple files and a synchronous playing control module for synchronously playing the multiple files according to the synchronous messages.
The communication interface is a USB interface.
The synchronization message generation module includes:
a monitoring unit for detecting the synchronous start frame selected by the user in the file;
a setting unit for setting a synchronization start frame between the plurality of files in association;
and the storage unit is used for storing the association table generated by the association relationship in the anchor file.
The synchronous playing control module further comprises: an analysis unit for analyzing the related message; a reset unit for directing the synchronously played files according to the related information.
The invention also provides a method for generating the synchronous message of the MP3 playing device with the function of synchronously playing multiple files, which is characterized in that: the method comprises the following steps: 1) defining a sync frame data structure in the MP3ID3V2 header; 2) setting synchronous frame association in the main broadcasting file and the synchronous auxiliary broadcasting file; 3) generating a synchronization offset according to the association; 4) generating a synchronization message according to the offset; 5) and storing the synchronization message into the anchor file according to the file header format.
The ID3V2 header synchronization frame data structure is:
frame id LongID ShortID Tagdiscrd Fielddiscrd Field defs Descriptions
ID3FID_LINKEDINFO ″LNK″ ″LINK″ False false ID3FD_LinkedInfo Linkedinformation
wherein,
frame ID represents MP3 structure type definition in ID3V2 format;
long ID represents MP3 structural keyword definition in ID3V2 format;
short ID represents MP3 structural keyword definition in ID3V2 format;
tag discrete represents a description character of an MP3 header structure of ID3V2 format;
field discrete represents the description character of the Field element in the MP3 header structure of ID3V2 format;
field defs represents the type definition of the Field element in the MP3 header structure of ID3V2 format;
descriptions represent the type description characters of the field elements in the MP3 header structure in ID3V2 format.
The step 2) comprises the following steps:
2-1) playing the main broadcasting file and the auxiliary broadcasting file;
2-2) selecting a start frame needing synchronous playing in the anchor file;
2-3) selecting a start frame needing synchronous playing from the playing file;
2-4) associating the start frame settings in the anchor file and the slave file.
The main broadcasting file is an MP3 music file, and the sub broadcasting file is an animation file.
The invention also provides a synchronous playing method of the MP3 playing device with the function of synchronously playing multiple files, which is characterized in that: the method comprises the following steps:
1) reading MP3ID3V2 header data;
2) matching the file header data with the MP3 format file;
3) setting the matched file as an anchor file;
4) playing the anchor file and reading the synchronous message from the anchor file;
5) and synchronously playing the slave playing files pointed by the synchronous message according to the synchronous message.
The step 2) matches the MP3 format file according to the keyword message in the header data.
The main broadcasting file is an MP3 music file, and the sub broadcasting file is an animation file.
The invention has the following advantages:
the invention processes MP3 files through MP3 file format, adds time synchronization table of multi-file (such as animation data and sound data), thereby realizing synchronous playing function of MP3 songs and animations, organically combines music and video files, realizes synchronous playing of animations and MP3 sounds, thus users can fully realize perfect audio-visual enjoyment, the invention also allows users to independently edit and automatically generate animation and MP3 synchronous index table and update to MP3 files, and the invention can be used for synchronous learning method of MP3 animations without being limited to songs.
Description of the drawings
FIG. 1 is a diagram of the hardware architecture of the MP3 playback device of the present invention;
FIG. 2 is a schematic diagram of a synchronous playback device according to the present invention;
FIG. 3 is a flowchart of a method for generating a synchronization message of an MP3 playback device according to the present invention;
FIG. 4 is a flowchart of the step of setting the synchronization association according to the present invention;
FIG. 5 is a flowchart of a synchronous playing method of the MP3 playing device according to the present invention;
FIG. 6 is a diagram of a time synchronization table for animation frames and audio frames according to the present invention.
Fifth, detailed description of the invention
The invention provides an MP3 player with multi-file synchronous playing function, which inserts synchronous information through MP3ID3V2 standard file header format, thereby synchronously playing a plurality of files.
Referring to fig. 1, the MP3 device includes a cpu 101, a communication interface 102, a storage device 103, an audio decoder 104, a display 105, a speaker 106, and a synchronized playback device 107. The cpu 101 is connected to the communication interface 102, the storage device 103, the audio decoder 104, the display 105, the speaker 106, and the synchronous playback device 107.
The central processing unit 101 is used for centrally controlling data transmission and signal processing; the communication interface 102 is an interface for providing data input and output, and may be a USB interface; the storage device 103 is used for storing document data; the audio decoder 104 is used for decoding digital audio; the display 105 is used to display video images; the speaker 106 is used for playing audio signals; the synchronized playback device 107 is used to control the synchronized playback of multiple files.
Referring to fig. 2, the synchronized playback device 107 includes a synchronization message generating module 1071 and a synchronized playback control module 1072, wherein the synchronization message generating module 1071 is configured to generate a synchronization message according to the synchronization frames of the plurality of files, and the synchronized playback control module 1072 is configured to play the plurality of files synchronously according to the synchronization message.
The synchronization message generation module 1071 further includes a monitoring unit 10711, a setting unit 10712, and a storage unit 10713. The monitoring unit 10711 is used to detect the synchronization start frame selected by the user in the file, the setting unit 10712 is used to set the correlation between the synchronization start frames of the plurality of files, and the storage unit 10713 is used to generate the correlation table to store in the anchor file.
The synchronized playback control unit 1072 further includes a parsing unit 10721 and a reset unit 10722. The parsing unit 10721 is used for analyzing the related message and the redirecting unit 10722 is used for directing the files played synchronously according to the related message.
Referring to fig. 3, the synchronization message generation method includes: step 301, defining a synchronization frame data structure in an MP3ID3V2 file header; step 302, setting synchronous frame association in a main broadcasting file and a synchronous auxiliary broadcasting file thereof; 303, generating a synchronous offset according to the association; step 304, generating a synchronization message according to the offset; step 305, store the synchronization message into the anchor file according to the header format.
The ID3V2 header synchronization frame data structure may be:
frame id LongID ShortID Tagdiscrd Fielddiscrd Field defs Descriptions
ID3FID LINKEDINFO ″LNK″ ″LINK″ false false ID3FD_LinkedInfo Linkedinformation
wherein,
frame ID represents MP3 structure type definition in ID3V2 format;
long ID represents MP3 structural keyword definition in ID3V2 format;
short ID represents MP3 structural keyword definition in ID3V2 format;
tag discrete represents a description character of an MP3 header structure of ID3V2 format;
field discrete represents the description character of the Field element in the MP3 header structure of ID3V2 format;
field defs represents the type definition of the Field element in the MP3 header structure of ID3V2 format;
descriptions represent the type description characters of the field elements in the MP3 header structure in ID3V2 format.
Referring to fig. 4, the step 302 of setting a synchronization frame association in the anchor file and the synchronized slave file further includes the following steps: step 401, playing the anchor file and the slave file thereof; step 402, selecting a start frame needing synchronous playing in a main broadcasting file; step 403, selecting a start frame to be played synchronously from the playing file; step 404, associating the start frames in the anchor file and the slave file.
Referring to fig. 5, the synchronized playback method includes: step 501, reading the header data of MP3ID3V 2; step 502, matching the header data with the MP3 format file; step 503, setting the matched file as a main broadcasting file; step 504, playing the anchor file and reading the synchronization message from the anchor file; step 505, synchronously playing the slave playing file pointed by the synchronization message according to the synchronization message.
Since MP3 playback devices mostly play music files in MP3 format, and video files are the most convenient motion picture files, the following description will take music files as the main file and motion picture files as the synchronous slave files as examples.
Firstly, the animation data and the MP3 song file can be stored in the storage device 103 (such as Nand Flash Card, NOR Flash Card) through the USB communication interface 102, the synchronous relation table with the MP3 music is searched in the process of playing the song, and then the synchronization relation table of the animation and the MP3 data content position corresponding to the animation is inserted in the MP3 file or the path where the data is inserted according to the MP3ID3V2 standard file header format. When the host plays music through the MP3 digital audio decoder 104, the host synchronously displays the animation frames corresponding to the music through the synchronization relationship table.
The present invention requires the operating system to support a multi-Thread (Thread) mode of operation, requiring two threads to be turned on: one thread is used as the main thread to control the MP3 music playing control and the control of displaying the synchronized animation, and the other thread is used as the sub-thread to control the music playing of the MP3 audio decoder.
The invention can automatically generate the synchronous message according to the selection of the user. For example, music and animation files may be played at the same time, the user may select the time of playing music and the segment of playing animation as the start frame to be synchronized at any time, at this time, the monitoring unit 10711 monitors the selection of the user at any time in the background, and the setting unit 10712 sets and associates the music file with the synchronization start frame in the animation file, and generates the synchronization message table, as shown in fig. 6, the animation frame synchronization message is the animation frame message matched with the content of the song; the music playing message refers to the synchronization message of the address of the file played by the song, the time of the song, etc., therefore, the table can be regarded as a relationship table of the time synchronization between the animation frame and the sound frame. The synchronization relationship table is then stored into the MP3 file by the storage unit 10713 according to the MP3ID3V2 standard header format. The MP3 song file with the sync message added is also in the standard ID3V2 format. It can be applied to any MP3 song player which can play ID3V2 format.
The synchronous playing process of the invention is based on the synchronous playing information of the animation and the MP3 music, firstly, the Frame Type (Frame Type) of the MP3 song is obtained according to the ID3V2 format, the keyword is obtained according to the Frame Type to match with the MP3 song format, if the Frame Type and the MP3 music format are matched, the synchronous Frame information of the animation and the MP3 music information are analyzed by the analyzing unit 10721 from the song file, the song information associated with the synchronous information is obtained in the song playing process, the song information and the animation information are associated through the song information and the synchronous information, the synchronous playing file is positioned by the resetting unit 10722 according to the synchronous information, the animation file is synchronously opened in the song playing process, the animation is played, and the method for realizing the synchronous playing function of the MP3 song and the animation is realized.
In this embodiment, by using the structure format of MP3 standard ID3V2, an animation and an index table of the position of the content of MP3 material corresponding to the animation are inserted into an MP3 document, or a path where the material is located is inserted, so that when playing MP3, the animation frame corresponding to the current song paragraph can be played synchronously, which can be called MP3MTV, and the animation and music are organically combined to realize the function of playing animation and MP3 sound synchronously. Because the processed file is still a standard MP3 format file, the universality is not influenced, the playing of other universal players is not influenced, and only the content required by the player is added, so that the MP3 MTVplayer can play the sound and the animation synchronously.

Claims (11)

1. An MP3 player with multi-file synchronous playing function, characterized in that: the device comprises a central processing unit for centralized control of data transmission and signal processing; a communication interface for providing data input and output; a storage device for storing document data; an audio decoder for decoding the digital audio; a display for displaying video images; a speaker for playing an audio signal; the synchronous playing device for controlling the synchronous playing of multiple files comprises a synchronous message generating module for generating synchronous messages according to synchronous frames of multiple files and a synchronous playing control module for synchronously playing the multiple files according to the synchronous messages.
2. The MP3 playback device with multi-file synchronized playback function as claimed in claim 1, wherein: the communication interface is a USB interface.
3. The MP3 playback device with multi-file synchronized playback function as claimed in claim 1, wherein: the synchronization message generation module comprises:
a monitoring unit for detecting the synchronous start frame selected by the user in the file;
a setting unit for setting a synchronization start frame between the plurality of files in association;
and the storage unit is used for storing the association table generated by the association relationship in the anchor file.
4. The MP3 playback device with multi-file synchronized playback function as claimed in claim 1, wherein the synchronized playback control module further comprises: an analysis unit for analyzing the related message; a reset unit for directing the synchronously played files according to the related information.
5. The method for generating synchronous messages of an MP3 player with multi-file synchronous playing function as claimed in claim 1, wherein: the method comprises the following steps:
1) defining a sync frame data structure in the MP3ID3V2 header;
2) setting synchronous frame association in the main broadcasting file and the synchronous auxiliary broadcasting file;
3) generating a synchronization offset according to the association;
4) generating a synchronization message according to the offset;
5) and storing the synchronization message into the anchor file according to the file header format.
6. The method of claim 5, wherein the header sync frame data structure of ID3V2 file is:
frame id LongID ShortID Tagdiscrd Fielddiscrd Field defs Descriptions ID3FID_LINKEDINFO ″LNK″ ″LINK″ False false ID3FD_LinkedInfo Linkedinformation
wherein,
frame ID represents MP3 structure type definition in ID3V2 format;
long ID represents MP3 structural keyword definition in ID3V2 format;
short ID represents MP3 structural keyword definition in ID3V2 format;
tag discrete represents a description character of an MP3 header structure of ID3V2 format;
field discrete represents the description character of the Field element in the MP3 header structure of ID3V2 format;
field defs represents the type definition of the Field element in the MP3 header structure of ID3V2 format;
descriptions represent the type description characters of the field elements in the MP3 header structure in ID3V2 format.
7. The method of claim 5, wherein the MP3 player comprises: the step 2) comprises the following specific steps:
2-1) playing the main broadcasting file and the auxiliary broadcasting file;
2-2) selecting a start frame needing synchronous playing in the anchor file;
2-3) selecting a start frame needing synchronous playing from the playing file;
2-4) associating the start frame settings in the anchor file and the slave file.
8. The method of claim 5, wherein the MP3 player comprises: the main playing file is an MP3 music file, and the secondary playing file is an animation file.
9. A synchronous playing method of MP3 player with multi-file synchronous playing function as claimed in claim 1, wherein: the method comprises the following steps:
1) reading MP3ID3V2 header data;
2) matching the file header data with the MP3 format file;
3) setting the matched file as an anchor file;
4) playing the anchor file and reading the synchronous message from the anchor file;
5) and synchronously playing the slave playing files pointed by the synchronous message according to the synchronous message.
10. The synchronous playing method of MP3 playing device with multi-file synchronous playing function as claimed in claim 9, wherein: the step 2) matches the MP3 format file according to the keyword message in the header data.
11. The synchronized playback method of an MP3 playback device with the multi-file synchronized playback function as claimed in claim 9, wherein the master file is an MP3 music file, and the slave files are animation files.
CNB200410025953XA 2004-03-16 2004-03-16 MP3 playback equipment and method thereof with multifile synchronous playing function Expired - Fee Related CN100549987C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200410025953XA CN100549987C (en) 2004-03-16 2004-03-16 MP3 playback equipment and method thereof with multifile synchronous playing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200410025953XA CN100549987C (en) 2004-03-16 2004-03-16 MP3 playback equipment and method thereof with multifile synchronous playing function

Publications (2)

Publication Number Publication Date
CN1564261A true CN1564261A (en) 2005-01-12
CN100549987C CN100549987C (en) 2009-10-14

Family

ID=34480498

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200410025953XA Expired - Fee Related CN100549987C (en) 2004-03-16 2004-03-16 MP3 playback equipment and method thereof with multifile synchronous playing function

Country Status (1)

Country Link
CN (1) CN100549987C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101606203B (en) * 2006-12-12 2012-06-27 汤姆森许可贸易公司 Method and system for subframe accurate synchronization
CN103713875A (en) * 2013-12-30 2014-04-09 郭磊 Method for playing text information in digital music

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101606203B (en) * 2006-12-12 2012-06-27 汤姆森许可贸易公司 Method and system for subframe accurate synchronization
CN103713875A (en) * 2013-12-30 2014-04-09 郭磊 Method for playing text information in digital music

Also Published As

Publication number Publication date
CN100549987C (en) 2009-10-14

Similar Documents

Publication Publication Date Title
US9875735B2 (en) System and method for synthetically generated speech describing media content
CN1301506C (en) Play list management device and method
WO2004034276A1 (en) A method and apparatus for delivering programme-associated data to generate relevant visual displays for audio contents
CN101060606A (en) Reproducing method for reproducing text-based subtitle data
CN1922610A (en) Program contents positioning method and device
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
US20100325683A1 (en) Media broadcast emulator
WO2017092333A1 (en) Method and device for generation and playback of video
CN1577577A (en) Method and apparatus for mixing audio stream, and information storage medium
CN1757068A (en) The method and apparatus and the information storage medium that are used for mixed audio stream
CN1591314A (en) Audio player with lyrics display
US20110069934A1 (en) Apparatus and method for providing object based audio file, and apparatus and method for playing back object based audio file
CN117319765A (en) Video processing method, device, computing equipment and computer storage medium
CN1713700A (en) Data processing device, method thereof, program thereof, and recording medium recording the program
CN1564261A (en) MP3 playback device having multi-file synchronous playing function and its method
CN2891136Y (en) Remote voice controller
CN1622212A (en) Recording apparatus, reproducing apparatus, recording method, reproducing method, and recording medium thereof
CN1794216A (en) Method of synchronous playing voice frequency document and corresponding literal data
US20060016321A1 (en) Apparatus and method for controlling sounds and images
CN1845249A (en) MP3 multi-language sound-word synchronizing interactive learning data making and playing method and device
CN1980368A (en) Multi-media document generating method of media playing apparatus and apparatus thereof
JP2010081149A (en) Information-recording and reproducing device
CN1489369A (en) Karaoke making method and playing method for wireless network and wireless hand-held device
JP2006108843A (en) Reproducing apparatus and reproducing method
TWI225216B (en) MP3 player with multi-file synchronous playing function and the method thereof

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091014

Termination date: 20130316