Discussion:
How to tell if an m4a file is lossless
(too old to reply)
Stefan Monnier
2009-07-23 19:40:07 UTC
Permalink
How can I tell (from a script) if some *.m4a file is using the AAC codec
or the ALAC codec?


Stefan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Eduardo M KALINOWSKI
2009-07-23 20:00:09 UTC
Permalink
Post by Stefan Monnier
How can I tell (from a script) if some *.m4a file is using the AAC codec
or the ALAC codec?
One possibility is to use ffmpeg -i filename and then parse the
output. (Grepping for the strings used in each codec should give the
answer.)
--
Eduardo M KALINOWSKI
***@kalinowski.com.br
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Stefan Monnier
2009-07-26 02:40:09 UTC
Permalink
Post by Eduardo M KALINOWSKI
Post by Stefan Monnier
How can I tell (from a script) if some *.m4a file is using the AAC codec
or the ALAC codec?
One possibility is to use ffmpeg -i filename and then parse the
output. (Grepping for the strings used in each codec should give
the answer.)
Indeed, that did the trick: the stderr either include "Audio: alac" or
"Audio: aac".
Thank you,


Stefan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
lee
2009-07-24 06:20:06 UTC
Permalink
Post by Stefan Monnier
How can I tell (from a script) if some *.m4a file is using the AAC codec
or the ALAC codec?
Unpack it and compare it to the "original" unpacked file?

Perhaps the packer leaves a signature somewhere in the packed file to
tell an unpacker what it is. If you can find the signature or take a
look at the source of the unpacker, you might be able to find out how
to check what it is.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Loading...