Useful stuff

From Buzztrax

Revision as of 22:42, 26 February 2009 by Waffel (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

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

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