- macOS (tested with macOS Monterey 12.3)
- QuickTime Player (tested with 10.5)
- ffmpeg (tested with 5.1.1)
Run 2 recordings in parallel.
In Quicktime
- Quicktime > File > New Video Recording
- Quicktime > File > New Screen Recording
- Stop both when over
- Save the 2 files as .mov files
ffmpeg -i file1.mov -i file2.mov -filter_complex "[0]scale=iw/4:ih/4 [pip]; [1][pip] overlay=main_w-overlay_w-10:10" -profile:v main -level 3.1 -vcodec h264 -acodec mp3 output.mp4
Only the camera recording should come with a sound track.
-filter_complex "[0]scale=iw/4:ih/4 [pip]; [1][pip] overlay=main_w-overlay_w-10:10" -profile:v main -level 3.1 -vcodec h264 -acodec mp3 output.mp4
Says that file #0 (first arg) should be used as pip, at 25% its original size
PiP is positioned in the top right, as is defined by overlay=main_w-overlay_w-10:10
Alternatives:
- Bottom left :
overlay=main_w-overlay_w-10-10:main_h-overlay_h-10
- Top left:
overlay=10:10
- Bottom right:
overlay=main_w-overlay_w-10-10:main_h-overlay_h-10