[FFmpeg-user] Slide show with vfr
pdr0
pdr0 at shaw.ca
Mon Jan 25 01:35:33 EET 2021
Wolfgang Hugemann wrote
> I did one step backward and tried to construct a vfr video from the
> scratch using slides a an input:
>
> ffmpeg -y -f concat -i input.txt colors.mkv
>
> with input.txt as:
>
> ffconcat version 1.0
> file 'red.png'
> duration 250ms
> file 'yellow.png'
> duration 500ms
> file 'green.png'
> duration 500ms
> file 'cyan.png'
> duration 250ms
> file 'blue.png'
> duration 500ms
> file 'black.png'
> duration 500ms
>
> This resulted in cfr for mp4 an vfr for mkv or webm (according to
> MediaInfo, a Windows application). However, there seems to be something
> wrong with the result colors.mkv, as no player, including ffplay uses
> the specified durations.
Express duration in seconds
Repeat the last image as per
https://trac.ffmpeg.org/wiki/Slideshow#Concatdemuxer
file 'red.png'
duration 0.25
file 'yellow.png'
duration 0.5
file 'green.png'
duration 0.5
file 'cyan.png'
duration 0.25
file 'blue.png'
duration 0.5
file 'black.png'
duration 0.5
file 'black.png'
--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
More information about the ffmpeg-user
mailing list