[ error ] ofxiOSVideoPlayer: getPixels(): Returning pixels that may be unallocated. Make sure to initialize the video player before calling getPixels.
[ error ] ofPixels: image type not supported
[ error ] ofPixels: image type not supported
[ error ] ofPixels: image type not supported
I’m on a master using Mac (why is ofxiOSVideoPlayer in the error?)
Is this a good aproach?
are you making something for the iphone or mac?
because ofxiOSVideoPlayer is for the iphone are you using the os release of openframeworks ?
try this
image.setFromPixels(player.getPixelsRef());
Thanks @strimbob
I’m targetting Mac. It seems your suggestion didn’t have any effect
The latest merge from i-n-g-o/ofAVFoundationPlayer to master by @theo seems to fix the error pointing to ofxiOSVideoPlayer, but still the same error just pointing to ofAVFoundationPlayer:
2015-04-04 13:13:25.137 mySketchDebug[51512:1795889] video loaded at 320 x 240
[ error ] ofAVFoundationPlayer: getPixels(): Returning pixels that may be unallocated. Make sure to initialize the video player before calling getPixels.
[ error ] ofPixels: image type not supported
[ error ] ofPixels: image type not supported
[ error ] ofPixels: image type not supported
…the error shows up for each frame.
To my understanding ofVideoPlayer::nextFrame() allows to advance through the timeline without the extra hassle of ofVideoPlayer::setPosition() because it doesn’t have to compute the previous frames. Is that right?
Also, my assumption is that ofVideoPlayer::update() is only needed for normal playback but its not my case.
It seems there is some bug on master. ofVideoPlayer::load() returns true while ofVideoPlayer::isLoaded() returns false (they should reference the same thing, right?)
I’m able to play the video normally by using ofVideoPlayer::update(); but I get this error the first seven update calls
[ error ] ofAVFoundationPlayer: getPixels(): Returning pixels that may be unallocated. Make sure to initialize the video player before calling getPixels.
ofVideoPlayer::load() its definitely threaded but its returning true for some reason ( I guess is some legacy stuff, it doesn’t make sense to return anything if is threaded).
So, it kind of works if I procces it after ofVideoPlayer::isLoaded() == true
no problem. @xavivives. I want to know a solution of this problem.
A few days ago, i had a same problem like you. I used just oF 0.8.4 version.
Anyway. It seems a bug.
Would you change a category of the post to bug or write a post to github issue?