kylemcdonald / ofxCv

Alternative approach to interfacing with OpenCv from openFrameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

videos and frameworks for contours-following and contours-tracking did not link or play initially

sethismyfriend opened this issue · comments

I had a series of linking errors which I resolved by adding CoreMedia, Foundation, Quartz and AVFoundation frameworks.

Then the app built but did not correctly load the movie - "video.mov" included in bin/data. I tried playing this in the standard videograbber example and it also did not play there. In quicktime these videos use different compressions - I switched the sorenson to H.264 - and now it plays fine.

I didn't want to do a pull request because I don't think I needed to link all these frameworks. Using the master branch of OF from github.

if you're using the master branch of OF can you make sure you are also using the develop branch of ofxCv?

there have been some big changes to OF recently that break compatibility so i'm developing in a new branch.

once you test develop please let me know if you have the same probelsm.

also, which OS? i'm only running 10.9 at the moment and might not have access to the latest crop of bugs.

I suppose my problems with the contour examples relate to this issue?
I am on OF master and checked out ofxCV develop on OS X 10.8. The window stays black and the console logs the following when running the contour examples that use the .mov:
[ error ] ofTexture: getTextureData(): texture has not been allocated

I was seeing this same issue with videos playing back (but not any linking problems). I've seen similar things before with QuickTime...when you try to open the video.mov from example-contours-traacking, QuickTime first "converts" it to H.264. Saving that file & then playing it back works fine. FWIW I also tried converting video.mov with MPEG Streamclip to H.264 as that works as well. As @sethismyfriend mentioned, VLC says the original file is Sorenson SVQ-3 and the new ones are H.264.

I'd submit a PR with the new video, but it doesn't play on Windows. Womp womp. Not sure if it's a codec issue or something else going on with video playback on Windows, so I'll hold off for now - just wanted to get this documented for anyone else who runs into the same issue and/or anyone who knows more about video on Windows 😄