Article View: borland.public.cppbuilder.multimedia
Article #486Re: Read AAC MPEG Format
From: Dave
Date: Thu, 17 Jun 2004 05:29
Date: Thu, 17 Jun 2004 05:29
41 lines
2081 bytes
2081 bytes
On Tue, 15 Jun 2004 18:40:50 +0200, Dave wrote: > Hi, > > I would like to read AAC (Advanced Audio Coding MPEG format, *.m4a) > tags, like iTunes does for example. > I tried to check whether the format was similar to mp3 tags (id3 tags) > however it's not at all the same. > When opening a m4a file in stream mode and reading from start > the structure is the following: > > \0\0\0 ftpyM4A \0\0\0\0MīŋŊA mp42isom\0\0\0\0\0\x01?\fmoov\0\0\0lmvhd\0\0\0\0 > > I also tried to seek from the back with no more success. The tag is likely > compressed somehow. > > Does anyone know or have a clue how to read the tag and eventually how to > play it ? (using TMediaPlayer or anything else) > > Thanks for your help, > Dave I found the first half of my solution, It's possible to play it with MediaPlayer however the MCI extension was not registered in the registry. So First register the m4a extension as MPEGVideo under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MCI Extensions Second, Use the following code in BCB MediaPlayer1->FileName = OpenDialog1->FileName; MediaPlayer1->DeviceType = dtAutoSelect; MediaPlayer1->Open(); MediaPlayer1->Play(); Hope it can help someone around the corner. Dave
Technical Details
Message-ID:
<5x1qg0ddx4yh$.82x06z28jspx$.dlg@40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<vbmzlmsa5u1s.htqedlg6zlg1$.dlg@40tude.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10d0fc,3fcbf32475e1fbd3 X-Google-Attributes: gid10d0fc,public From: Dave <dave_xse@nospam.org> Subject: Re: Read AAC MPEG Format Newsgroups: borland.public.cppbuilder.multimedia User-Agent: 40tude_Dialog/2.0.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit References: <vbmzlmsa5u1s.htqedlg6zlg1$.dlg@40tude.net> Date: Thu, 17 Jun 2004 07:29:01 +0200 Message-ID: <5x1qg0ddx4yh$.82x06z28jspx$.dlg@40tude.net> NNTP-Posting-Host: 80.218.152.5 X-Trace: newsgroups.borland.com 1087450151 80.218.152.5 (16 Jun 2004 22:29:11 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail