Opened 2 years ago

Last modified 2 years ago

#9810 new defect

packet->pts skips forward after a seek

Reported by: oneway Owned by:
Priority: normal Component: avformat
Version: unspecified Keywords: seek, jump, skip
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by oneway)

Summary of the bug:
I used ffmpeg-107064-g7adeeff91f UTC compile date: 2022-04-05 to reproduce this bug.
How to reproduce:

./ffplay -seek_interval 20 skips_after_seek.mp3
ffplay version: ffplay-106494-g1291568c98
built on 2022-04-05 

Start playing and press right arrow once to seek 20 seconds. At ~30s, the playback time and audio will jump to ~40s, In my application, I noticed the packet->pts jumps correspondingly after call to av_read_frame().

This only happens with some files, I have only one example from a user so far, but my application receives a fair amount of complaints about this. It didn't happen with older versions of ffmpeg, probably < 4.0.

Here is a link to the sample file used to reproduce: https://drive.google.com/file/d/1UMSQSxdgat-hibQcctJTVWb6RX9g0QG6/view?usp=sharing

Change History (6)

comment:1 by oneway, 2 years ago

Description: modified (diff)

comment:2 by oneway, 2 years ago

Description: modified (diff)

comment:3 by oneway, 2 years ago

I can't cut the file size down because it makes the problem go away and the ftp seems to be down so idk

Last edited 2 years ago by oneway (previous) (diff)

comment:4 by Balling, 2 years ago

comment:5 by oneway, 2 years ago

Description: modified (diff)

in reply to:  4 comment:6 by oneway, 2 years ago

Replying to Balling:

Does this sample sufficient for you? https://github.com/mpv-player/mpv/files/8875674/out_jump_40s.zip

I put a link to a test file that you can reproduce it at: https://drive.google.com/file/d/1UMSQSxdgat-hibQcctJTVWb6RX9g0QG6/view?usp=sharing I'm aware it's AAC with an mp3 extension, that's how it came to me

Note: See TracTickets for help on using tickets.