🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages Started by Dave Tue, 15 Jun 2004 16:40
Read AAC MPEG Format
#485
Author: Dave
Date: Tue, 15 Jun 2004 16:40
19 lines
1440 bytes
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
Re: Read AAC MPEG Format
#486
Author: Dave
Date: Thu, 17 Jun 2004 05:29
41 lines
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
Re: Read AAC MPEG Format
#487
Author: Dave
Date: Thu, 17 Jun 2004 05:35
45 lines
2307 bytes
On Thu, 17 Jun 2004 07:29:01 +0200, Dave wrote:

> 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

Forgot to mention that half the solution came from Mark Jacobs
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads