[gst-devel] Gnonlin question: extract audio+video clip

Sandeep Prakash 123sandy at gmail.com
Thu Jul 29 08:30:13 CEST 2010


Hi,


Olivier Aubert-2 wrote:
> 
> I think anyway that I should put a gnlcomposition in here, to keep
> both streams in sync.
> 
Generally gnlcomposition is used when we join, say 2 video/audio streams.



Olivier Aubert-2 wrote:
> 
> Does anyone use a gst-launch command line to do such things?
> 
gst-launch can be used.

You need to set the caps for gnlfilesource in order to select the audio
stream from avi.
Also use the "audioconvert" plugin to convert to a format that "vorbisenc"
understands.
You can try the following command line:
gst-launch gnlfilesource name=video location=source.avi \
   start=0 duration=5000000000 media-start=22000000000
media-duration=5000000000 ! \
   identity single-segment=true ! progressreport ! ffmpegcolorspace !
theoraenc ! \
   oggmux name=mux ! filesink location=/tmp/ex.ogv gnlfilesource name=audio
\
   caps="audio/x-raw-int" location=source.avi \
   start=0 duration=5000000000 media-start=22000000000
media-duration=5000000000 ! \
   identity single-segment=true ! audioconvert ! vorbisenc ! mux.


Regards,
Sandeep Prakash
http://sandeepprakash.homeip.net

-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gnonlin-question-extract-audio-video-clip-tp2305307p2306020.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list