Some scripts and codes related to ffmpeg
ffmpeg version 4.0
ffmpeg -list_devices true -f dshow -i dummy
Keep in mind that this is a very generic code on your local machine the pix_fmt and video name might be different
ffmpeg -f dshow -i video="Integrated Webcam" -pix_fmt yuv420p -s 1280x800 -f sdl2 -