pfeatherstone

Results 403 comments of pfeatherstone

Or use a decent C++ package manager like vcpkg, conan, hunter or whatever. But i've never used them so can't say for sure if that's what you want. You're probably...

Furthermore, you can tailor your ffmpeg build to only include the exact set of encoders, decoders, muxers, demuxers, protocols, filters and devices you strictly need for you app. I did...

If it still doesn't work, you can try calling ```avformat_open_input()``` on its own and check it passes. That's the very first thing that should be called.

Also, try calling ```avdevice_register_all();``` in ```main()``` somewhere at the start. This is a global initialization function for libavdevice. Sometimes this is required. I've only ever had to call this to...

If it turns out that is THE fix, then maybe we need to add some static initialization in the dlib wrapper. And at the same time, add the other global...

Does the dlib object work now? Your error was failing at ```avformat_open_input()``` which is the very first thing dlib calls. So it should work right?

I know this is not helpful, but ```dlib::video_capture``` works for me.

Ok, ```get_video_metadata()``` crashing could be me being lazy with error checking, or lack of.

To read a frame, do the following: ``` dlib::matrix frame; uint64_t timestamp_ns; if (capture.read(frame, timestamp_ns) { // do something } else { //the stream has closed. check that capture.is_open() returns...

Note that with webcam device, the timestamp will be gibberish.