Useful stuff

From Buzztrax

Jump to: navigation, search

gstreamer

Converting function using gstreamer pipelines

Attention: Replace the -x version for gst-launch with your actual gst-launch version. For example gst-launch-0.10.

Attention: You should have installed the required plugins for gstreamer.

Convert a ogg file to a mp3 file

gst-launch-x filesrc location="your input file.ogg" ! oggdemux ! vorbisdec ! audioconvert ! lame ! id3mux ! filesink location="your output file.mp3"

Convert all oggs in one directory to mp3

 for file in *.ogg; do gst-launch-x filesrc location="$file" ! oggdemux ! vorbisdec ! audioconvert ! lame ! id3mux ! filesink location="${file/.ogg/.mp3}"; done
Support Us

Collaboration

GStreamer Logo
Become a Friend of GNOME
Linux Sound Logo
MediaWiki
Valgrind
GNU Library Public Licence
GNU Free Documentation License 1.2