-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not read any video or make it visible #23
Comments
I will take a look, but haven't experienced any issues playing videos on windows. |
Ok thank you. I didn't find any solutions for the moment and my QuickTime is up to date. No issue on Mac with the same sketch and video file. |
I'm having trouble with Capture and Movie in my current computer. They used to work in Ubuntu, I'm not sure if it's related to using ArchLinux now. I'm teaching Processing in two schools and this makes things a bit more difficult. If I try the example sketches for Movie and Capture they don't work. Capture complains on Capture.list() with If I run
The Movie loop example does nothing. No error, just black screen. I also tried with .mp4 instead of .mov, which didn't help. I can play video fine on web pages (html5) and in VLC. I'm on 64bit ArchLinux. Other Processing features work fine (2D and 3D graphics for instance). Is there something I can do to debug this? |
My issue on ArchLinux was fixed by installing these packages:
I'm not sure which ones are required. |
same problem here - UbuntuStudio 14.4.1, Processing 2.2.1 when i run any of the examples for playing the movie, there's no error, just blank window. |
The ffmpeg plugin was required in my case. |
Today a student had the same issue on Ubuntu 14.04. The software center on Ubuntu 14.04 does not provide a gstreamer0.10 ffmpeg plugin. We found it on a ppa, installed it, and video worked. Probably not so easy to fix for most users. |
can you provide a link to ppa? |
i installed the one from |
@novadeviator Does it work with different size() values? In the Ubuntu 14.04 I mention above, it seems to work with size(200, 200); but not with size(640, 360); which makes no sense at all. Just by changing the size, libgstffmpeg.so crashes, and there's nothing on the sketch depending on width and height! The decoding of the video should not be influenced by the sketch size... |
@hamoid here any size works. on two machines both running UbuntuStudio 14.04.1 |
I'm running into a similar issue:
I don't see I've posted the issue on processing forum but it seems to only gather dust. My attempt is on a Raspberry PI2 (running Raspian Jessie) with Processing 3 preinstalled on top of which I installed the video library (via the Contribution Manager) As I mentioned in the post, I can launch the webcam just fine via:
but no joy using Processing. Could this part be causing problems ?
Running
Any hints on what packages I should install on Raspian Jessie ? Thank you, |
Hi guys, I think there are several different issues discussed here. For one, the reason for the video library to not to work on the RPi is that it does not yet support gstreamer 1.x. There is ongoing work to address this specific issue (see this and this). I believe that @gohai managed to make it work on the Pi, right? |
@codeanticode @orgicus @codeanticode Would there be a chance of capture working in your gst1-java-core branch? If so, @orgicus, you could also perhaps try this version (uninstall the current library first): http://sukzessiv.net/~gohai/p5-arm/processing-video-gst1-java-core-36294f5.tar.bz2 |
@gohai capture does indeed work, perhaps not in the latest revision of the new library because I started testing out some code that broke the Capture class. The problem is that I still need to implement device query using the new API in gstreamer-1.x. |
@orgicus Is there perhaps a v4l package for gstreamer-0.10 on Raspbian Jesse? |
@codeanticode Thanks, I'll try Gottfried's version of the library. It's the Capture class I was aiming to use mainly. @gohai I don't think the v4l package for gstreamer-0.10 is installed. I'll check tomorrow when I get on that RPi again. Is it ok to have both gstreamer-1.0 and gstreamer-0.10 side by side or should I uninstall the gstreamer-1.0 packages first ? Thank you both |
@orgicus They're made to be installed side-by-side. The current video library only makes use of gstreamer-0.10 plugins, so seeing if installing any additional ones helps your use case would be key. gstreamer-1.0 does hardware-accelerated playback on the Pi (using OMX), so that's why most video playback applications for the Pi use this - but Raspbian does come with gstreamer-0.10 and a few additional plugins that can be optionally installed. Let us know how you fare! |
Thanks @codeanticode, I've tried @gohai 's processing-video-gst1-java-core-36294f5 version of the video library and it worked without installing any additional gstreamer packages. Woo hoo! There are a couple of things I'd like to change:
Is there any way I can tinker with this version of the video library ? Thanks again! |
@codeanticode Awesome, I'll have play. Thank you! |
@gohai I realised I can't tinker with the library if I don't have it setup in eclipse first. I can use this repository, but I will need some hints on how to compile it for RPi. (your processing-video-gst1-java-core-36294f5.tar.bz2 includes the compiled library and no source, so I can't tinker with the Capture dimensions and colour space). Thank you |
@orgicus You just need to compile/hack this: https://github.com/processing/processing-video/tree/gst1-java-core Doesn't need to be done on the Pi, since it's all just Java. |
Aw, wrong account - above comment was by me. |
Just in case others get stuck with this on more recent versions of Ubuntu: the following ppa also supports Utopic, Vivid, Wily and Xenial: https://launchpad.net/~mc3man/+archive/ubuntu/gstffmpeg-keep |
After a few hours I got Processing to work with the Raspberry Pi 3 Model B and a Pi Camera v1. Some quick advice if you're stuck in the same places I was: -Use Gottfried's version of the Video library Hope this helps |
Not sure if this is longer relevant, as v2 of the video library uses GStreamer 1.x now. @hamoid have you tried the latest beta on Ubuntu? |
I just tried and wrote some comments: #113 (comment) |
I can not anymore play video files using processing 2.2.1 on Windows 7 and 8.
I have tried this example with different video files :
https://processing.org/reference/libraries/video/Movie.html
I can't see anything : no video nor error and the movieEvent() doesn't seems to be called.
The text was updated successfully, but these errors were encountered: