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

Ross Finlayson finlayson at live555.com
Thu May 28 14:01:09 PDT 2015


> On May 19, 2015, at 8:08 AM, Stas Tsymbalov <tsymbalov at trueconf.ru> wrote:
> 
> 
> Sometimes it is desired to use presentation time already stored with
> input frames.

Yes, but the way to deliver these is through the “*DiscreteFramer” classes.  Specifically, if your input source consists of H.264 NAL units - each with a known presentation time - then you should feed your input source into a “H264VideoStreamDiscreteFramer” (and from there into a “H264VideoRTPSink”).  Note, BTW, that each H.264 NAL unit that you feed into a “H264VideoStreamDiscreteFramer” must *not* begin with a ‘start code’.

(In other words, your proposed patch here is completely unnecessary.)

If - for whatever reason - you want to have your H.264 video source as a byte stream, but with pre-computed presentation times stored separately, then you could implement this by having your H.264 video byte stream feed into a “H264VideoStreamFramer”, which in turn would feed into your own “FramedFilter” subclass that would also get presentation times from your separate source.  Your “FramedFilter” subclass would then feed these H.264 NAL units, along with the presentation times, into a “H264VideoStreamDiscreteFramer”.  Again, no change to the supplied code is needed to do this.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150528/facdb216/attachment.html>


More information about the live-devel mailing list