Transcoding FLAC->Ogg/AAC Under Linux

Need help? Post your questions here.

Moderator: moderators

Transcoding FLAC->Ogg/AAC Under Linux

Postby thatguytim » Fri Jul 16, 2010 8:48 pm

I'm running Subsonic 4.01 under Fedora Core 8 (old, I know ..). FLAC->MP3 transcoding works just fine. Unfortunately, I need to use my phone (Motorola Cliq, not sure what version of Android, but probably 2.0) in an environment with lousy signal strength, so I need to stream using something that sounds good at 64k or less.

Has anyone gotten anything other than Lame to work for FLAC->xxx transcoding under Linux?

For Flac->mp4/aac, I have the following commands:
Stage 1: flac -c -s -d %s Stage 2: neroAacEnc -q .2 -if - -of -

... and everything seems to work okay, but as near as I can tell neroAacEnc is not able to pipe to stdout. Nothing is heard when playing from either the phone or the browser, but the phone does recognize that FLAC is being transocded to MP4 on the back end.

For Flac->Ogg, I have only one stage:

oggenc2 -q 0 %s -

... again, the transcode seems successful, but Subsonic doesn't seem to recognize that the resulting stream is actually Ogg. On the phone, the stream only says "FLAC", and sounds like static in both the browser and on the phone. I'm guessing that the phone is trying to use a FLAC decoder on an Ogg bitstream. "Convert From" and "Convert To" are set to Flac and Ogg, respectively. Is there something else I need to check?

If anybody has any tips or ideas, I'm receptive. If I can get past this last hurdle, I'm more than willing to register/donate. Thanks in advance for the help!

Tim
thatguytim
 
Posts: 1
Joined: Fri Jul 16, 2010 8:31 pm

Postby delcypher » Fri Jul 16, 2010 11:36 pm

The webplayer cannot play Ogg streams only MP3/AAC.

I'm currently working on getting AAC to work in the web player but haven't had much success yet. If I do get it working it'll appear on the wiki.

I don't have the oggenc2 tool but chances are it only accepts PCM wave not FLAC. So you will need to do the conversion in two parts.

Code: Select all
ffmpeg -i %s -f wav - | oggenc2 -q 0 - -


or just using ffmpeg

Code: Select all
ffmpeg -i %s -acodec vorbis -ab 128k
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am


Return to Help

Who is online

Users browsing this forum: No registered users and 40 guests