KR100762572B1 - Method and Apparatus for converting Advanced Audio Codec file into MPEG-4 Audio file - Google Patents
Method and Apparatus for converting Advanced Audio Codec file into MPEG-4 Audio file Download PDFInfo
- Publication number
- KR100762572B1 KR100762572B1 KR1020050092769A KR20050092769A KR100762572B1 KR 100762572 B1 KR100762572 B1 KR 100762572B1 KR 1020050092769 A KR1020050092769 A KR 1020050092769A KR 20050092769 A KR20050092769 A KR 20050092769A KR 100762572 B1 KR100762572 B1 KR 100762572B1
- Authority
- KR
- South Korea
- Prior art keywords
- atom
- file
- aac
- mp4a
- information
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/10009—Improvement or modification of read or write signals
- G11B20/10037—A/D conversion, D/A conversion, sampling, slicing and digital quantisation or adjusting parameters thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/561—Adding application-functional data or data for application control, e.g. adding metadata
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/329—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/00007—Time or data compression or expansion
- G11B2020/00014—Time or data compression or expansion the compressed signal being an audio signal
- G11B2020/00057—MPEG-1 or MPEG-2 audio layer III [MP3]
Abstract
본 발명은 AAC 파일을 파싱(parsing)하여 헤더와 데이터로 분류하고, 상기 분류된 헤더 정보를 이용하여 채널과 주파수 정보를 세팅하고, ATOM의 기본 구조를 생성하여 초기화하고, 상기 파싱(parsing)된 AAC 파일의 매 프레임마다 프레임 사이즈를 구하고, 각 프레임 갱신에 필요한 ATOM 정보를 갱신하고, 각 ATOM 정보를 해당 프레임 데이터와 결합시켜 MP4A 파일로 변환하는 것으로서, ADIF 헤더와 같이 프레임 사이에 헤더가 존재하지 않는 컨텐츠에 대해서도 이동단말기에 전송 과정에서 바로 MP4A 파일로 변환할 수 있음은 물론, 부호화를 다시 하지 않아도 되기 때문에 추가 음질 감소를 막을 수 있다.The present invention parses an AAC file into headers and data, sets channel and frequency information using the classified header information, generates and initializes an ATOM basic structure, and parses the parsed AAC file. The frame size is obtained for each frame of the AAC file, the ATOM information required for each frame update is updated, and each ATOM information is combined with the corresponding frame data to be converted into an MP4A file.There is no header between frames like the ADIF header. Even if the content is not available, the mobile terminal can convert the MP4A file to the MP4A file in the course of transmission, and the additional sound quality can be prevented because the encoding is not required.
AAC파일, MP4A파일 AAC file, MP4A file
Description
도 1은 종래의 AAC파일을 MP4A 파일로 변환하는 장치의 구성을 개략적으로 나타낸 블럭도.1 is a block diagram schematically showing the configuration of an apparatus for converting a conventional AAC file into an MP4A file.
도 2는 본 발명에 따른 AAC 파일의 MP4A파일로의 변환 장치를 나타낸 블럭도. 2 is a block diagram showing an apparatus for converting an AAC file into an MP4A file according to the present invention;
도 3은 본 발명에 따른 MP4A 파일 포맷을 나타낸 도면. 3 illustrates an MP4A file format in accordance with the present invention.
도 4는 본 발명에 따른 AAC 파일을 MP4A 파일로 변환하는 방법을 나타낸 흐름도.4 is a flowchart illustrating a method of converting an AAC file into an MP4A file according to the present invention.
도 5는 본 발명에 따른 AAC 파일을 MP4A 파일로 변환시 생성되는 ATOM을 나타낸 도면. 5 is a diagram illustrating an ATOM generated when converting an AAC file into an MP4A file according to the present invention.
도 6은 본 발명에 따른 ADTS 헤더를 가진 AAC 파일의 MP4A 파일로의 변환 방법을 나타낸 흐름도. 6 is a flowchart illustrating a method of converting an AAC file having an ADTS header into an MP4A file according to the present invention.
도 7은 본 발명에 따른 ADIF 헤더를 가진 AAC 파일의 MP4A 파일로의 변환 방법을 나타낸 흐름도. 7 is a flowchart illustrating a method of converting an AAC file having an ADIF header into an MP4A file according to the present invention.
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for main parts of the drawings>
100 : AAC 디코더 110 : AAC 인코더100: AAC decoder 110: AAC encoder
120, 210 : MP4A 파일 포맷 변환기 200 : AAC 파싱(parsing)부120, 210: MP4A file format converter 200: AAC parsing unit
본 발명은 휴대용 기기에서 AAC(Advanced Audio Codec) 재생을 위하여 AAC 파일을 MP4A(MPEG-4 Audio)파일로 변환하는 AAC파일의 MP4A 파일로의 변환 방법 및 장치에 관한 것이다. The present invention relates to a method and apparatus for converting an AAC file into an MP4A file, which converts an AAC file into an MP4A (MPEG-4 Audio) file for AAC (Advanced Audio Codec) reproduction in a portable device.
CD를 시초로 하여 발전해온 디지털 오디오는 대용량의 데이터를 효과적으로 전송 또는 저장하기 위하여 오디오를 압축하여 저장용량을 줄이는 기술이 개발되기 시작하였다. 1992년부터 엠펙 주도하에 오디오 부호화 방법이 국제 표준화되기 시작하였으며 이외에도 돌비, 소니, AT&T 등에서도 자체적으로 오디오 부호화 방법을 개발하였다.Digital audio, which has been developed since the beginning of CD, has been developed to reduce the storage capacity by compressing audio in order to effectively transmit or store large amounts of data. Since 1992, the audio encoding method has been internationally standardized under the leadership of MPEG, and Dolby, Sony and AT & T have developed their own audio encoding methods.
오디오 부호화 방법 중 가장 널리 사용되고 있는 MP3는 엠펙 1, 2 오디오 계층 III을 지칭한다. 일반적으로 MP3는 CD와 유사한 음질을 제공하고 있는 스테레오 128Kbps이상의 데이터를 필요로 한다. 최근 오디오 부호화 방법의 추세는 음질은 유지하면서 더 적은 데이터만을 가지도록 부호화하는 방법들이 개발되어지고 있다. MP3, which is most widely used among audio encoding methods, refers to
이러한 방법들은 전송대역을 효율적으로 사용하여야 하는 무선환경에서 우선 적으로 채택되어 사용되고 있으며, 그 활용 범위는 점점 넓어져가고 있는 추세이다. 96Kbps의 데이터로 MP3 128Kbps와 유사한 음질을 제공하여 무선환경의 VOD, AOD등에서 많이 사용되는 엠펙 2, 4 AAC의 경우가 그 대표적인 예로서 최근 발매되는 MP3 플레이어의 경우 AAC를 지원하는 제품들이 등장하고 있다. 대표적으로는 애플사의 아이팟을 들수 있다.These methods are preferentially adopted and used in the wireless environment where the transmission band should be used efficiently, and the range of their application is getting wider. For example,
AAC 파일은 인터페이스 포맷으로 ADIF(Audio Data Interchange Format)와 ADTS(Audio Data Transport Stream )헤더를 가지고 있는데, 부호화기에 따라 이들 헤더를 가지지 않는 raw 스트림의 형태의 AAC 파일의 생성도 가능하다. 일반적으로 ADTS는 매 프레임마다 헤더 정보를 가지고 있기 때문에 프레임의 시작 위치 및 사이즈 정보를 알기가 용이하다. 반면, ADIF의 경우는 파일 앞에만 헤더 정보를 가지고 있기 때문에 임의의 스트림 위치에서 다음 프레임의 시작 위치를 찾는 것이 쉽지 않다.The AAC file has an audio data interchange format (ADIF) and an audio data transport stream (ADTS) header as an interface format. Depending on the encoder, the AAC file may generate an AAC file in the form of a raw stream without these headers. In general, since ADTS has header information for each frame, it is easy to know the start position and size information of a frame. On the other hand, in the case of ADIF, since the header information is included only in front of the file, it is not easy to find the starting position of the next frame at any stream position.
따라서, ADTS의 경우 프레임 단위로 이동하여 시작하는 기능 제공이 비교적 용이하다. 그러나 ADIF의 경우는 FF의 경우 일일이 스트림을 비트열 구조에 맞게 찾아가야만 가능하며, REW의 경우는 시작 위치 후보군을 이용하여 여러번 시도를 하여야 프레임의 시작 위치를 찾을 수 있다.Therefore, in the case of ADTS, it is relatively easy to provide a function of starting by moving frame by frame. However, in the case of ADIF, it is possible to search the stream according to the bit string structure in the case of FF, and in case of REW, the start position of the frame can be found by several attempts using the start position candidate group.
아이팟의 경우 이러한 AAC 파일을 이용하여 플레이하는 것이 아니라, 시간 및 사이즈 정보를 추가적으로 제공하는 사이드 정보가 더해진 MP4A 라는 파일 형태를 통해 지원하게 된다. 그러나 아이팟과 제공되는 번들 프로그램인 아이튠의 경우, CD, WAV, MP3등을 AAC로 변환 부호화하면서 MP4A의 파일 형태로 변환하여 넣어 주는 형태로 되어 있다.In the case of the iPod, instead of playing with the AAC file, it is supported by a file type called MP4A with side information providing additional time and size information. However, iTunes, a bundled program provided with iPod, converts and encodes CDs, WAVs, and MP3s into AAC, and converts them into MP4A file formats.
반면, 기존에 존재하는 aac 파일의 경우에는 이러한 기능을 제공하지 못하고 있으며, 아이팟에 넣어 주기 위해서는 도 1과 같이 AAC 디코더(100)에서 AAC 파일을 AAC 복호화를 한 후, AAC 인코더(110)에서 재부호화를 통해 MP4A 파일 포맷 변환부(120)에서 MP4A 형태로 바꾸어 주어야 한다. 아이팟 뿐 아니라 휴대폰의 경우 또한 MP3에 이은 AAC파일 포맷에 대한 음악 플레이어의 중요성이 커지고 있기 때문에 이와 동일한 형태의 변환이 필요할 것으로 예상된다.On the other hand, in the case of the existing aac file does not provide such a function, in order to put in the iPod as shown in Figure 1
그러나 상기와 같은 종래에는 AAC 파일을 MP4A 파일로 변환하는 과정이 복잡한 단점이 있다. However, the above-mentioned conventional process has a complicated disadvantage of converting an AAC file into an MP4A file.
따라서, 본 발명의 목적은 AAC 형태의 파일을 MP4A로 변환하는 과정을 간략화함으로써 휴대용 기기로 전송하는 과정에 변환과정 수행을 가능하게하여 보다효율적인 오디오 재생 기능을 가능하게 하는 AAC파일의 MP4A 파일로의 변환 방법 및 장치를 제공하는데 있다. Accordingly, an object of the present invention is to simplify the process of converting an AAC file into MP4A, thereby converting an AAC file into an MP4A file, which enables the conversion process to be performed in a process of transferring to a portable device, thereby enabling a more efficient audio playback function. To provide a conversion method and apparatus.
상기 목적들을 달성하기 위하여 본 발명의 일 측면에 따르면, AAC 파일을 파싱(parsing)하여 헤더와 데이터로 분류하고, 상기 분류된 헤더 정보를 이용하여 채널과 주파수 정보를 세팅하고, ATOM의 기본 구조를 생성하여 초기화하고, 상기 파싱(parsing)된 AAC 파일의 매 프레임마다 프레임 사이즈를 구하고, 각 프레임 갱신에 필요한 ATOM 정보를 갱신하고, 각 ATOM 정보를 해당 프레임 데이터와 결합시켜 MP4A 파일로 변환하는 것을 특징으로 하는 AAC파일의 MP4A 파일로의 변환 방법이 제공된다.According to an aspect of the present invention, in order to achieve the above object, the AAC file is parsed and classified into header and data, the channel and frequency information is set using the classified header information, and the basic structure of ATOM is set. It generates and initializes, obtains a frame size for each frame of the parsed AAC file, updates ATOM information required for each frame update, and combines each ATOM information with the corresponding frame data to convert to an MP4A file. A method of converting an AAC file into an MP4A file is provided.
상기 파싱(parsing)된 AAC 파일의 매 프레임마다 프레임 사이즈를 구하는 것에서 상기 AAC 파일의 헤더가 ADTS이면, 각 프레임의 헤더 정보와 경계 조건을 이용하여 프레임 사이즈를 구한다. In obtaining a frame size for each frame of the parsed AAC file, if the header of the AAC file is ADTS, the frame size is obtained by using header information and boundary conditions of each frame.
또한, 상기 파싱(parsing)된 AAC 파일의 매 프레임마다 프레임 사이즈를 구하는 것에서 상기 AAC 파일의 헤더가 ADIF이면, AAC 데이터의 비트 스트림을 파싱(parsing)하여 프레임 사이즈를 구한다. Further, in obtaining a frame size for each frame of the parsed AAC file, if the header of the AAC file is ADIF, a bit stream of AAC data is parsed to obtain a frame size.
본 발명의 다른 측면에 따르면, AAC 파일을 파싱(parsing)하여 헤더와 데이터 부분으로 분류하는 AAC 파싱(parsing)부, 상기 AAC 파싱(parsing)부에서 파싱(parsing)된 헤더 정보를 이용하여 채널 정보, 샘플링 주파수 정보, 각 프레임의 사이즈 정보를 구하고, 상기 구해진 정보를 이용하여 ATOM을 구성하여 AAC 파일과 결합시켜 MP4A 파일을 생성하는 MP4A 포맷 변환부를 포함하는 것을 특징으로 하는 AAC파일의 MP4A 파일로의 변환 장치가 제공된다. According to another aspect of the present invention, an AAC parsing unit for parsing an AAC file into a header and a data portion, and channel information using header information parsed by the AAC parsing unit. And an MP4A format conversion unit for acquiring the sampling frequency information and the size information of each frame, and constructing an ATOM and combining the AAC file with the AAC file to generate an MP4A file. A converter is provided.
이하 첨부된 도면을 참조하여 본 발명의 바람직한 실시예를 상세히 설명하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 2는 본 발명에 따른 AAC 파일의 MP4A파일로의 변환 장치를 나타낸 블럭도, 도 3은 본 발명에 따른 MP4A 파일 포맷을 나타낸 도면이다. 2 is a block diagram showing an apparatus for converting an AAC file into an MP4A file according to the present invention, and FIG. 3 is a diagram showing an MP4A file format according to the present invention.
도 2를 참조하면, AAC 파일의 MP4A파일로의 변환 장치는 AAC 파싱(parsing)부(200), MP4A 포맷 변환부(210)를 포함한다.Referring to FIG. 2, an apparatus for converting an AAC file into an MP4A file includes an
상기 AAC 파싱(parsing)부(200)는 입력되는 AAC 파일을 파싱(parsing)하여 헤더와 데이터 부분으로 분류한다. The
상기 MP4A 포맷 변환부(210)는 상기 AAC 파싱(parsing)부(200)에서 파싱(parsing)된 헤더에서 채널 정보, 샘플링 주파수 정보, 각 프레임의 사이즈 정보를 구하고, 상기 구해진 정보를 이용하여 ATOM을 구성한다. The
그런다음 상기 MP4A 포맷 변환부(210)는 상기 구성된 ATOM을 AAC 파일과 결합시켜 MP4A 파일을 생성한다. Then, the
즉, 상기 MP4A 포맷 변환부(210)는 AAC 파일의 정보를 이용하여 헤더 및 데이터 파싱(parsing) 과정을 통해 AAC 데이터 사이즈를 구하였고, 바로 MP4A에 들어가는 ATOM을 구성한다. That is, the
상기와 같이 구성된 MP4A 파일은 도 3과 같이 구성되어 있다. The MP4A file configured as described above is configured as shown in FIG.
도 3을 참조하면, MP4A 파일은 File Type ATOM(300), Media Data ATOM(310), Movie ATOM(320)으로 구성된다. 즉, 상기 MP4A 파일은 AAC 파일에 File Type ATOM(300)와 Movie ATOM(320)이 더해진 구성으로서, 이들 정보는 AAC의 채널정보, 샘플링 주파수 정보, 각 프레임의 사이즈 정보를 이용하여 구성한다. Referring to FIG. 3, the MP4A file is composed of a File Type ATOM 300, a Media Data ATOM 310, and a Movie ATOM 320. That is, the MP4A file is a configuration in which a File Type ATOM 300 and a Movie ATOM 320 are added to an AAC file, and these information are configured by using channel information, sampling frequency information, and size information of each frame of the AAC.
즉, MP4A 파일 변환 장치는 AAC 파일의 각 프레임별 헤더를 읽어서 샘플링 주파수와 채널 정보를 세팅한다.That is, the MP4A file conversion apparatus reads the header for each frame of the AAC file and sets the sampling frequency and the channel information.
그런 다음 상기 MP4A 파일 변환 장치는 각 프레임별로 프레임 사이즈를 구하 고, 상기 사이즈 정보를 이용하여 MP4A에 들어가는 ATOM을 구성한다. Then, the MP4A file conversion apparatus obtains a frame size for each frame, and configures ATOM for entering MP4A using the size information.
도 4는 본 발명에 따른 AAC 파일을 MP4A 파일로 변환하는 방법을 나타낸 흐름도, 도 5는 본 발명에 따른 AAC 파일을 MP4A 파일로 변환시 생성되는 ATOM을 나타낸 도면이다. 4 is a flowchart illustrating a method of converting an AAC file into an MP4A file according to the present invention, and FIG. 5 is a diagram illustrating an ATOM generated when converting an AAC file into an MP4A file according to the present invention.
도 4를 참조하면, MP4A 파일 변환 장치는 AAC 파일이 입력되면(S400), 상기 AAC 파일을 파싱(parsing)하여 헤더와 데이터부분으로 분류한다(S402).Referring to FIG. 4, when an AAC file is input (S400), the MP4A file conversion apparatus parses the AAC file into a header and a data part (S402).
단계 402의 수행 후, 상기 MP4A 파일 변환 장치는 상기 분류된 헤더 정보를 이용하여 채널과 주파수 정보를 가져오고 각 ATOM의 기본 구조를 생성하여 초기화를 수행한다(S404). 즉, 상기 MP4A 파일 변환 장치는 상기 분류된 헤더 정보를 이용하여 채널과 주파수 정보를 가져오고 도 3과 같은 ATOM의 기본 구조를 생성하여 초기화한다.After performing step 402, the MP4A file conversion apparatus obtains channel and frequency information by using the classified header information, and generates and initializes a basic structure of each ATOM (S404). That is, the MP4A file conversion apparatus obtains channel and frequency information using the classified header information, and generates and initializes the basic structure of ATOM as shown in FIG.
단계 404의 수행 후, 상기 MP4A 파일 변환 장치는 매 프레임마다 AAC 스트림을 추가하면서 프레임 갱신이 필요한 ATOM 정보를 갱신한다(S406). After performing step 404, the MP4A file conversion apparatus updates ATOM information requiring frame update while adding an AAC stream every frame (S406).
즉, 상기 MP4A 파일 변환 장치는 매 프레임마다 AAC 스트림을 추가하면서 도 5의 제2 분류와 같이 프레임마다 갱신이 필요한 ATOM 정보를 갱신한다. 각 ATOM 데이터에서 갱신되는 필드에 대하여 도 5를 참조하여 설명하기로 한다.That is, the MP4A file conversion apparatus adds an AAC stream every frame and updates ATOM information that needs to be updated for each frame as shown in the second classification of FIG. 5. A field updated in each ATOM data will be described with reference to FIG. 5.
상기 MDAT ATOM은 코덱 데이터로서, AAC 스트림을 말한다. Time to Sample Atom은 해당 프레임이 얼마의 지속 시간을 가지고 플레이 되어야 하는가에 대한 정보를 나타내며, 이는 샘플링 주파수 정보를 이용하여 구성한다.The MDAT ATOM is codec data and refers to an AAC stream. Time to Sample Atom indicates information about how long the frame should be played and is configured using sampling frequency information.
Sample To Chunk ATOM과 Chunk Offset ATOM 정보는 해당 프레임의 AAC 스트 림이 파일 내에서 어느 위치에서 시작되는가를 찾기 위해 쓰이는 정보이다. 만약 해당 프레임의 사이즈 정보를 알고 있다면 이전 프레임의 해당 ATOM 정보에 프레임 사이즈 정보만을 더해 갱신해줌으로써 현재 프레임의 위치를 나타낼 수 있다.Sample To Chunk ATOM and Chunk Offset ATOM information is used to find where the AAC stream of the frame starts in the file. If the size information of the corresponding frame is known, the location of the current frame may be indicated by updating only the frame size information to the corresponding ATOM information of the previous frame.
Sample Size ATOM의 경우는 해당 프레임 사이즈를 나타내는 것으로써, 이 데이터는 실제 구해야 하는 값이다.Sample Size In the case of ATOM, this indicates the frame size, and this data is the value to be actually obtained.
Sync Sample Atom은 오디오/비디오 데이터가 동시에 존재할 때 싱크를 맞추어주기 위해 필요한 것으로, MP4A의 경우는 오디오만 포함하기 때문에 필요하지 않다. Sync Sample Atom is needed to synchronize the sync when audio / video data is present at the same time. MP4A is not needed because it only includes audio.
결국 제2 분류의 ATOM을 갱신하기 위해서는 이전 프레임의 ATOM 정보와 해당 프레임의 사이즈 정보만 있으면 갱신이 가능하다. 따라서 단계 406에서는 AAC 프레임 사이즈를 구하는 과정과 이를 이용해 ATOM을 갱신하는 것이 수행된다. As a result, in order to update the ATOM of the second classification, only ATOM information of the previous frame and size information of the corresponding frame can be updated. Therefore, in step 406, the process of obtaining the AAC frame size and updating the ATOM using the same are performed.
단계 406의 수행 후, 상기 MP4A 파일 변환 장치는 각 ATOM 정보를 하나로 합쳐서 MP4A 파일로 변환한다(S408). 즉, 상기 MP4A 파일 변환 장치는 모든 프레임의 데이터를 더하고, 각 ATOM의 사이즈 및 전체 재생 시간 정보를 반영하고 각 ATOM 정보를 하나로 합친다. 도 5의 제2 분류의 ATOM 들은 매 프레임 갱신되는 ATOM들을 포함하는 ATOM들로서, 이러한 계층구조를 가지고 있는 ATOM의 경우 하위 ATOM의 사이즈를 포함한 사이즈를 가지게 된다. After performing step 406, the MP4A file conversion apparatus combines each ATOM information into one and converts the MP4A file into an MP4A file (S408). That is, the MP4A file conversion apparatus adds data of all frames, reflects the size and total reproduction time information of each ATOM, and combines each ATOM information into one. The ATOMs of the second classification of FIG. 5 are ATOMs including ATOMs updated every frame. In case of an ATOM having such a hierarchical structure, the ATOMs have a size including a size of a lower ATOM.
상기와 같은 과정을 통해 생성되는 ATOM에 대하여 도 5를 참조하여 설명하기로 한다. The ATOM generated through the above process will be described with reference to FIG. 5.
도 5를 참조하면, AAC 파일을 MP4A 파일로 변환시 생성되는 ATOM은 세가지로 분류된다. Referring to FIG. 5, ATOMs generated when converting an AAC file into an MP4A file are classified into three types.
제1 분류는 생성될 MP4A 파일의 타입(*.mp4 / *.mp4a 등을 구분), 코덱 종류, 코덱 복호화기에서 필요한 설정정보(AAC의 경우 채널과 샘플링 주파수 정보) 들을 포함하는 ATOM으로 초기 설정이 되면 필드값이 변화하지 않는 ATOM이다.The first classification is initially set to ATOM including the type (* .mp4 / * .mp4a, etc.) of the MP4A file to be generated, the codec type, and setting information (channel and sampling frequency information in the case of AAC) required by the codec decoder. When this happens, the field value does not change.
상기 제1 분류에 해당되는 ATOM은 File Type Atom, IOD Atom, Handler Atom, Media Information Header Atom, Data Information Atom, Data Reference Atom, Sample Description Atom, ESD Atom을 포함한다.The ATOM corresponding to the first category includes a file type atom, an IOD atom, a handler atom, a media information header atom, a data information atom, a data reference atom, a sample description atom, and an ESD atom.
제2 분류는 얼마만큼의 프레임을 포함하든지 동일한 ATOM 필드 Entry를 가지고 있지만, 포함하는 하위 ATOM의 사이즈나 재생시간의 정보가 바뀜으로 인해 해당 필드 데이터만이 저장될 때 바뀌어야 하는 ATOM이다. 이러한 ATOM은 초기에 필요한 필드를 초기화 한 뒤에, 최종적으로 한 번 갱신만 해주면 되는 ATOM이다. The second classification is an ATOM that has the same ATOM field entry no matter how many frames are included, but should be changed when only the corresponding field data is stored due to a change in the size or reproduction time of the included lower ATOM. These ATOMs are ATOMs that only need to be updated once after initializing required fields.
상기 제2 분류에 해당하는 ATOM은 Movie Atom, Track Atom, Media Atom, Media Information Atom, Sample Table Atom, Movie Header Atom, Track Header Atom, Media Header Atom을 포함한다. The ATOM corresponding to the second classification includes a movie atom, a track atom, a media atom, a media information atom, a sample table atom, a movie header atom, a track header atom, and a media header atom.
제3 분류는 매 프레임마다 필드의 Entry가 추가되는 것으로써, 매 프레임마다 Entry가 추가됨은 물론 해당 ATOM의 사이즈 또한 바뀌게 된다. 이러한 ATOM은 AAC 프레임이 추가됨에 따라 갱신이 필요한 ATOM이다.In the third classification, an entry of a field is added every frame, and an entry is added every frame, and the size of the ATOM is also changed. This ATOM is an ATOM that needs to be updated as an AAC frame is added.
상기 제3 분류에 해당하는 ATOM은 MDAT Atom, Time to Sample Atom, Sample Size Atom, Sample to Chunk Atom, Chunk Offset Atom, Sync Sample Atom을 포함한다. The ATOM corresponding to the third classification includes MDAT Atom, Time to Sample Atom, Sample Size Atom, Sample to Chunk Atom, Chunk Offset Atom, and Sync Sample Atom.
도 6은 본 발명에 따른 ADTS 헤더를 가진 AAC 파일의 MP4A 파일로의 변환 방법을 나타낸 흐름도이다. 6 is a flowchart illustrating a method of converting an AAC file having an ADTS header into an MP4A file according to the present invention.
도 6을 참조하면, MP4A 변환 장치는 AAC 파일이 입력되면(S600), 상기 입력된 AAC 파일의 제1 프레임의 헤더 정보를 읽어서 샘플링 주파수와 채널 정보를 세팅한다(S602). 상기 AAC 파일의 헤더에는 샘플링 주파수, 채널 정보 등이 포함되어 있으므로, 상기 MP4A 변환 장치는 상기 AAC 파일의 헤더를 읽어서 샘플링 주파수와 채널 정보를 세팅할 수 있다. 상기 샘플링 주파수와 채널 정보는 갱신되지 않은 정보이다.Referring to FIG. 6, when an AAC file is input (S600), the MP4A converter reads header information of a first frame of the input AAC file and sets sampling frequency and channel information (S602). Since the header of the AAC file includes sampling frequency and channel information, the MP4A converter can set the sampling frequency and channel information by reading the header of the AAC file. The sampling frequency and channel information are not updated information.
단계 602의 수행 후, 상기 MP4A 변환 장치는 상기 헤더 정보에 표시된 프레임 사이즈만큼 해당 데이터를 읽어서(S604), 상기 읽은 데이터가 프레임 경계에 맞게 읽었는지를 판단한다(S606). After performing step 602, the MP4A conversion apparatus reads the corresponding data by the frame size indicated in the header information (S604), and determines whether the read data is read according to the frame boundary (S606).
단계 606의 판단결과 상기 읽은 데이터가 프레임 경계에 맞게 읽었다면, 상기 MP4A 변환 장치는 프레임 사이즈 정보와 해당 AAC 데이터를 저장한다(S608).If it is determined in step 606 that the read data has been read in accordance with the frame boundary, the MP4A converter stores frame size information and corresponding AAC data (S608).
상기 MP4A 변환 장치는 상기와 같은 과정을 상기 입력된 AAC 파일 전체에 대하여 끝까지 이루어졌는지를 판단한다(S610).The MP4A converter determines whether the above process is performed to the end of the entire AAC file (S610).
단계 610의 판단결과 상기 입력된 AAC 파일에 대하여 끝까지 이루어졌으면, 상기 MP4A 변환 장치는 도 4에 도시된 각 ATOM 데이터를 갱신하고 MP4A 파일로 저장한다(S612).If the determination result of step 610 is made to the end of the input AAC file, the MP4A converter updates each ATOM data shown in FIG. 4 and stores it as an MP4A file (S612).
만약, 단계 610의 판단결과 상기 입력된 AAC 파일에 대하여 끝까지 이루어지지 않았으면, 상기 MP4A 변환장치는 다음 프레임 헤더를 읽어서(S614), 단계 604부 터 다시 수행한다.If the determination result of step 610 is not made to the end of the input AAC file, the MP4A converter reads the next frame header (S614) and performs the process again from step 604.
만약, 단계 606의 판단결과 상기 읽은 데이터가 프레임 경계가 아니면, 상기 MP4A 변환 장치는 헤더를 찾아 프레임 경계까지 읽은 후(S616) 단계 608부터 수행한다. If it is determined in step 606 that the read data is not a frame boundary, the MP4A conversion apparatus finds a header and reads it to the frame boundary (S616).
도 7은 본 발명에 따른 ADIF 헤더를 가진 AAC 파일의 MP4A 파일로의 변환 방법을 나타낸 흐름도이다. 7 is a flowchart illustrating a method of converting an AAC file having an ADIF header into an MP4A file according to the present invention.
도 7을 참조하면, MP4A 변환 장치는 AAC 파일이 입력되면(S700), 상기 입력된 AAC 파일의 제1 프레임의 헤더 정보를 읽어서 샘플링 주파수와 채널 정보를 세팅한다(S702). 상기 AAC 파일의 헤더에는 샘플링 주파수, 채널 정보 등이 포함되어 있으므로, 상기 MP4A 변환 장치는 상기 AAC 파일의 헤더를 읽어서 샘플링 주파수와 채널 정보를 세팅할 수 있다. 상기 샘플링 주파수와 채널 정보는 갱신되지 않은 정보이다.Referring to FIG. 7, when an AAC file is input (S700), the MP4A converter reads header information of a first frame of the input AAC file and sets sampling frequency and channel information (S702). Since the header of the AAC file includes sampling frequency and channel information, the MP4A converter can set the sampling frequency and channel information by reading the header of the AAC file. The sampling frequency and channel information are not updated information.
단계 702의 수행 후, 상기 MP4A 변환 장치는 상기 AAC 파일의 비트 스트림을 파싱(parsing)하여 해당 데이터를 읽고(S704), 상기 읽은 데이터가 프레임 경계에 맞게 읽었는지를 판단한다(S706). 상기 ADIF는 파일 앞에만 헤더 정보를 가지고 있기 때문에 비트 스트림을 파싱(parsing)하여 해당 프레임의 사이즈를 판단하고, 상기 판단된 사이즈만큼 데이터를 읽는다. 그런다음 상기 MP4A 변환 장치는 상기 읽은 데이터가 프레임 경계에 맞게 읽어졌는지를 판단한다. After performing step 702, the MP4A conversion apparatus parses the bit stream of the AAC file to read the corresponding data (S704), and determines whether the read data is read according to the frame boundary (S706). Since the ADIF has header information only in front of the file, the ADIF parses the bit stream to determine the size of the corresponding frame, and reads data as much as the determined size. The MP4A conversion apparatus then determines whether the read data has been read at the frame boundary.
단계 706의 판단결과 상기 읽은 데이터가 프레임 경계에 맞게 읽었다면, 상기 MP4A 변환 장치는 프레임 사이즈 정보와 해당 AAC 데이터를 저장한다(S708).If it is determined in step 706 that the read data has been read in accordance with the frame boundary, the MP4A converter stores frame size information and corresponding AAC data (S708).
상기 MP4A 변환 장치는 상기와 같은 과정을 상기 입력된 AAC 파일 전체에 대하여 끝까지 이루어졌는지를 판단한다(S710).The MP4A converter determines whether the above process is performed to the end of the entire inputted AAC file (S710).
단계 710의 판단결과 상기 입력된 AAC 파일에 대하여 끝까지 이루어졌으면, 상기 MP4A 변환 장치는 도 4에 도시된 각 ATOM 데이터를 갱신하고 MP4A 파일로 저장한다(S712).If the determination result of step 710 is made to the end of the input AAC file, the MP4A converter updates each ATOM data shown in FIG. 4 and stores it as an MP4A file (S712).
만약, 단계 710의 판단결과 상기 입력된 AAC 파일에 대하여 끝까지 이루어지지 않았으면, 상기 MP4A 변환장치는 각 프레임에 대하여 단계 704부터 다시 수행한다. If the determination result of step 710 is not made to the end of the input AAC file, the MP4A converter performs the operation again from step 704 for each frame.
만약, 단계 706의 판단결과 상기 읽은 데이터가 프레임 경계가 아니면, 상기 MP4A 변환 장치는 경계 조건에 맞는 스트림까지 찾아서 해당 데이터를 읽은 후(S616) 단계 708부터 수행한다.If the read data is not a frame boundary, the MP4A conversion apparatus searches up to a stream that meets the boundary condition and reads the corresponding data (S616).
상기와 같이 ADIF 헤더와 같이 프레임 사이에 헤더가 존재하지 않는 컨텐츠에 대해서도 이동단말기에 전송 과정에서 바로 MP4A 파일로 변환을 할 수 있다.As described above, even if the header does not exist between frames such as the ADIF header, the mobile terminal can immediately convert the content to an MP4A file during the transmission process.
본 발명은 상기 실시예에 한정되지 않으며, 많은 변형이 본 발명의 사상 내에서 당 분야에서 통상의 지식을 가진 자에 의하여 가능함은 물론이다.The present invention is not limited to the above embodiments, and many variations are possible by those skilled in the art within the spirit of the present invention.
상술한 바와 같이 본 발명에 따르면, AAC 파일을 모바일 기기에서 FF/REW까지 지원이 용이한 MP4A 파일로의 변환이 용이해진다.As described above, according to the present invention, it is easy to convert an AAC file into an MP4A file that can be easily supported from a mobile device to FF / REW.
또한, 본 발명에 따르면, ADIF 헤더와 같이 프레임 사이에 헤더가 존재하지 않는 컨텐츠에 대해서도 이동단말기에 전송 과정에서 바로 MP4A 파일로 변환할 수 있음은 물론, 부호화를 다시 하지 않아도 되기 때문에 추가 음질 감소를 막을 수 있는 효과가 있다.In addition, according to the present invention, even if the content does not have a header between the frames, such as the ADIF header, the mobile terminal can be converted directly to the MP4A file during the transmission process, and also because the encoding does not need to be re-added, further reducing the sound quality. There is an effect that can be prevented.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050092769A KR100762572B1 (en) | 2005-10-04 | 2005-10-04 | Method and Apparatus for converting Advanced Audio Codec file into MPEG-4 Audio file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050092769A KR100762572B1 (en) | 2005-10-04 | 2005-10-04 | Method and Apparatus for converting Advanced Audio Codec file into MPEG-4 Audio file |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20070037776A KR20070037776A (en) | 2007-04-09 |
KR100762572B1 true KR100762572B1 (en) | 2007-10-01 |
Family
ID=38159361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020050092769A KR100762572B1 (en) | 2005-10-04 | 2005-10-04 | Method and Apparatus for converting Advanced Audio Codec file into MPEG-4 Audio file |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100762572B1 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020069548A (en) * | 2001-02-26 | 2002-09-05 | 삼성전자 주식회사 | Apparatus and method for transcopying data |
-
2005
- 2005-10-04 KR KR1020050092769A patent/KR100762572B1/en not_active IP Right Cessation
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020069548A (en) * | 2001-02-26 | 2002-09-05 | 삼성전자 주식회사 | Apparatus and method for transcopying data |
Also Published As
Publication number | Publication date |
---|---|
KR20070037776A (en) | 2007-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101320756B1 (en) | Playback apparatus, playback method, and program | |
JP4071812B2 (en) | Multiplexer and demultiplexer | |
CN1942962A (en) | Audio reproducing apparatus, audio reproducing method, and program | |
US8731946B2 (en) | Method and apparatus for generating or cutting or changing a frame based bit stream format file including at least one header section, and a corresponding data structure | |
CN101753946A (en) | Merge method and system for video file and audio file | |
JP2006294120A (en) | Voice reproduction device | |
JP4257103B2 (en) | Digital video recorder and digital recording method | |
US20090207775A1 (en) | Signal processing apparatus | |
US20110069934A1 (en) | Apparatus and method for providing object based audio file, and apparatus and method for playing back object based audio file | |
TW200419531A (en) | A method of reproducing an audio stream | |
JP2010122640A (en) | Audio playback device and audio playback method | |
KR100762572B1 (en) | Method and Apparatus for converting Advanced Audio Codec file into MPEG-4 Audio file | |
US20150104158A1 (en) | Digital signal reproduction device | |
JP2004280994A (en) | Data creation method and data recorder | |
JP2010074823A (en) | Video editing system | |
JP2006352458A (en) | Device and method for processing information, recording medium and program | |
US7231268B1 (en) | Method of assigning audio channel identification, method for selecting audio channel using the same, and optical recording and reproducing apparatus suitable therefor | |
JP2006050387A (en) | Data reproducing method, and data reproducing apparatus | |
JP2008269460A (en) | Moving image scene type determination device and method | |
KR101060490B1 (en) | Method and device for calculating average bitrate of a file of variable bitrate, and audio device comprising said device | |
KR100609173B1 (en) | AAC descrambling method | |
EP1113435A1 (en) | Identification and selection of audio channels | |
JP2001197029A (en) | Audio channel id adding method, audio channel selecting method using same, and optical recording and reproducing device suitable to same | |
JP4169002B2 (en) | Audio format conversion apparatus and encoding apparatus | |
KR101125364B1 (en) | Apparatus and method for providing and reproducting object based audio file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
G170 | Re-publication after modification of scope of protection [patent] | ||
FPAY | Annual fee payment |
Payment date: 20100630 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |