[FFmpeg-devel] Allow MPEGTS and KLV metadata remuxing

Stefano Sabatini stefasab at gmail.com
Sun Jan 17 13:24:29 CET 2016


Hi,

the attached patches allow to remux MPEGTS files containing KLV
metadata. Since there are two kinds of metadata (synchronous and
asynchronous), the first patch creates side data which stores the
stream ID used to distinguish the two kind of packets, which is
otherwise lost.

At the moment, I'm storing a single byte in the side data
(corresponding to the stream ID), but the metadata could be extended
to contain more information.

The second patch disables monotonicity checks for data packets in the
muxer. Indeed there is a case where several data packets can have the
same PTS/DTS in MPEGTS so it should be enabled at least for this
special case (either explicitly enabling this for MPEGTS -
e.g. through a capability flag, or enabling an option to disable the
montonicity check, whatever people prefer).

Comments are very welcome.
-- 
FFmpeg = Funny & Fabulous Meaningful Picky Exxagerate Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavc-lavf-transmit-stream_id-information-for-mpegts-.patch
Type: text/x-diff
Size: 7658 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160117/a60c142f/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavf-mux-do-not-fail-in-case-of-non-monotonically-in.patch
Type: text/x-diff
Size: 1478 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160117/a60c142f/attachment-0001.patch>


More information about the ffmpeg-devel mailing list