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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 <[hidden email]> To: Gstreamer Devel <[hidden email]> 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |