I am trying to make the video that is recorded from three usb webcams be synchronized, I am using this command, but I still have differences by milliseconds or seconds. Any idea how to achieve it?
ffmpeg -y -copyts \
-f v4l2 -thread_queue_size 1024 -input_format mjpeg -video_size 640x480 -framerate 30 -i /dev/video0 \
-f v4l2 -thread_queue_size 1024 -input_format mjpeg -video_size 640x480 -framerate 30 -i /dev/video2 \
-f v4l2 -thread_queue_size 1024 -input_format mjpeg -video_size 640x480 -framerate 30 -i /dev/video4 \
-map 0:v -c:v copy output1.mkv -map 1:v -c:v copy output2.mkv -map 2:v -c:v copy output3.mkv