gstreamer pipeline may be of some use
01-30-2014, 09:34 AM, (This post was last modified: 01-30-2014, 09:36 AM by FunkyRes.)
Post: #1
gstreamer pipeline may be of some use
Normally when I want to transcode mp3 to ogg (to support html5 audio in browsers like Opera w/o needing flash hack) I use lame --decode followed by oggenc

Today I came across an mp3 where that failed, lame could not decode it.

The mp3 plays just fine everywhere I tried, but it still may be a problem with the mp3 not following spec or something. Or lame may not be as complete as I thought.

Anyway I constructed this gstreamer pipeline to solve the issue:

gst-launch filesrc location="queenme.mp3" ! flump3dec ! audioconvert ! vorbisenc quality=0.3 ! oggmux ! filesink location=queenme.ogg

I'll be updating my webapps to use that instead of lame since it will work with anything fluendo mp3 plugin can decode, which clearly includes some mp3s that lame can't decode.

It also means I no longer will need lame on my servers.

Anyway thought it might be of use to some here.
Welcome to the dark side. Are you surprised we lied about having cookies?

Forum Jump: