I'm trying to open a directshow video source (webcam/push source) using the ffmpeg api however I'm not having any luck. I've tried using
av_open_input_file()
however I don't think this is the right way... Does anyone have any pointers?
I'm using visual studio and c++ on a windows system
This doesn't use the ffmpeg API, but might help you with your video grabbing.
I found a sample app on codeproject called LiveVideo that can grab video from a WebCam using DirectShow. It's from 2004, but has classes that wrap the ever-inscrutable DirectShow API, which was massively helpful. I was able to modify this project to simultaneously grab from two webcams on my XP laptop.