[Bug 731330] New: mpegtsdemux fixing PCR calculate_skew function

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jun 6 04:09:22 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731330
  GStreamer | gst-plugins-bad | 1.3.2

           Summary: mpegtsdemux fixing PCR calculate_skew function
    Classification: Platform
           Product: GStreamer
           Version: 1.3.2
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: xlazom00 at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


hi
I am trying to fix hlsdemux-er to don't generate some much elements for same
video and audio codecs

And I have this problem
some hls segments (ts) if you switch quality don't have proper continuously
increasing PCR

calculate_skew: gstpcr 0:00:11.733333333, buftime 0:00:00.000000000, base
0:00:01.400000000, send_diff 0:00:10.333333333
calculate_skew: gstpcr 0:00:11.900000000, buftime 0:00:00.000000000, base
0:00:01.400000000, send_diff 0:00:10.500000000

next ts file
calculate_skew: gstpcr 0:00:11.816666666, buftime 0:00:10.541667000, base
0:00:01.400000000, send_diff 0:00:00.000000000

it just happens :)

http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/mpegtsdemux/mpegtspacketizer.c#n1290
as 
pcr->last_pcrtime - gstpcrtime > PCR_GST_MAX_VALUE / 2
don't don't mach problem 
or
pcr->last_pcrtime - gstpcrtime > 15 * GST_SECOND

And I really don't understand what the hell this expressions fix? after all
as in my situation
pcr->last_pcrtime - gstpcrtime = 83333334 
PCR_GST_MAX_VALUE / 2 = 47721858849962 
15 * GST_SECOND = 15000000000

I think that this expressions should be contrariwise
or I don't get point for this
Any idea ????

my testing stream
GST_DEBUG="*:3,tsdemux:0,hlsdemux:0,mpegtspacketizer:4" gst-launch-1.0 playbin
uri="http://live.mdragon.org/gearmix3/bbbfulluny.m3u8"

and log
http://pastebin.com/h6eUDDMC

-- 
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