[Ffmpeg-devel] [PATCH]: A/V sync on nsv streams.
elupus
elupus
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
occurs.
A sample for this can be tried here http://69.9.180.91: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.
/Joakim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsvdec.patch
Type: application/octet-stream
Size: 2109 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061027/59da209f/attachment.obj>
More information about the ffmpeg-devel
mailing list