mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
fixes outdated mpeg examples and adds a few more
Original commit message from CVS: fixes outdated mpeg examples and adds a few more
This commit is contained in:
parent
9f23c76bea
commit
27b09f01a0
1 changed files with 11 additions and 8 deletions
|
@ -34,6 +34,9 @@ Here we convert a Mp3 file into an Ogg Vorbis file:
|
|||
|
||||
gstreamer\-launch disksrc location=music.mp3 ! mad ! vorbisenc ! disksink location=music.ogg
|
||||
|
||||
Or converting from mp3 to Flac:
|
||||
gstreamer-launch filesrc location=claptrap.mp3 ! mad ! flacenc ! disksink location=test.flac
|
||||
|
||||
And then we can play that file with:
|
||||
|
||||
gstreamer\-launch disksrc location=music.ogg ! vorbisdec ! osssink
|
||||
|
@ -48,6 +51,9 @@ Converts wav files into mp3 and ogg files:
|
|||
gstreamer\-launch disksrc location=music.wav ! parsewav ! vorbisenc ! disksink location=music.ogg
|
||||
gstreamer\-launch disksrc location=music.wav ! parsewav ! mpegaudio ! disksink location=music.mp3
|
||||
|
||||
Play mpeg movie with the aasink:
|
||||
gstreamer-launch filesrc location=JB_FF9_TheGravityOfLove.mpg ! mpegdemux video_00! { queue ! mpeg2dec ! aasink }
|
||||
|
||||
You can also use lame for mp3 encoding if you have it installed, it does a
|
||||
much better job than mpegaudio.
|
||||
|
||||
|
@ -63,16 +69,13 @@ Record sound from your sound input and encode it into an ogg file:
|
|||
gstreamer\-launch osssrc ! vorbisenc ! disksink location=input.ogg
|
||||
|
||||
gstreamer\-launch not only handles audio but video as well:
|
||||
For mpeg1 files (video and audio streams respectively):
|
||||
For mpeg video files (here outputing to aasink) :
|
||||
|
||||
gstreamer\-launch disksrc location=video.mpg ! mpeg1parse video_00! queue ! { mp1videoparse ! mpeg_play ! sdlvideosink }
|
||||
gstreamer\-launch disksrc location=video.mpg ! mpeg1parse audio_00! queue ! { mad ! osssink }
|
||||
gstreamer-launch filesrc location=JB_FF9_TheGravityOfLove.mpg ! mpegdemux video_00! { queue ! mpeg2dec ! aasink }
|
||||
|
||||
For vob files (here outputting image to sdlvideosink):
|
||||
gstreamer-launch filesrc location=/flflfj.vob ! mpegdemux video_00! { queue ! mpeg2dec ! sdlvideosink }
|
||||
|
||||
For mpeg2 files (video and audio streams respectively):
|
||||
|
||||
gstreamer\-launch disksrc location=video.mpeg ! mpeg2parse video_0! queue ! { mpeg2dec ! sdlvideosink }
|
||||
gstreamer\-launch disksrc location=video.mpeg ! mpeg2parse private_stream_1.0! queue ! { ac3dec ! osssink }
|
||||
.
|
||||
See other docs, examples, and the source for description on how to
|
||||
create a PIPELINE\-DESCRIPTION.
|
||||
.
|
||||
|
|
Loading…
Reference in a new issue