[FFmpeg-devel] question: why (pts < dts) is Invalid timestamps
Maksym Veremeyenko
verem at m1stereo.tv
Fri Jan 6 14:25:31 CET 2012
06.01.12 10:57, Geek.Song написав(ла):
> 2012/1/6 Maksym Veremeyenko<verem at m1stereo.tv>:
[...]
>> assume we have a GOP IBBP with time base 1/1000000
>>
>> ORDER TYPE DTS PTS
>> 0 I 0 0
>> 1 P 40000 120000
>> 2 B 80000 40000
>> 3 B 120000 80000
>>
>> what is wrong?
>>
>
> the DTS column is wrong, DTS should start from negative value such as
>
> DTS
>
> -80000
> -40000
> 0
> 40000
>
would it be correct?:
ORDER TYPE DTS PTS
0 I -40000 0
1 P 0 120000
2 B 40000 40000
3 B 80000 80000
another things to clarify:
1. are there any restriction against storing negative DTS in index table?
2. would it be proper to calculate DTS xxx_read_packet instead of
storing negative?
3. does require to setup AVStream.start_time to 0?
--
________________________________________
Maksym Veremeyenko
More information about the ffmpeg-devel
mailing list