Fwd: [gst-devel] Whats the gst launch command

Edward Hervey bilboed at gmail.com
Thu Dec 22 05:16:15 CET 2005


I hate it when I forget to click on 'reply to all' instead of 'reply'.

---------- Forwarded message ----------
From: Edward Hervey <bilboed at gmail.com>
Date: Dec 22, 2005 8:38 AM
Subject: Re: [gst-devel] Whats the gst launch command
To: sameer at nextbitcpu.com


Hi,

On 12/22/05, Sameer Naik <sameer at nextbitcpu.com> wrote:
> hi everybody,
>  i want to create a gst-launch-0.10 pipeline using the following
> elements.
>
> for the demuxing
> filesrc location=/wc.mpg ! mpegdemux
>
> for the audio decoding and playback
> mad ! audioconvert ! audioresample ! osssink
>
> for the video decoding and display
> mpeg2dec ! ffmpegcolorspace ! xvimagesink
>
> i cant find a way to link these together so that the audio and video
> could be played simultaneously...i can do only one of the above at a
> time ,either
>
> gst-launch-0.10 filesrc location=/wc.mpg ! mpegdemux ! mad !
> audioconvert ! audioresample ! osssink
>
> or
>
> gst-launch-0.10 filesrc location=/wc.mpg ! mpegdemux ! mpeg2dec !
> ffmpegcolorsace ! xvimagesink
>
> could somebody plz tell me how to make a single gst-launch command out
> of the above two commands so that the audio and video play
> simultaneously.

  You can re-use elements if you name them.

  Ex : mpegdemux name=demux ! xvimagesink demux. ! alsasink

  Also, you will have to put queues before your sinks, so you're
pipeline would look something like this:

  gst-launch-0.10 filesrc location=/wc.mpg ! mpegdemux name=demux !
mad ! audioconvert ! audioresample ! queue ! osssink demux. ! mpeg2dec
! ffmpegcolorspace ! queue ! xvimagesink

  You can also ease it further using the 'decodebin' element which
will take a stream and output uncompressed streams, which would make
the following pipeline :

  gst-launch-0.10 filesrc location=/wc.mpg ! decodebin name=dbin !
audioconvert ! audioresample ! queue ! osssink dbin. !
ffmpegcolorspace ! queue ! xvimagesink

  Yet another option is to use playbin, where you pipeline would look
like this :

  gst-launch-0.10 playbin uri=file:///wc.mpg

  Have fun,

   Edward

>
> plz help
> thanks in advance
>
> take care
> Sameer
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


--
Edward Hervey
Junior developer / Fluendo S.L.
http://www.pitivi.org/


--
Edward Hervey
Junior developer / Fluendo S.L.
http://www.pitivi.org/


More information about the gstreamer-devel mailing list