Asked • 03/18/19

Screen cast and capture video cam and show both on screen using ffmpeg?

I'm using the following command to capture my screen cast and laptop video camera at the same time. Video from the cameraappears in a smallish window in bottom right of the screen cast.This works, however there is a snag; I can't see the video ofmyself on screen while I'm recording and I want to be ableto see myself in the bottom right window so I can be sure Ialign myself with the camera. How can I do this? ffmpeg -f alsa -i default \\ -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 25 \\ -i :0.0 -f video4linux2 \\ -i /dev/video0 -filter_complex '[2:v]scale=380:-1[cam];[1:v][cam]overlay=W-w-8:H-h-8' \\ -c:a flac \\ -qscale 0 screen_and_video_grab.mkv

1 Expert Answer

By:

John F. answered • 01/16/24

Tutor
New to Wyzant

Docker Tutor: Linux, Repos, Packages, Images, Containers

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.