<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Also, if I remove the video branch of the pipeline the audio encodes fine.<br>Something like this:<br><br>filesrc location=${input} ! decodebin ! audioconvert ! ${en<br>coder} ! filesink location=${output}<br><br>So, is this a bug?<br>Thanks.<br>Shawn<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Shawn McMurdo &lt;shawn_mcmurdo@yahoo.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Gstreamer Devel &lt;gstreamer-devel@lists.sourceforge.net&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 9, 2009 7:03:00 PM<br><b><span
 style="font-weight: bold;">Subject:</span></b> [gst-devel] Pipeline to Segment Video?<br></font><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>I am trying to segment a video using gstreamer (via gstreamer-java).<br>I have the equivalent of this pipeline:<br><br>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.<br><br>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.<br><br>Here's the seek code which works on other pipelines:<br><br>int flags = SeekFlags.FLUSH | SeekFlags.SEGMENT | SeekFlags.KEY_UNIT;<br>boolean success = gpipe.seek(1.0, Format.TIME,
 flags,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SeekType.SET, startClock.toNanos(),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SeekType.SET, endClock.toNanos());<br><br>Why doesn't this work?<br>Is there a solution to how to segment a video using gstreamer?<br>Thanks.<br>Shawn<br><br></div></div><br>

      </div></div></div><br>



      </body></html>