[FFmpeg-trac] #6560(avformat:new): av_seek_frame messes up PTS of frames
FFmpeg
trac at avcodec.org
Wed Aug 2 04:51:56 EEST 2017
#6560: av_seek_frame messes up PTS of frames
----------------------------------+--------------------------------------
Reporter: denial | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
Adding a line
{{{av_seek_frame(fmt_ctx, video_stream, 0, AVSEEK_FLAG_BACKWARD);}}}
before the main loop of test/api/api-h264-test.c for some videos results
in different PTSs.
In my mp4 test video the first frame to have a wrong PTS is frame 130. The
error is noticeable because after decoding the PTSs are no longer
monotonic. When the video is shortened to 1MB, the PTSs are correct. I
guess libavformat then avoids reading the index.
Since upload.ffmpeg.org does not work right now, I can't upload the video.
A video that shows the error can be downloaded with
{{{youtube-dl -f 136 https://www.youtube.com/watch?v=1tdbtRpfk-c}}}
After download it should have the md5 hash
d1159f216fcdb2e034b5ca3a8e25a886.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6560>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list