Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th September 2007, 02:19 AM
seculor Offline
Registered User
 
Join Date: Mar 2006
Posts: 15
Cool Converting .ogg to mp3, Gstreamer not working

Hi I'm trying to convert some .ogg .mpa and .mpc files to .mp3 with a command like this:
gst-launch -v filesrc location=foo.ogg ! decodebin ! audioconvert ! lame ! id3v2mux ! filesink location=foo.mp3

But I'm getting the following error:
WARNING: erroneous pipeline: no element "lame"

I have lame and gstreamer installed:
rpm -qa|grep lame
lame-3.97-4.lvn6
lame-libs-3.97-4.lvn6
lame-libs-3.97-4.lvn6
twolame-0.3.10-1.lvn6
lame-3.97-4.lvn6


rpm -qa|grep gstreamer
gstreamer-plugins-base-0.10.11-1.fc6
gstreamer-tools-0.10.11-1.fc6
gstreamer08-plugins-0.8.12-7.fc6
gstreamer-plugins-base-0.10.11-1.fc6
gstreamer-plugins-good-0.10.4-3.fc6
gstreamer-0.10.11-1.fc6
gstreamer08-0.8.12-8.fc6
gstreamer-0.10.11-1.fc6


What could be the problem?
Reply With Quote
  #2  
Old 30th September 2007, 03:48 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
In FreeBSD, I use ogg123, included with vorbis-tools. I'm not sure if there's an rpm available. (In FreeBSD right now, Fedora's at work.)

To convert foo.ogg, I do
ogg123 -d wav -f foo.wav foo.ogg

Then, to convert it to mp3 I use bladenc. Again, I don't know if it's available as an rpm.

bladenc foo.wav

I realize this isn't an actual answer to your question but I hope it helps.
Reply With Quote
  #3  
Old 30th September 2007, 04:06 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
Yeah - just 'yum install vorbis-tools' and this includes ogg123.
Reply With Quote
  #4  
Old 1st October 2007, 05:20 AM
seculor Offline
Registered User
 
Join Date: Mar 2006
Posts: 15
Smile Success

Thanks for the replies. I have found a perfect solution - mplayer. Basically, what I was trying to do was to transfer my Amarok music collection to an RCA Lyra mp3 player using the dirtyxcode script. This way all the files are renamed properly according to the tag information stored in my Amarok collection.

This is how I solved the Gstreamer problem:
In the .kde/share/apps/amarok/scripts/dirtyxcoder-0.1/dirtyxcode file I replaced this line:
error=`gst-launch -p filesrc location="$file" ! decodebin ! audioconvert ! audioresample ! $encoder ! filesink location="$outfile" 2>&1`

with:
error=`mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$file" && lame -m s audiodump.wav -o "$outfile"`

Now I can just drag and drop any of my music tracks onto the device tab in Amarok and it automatically transcodes, renames, and copies them to the mp3 player.
Reply With Quote
Reply

Tags
converting, gstreamer, mp3, ogg, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a FC4 dvd to FC4 cd set? prem1000 EOL (End Of Life) Versions 21 26th October 2006 04:51 PM
Volume control not working - gstreamer missing plugins 44raven Using Fedora 2 26th March 2006 08:10 AM
gstreamer-ugly vs gstreamer-bad corefile Using Fedora 3 21st March 2006 08:41 PM
Does anyone have Totem-Gstreamer working? j_baer Fedora Core 5 - Dev 0 28th February 2006 08:50 PM


Current GMT-time: 15:48 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat