Apple Lossless Audio Codec support

Bug report and feature request
Post Reply
jaczula
Beginner
Beginner
Posts: 3
Joined: Thu Jun 04, 2009 3:39 am

Apple Lossless Audio Codec support

Post by jaczula » Thu Jun 04, 2009 3:57 am

Why don't MediaCoder support ALAC (Apple Lossless Audio Codec) - m4a? iPods and iPhones are popular, so it would be great, if MediaCoder supported this format.

User avatar
Placio74
Advanced
Advanced
Posts: 455
Joined: Sun Sep 17, 2006 11:02 pm
Location: Poland
Contact:

Re: Apple Lossless Audio Codec support

Post by Placio74 » Thu Jun 04, 2009 4:24 pm

Because... there is no open source ALAC encoder...?
VideoAudio.pl - Serwis o technologii wideo & audio

Ulf
Amateur
Amateur
Posts: 25
Joined: Wed Feb 06, 2008 1:30 am
Location: Germany

Re: Apple Lossless Audio Codec support

Post by Ulf » Thu Jun 04, 2009 11:24 pm

According to changelog for version 0.5 of FFmpeg at http://ffmpeg.org/changelog.html an ALAC encoder is built in. But I don't know how to tell MediaCoder to use that one. Maybe another person can help.

Ulf
PC: Pentium 4 - Intel Celeron - 2.6 GHz (Single Core) - 1 GB RAM
OS: WinXP Home with SP3
MC: 0.7.2 build 4598 (Full Version)

User avatar
Placio74
Advanced
Advanced
Posts: 455
Joined: Sun Sep 17, 2006 11:02 pm
Location: Poland
Contact:

Re: Apple Lossless Audio Codec support

Post by Placio74 » Fri Jun 05, 2009 1:30 am

Ah, I forgot... :mrgreen:

If you do not want to wait...

Edit mccodecs.xml,
go to ffmpeg audio config and add (after MP2 for example)

Code: Select all

      <if test=".codec" value="ALAC">
        <extname>m4a</extname>
        <arg>-f m4a -acodec alac</arg>
      </if>
change

Code: Select all

<arg key=".codec" prefix="-lavcopts">mp2|mp3|ac3|libfaac|adpcm_ima_wav|wmav1|wmav2</arg>
to

Code: Select all

<arg key=".codec" prefix="-lavcopts">mp2|mp3|ac3|libfaac|alac|adpcm_ima_wav|wmav1|wmav2</arg>
and change

Code: Select all

<arg prefix="-acodec" key="audioenc.ffmpeg.codec">mp2|libmp3lame|ac3|libfaac|wmav1|wmav2|amr|adpcm_ima_wav</arg>
to

Code: Select all

<arg prefix="-acodec" key="audioenc.ffmpeg.codec">mp2|libmp3lame|ac3|libfaac|alac|wmav1|wmav2|amr|adpcm_ima_wav</arg>
Edit mccore.xml,
change

Code: Select all

    <node key="ffmpeg" type="node" text="FFmpeg">
      <desc>FFmpeg is a collection of free software that can record, convert and stream digital audio and video. It includes libavcodec, a leading audio/video codec library. FFmpeg is developed under Linux, but it can be compiled under most operating systems, including Windows.</desc>
      <node key="codec" type="enum" text="Audio Codec">
        <enum>MP2</enum>
        <enum>MP3</enum>
        <enum>AC3</enum>
        <enum>AAC</enum>
        <enum>WMA V1</enum>
        <enum>WMA V2</enum>
        <enum>AMR</enum>
        <enum>IMA Adaptive PCM</enum>
      </node>
to

Code: Select all

    <node key="ffmpeg" type="node" text="FFmpeg">
      <desc>FFmpeg is a collection of free software that can record, convert and stream digital audio and video. It includes libavcodec, a leading audio/video codec library. FFmpeg is developed under Linux, but it can be compiled under most operating systems, including Windows.</desc>
      <node key="codec" type="enum" text="Audio Codec">
        <enum>ALAC</enum>
        <enum>MP2</enum>
        <enum>MP3</enum>
        <enum>AC3</enum>
        <enum>AAC</enum>
        <enum>WMA V1</enum>
        <enum>WMA V2</enum>
        <enum>AMR</enum>
        <enum>IMA Adaptive PCM</enum>
      </node>
After... just select FFmpeg as audio encoder and on right side choose ALAC audio format (+of course disable video tab).
VideoAudio.pl - Serwis o technologii wideo & audio

jaczula
Beginner
Beginner
Posts: 3
Joined: Thu Jun 04, 2009 3:39 am

Re: Apple Lossless Audio Codec support

Post by jaczula » Thu Dec 24, 2009 8:04 am

Hi, after a long time.
I, unfortunately, have to use dbPoweramp to convert FLAC to ALAC, but I really look forward to seeing one day ALAC converting in MediaCoder as well as multi-threading support.

BTW: Do ALAC codec need to be open to use it in this app? How then dbPoweramp transcode to ALAC?

BTW 2: Is there any way to interest MediaCoder developers in ALAC transcoding? Any feedback form to post?

Sorry for posting after 6 months, but I've just remembered posting sth on this forum and checked, if there were any replies.

// @Placio74 dzięki ;)

stanley
Site Admin
Site Admin
Posts: 4135
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Re: Apple Lossless Audio Codec support

Post by stanley » Tue Dec 29, 2009 9:41 pm

Have you noticed there is ALS option in audio encoder list?
When things work together, things work.

jaczula
Beginner
Beginner
Posts: 3
Joined: Thu Jun 04, 2009 3:39 am

Re: Apple Lossless Audio Codec support

Post by jaczula » Tue Dec 29, 2009 9:57 pm

ALS is not ALAC.
ALS is an extension to MPEG-4 to allow lossless compression.
ALAC is an audio codec for lossless compression developed by Apple.

Post Reply