[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Re: [gst-devel] Gnonlin question: extract audio+video clip
From:       Olivier Aubert <olivier.aubert () liris ! cnrs ! fr>
Date:       2010-07-30 14:32:11
Message-ID: 1280500331.2988.52.camel () abbeyroad ! dnsalias ! org
[Download RAW message or body]

Thanks to Edward and Sandeep. Here is, for the record, the pipeline
definition that allows to extract an A+V clip from a movie file:

SOURCE=source.avi
DEST=dest.ogv
BEGIN=25000 # start in ms
DURATION=5000 # duration in ms

gst-launch gnlfilesource name=video location=$SOURCE \
start=0 duration=${DURATION}000000 \
media-start=${BEGIN}000000 media-duration=${DURATION}000000 \
! identity single-segment=true ! progressreport update-freq=1 ! ffmpegcolorspace \
! theoraenc ! oggmux name=mux ! filesink location=${DEST} \
gnlfilesource name=audio caps="audio/x-raw-int" location=${SOURCE} \
start=0 duration=${DURATION}000000 \
media-start=${BEGIN}000000 media-duration=${DURATION}000000 \
! identity single-segment=true ! audioconvert ! vorbisenc ! mux.

Regards,
Olivier



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic