summaryrefslogtreecommitdiffstats
path: root/gst/mpegdemux
AgeCommit message (Collapse)AuthorFilesLines
2009-05-11mpegtsdemux: Protect bitrate estimation against bogus values.Edward Hervey2-5/+18
If the estimated bitrate is lower than 188 bytes, there's most likely something completely wrong with the two samples. If that happens, force recalculation. Use guint64 for observation PCR, I saw cases where it would overflow.
2009-05-11mpegtsdemux: Only take PCR from the active stream for bitrate estimation.Edward Hervey1-6/+13
2009-05-11mpegtsdemux: Change debugging levels for very frequent messages.Edward Hervey1-14/+16
This allows debugging with mpegtsdemux:4 while being able to track what's going on (and avoid taking up as much cpu for debugging as for the actual demuxing process).
2009-05-11mpegtsdemux: Revert indentation and comment header file.Edward Hervey1-93/+98
One shouldn't run gst-indent on .h files, in this case it was un-beautifying the indentation :)
2009-05-08mpegtsdemux: Add initial naive seeking support and fix duration query.Zaheer Merali2-117/+341
Sync from gst-fluendo-mpegdemux and have seeking/duration query improvements in. No support however for wrapped around pcrs etc. but a start nonetheless. Also fix indentation issues.
2009-05-04mpegtsparse: Remember pids that are meant to be stream pids.Zaheer Abbas Merali2-0/+15
Fixes #569781
2009-05-03mpegtsparse: Ignore subtable extension when parsing PATVincent Genieux3-5/+23
Fixes #569673.
2009-05-03mpegtsparse: make safe changing the program-numbers property dynamicallyVincent Genieux2-24/+25
Fixes #569437.
2009-04-21mpegdemux: Only error out at EOS push failure if we don't have any streams.Edward Hervey1-6/+21
This should remove the bogus error messages while still keeping the original intent of this, which is to inform the pipeline/application/user that we could not find any valid streams. There are many reasons why pushing an event can fail, and not all of them are because there's no link downstream (it could be because it was blocked, or flushing).
2009-04-21mpegtsdemux: add hack specific for itvhdZaheer Abbas Merali1-4/+3
itvhd masks its h264 video stream as a private stream making it harder for other set top boxes to decode. this checks for specific program number, video pid and stream type combination before declaring it as h264.
2009-04-21mpegtsparse: detect AC3 streams in PMT tableZaheer Abbas Merali1-0/+12
add 'has-ac3' boolean to pmt bus message
2009-04-21itv hd hackZaheer Abbas Merali1-0/+2821
2009-04-21hack for itvhd sid to detect mpeg1 as h264Zaheer Abbas Merali1-2816/+0
2009-04-18mpegtsparse: fix leak of GST_TYPE_LIST gvalueZaheer Merali1-1/+1
2009-04-18mpegtsparse: fix leak in src_pad_queryZaheer Merali1-1/+1
2009-03-13mpegpsdemux: workaround to fix playback of certain malformed clipsJosep Torra1-2/+29
Added a workarround to permit play certain malformed clips where first SCR is greater than last SCR. Fixes bug #454228
2009-03-10mpegdemux: Fixed a bug in the TS scanner. Fixes #574009Josep Torra1-1/+1
2009-03-04mpegtsdemux: reset sync_lut_len to 0 on READY to NULLJosep Torra1-0/+1
2009-03-03mpegtsparse: fix memleakSebastian Pölsterl1-26/+12
Fix memleak in mpegts_packetizer_clear where MpegTSPacketizerStream is not freed properly when using foreach_stream_clear function.
2009-03-03mpegtsdemux: dynamically adjust the sync LUT tableJosep Torra2-5/+17
Make the sync LUT table adjusted dynamically according to the size of scanned data. Fixes demuxing buffers of any size.
2009-02-28mpegtsdemux: Fix memory leaks when PUSI is missed due to packet lossvanista1-2/+5
Fixes bug #573288.
2009-02-25mpegdemux: don't ignore GstFlowReturn valuesWim Taymans1-0/+6
don't ignore the return value of pull_range because we only get a valid non-NULL buffer when the return value is GST_FLOW_OK. Avoids a crash when the pipeline is shutting down.
2009-02-19mpegtsdemux: s/fluts/mpegtsZaheer Merali9-395/+398
Change all definitions from fluts to mpegts.
2009-02-12Make the demuxer reusable in READY->PLAYING->READY->PLAYING cycles byJulien Moutte1-0/+1
flushing adapters correctly.
2009-02-04mpegpsdemux: fixes clossing segment generation.Josep Torra2-26/+56
Ensure that the clossing segment is generated correctly and being properly pushed. Added some GST_DEBUG to check it. Ensure that last_stop is updated in stream time. Calculate duration as delta of PTS as it seems more correct than delta of SCR in some clips that I tested.
2009-02-04mpegpsdemux: several fixes on the seeking function in pul mode.Josep Torra1-8/+9
Removed a line wrongly copy pasted in my previous commit. Avoid an unsigned integer overflow. Seek last_stop in stream time. Clamp last_stop in stream time between first and last SCR. Fixed a typo in the GST_DEBUG line and added some more info.
2009-02-04Moved var declarations to the begin of functionJosep Torra1-4/+8
2009-02-04Improved seeking in pull mode. Some refactoring and small fixesJosep Torra2-56/+127
2009-02-02Add pull mode to mpegpsdemux and report duration reading first and last PTS. ↵Josep Torra4-142/+898
Some random cleanups.
2009-01-28mpegdemux: do not skip pes packets that we think are encryptedJosep Torra1-12/+1
pes packets that claim to be encrypted may not be so, so treat as normal. Just log the flags.
2009-01-28Revert "mpegdemux: do not skip pes packets that we think are encrypted"Zaheer Merali1-2/+13
This reverts commit d3e4e5598f6c3db444d0014597d383ed35a02998.
2009-01-28mpegdemux: do not skip pes packets that we think are encryptedJosep Torra1-13/+2
pes packets that claim to be encrypted may not be so, so treat as normal. Just log the flags.
2009-01-09gst/mpegdemux/gstmpegtsdemux.c: Don't forward duration requests in BYTES, ↵David Schleef1-0/+15
since the returned value doesn't mean anyth... Original commit message from CVS: * gst/mpegdemux/gstmpegtsdemux.c: Don't forward duration requests in BYTES, since the returned value doesn't mean anything. Fixes #566959
2009-01-05gst/mpegdemux/mpegtspacketizer.c: Guard interval is 4 if descriptor part ↵Zaheer Abbas Merali1-2/+2
shows binary 11 (3 not 4). Original commit message from CVS: * gst/mpegdemux/mpegtspacketizer.c: Guard interval is 4 if descriptor part shows binary 11 (3 not 4).
2009-01-05gst/mpegdemux/gstmpegdesc.h: Fix up satellite delivery subsystem defs.Zaheer Abbas Merali1-1/+1
Original commit message from CVS: * gst/mpegdemux/gstmpegdesc.h: Fix up satellite delivery subsystem defs.
2009-01-05gst/mpegdemux/gstmpegdesc.h: Fix up terrestrial delivery system descriptor defs.Zaheer Abbas Merali1-7/+7
Original commit message from CVS: * gst/mpegdemux/gstmpegdesc.h: Fix up terrestrial delivery system descriptor defs. They should be shifted otherwise wrong values are seen.
2009-01-02gst/mpegdemux/gstmpegdemux.c: Initialize scr_rate_n and scr_rate_d in order ↵Alessandro Decina1-0/+3
to fix compiler warnings. Original commit message from CVS: * gst/mpegdemux/gstmpegdemux.c: Initialize scr_rate_n and scr_rate_d in order to fix compiler warnings.
2008-12-29gst/mpegdemux/gstmpegdemux.c: Use the adjusted SCR for calculating the mux rate.Wim Taymans1-6/+18
Original commit message from CVS: * gst/mpegdemux/gstmpegdemux.c: (gst_flups_demux_src_query), (gst_flups_demux_parse_pack_start): Use the adjusted SCR for calculating the mux rate. Don't update the rate estimation after a discont.
2008-12-29gst/mpegdemux/gstmpegdemux.*: The position member in the newsegment event ↵Wim Taymans2-4/+7
corresponds to the stream_time of the segme... Original commit message from CVS: * gst/mpegdemux/gstmpegdemux.c: (gst_flups_demux_send_data): * gst/mpegdemux/gstmpegdemux.h: The position member in the newsegment event corresponds to the stream_time of the segment start position.
2008-12-29gst/mpegdemux/gstmpegdemux.c: Converting from time to bytes operates on the ↵Robin Stocker1-3/+2
stream_time, not the SCR timeline. Original commit message from CVS: Patch by: Robin Stocker <robin at nibor dot org> * gst/mpegdemux/gstmpegdemux.c: (gst_flups_demux_src_query): Converting from time to bytes operates on the stream_time, not the SCR timeline. The position reporting should happen in stream_time, not the segment timestamp range. See #557161.
2008-12-29gst/mpegdemux/mpegtspacketizer.c: Fix memleak. Fixes #565614.Sebastian Pölsterl1-0/+1
Original commit message from CVS: Patch by: Sebastian Pölsterl <sebp at k-d-w dot org> * gst/mpegdemux/mpegtspacketizer.c: (mpegts_packetizer_parse_eit): Fix memleak. Fixes #565614.
2008-12-29gst/mpegdemux/mpegtspacketizer.c: Add a scrambled field to the service ↵Sebastian Pölsterl1-4/+5
structures retrieved from SDT to determine if ... Original commit message from CVS: Patch by: Sebastian Pölsterl <sebp at k-d-w dot org> * gst/mpegdemux/mpegtspacketizer.c: (mpegts_packetizer_parse_sdt): Add a scrambled field to the service structures retrieved from SDT to determine if a channel is scrambled. Fixes #565613.
2008-11-26gst/mpegdemux/gstmpegtsdemux.*: Enable latency code, since we're definitely ↵David Schleef2-20/+0
after 0.10.12 Original commit message from CVS: * gst/mpegdemux/gstmpegtsdemux.c: * gst/mpegdemux/gstmpegtsdemux.h: Enable latency code, since we're definitely after 0.10.12
2008-11-06gst/mpegdemux/gstmpegtsdemux.c: Make private section pads have a caps set so ↵Zaheer Abbas Merali1-0/+7
they are not tried to be linked in parse... Original commit message from CVS: * gst/mpegdemux/gstmpegtsdemux.c: Make private section pads have a caps set so they are not tried to be linked in parse_launch for example.
2008-11-06gst/mpegdemux/gstmpegtsdemux.c: No need to reclaculate flush in this case.Zaheer Abbas Merali1-1/+1
Original commit message from CVS: patch by: Josep Torra * gst/mpegdemux/gstmpegtsdemux.c: No need to reclaculate flush in this case. Fixes some bad decode errors introduced.
2008-11-06gst/mpegdemux/gstmpegtsdemux.*: Fix typo.Zaheer Abbas Merali2-3/+3
Original commit message from CVS: * gst/mpegdemux/gstmpegtsdemux.c: * gst/mpegdemux/gstmpegtsdemux.h: Fix typo.
2008-11-05gst/mpegdemux/gstmpegtsdemux.c: Heuristic approach when resyncing.Zaheer Abbas Merali1-1/+29
Original commit message from CVS: patch by: Josep Torra * gst/mpegdemux/gstmpegtsdemux.c: Heuristic approach when resyncing.
2008-11-05gst/mpegdemux/gstmpegdesc.c: Length should be a guint8 not a gint.Sebastian Pölsterl2-11/+8
Original commit message from CVS: patch by: Sebastian Pölsterl * gst/mpegdemux/gstmpegdesc.c: Length should be a guint8 not a gint. * gst/mpegdemux/mpegtspacketizer.c: Convert text to utf8 for each descriptor separately and not concatenate them first and convert after.
2008-11-04gst/mpegdemux/mpegtsparse.c: Fix another memleak.Sebastian Pölsterl1-0/+1
Original commit message from CVS: patch by: Sebastian Pölsterl * gst/mpegdemux/mpegtsparse.c: Fix another memleak.
2008-11-04Fix memleaks.Sebastian Pölsterl1-0/+5
Original commit message from CVS: patch by: Sebastian Pölsterl * gst/mpegdemux/mpegtspacketizer.c: * sys/dvb/gstdvbsrc.c: Fix memleaks.