[FFmpeg-devel] [PATCH] Fix DVCPRO HD 720p Audio Timestamp Generation
Roman V Shaposhnik
rvs
Fri Jun 19 22:46:46 CEST 2009
On Fri, 2009-06-19 at 15:38 -0500, Brian Brice wrote:
> 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.
This looks correct. Can somebody, please, apply?
Thanks,
Roman.
More information about the ffmpeg-devel
mailing list