Opened 6 years ago

Closed 4 years ago

#6833 closed defect (fixed)

setpts filter incorrect handle current_pts value

Reported by: Aleksey Vasenev Owned by:
Priority: important Component: avfilter
Version: git-master Keywords: fps setpts regression
Cc: developpeur@telequid.com Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
fps filter use current_pts to duplicate frames at end, but current_pts > last pts after setpts filter and fps insert too many frames at end.
Example must be 5 sec, but 10 actually
How to reproduce:

% ffmpeg -f lavfi -i testsrc=duration=10 -vf trim=5,setpts=PTS-5/TB,fps=25 -pix_fmt yuv420p 1.mkv
ffmpeg version N-88804-g3af2bf0af0

Change History (5)

comment:1 by Cigaes, 6 years ago

Status: newopen
Version: unspecifiedgit-master

Indeed, that would have that consequence. I will try to find a solution.

comment:2 by Carl Eugen Hoyos, 6 years ago

Keywords: fps setpts regression added
Priority: normalimportant
Reproduced by developer: set

comment:3 by Telequid, 6 years ago

Cc: developpeur@telequid.com added

comment:4 by Telequid, 5 years ago

Note: with latest FFmpeg (4.0.2), calling the fps filter before setpts works (output is 5 seconds long).

ffmpeg -f lavfi -i testsrc=duration=10 -vf trim=5,fps=25,setpts=PTS-5/TB -pix_fmt yuv420p 1.mkv

The command line provided in the OP still doesn't work.

comment:5 by Carl Eugen Hoyos, 4 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.