> On Jan 31, 2020, at 3:20 AM, Avramoni, Sorin <sorin.avram...@intel.com> wrote:
> 
> 
> Hi,
> 
> The video gets really bad when I try to mux it with audio, however audio is 
> played ok. One thing that may go wrong is that my video encoder generates one 
> access unit that contains multiple NAL units, what I do to be compliant is 
> that I parse it and extract one nal unit at a time, remove NAL start code and 
> add a presentation time for each NAL unit, so even SPS, PPS, VPS has a 
> different timestamps than key frame or B frame even if where in the same 
> access unit, maybe this can have affect somehow.

In principle, yes, the presentation times for all NAL units in the same access 
unit should be the same.  In practice, though (especially for this application: 
multiplexing into a Transport Stream), that shouldn’t be a problem.

Just make sure that the presentation times for the audio frames are properly 
aligned with those for video.

> Do I need to set fDurationInMicroseconds also?

Not for a live feed; you should just leave this at its default value of 0


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


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to