<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="monospace, monospace">Hi Carl.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> How can I reproduce this (major?) issue with ffmpeg (the application)?  <br></font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">.\ffmpeg.exe -y -loop 1 -r 30 -t 5 -i .\frame.png -filter_complex "[0]settb=expr=1/60[tb];[tb]split[s0][s1];[s1]setpts=PTS+1[offset];[s0][offset]vstack[out]" -map [out] -c:v h264 -vsync 0 -f mp4 out.mp4</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Here is the previous filter broken down:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">'-loop 1 -r 30 -t 5 -i .\frame.png' and '[tb]split[s0][s1]' just an easy way to get two sources.<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">'[0]settb=expr=1/60[tb]' as I explained in my follow up 

email  the timebases in use are also relevant.<br></font></div><div><font face="monospace, monospace"> </font></div><div><font face="monospace, monospace">'[s1]setpts=PTS+1[offset]' as also explained in my follow up 

email  the ptss must be interleaved.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">'-vsync 0' we must cancel the vsync, having the vsync active is the equivalent to the solution I proposed in my first email.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I know that having the ptss of the two sources interleaved is uncommon, in fact in my program it happens because once decoded the frames I have some logic that modifies the ptss.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Here is a less shady case, sources with different framerate, where this problems can also be seen:</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<br></font></div><div><font face="monospace, monospace"><br></font></div><div>Thanks.</div><div><font face="monospace, monospace"><br></font></div></div></div></div></div>