Opened 11 months ago

Last modified 11 days ago

#6833 open defect

setpts filter incorrect handle current_pts value

Reported by: Ratio 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 (4)

comment:1 Changed 11 months ago by Cigaes

  • Status changed from new to open
  • Version changed from unspecified to git-master

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

comment:2 Changed 9 months ago by cehoyos

  • Keywords fps setpts regression added
  • Priority changed from normal to important
  • Reproduced by developer set

comment:3 Changed 7 months ago by telequid

  • Cc developpeur@telequid.com added

comment:4 Changed 11 days ago by telequid

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.

Note: See TracTickets for help on using tickets.