We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I can't get videos playing in Processing 3.3.5 on my Raspberry Pi 3. It's a new install. Everything updated and upgraded.
I tried the loop example from the video library and only get a black screen. This shows the following error (Processing core video:1610): GStreamer-CRITICAL **: Trying to dispose element Movie Player, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.
I tried a sketch that was working on my Mac with 3.3.5, but also produces black screen, this time with no error.
Outside of Processing, in the command line, I can run omxplayer clip1.mp4 and the clip plays properly. (It also tells me that the clip uses -h264, would that be a problem?
What do I need to get Processing to play the clips?
Thanks
Answers
Tagging @gohai.
Kf
@grhabyt You're using the (regular) Video library? If so, give the GL Video library a try...
Thanks. I just did. It took me a moment to find a list of the methods to get it to work (eg close() instead of stop(), etc), but the GL library got most of what I need going.
My only problem now is getting the video to play in fullScreen without the menu bar showing. Any suggestions?
Thanks
Just to be clear,
fullScreen(P2D);
doesn't get rid of the Raspberry Pi menu bar, and
fullScreen();
makes the Pi lock up
Which distribution are you using?
My setup is
Raspbian Jessie (kernel 4.9.28 -v7+)
Raspberry Pi 3 Model B v 1.2
Processing 3.3.5 (ARMv6hr)
GLvideo was downloaded yesterday from github
@grhabyt You need the P2D or P3D renderer for the GL Video library to work - so it's not a bug that plain fullScreen() won't work. But I am not seeing the menu bar myself, when I launch a fullScreen P2D sketch...
Even when I take the SingleVideo example and replace
size(560,406, P2D);
with
fullScreen(P2D);
I get the menu bar. Same with fullScreen(P3D);
I'm using the HDMI-out from the RPi3 to the HDMI-in of a very standard Acer H213H monitor (1920x1080).
Any suggestions?
Just to close this. I replicated the problem with another RPi and a fresh install of Raspbian on June 29. However when I tried again two weeks ago with the new 5 July 2017 image of Jessie, the problem went away.
Great it is working. Thanks for following up in your post and sharing your solution.
Kf
Can you tell me how you got this to work? I have imported the GLvideo library into my sketch but still not working
I got it working with the examples here: https://github.com/gohai/processing-glvideo
Thanks for going through this!
However, Would anyone be able to tell me why this code is now not working? I get 2 errors both on mov.frameRate at the bottom of this code
Instead of a property mov.frameRate, I think you need a function mov.frameRate()
in the end mov.framerate() worked for me
Hi @gohai,
I can't make the SingleVideo example work. I'm on RPI3 model B, Rasbian and Processing 3.3.7 I download GLVideo from Library Manager.
KMS OpenGL driver is not allowed.
When I run the example, only black frame appears. Boolean video.available() seems to never be true. When I close the sketch, the console prints :
EGLDisplayUtil.EGLDisplays: Shutdown (open: 1) EGLDisplayUtil: Open EGL Display Connections: 1 EGLDisplayUtil: Open[0]: 0x1: EGLDisplayRef[0x1: refCnt 2]
Do you have any advise ?
Thanks,
Yves
@YvesB: Try with this image here https://github.com/processing/processing/wiki/Raspberry-Pi
Thanks a lot for your reactivity, i'll try and let you know !