I want to do something similar to the one on this guide but in that case both inputs have the same fps, I want to sync two distinct framerate inputs, here a sample:
ffmpeg \ -f x11grab \ -video_size 1920x1080 \ -framerate 60 \ -i :0.0 \ -f v4l2 \ -video_size 320x240 \ -framerate 15 \ -i /dev/video0 \ -filter_complex '[0:v][1:v]overlay=10:(H-h)/2[o]' \ -map '[o]' \ -r 60 \ -vcodec libx264 \ -an \ -f mpegts \ udp://127.0.0.1:3333
Then to watch:
In my case it awkwardly gives about 10 fps and seems to be freezing, though I expected 60 I believe it would be more likely to be 15 since it is the lowest one, who knows...
However if I remove the webcam input and the filter it gives the full 60 fps I wanted, as well as when I stream only the webcam it gives the 15 fps.
Based on this other guide I also tried the filter
[1:v]fps=fps=60[wc];[0:v][wc]overlay=10:(H-h)/2[o] but with no success.
I expect the output fps to be 60 and the frames to be nicely distributed someway avoiding the freezing effect. How can I sync two different fps videos inputs with ffmpeg?