[FFmpeg-devel] [PATCH] Fix DVCPRO HD 720p Audio Timestamp Generation
Brian Brice
bbrice
Fri Jun 19 22:38:36 CEST 2009
Hello.
I have found that DVCPRO HD 720p clips have PTS values generated
slightly incorrectly and have attached a patch that should fix it.
Roman, of course, can verify the logic is correct.
The thing with these 720p clips there's 2 video frames within a buffer
that is the size of one 1080i DV frame, but 1 audio frame for 8
channels (4 streams of stereo). First 4 channels are with the first
720p frame, and the last 4 channels are with the second 720p frame.
All 8 channels (or 4 streams) should have the same PTS throughout the
duration of 2 720p frames.
For example, you would get a PTS of 0 for audio streams 1 and 2, then
PTS 1602 for audio streams 3 and 4. This patch moves the byte count
increment until after the last 2 audio streams have been read.
Thanks!
--
Brian Brice
http://heapify.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-dvcprohd-720p-aud-pts.patch
Type: application/octet-stream
Size: 751 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090619/af8865af/attachment.obj>
More information about the ffmpeg-devel
mailing list