[Ffmpeg-devel] [PATCH]: A/V sync on nsv streams.
Fri Oct 27 03:18:54 CEST 2006
The current nsv demuxer in ffmpeg doesn't handle discontinuous nsv streams
very well. This is streams that might send a commercial before the actual
program. When the stream switches the video is garbled and a/v desync
A sample for this can be tried here http://188.8.131.52:8000;stream.nsv,
(NOTE adult nature)
The nsv streaming format sends a parameter on each nsvf frame about the
difference in timestamp between audio and video on that packet. So here is a
patch that uses that information to set the dts value of the audio packet,
fixes A/V sync on these types of streams.
Also, as noted by docs, the normal place a keyframe occurs is also on these
sync frames, so I set the key flag only in those cases, should atleast be a
little bit better. Currently, the video still breaks up on the change as the
demuxer doesn't notify codec's on the content change, but i'm not sure how
to solve that.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2109 bytes
Desc: not available
More information about the ffmpeg-devel