I'm trying to record video to disk using a webcam. It seems like an incredibly easy thing to do on OSX using QuickTime's videowriter, but I can't find the equivalent for windows...
I need to record the video in real-time and initiate an upload to a cloud server as soon as soon as the file writes to disk. As such, saving frames as PNGs or using Fraps isn't an option for me.
I've tried using OpenCV's cv::VideoWriter, but it throws errors as soon as I attempt to instantiate it. Example below:
std::string filename = "test";
mVideoWriter = cv::VideoWriter(filename, CV_FOURCC_MACRO('P', 'I', 'M', '1'), 30, cv::Size(1280,720), true);
but it throws the follows errors:
1>VideoWriterTestApp.obj : error LNK2019: unresolved external symbol "public: __thiscall cv::VideoWriter::VideoWriter(void)" (??0VideoWriter@cv@@QAE@XZ) referenced in function "public: __thiscall VideoWriterTestApp::VideoWriterTestApp(void)" (??0VideoWriterTestApp@@QAE@XZ)
1>VideoWriterTestApp.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall cv::VideoWriter::~VideoWriter(void)" (??1VideoWriter@cv@@UAE@XZ) referenced in function "public: virtual __thiscall VideoWriterTestApp::~VideoWriterTestApp(void)" (??1VideoWriterTestApp@@UAE@XZ)
Is VideoWriter excluded from Cinder's implementation?
Any help would be greatly appreciated! Thanks!