<div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="monospace, monospace">Hi Carl,</font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> In this example, it looks as if the input already has 60fps.<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">The inputs is 30fps, set by the '-r' flag. Maybe the settb filter is throwing you off, but it only changes the timebase to 1/60, the framerate is kept to 30/1.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> Your original email gave the impression that vstack somehow changed the framerate of your video from 30 to 60fps.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Yeah that is exactly what i meant.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> Please note that "-vsync 0 -f mp4" is not valid as FFmpeg's mp4 muxer only support cfr.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Yeah, the generated file by this command is not playable by the default windows player, but vlc plays the file fine.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">If the first ffmpeg command confuses you take a look at the second one:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> .\ffmpeg.exe -y -loop 1 -r 30 -t 5 -i .\frame.png -loop 1 -r 25 -t 5 -i .\frame.png -filter_complex "[0][1]vstack[out]" -map [out] -c:v h264 -vsync 0 -f mp4 out.mp4</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Here two inputs, 30fps and 25fps, are combined with vstack to produce a 50fps output. This command also print multiple warning messages about 'Non-monotonous PTS/DTS', those are caused by the timebases in use, here is a command which resolves them(note we are only playing with timebases, no framerate changes are made):</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">.\ffmpeg.exe -y -loop 1 -r 30 -t 5 -i .\frame.png -loop 1 -r 25 -t 5 -i .\frame.png -filter_complex "[0]settb=expr=1/150[in0];[1]settb=expr=1/150[in1];[in0][in1]vstack[out]" -map [out] -enc_time_base 1/150 -c:v h264 -vsync 0 -f mp4 out.mp4<br></font></div><div><br></div><div><font face="monospace, monospace">Thanks.</font></div></div></div></div>