[FFmpeg-trac] #10393(undetermined:new): unexpected PTSs inside avcodec_send_frame
FFmpeg
trac at avcodec.org
Wed May 31 03:02:46 EEST 2023
#10393: unexpected PTSs inside avcodec_send_frame
-------------------------------------+-------------------------------------
Reporter: markshw | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
It is observed that PTS on frame that is passed to avcodec_send_frame is
not as expected, when ffmpeg is invoked with parameters to copy timebase
from input to output.
The behavior changed from 5.1 and can be seen with 6.0 when ffmpeg is
invoked with filter_complex. On ffmpeg 6.0 when invoked with -vf or
without filters it works as expected
To reproduce, please apply the attached patch (or simply add logging in
avcodec_send_frame for the frame->pts)
**Command line examples:**
works as expected:
./ffmpeg -y -i ~/Downloads/test.mp4 -vsync vfr -copyts -enc_time_base -1
-vf "scale=1280:720" -c:v libx264 ~/output.mp4 -loglevel info
logged PTSs are 0, 512,1024,1536,2048,...
UNEXPECTED timestamps
./ffmpeg -y -i ~/Downloads/test.mp4 -vsync vfr -copyts -enc_time_base -1
-filter_complex "scale=1280:720" -c:v libx264 ~/output.mp4 -loglevel info
logged PTSs are
0,1,2,3,4,5....
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10393>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list