[FFmpeg-user] Last frame with wrong duration - video from images

Michael Koch astroelectronic at t-online.de
Tue Jun 23 13:17:30 EEST 2020


Am 22.06.2020 um 23:50 schrieb Carl Eugen Hoyos:
> Am Mo., 22. Juni 2020 um 21:35 Uhr schrieb Michael Koch
> <astroelectronic at t-online.de>:
>> Am 22.06.2020 um 20:59 schrieb Michael Koch:
>>> Am 22.06.2020 um 20:33 schrieb Leonardo via ffmpeg-user:
>>>>    Here is the full output
>>>>
>>>> $ ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt
>>>> yuv420p -r 30 -vf scale=1920:1080 video.mp4
>>> It works when you remove the scale filter, but don't ask me why.
>> It also works when you replace
>> -vf scale=1920:1080
>> by
>> -s 1920x1080
>>
>> Looks like a bug.
> It is hard for the filter-chain to know when a stream ends but I
> believe other work-arounds exist.

One more possible workaround is to omit "-r 30" and add it to the filter 
chain:

ffmpeg -framerate 1/5 -i figura%03d.png -c:v libx264 -pix_fmt
yuv420p -vf scale=1920:1080,fps=30 video.mp4

Michael




More information about the ffmpeg-user mailing list