[gstreamer-bugs] [Bug 578966] New: Using seek to segment video produces garbage

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Apr 14 13:18:09 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=578966

  GStreamer | gstreamer (core) | Ver: 0.10.21
           Summary: Using seek to segment video produces garbage
           Product: GStreamer
           Version: 0.10.21
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: shawn_mcmurdo at yahoo.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.23/2.24
   GNOME milestone: Unspecified


Please describe the problem:
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());


Steps to reproduce:
1. 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());

2. This produces an output file that is not recognizable or playable via
gstreamer or other video players.
3. 


Actual results:
An output file of approximately the correct size is generated but it is
unplayable.

Expected results:
I expect the generated video segment to be playable.

Does this happen every time?
yes

Other information:
This happens on Fedora 10 64 bit and Ubuntu 8.10 32 bit.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=578966.




More information about the Gstreamer-bugs mailing list