[Live-devel] [PATCH 2/2] MPEG, H264, H265: add option to preserve presentation time from source

Stas Tsymbalov tsymbalov at trueconf.ru
Tue May 19 08:08:18 PDT 2015


Sometimes it is desired to use presentation time already stored with
input frames. For example when data comes already split into frames (but
not NUL units) and if frame rate can't be determined from stream itself
or frames appear with irregular intervals or even skipped entirely.
This patch add option to copy presentation time from input source to
MPEG, H264, H265 stream framers.
---
 liveMedia/H264VideoStreamFramer.cpp            |  8 ++++----
 liveMedia/H264or5VideoStreamDiscreteFramer.cpp |  2 +-
 liveMedia/H264or5VideoStreamFramer.cpp         |  4 ++--
 liveMedia/H265VideoStreamFramer.cpp            |  8 ++++----
 liveMedia/MPEG1or2VideoStreamFramer.cpp        | 10 ++++++----
 liveMedia/MPEG4VideoStreamFramer.cpp           | 10 ++++++----
 liveMedia/MPEGVideoStreamFramer.cpp            |  6 +++++-
 liveMedia/StreamParser.hh                      |  2 ++
 liveMedia/include/H264VideoStreamFramer.hh     |  4 ++--
 liveMedia/include/H264or5VideoStreamFramer.hh  |  3 ++-
 liveMedia/include/H265VideoStreamFramer.hh     |  4 ++--
 liveMedia/include/MPEG1or2VideoStreamFramer.hh |  8 +++++---
 liveMedia/include/MPEG4VideoStreamFramer.hh    |  5 +++--
 liveMedia/include/MPEGVideoStreamFramer.hh     |  3 ++-
 14 files changed, 46 insertions(+), 31 deletions(-)



-- 
Stas Tsymbalov
TrueConf LLC
http://trueconf.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-MPEG-H264-H265-add-option-to-preserve-presentation-t.patch
Type: text/x-patch
Size: 14074 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150519/78f28b98/attachment.bin>


More information about the live-devel mailing list