[gst-devel] Pipeline to Segment Video?

Shawn McMurdo shawn_mcmurdo at yahoo.com
Fri Apr 10 18:35:31 CEST 2009


Also, if I remove the video branch of the pipeline the audio encodes fine.
Something like this:

filesrc location=${input} ! decodebin ! audioconvert ! ${en
coder} ! filesink location=${output}

So, is this a bug?
Thanks.
Shawn




________________________________
From: Shawn McMurdo <shawn_mcmurdo at yahoo.com>
To: Gstreamer Devel <gstreamer-devel at lists.sourceforge.net>
Sent: Thursday, April 9, 2009 7:03:00 PM
Subject: [gst-devel] Pipeline to Segment Video?


I am trying to segment a video using gstreamer (via gstreamer-java).
I have the equivalent of this pipeline:

filesrc location=${input} ! decodebin name=dec ffmux_asf name=mux ! filesink location=${output} dec. ! queue ! ffmpegcolorspace ! ffenc_wmv2 ! queue ! mux. dec. ! queue ! audioconvert ! lame ! mp3parse ! queue ! mux.

This pipeline works if I don't do a seek but if I do a seek it produces a file that is not identifiable as a video although it seems to be about the right size.

Here's the seek code which works on other pipelines:

int flags = SeekFlags.FLUSH | SeekFlags.SEGMENT | SeekFlags.KEY_UNIT;
boolean success = gpipe.seek(1.0, Format.TIME, flags,
                                    SeekType.SET, startClock.toNanos(),
                                    SeekType.SET, endClock.toNanos());

Why doesn't this work?
Is there a solution to how to segment a video using gstreamer?
Thanks.
Shawn


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090410/65719bc5/attachment.htm>


More information about the gstreamer-devel mailing list