-
|
Hey folks, Suppose I want to display some video in the background of a sketch... what do you suggest as a replacement of Processing Foundation's Video library? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
|
First, why replace the Processing Foundation's Video library? It works just fine with py5. You'll need to add the video jar to your classpath, which can be done by creating a "jars" subdirectory and putting it in there. Note that py5 supports a user-defined If you don't want to use Processing's Video library, you can also use opencv. Everything you know how to do with webcams would be applicable here. |
Beta Was this translation helpful? Give feedback.
-
|
After downloading and installing the Processing Foundation's Video library from the Processing 3.5.4 IDE, I copied the contents of the The Video library for Procesing 3.54 (based on GStreamer 1.16.2) kind of worked, freezing after some time. The newest Video for Processing 4.X is a bit different and I couldn't make it work at all. Defining a Using the Video library for Processing 4.2 I got this: |
Beta Was this translation helpful? Give feedback.
-
|
Maybe we should avoid Processing Video and use OpenCV instead... this works, adapted from my webcam capture code, with a few tweaks: More ideas at: https://vuamitom.github.io/2019/12/13/fast-iterate-through-video-frames.html |
Beta Was this translation helpful? Give feedback.

Maybe we should avoid Processing Video and use OpenCV instead... this works, adapted from my webcam capture code, with a few tweaks: