Transcoding AAC/M4A to WAV or MP3

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
markmcd
Posts:11
Joined:Thu Nov 05, 2009 4:36 am
AV Hardware:Server: Twonky Media Server 5.1
Clients: Roku Soundbridge, foobar2000 (w/ upnp component), WMP 12
Transcoding AAC/M4A to WAV or MP3

Post by markmcd » Fri Aug 20, 2010 4:29 am

Has anyone had any luck transcoding AAC/M4A files to WAV or MP3? I've been tinkering with a custom ffmpeg .desc file without any luck so far. Any advice?

markmcd
Posts:11
Joined:Thu Nov 05, 2009 4:36 am
AV Hardware:Server: Twonky Media Server 5.1
Clients: Roku Soundbridge, foobar2000 (w/ upnp component), WMP 12

Re: Transcoding AAC/M4A to WAV or MP3

Post by markmcd » Fri Aug 20, 2010 6:25 am

Figured it out - in case anyone else is looking to do this, here is what my .desc file looks like:

# transcode audio (mp4 to mp3)
#(c) 2008 by PacketVideo
exec: ffmpeg -i $infile -f mp3 -acodec libmp3lame -ab 320K $outfile
# capabilities
from=audio/mp4
to=audio/mpeg
asynchronous
priority=idle

rmeek11
Posts:3
Joined:Mon Aug 30, 2010 5:37 pm
AV Hardware:Sony BDP-S470
DirecTV HR23-700 DVR

Re: Transcoding AAC/M4A to WAV or MP3

Post by rmeek11 » Tue Aug 31, 2010 5:43 am

Did this work for you? I am looking for a way to play .m4a files on my DirecTV HR23 DVR. Currently none of my .m4a files play on the DVR. What did you call this .desc file? After you generated this file, did you have to restart the server or regenerate your database or rescan your media directories?

Thanks for any help.

markmcd
Posts:11
Joined:Thu Nov 05, 2009 4:36 am
AV Hardware:Server: Twonky Media Server 5.1
Clients: Roku Soundbridge, foobar2000 (w/ upnp component), WMP 12

Re: Transcoding AAC/M4A to WAV or MP3

Post by markmcd » Tue Aug 31, 2010 4:43 pm

Yes, this works well for me. I called the file m4a-mp3.desc and placed it in the ...\TwonkyMedia\cgi-bin folder. I also placed a copy of ffmpeg.exe (http://ffmpeg.arrozcru.org/autobuilds/) in the same folder. After restarting the Twonky service it should work, and you should have MP3 as a valid option in the background transcoding section of the options.

Thanks
Mark

Locked