As mentioned in
- You need to specify the device name given in device manager, i.e. “HD Webcam”, not the index as you would when using the Direct Show backend (CAP_DSHOW).
- You need to build against FFmpeg not use the pre-built binaries, these won’t include any changes you made to
cap_ffmpeg_impl.hpp
.