I would like to combine two live webcam feeds of same resolution (say 1280 X 1024) into one side-by-side live video feed output (2560X1024) using ffmpeg. I found some code from here: https://ffmpeg.org/ffmpeg-filters.html#overlay
ffmpeg -i left.avi -i right.avi -filter_complex "
nullsrc=size=200x100 [background];
[0:v] setpts=PTS-STARTPTS, scale=100x100 [left];
[1:v] setpts=PTS-STARTPTS, scale=100x100 [right];
[background][left] overlay=shortest=1 [background+left];
[background+left][right] overlay=shortest=1:x=100 [left+right]
"
However, I do not know how I can change the input video from MP4 to a live webcam feed. Any help would be appreciated. Thanks.