[Bug 698748] New: mpegtsmux: improper timestamping of output packets

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Apr 24 08:08:57 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=698748
  GStreamer | gst-plugins-bad | 1.x

           Summary: mpegtsmux: improper timestamping of output packets
    Classification: Platform
           Product: GStreamer
           Version: 1.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: greg at gsr-tek.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Using the following gst-launch (and the attached stream), mpegtsmux is
timestamping every output buffer with a value of 0.  I am using multifilesink
to segment the resulting transport stream by key-frames.  multifilesink looks
for key-frames every 10 seconds to know when to start a new file, but if the
buffer timestamps are not increasing, a new file will never be opened.

gst-launch-1.0 -e -v --gst-debug-level=3 --gst-debug=multifilesink:5 \
    filesrc location=test2.ts ! \
    tsdemux name=demux  \
        demux.video_0840 ! mpeg2dec ! queue ! tee name=videotee \
        demux.audio_0841 ! tee name=audiotee1 \
        demux.audio_0842 ! tee name=audiotee2 \
    mpegtsmux name=mux_320x240 ! \
        multifilesink max-files=100 index=1 next-file=2 \
            location=test_320x240_200kb_%06d.ts \
    mpegtsmux name=mux_640x480 ! \
        multifilesink max-files=100 index=1 next-file=2 \
            location=test_640x480_1000kb_%06d.ts \
    videotee. ! queue ! \
        videoscale ! video/x-raw, width=320, height=240 ! queue ! \
        avenc_mpeg2video bitrate=200000 ! mux_320x240. \
    videotee. ! queue ! \
        videoscale ! video/x-raw, width=640, height=480 ! queue ! \
        avenc_mpeg2video bitrate=1000000 ! mux_640x480. \
    audiotee1. ! queue ! mux_320x240. \
    audiotee2. ! queue ! mux_320x240. \
    audiotee1. ! queue ! mux_640x480. \
    audiotee2. ! queue ! mux_640x480.

It is possible that a simpler pipeline will also produce this result, but this
is one that does it for me.  I have identified the code in mpegtsmux that is
causing the problem (will post in a future comment), but I'm not sure if the
problem is with mpegtsmux or something further upstream in the pipeline.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list