@BSaidus
... or directly ffmpeg ...
In this case, my
FFGrab4Laz-Thread might be helpful for You:
Take the Source of 'ScreenRecorder2FPC' (= record Video with FFmpeg-LIBs) or
'RunFFmpeg' (= do anything via FFmpeg-CLIs) or FFmpeg's 'ffmpeg.exe' itself and
replace 'gdigrab' with Your Camera, as described in the
FFmpeg-DOC-> GoTo
"26.6.2 Examples" (= for DirectShow) and search for
"camera".
(According to Your Signature, You use Windows.)
To open the Camera (and the Microphone), try this:
ffmpeg
-f dshow -i video="Camera":audio="Microphone"And to record it to a File, add an Output, like:
ffmpeg
-f dshow -i video="Camera":audio="Microphone" "output.mp4"These are minimal FFmpeg-CommandLines. You may add more Arguments to adapt them to Your Needs.