[FFmpeg-devel] [PATCH] ogg: Fix seek to zero and packet pts after read through.

Dale Curtis dalecurtis at chromium.org
Sat May 5 03:00:21 CEST 2012


On Fri, May 4, 2012 at 5:52 PM, Dale Curtis <dalecurtis at chromium.org> wrote:

> On Fri, May 4, 2012 at 5:28 PM, Michael Niedermayer <michaelni at gmx.at>wrote:
>
>> On Fri, May 04, 2012 at 03:42:00PM -0700, Dale Curtis wrote:
>> > On Fri, May 4, 2012 at 3:11 PM, Michael Niedermayer <michaelni at gmx.at
>> >wrote:
>> >
>> > >
>> > > i dont see a difference between
>> > > seek-test sync1.ogg -frames 20  | head
>> > > and
>> > > seek-test sync1.ogg -frames 20  -seekback 0| head
>> > >
>> > > ogg-ts sync1.ogg
>> > > also shows no errors
>> > >
>> > > so maybe my last few commits fixed that too or iam testing the wrong
>> > > thing.
>> > > Can you confirm if this issue is still reproduceable
>> > >
>> > >
>> > Awesome! Looks fixed for sync1.ogg, however libre.ogg is still messed up
>> > (maybe a bad test case?):
>> >
>> > $ libavformat/seek-test /var/www/libre.ogg -frames 10  2>/dev/null |
>> head
>> > -n 10
>> > ret: 0         st: 0 flags:0 dts: 1796.120000 pts: 1796.120000 pos:
>> 6183
>> > size:  3964
>> > ret: 0         st: 1 flags:1 dts: 1796.179592 pts: 1796.179592 pos:
>>  10190
>> > size:    91
>> > ret: 0         st: 0 flags:1 dts: 1796.160000 pts: 1796.160000 pos:
>>  10309
>> > size: 16266
>> > ret: 0         st: 1 flags:1 dts: 1796.179592 pts: 1796.179592 pos:
>>  26666
>>
>> fixed the duplicate timestamp
>>
>>
> Hurm, ogg-ts is showing two 0's for the first timestamps using sync1.ogg:
>
> dalecurtis at xorax /d/code/tests $ ./ogg-ts /var/www/sync1.ogg
> pts:        0
> pts:        0
> pts:      128
> pts:      256
> pts:     1280
> pts:     1408
> pts:     1536
> pts:     2112
> pts:     3136
> pts:     4160
>
> - dale
>

Better report with seek-test:

$ libavformat/seek-test /var/www/sync1.ogg -frames 10 2>/dev/null | head -n
10
ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   3340 size:
   47
ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   3340 size:
   48
ret: 0         st: 0 flags:1 dts: 0.002902 pts: 0.002902 pos:   3340 size:
   45
ret: 0         st: 0 flags:1 dts: 0.005805 pts: 0.005805 pos:   3340 size:
  265
ret: 0         st: 0 flags:1 dts: 0.029025 pts: 0.029025 pos:   3340 size:
   46
ret: 0         st: 0 flags:1 dts: 0.031927 pts: 0.031927 pos:   3340 size:
   42
ret: 0         st: 0 flags:1 dts: 0.034830 pts: 0.034830 pos:   3340 size:
    1
ret: 0         st: 0 flags:1 dts: 0.047891 pts: 0.047891 pos:   3340 size:
    1
ret: 0         st: 0 flags:1 dts: 0.071111 pts: 0.071111 pos:   3340 size:
    1
ret: 0         st: 0 flags:1 dts: 0.094331 pts: 0.094331 pos:   3340 size:
    1

- dale


More information about the ffmpeg-devel mailing list