Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: AAC / ADTS encapsulation for foobar with FFmpeg (Read 1643 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

AAC / ADTS encapsulation for foobar with FFmpeg

Hi everybody,

I edited and saved an aac file using mp3DirectCut.
The resulting aac file will play in foobar, but with no tagging info (no duration, no bitrate, etc.).
Mediainfo shows that the General Format Info is ADTS (Audio Data Transport Stream) and the Audio Format Info is AAC.

I tried encapsulating it in m4a with ffmpeg, with the following command line :
FOR %%F IN (*.aac) DO "C:\Program Files\FFmpeg\bin\ffmpeg.exe" -i "%%F" -acodec copy "%%F.m4a"
However it made things even worse : the resulting m4a doesn't even play in foobar.

You will find attached the aac file. I would like to encapsulate it (without reencoding obviously) to make it work properly within foobar.
Can you please help me ? What would be the proper ffmpeg command line if there is one ?

Thanks.

Re: AAC / ADTS encapsulation for foobar

Reply #1
 ffmpeg -i JPM.aac -bsf:a aac_adtstoasc -codec: copy JPM.m4a

Re: AAC / ADTS encapsulation for foobar

Reply #2
Awesome ! Works perfectly here. Problem solved. A million thanks mpuzirew, that's what I call a perfect answer. :D