Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Loading an ofMoviePlayer in a thread not working correctly

$
0
0

@nununo wrote:

Hello,

I have to load one movie every time an event happens. So, to avoid preloading all of them, I am loading them on demand. But there is a noticeable short freeze whenever a movie is loaded (I'm running this on a Raspberry Pi 3).

So I decided to load the movies in a thread using an ofThreadChannel to send it back to the main process.

The movies play fine when I'm not using threads. But with threads I get all sorts of errors and, even though the first movie still plays correctly, the next movies I load just draw a white image.

The first movie just says this:
2017-05-13 01:36:21.909551+0100 vela2017Debug[53924:9456510] video loaded at 1280 x 720 @ 25.000000 fps

The second movie says this:
2017-05-13 01:35:10.602445+0100 vela2017Debug[53882:9454172] video loaded at 1280 x 720 @
25.000000 fps
2017-05-13 01:35:10.602804+0100 vela2017Debug[53882:9454151] AVD error: Perf capability check
failed: 0xe00002be
[warning] ofAVFoundationPlayer: load(): error when creating texture cache, -6661.

The third movie starts yielding these messages on every frame:
[ error ] ofAVFoundationPlayer: initTextureCache(): error creating texture cache from image -6661.
[ error ] ofAVFoundationPlayer: initTextureCache(): error creating texture cache from image -6661.
[ error ] ofAVFoundationPlayer: initTextureCache(): error creating texture cache from image -6661.
etc...

Is it really not possible to load an ofMoviePlayer nor ofxOMXPlayer in a thread?
Or is the problem related to ofThreadChannel?

Any ideas are welcome!

Thanks in advance,
Nuno

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles