2001-12-12 00:00:07 +00:00
|
|
|
.TH "GStreamer" "1" "March 2001"
|
2001-07-24 20:05:27 +00:00
|
|
|
.SH "NAME"
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch \- build and run a GStreamer pipeline
|
2001-07-24 20:05:27 +00:00
|
|
|
.SH "SYNOPSIS"
|
2002-01-06 17:36:49 +00:00
|
|
|
\fBgst\-launch\fR \fI[OPTION...]\fR PIPELINE\-DESCRIPTION
|
2001-07-24 20:05:27 +00:00
|
|
|
.SH "DESCRIPTION"
|
|
|
|
.LP
|
2002-01-12 01:23:42 +00:00
|
|
|
\fIgst\-launch\fP is a tool that is used to build and run a basic \fIGStreamer\fP pipeline.
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
A simple commandline looks like:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=music.mp3 ! mad ! osssink
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
This plays an mp3 music file music.mp3 using libmad, and:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=music.mp3 ! mp3parse ! mpg123 ! osssink
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
Plays and mp3 music file using mpg123
|
|
|
|
|
|
|
|
You can also stream files over http:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch httpsrc location=http://domain.com/music.mp3 ! mad ! osssink
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
And using gnome\-vfs you can do the same with:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch gnomevfssrc location=music.mp3 ! mad ! osssink
|
|
|
|
gst\-launch gnomevfssrc location=http://domain.com/music.mp3 ! mad ! osssink
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
And too play the same song with gnome\-vfs via smb:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch gnomevfssrc location=smb://computer/music.mp3 ! mad ! osssink
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
Here we convert a Mp3 file into an Ogg Vorbis file:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=music.mp3 ! mad ! vorbisenc ! disksink location=music.ogg
|
2001-07-24 20:05:27 +00:00
|
|
|
|
2001-12-13 23:24:11 +00:00
|
|
|
Or converting from mp3 to Flac:
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=claptrap.mp3 ! mad ! flacenc ! disksink location=test.flac
|
2001-12-13 23:24:11 +00:00
|
|
|
|
2001-07-24 20:05:27 +00:00
|
|
|
And then we can play that file with:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=music.ogg ! vorbisdec ! osssink
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
Some other useful pipelines are..
|
|
|
|
Plays wav files (currently there are no wav encoders):
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=music.wav ! parsewav ! osssink
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
Converts wav files into mp3 and ogg files:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=music.wav ! parsewav ! vorbisenc ! disksink location=music.ogg
|
|
|
|
gst\-launch filesrc location=music.wav ! parsewav ! mpegaudio ! disksink location=music.mp3
|
2001-07-24 20:05:27 +00:00
|
|
|
|
|
|
|
You can also use lame for mp3 encoding if you have it installed, it does a
|
|
|
|
much better job than mpegaudio.
|
|
|
|
|
|
|
|
Rips all songs from cd and saves them into a mp3 file:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch cdparanoia ! mpegaudio ! disksink location=cd.mp3
|
2001-07-24 20:05:27 +00:00
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
You can toy around with gst\-inspect to discover the settings for
|
2001-07-24 20:05:27 +00:00
|
|
|
cdparanoia to rip individual tracks
|
|
|
|
|
|
|
|
Record sound from your sound input and encode it into an ogg file:
|
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch osssrc ! vorbisenc ! disksink location=input.ogg
|
2001-07-24 20:05:27 +00:00
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch not only handles audio but video as well:
|
2001-12-13 23:24:11 +00:00
|
|
|
For mpeg video files (here outputing to aasink) :
|
2001-07-24 20:05:27 +00:00
|
|
|
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=JB_FF9_TheGravityOfLove.mpg ! mpegdemux video_00! { queue ! mpeg2dec ! aasink }
|
2001-12-13 23:24:11 +00:00
|
|
|
|
|
|
|
For vob files (here outputting image to sdlvideosink):
|
2002-01-06 17:36:49 +00:00
|
|
|
gst\-launch filesrc location=/flflfj.vob ! mpegdemux video_00! { queue ! mpeg2dec ! sdlvideosink }
|
2001-07-24 20:05:27 +00:00
|
|
|
|
2002-01-07 20:50:32 +00:00
|
|
|
Play a mpeg movie with sound using the sdlvideosink:
|
|
|
|
gst\-launch filesrc location=movie.mpg ! mpegdemux video_00! { queue ! mpeg2dec ! sdlvideosink } mpegdemux0.audio_00! { queue ! mad ! osssink }
|
|
|
|
|
|
|
|
Playing a avi movie would be done with something like this:
|
|
|
|
gst\-launch filesrc location=movie.avi ! avidemux video_00! { queue ! windec ! sdlvideosink }
|
|
|
|
|
2001-03-16 01:06:50 +00:00
|
|
|
See other docs, examples, and the source for description on how to
|
|
|
|
create a PIPELINE\-DESCRIPTION.
|
|
|
|
.
|
2001-07-24 20:05:27 +00:00
|
|
|
.SH "OPTIONS"
|
2001-03-16 01:06:50 +00:00
|
|
|
.l
|
2002-01-06 17:36:49 +00:00
|
|
|
\fIgst\-launch\fP accepts the following options:
|
2001-03-16 01:06:50 +00:00
|
|
|
.TP 8
|
|
|
|
.B \-\-help
|
|
|
|
Print help synopsis and available FLAGS
|
|
|
|
.TP 8
|
|
|
|
.B \-\-gst\-info\-mask=FLAGS
|
|
|
|
\fIGStreamer\fP info flags to set (list with \-\-help)
|
|
|
|
.TP 8
|
|
|
|
.B \-\-gst\-debug\-mask=FLAGS
|
|
|
|
\fIGStreamer\fP debugging flags to set (list with \-\-help)
|
|
|
|
.TP 8
|
2001-06-07 00:08:56 +00:00
|
|
|
.B \-\-gst\-mask=FLAGS
|
|
|
|
\fIGStreamer\fP info and debugging flags to set (list with \-\-help)
|
|
|
|
.TP 8
|
2001-03-16 01:06:50 +00:00
|
|
|
.B \-\-gst\-plugin\-spew
|
|
|
|
\fIGStreamer\fP info flags to set
|
|
|
|
Enable printout of errors while loading \fIGStreamer\fP plugins
|
|
|
|
.TP 8
|
|
|
|
.B \-\-gst\-plugin\-path=PATH
|
|
|
|
Add directories separated with ':' to the plugin search path
|
2001-07-24 20:05:27 +00:00
|
|
|
.SH "SEE ALSO"
|
2002-01-06 17:36:49 +00:00
|
|
|
.BR gst\-guilaunch (1),
|
|
|
|
.BR gst\-complete (1),
|
|
|
|
.BR gst\-register (1),
|
|
|
|
.BR gst\-inspect (1),
|
2001-07-24 20:05:27 +00:00
|
|
|
.SH "AUTHOR"
|
2001-03-16 01:06:50 +00:00
|
|
|
The GStreamer team at http://gstreamer.net/
|