
John F. answered 01/16/24
Docker Tutor: Linux, Repos, Packages, Images, Containers
You almost had it.
This command overlays camera video input 1 onto the desktop video input 0 and saves it to a file. It then sends over only video 1 input to ffplay to display the preview.
For this to work well, ffmpeg expects a file format. And for it to work fast, you also have to specify audio and video codec.
Just be sure to move your preview out of the way to a second screen.
If you want to use fancy shorthand, you can use the - symbol instead of pipe, like this: