CN1610411A - Decoding proceeding time display method for MPEG audio frequency decoder - Google Patents

Decoding proceeding time display method for MPEG audio frequency decoder Download PDF

Info

Publication number
CN1610411A
CN1610411A CN 200310111949 CN200310111949A CN1610411A CN 1610411 A CN1610411 A CN 1610411A CN 200310111949 CN200310111949 CN 200310111949 CN 200310111949 A CN200310111949 A CN 200310111949A CN 1610411 A CN1610411 A CN 1610411A
Authority
CN
China
Prior art keywords
decoding
frame
time
audio
mpeg
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200310111949
Other languages
Chinese (zh)
Inventor
梁诚烈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LG Electronics Huizhou Co Ltd
Original Assignee
LG Electronics Huizhou 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 LG Electronics Huizhou Co Ltd filed Critical LG Electronics Huizhou Co Ltd
Priority to CN 200310111949 priority Critical patent/CN1610411A/en
Publication of CN1610411A publication Critical patent/CN1610411A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The present invention is method of displaying decoding time in audio MPEG decoder. For MPEG decoder in MP3, etc., frame information data of various frames in the data flow are obtained with counter and compressed to obtain audio file; the audio file is read and decoded to detect the frame information data and the decoding needed time is calculated with the counter for the frame information data; and then, the time is displayed. The decoding time may be displayed accurately not only in playing audio file but also in scanning. At the same, whether the audio trace jump has been executed may be confirmed during scanning, so that the present invention has high practical application value.

Description

Time display method is carried out in the decoding of mpeg audio decoding device
(1) technical field
Time display method is carried out in the decoding that the invention relates to the mpeg audio decoding device.Refer in particular in the middle of mpeg audio decoding devices such as MP3 player, to respectively having appended the frame information data of particular frame, and compressed audio file is when decoding, detect above-mentioned frame information data, and with the frame is the position that unit grasps frame, time showing is carried out in the decoding that calculates carry out time display method to the decoding of a kind of mpeg audio decoding device of player.
(2) background technology
Recently, about Information Compression, general MPEG (Moving picture experts group, moving image expert panel) refers to the moving image expert panel that formulates relevant digital audio and digital video standard.Also refer to relevant sound, data, the unified compressionism that uses of image.
That is, mpeg standard is a kind of decimal system system (algorism set) that has been defined.Be compression and decompression, also have on the compressed Voice ﹠ Video data generation skill and technique of data flow of the diversification of additional subsidy service data in addition about having comprised video and audio frequency.
Especially, the mpeg audio decoding device, such as the MP3 player in the middle of the mpeg data stream of reading and recording on memory or CD, then the voice data of above-mentioned mpeg data stream is decoded, revert to original audio signal again.
But mpeg standard has suitable circulation, and the relevant essential defect of packet morphological character of mpeg format exists, and does not promptly have the address information about each decoded frame on data flow.
Therefore, generally speaking, in order to understand the position of respective frame, reading data flow when playing by decoder then, can be extrapolated the decode time of above-mentioned every frame from bit rate (BIT RATE) or frame rate FS (frame rate).
The time of carrying out=(BIT RATE or FS) * frame number of every frame decoding time
And, in order to draw the quantity of above-mentioned frame, utilize the original position on counter (timer) the appointment minority data flow, and retrieve the quantity that above-mentioned original position calculates frame with bit rate or frame rate.
But,, and need the problem of retrieval original position in addition because the load of the positional information of relevant each frame can occur correctly judging and carry out the problem of time detecting with the quantity of frame.
In addition, in order to address the above problem, the situation of CD MP3 is the quantity of unit each frame of calculating each sector with the sector and calculate total frame number.That is, above-mentioned sector is 2048 byte unit, and the frame number in the sector is that approximately per 417 bytes exist 5 frames.
But, though according to above-mentioned be that unit calculates than wanting to judge frame number more accurately with the reckoning of BIT RATE or FS with the sector,, so owing in the sector, do not have the positional information of MP3 frame when calculating frame number, can produce error.
Therefore, read above-mentioned data flow, when playing, can't grasp the accurate position of frame, thereby can not accurately calculate reproduction time by decoder.In addition, during scanning (very fast carrying out, very fast returns),, can not calculate the time of carrying out accurately, jump thereby can not accurately control track even the conversion song is positioned in the middle of the song.
(3) summary of the invention
The present invention proposes in order to address the above problem.The object of the present invention is to provide a kind of decoding of mpeg audio decoding device to carry out time display method.This method is in the middle of mpeg audio decoding devices such as MP3, read will by counter specific the frame information data supplementing of each frame of data flow, and the audio file that obtains of compression, when decoding by decoder, detect the frame information data of generation, and the counter by above-mentioned frame information data calculates decoding and carries out the time, and the decoding that aforementioned calculation is drawn is carried out time showing and come out then.
The object of the present invention is achieved like this:
Time display method is carried out in the decoding of mpeg audio decoding device of the present invention, comprises following operating procedure:
The 1st step, read appended by counter specific the compressed audio file of frame information data of each frame of data flow;
The 2nd step, irrelevant with the play operation of above-mentioned audio file, the frame information data that take place during the audio detection file decoding, the counter by above-mentioned frame information data calculates decoding to carry out the time;
The 3rd step, the time is carried out in the decoding that the demonstration aforementioned calculation goes out.
Effect of the present invention:
Effect of the present invention:
Time display method is carried out in the decoding of the mpeg audio decoding device of the present invention that has said structure and as above operate very high practical value.In the middle of the mpeg decode devices such as MP3, appended, and be compressed and obtain audio file by the counter frame information data that each frame of data flow is specific.Read this audio file, and when decoding by decoder, detect the frame information data of generation, and the counter by above-mentioned frame information data calculates decoding and carries out the time, then, carry out the time by showing the decoding that aforementioned calculation goes out, thus not only can be when audio file be play, and can the time accurately demonstrate decoding in scanning and carry out the time, can also confirm when scanning simultaneously that audio track jumps accurately whether to carry out.
For further specifying above-mentioned purpose of the present invention, design feature and effect, the present invention is described in detail below with reference to accompanying drawing.
(4) description of drawings
Fig. 1 is the block data structure and the byte diagrammatic sketch of frame on the data flow of the present invention;
Fig. 2 has used the structure chart that the mpeg decode device of time display method is carried out in decoding of the present invention.
The symbol description of major part in the accompanying drawing:
10... CD 11... light picker
12... the 13... of radio frequency processing portion signal processing part
14... decoder 15...D/A transducer
16... microprocessor 17... memory
18... display
(5) embodiment
Below with reference to accompanying drawings, the embodiment that time display method is carried out in the decoding of mpeg audio decoding device of the present invention is elaborated.
Fig. 1 is that the data block of the frame on the data flow of the present invention constitutes and byte figure.Connected and composed each frame on the above-mentioned data flow.
And above-mentioned frame (frame) is made of mpeg header portion (HEADER) information and mpeg data, and above-mentioned frame can be added the frame information data of 3 bytes described below on head (HEADER) information when being compressed.
Frame#1??:00.00.01
Frame#2??:00.00.02
Frame#3??:00.00.03
That is, (Frame#1, Frame#2 Frame#3) are additional record frame information data on header information to above-mentioned each frame, are made of mpeg header portion (H)+counter (C)+mpeg data (D).
Therefore, include mpeg header portion information and mpeg data on the above-mentioned data flow successively, and the compressed while, the frame information data supplementing that 3 bytes of calculating each frame are successively constituted is to head information.
And above-mentioned frame information data can proceed to FFFFFF by the counter of 3 bytes, thereby the number that above-mentioned frame information data can be appended to header information is 167777216, can produce the frame position information of above-mentioned information number.
Frame#167777216:??FF.FF.FF
In addition, when sample frequency was 44.1KHZ, the generating period of every frame was: 1152sample * and (1/44.1khz), be 0.0261 second.Because above-mentioned frame number maximum can calculate 167777216, so the above-mentioned compressed frame of can decoding earlier calculates total reproduction time then.
Total reproduction time=167777216 * 0.0261sec=4378985 second (about 1200 hours)
In addition, the frame of compressed continuous formation on the above-mentioned data flow in order to carry out the decoding of audio decoding apparatus, can the form with audio file write down storage for a long time in memory and assisted memory device.
And, above-mentioned memory or subsidy memory storage, such as the audio file of storing on the CD detects in the above-mentioned data flow and calculates the frame information data that each frame draws successively when decompressing by decoder, carries out following computing then, grasps the position of frame.
The decoding time of carrying out=(1152sample * (1/44.1khz)) * calculation times
[table 1]
Frame position Counter (C) Decoding is carried out the time (second)
?1 ?1 ?0.0261
?2 ?2 ?0.0521
?: ?: ?:
?167777216 ?FFFFFF ?4378985
In above-mentioned table, when sample frequency was 1/44.1khz 128kbps, the time was carried out in the decoding that can occur each frame position when decoding.
Fig. 2 has used the structure chart that the mpeg audio decoding device of time display method is carried out in decoding of the present invention.As embodiments of the invention, above-mentioned mpeg audio decoding device, such as comprise in the middle of the CD MP3 player: light picker 11, radio frequency processing portion (RF) 12, Digital Signal Processing portion (DSP) 13, MP3 audio decoder 14, D/A converter 15, microprocessor 16, memory 17 etc.
Above-mentioned memory 17 by interface arrangement, is downloaded the voice data of boil down to MP3, stores device then into.The voice data of storage is input to D/A converter in above-mentioned audio decoder 14 decoding CD and the memory 17.
In addition, above-mentioned microprocessor 16 is as the device of having imported user's operation keys signal, and according to user's function selecting, store such as plays, F.F., preview fast, signal such as fall back fast, and control the storage and the broadcast of MP3 audio file.
And display 18 shows the audio file that reads by storage on above-mentioned CD 10 or the memory 17, the carrying out time that the frame information file that produces when decoding by audio decoder 14 calculates, will carry out following detailed description this.
Such as, above-mentioned user's operation keys signal is when playing " PLAY ", above-mentioned microprocessor 16 reads the audio file that is stored in above-mentioned memory 17 or CD 10, carries out the broadcast of audio signal then by audio decoder 14 decodings, and by D/A converter 15.
At this moment, detect above-mentioned frame information data, the decoding time of carrying out that calculates by the aforementioned calculation mode will be shown to display as " reproduction time " then.
In addition, even when user's operation keys signal is F.F. or rewind down, irrelevant with the play operation of D/A converter 15, thereby audio file decoded can detect frame information data on the above-mentioned frame, the decoding that calculates by aforesaid account form can be carried out time showing to display then.
Therefore, (FF/FR) play or scanned to CD 10 so that the audio file of storing on the memory 17 is decoded, then, detect above-mentioned frame information data simultaneously respectively, and grasp frame position by frame counter, can export the decoding that calculates then simultaneously and carry out time and demonstration.
Though the present invention describes with reference to current specific embodiment, but those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, should understand and wherein can make variations and modifications and do not break away from the present invention in a broad sense, so be not as limitation of the invention, as long as in connotation scope of the present invention, all will drop in the scope of claims of the present invention variation, the distortion of the above embodiment.

Claims (4)

1, time display method is carried out in a kind of decoding of mpeg audio decoding device, it is characterized in that comprising following operating procedure:
The 1st step reads the compressed audio file of the frame information data of having appended each frame by the counter specific data stream;
The 2nd step, irrelevant with the play operation of above-mentioned audio file, the frame information data that take place during the audio detection file decoding, the counter by above-mentioned frame information data calculates decoding to carry out the time;
The 3rd step, the time is carried out in the decoding that the demonstration aforementioned calculation goes out.
2, time display method is carried out in the decoding of mpeg audio decoding device as claimed in claim 1, it is characterized in that: the compressed audio file that reads the frame information data of having appended each frame that passes through the counter specific data stream in described the 1st step, be meant that the audio file that is played compresses mpeg header portion's information and mpeg data continuously and constitutes on audio data stream, the frame information data of calculating each frame successively are appended to mpeg header portion information with certain byte.
3, time display method is carried out in the decoding of mpeg audio decoding device as claimed in claim 1, it is characterized in that: calculate decoding in described the 2nd step and the time of carrying out be meant, by the counter calculation with above-mentioned frame information data is 1 frame unit, calculates decoding and carries out the time.
4, time display method is carried out in the decoding of mpeg audio decoding device as claimed in claim 1, it is characterized in that: show in described the 3rd step that the decoding time of carrying out that aforementioned calculation goes out is, the audio file that is stored in CD or memory is decoded, play then or scan, the decoding that aforementioned calculation is drawn is simultaneously carried out time output and is shown to display.
CN 200310111949 2003-10-23 2003-10-23 Decoding proceeding time display method for MPEG audio frequency decoder Pending CN1610411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310111949 CN1610411A (en) 2003-10-23 2003-10-23 Decoding proceeding time display method for MPEG audio frequency decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310111949 CN1610411A (en) 2003-10-23 2003-10-23 Decoding proceeding time display method for MPEG audio frequency decoder

Publications (1)

Publication Number Publication Date
CN1610411A true CN1610411A (en) 2005-04-27

Family

ID=34759536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310111949 Pending CN1610411A (en) 2003-10-23 2003-10-23 Decoding proceeding time display method for MPEG audio frequency decoder

Country Status (1)

Country Link
CN (1) CN1610411A (en)

Similar Documents

Publication Publication Date Title
CN1122996C (en) Apparatus and method for producing reproduction time of optical disc
CN101057295A (en) Method and apparatus for writing information on picture data sections in a data stream and for using the information
CN1581973A (en) Apparatus and method for encoding/decoding broadcast/spare contents
CN1212427A (en) Recording apparatus and method, reproducing apparatus and method, and recording medium
CN1199904A (en) Reproducing apparatus,recording apparatus, and recording medium
CN1309251C (en) Method of recording position information of broadcast signal and its signal receiver and transmitter
CN1913627A (en) Deciphering device
CN1240047C (en) Digital signal processing appts. and processing method and digital signal reproduction/reception system
CN1610411A (en) Decoding proceeding time display method for MPEG audio frequency decoder
CN1758772A (en) Method for synchronous playing video and audio of medium document and its system
CN1231916C (en) Portable (recordable) karaoke apparatus
CN1917607A (en) Method of adding and correcting times for preengagement recording system
CN1750629A (en) Recording and reproducing device
CN1667736A (en) Optical recording and/or reproducing apparatus
CN1947196A (en) Record reproducing device, simultaneous record reproduction control method and simultaneous record reproduction control program
CN1215711C (en) Image recordimg device and method
CN1260727C (en) Digital signal processing equipment for reproducing optical disk data and CD playing machine
CN1118797C (en) Optical disk reproducing device
CN2750605Y (en) Coder and decoder for video information
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
CN1520176A (en) Record reproduction appts.
CN2615979Y (en) Broadcasting apparatus for MPEG audio-video frequency and caption data
CN1292430C (en) Method for distributing voce channel identifier and method for selecting voce channel
CN1260968C (en) Multimedia video data flow making unit and its making method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication