Processing.py-Bugs icon indicating copy to clipboard operation
Processing.py-Bugs copied to clipboard

Video doesn't work on windows

Open vdurnev opened this issue 5 years ago • 5 comments

Environments: Windows 10 (64) Processing: 3.5.4 Video: 2.0 Python mode: 3063

This simple sketch: add_library('video') # import processing.video.*

Generate next error:

sketch_201015a.pyde:1: RuntimeWarning: PyTableCode.call caught a Throwable that is not an Exception: java.lang.UnsatisfiedLinkError: C:\Users\user\Documents\Processing\libraries\video\library\windows64\avcodec-58.dll: Can't find dependent libraries

In java mode webcam works.

I need to teach students how to work with webcam, are the any configuration of Processing, video lib and python mode versions where it possible to use webcam in python sketch on windows?

Thank you

vdurnev avatar Oct 15 '20 16:10 vdurnev

Hi @vdurnev, I'm also teaching with Processing Python mode and I understand your pain. I've tried a few combinations of older 1.0.1 Video and Processing without success. Maybe @mpsftw can give us a hand o this one!

villares avatar Oct 17 '20 17:10 villares

Lol. add_library will be the death of me, I swear. I'll take a look at it when I get a chance, but it'll probably take a while. My life got complicated and I'm mad busy right now.

I should have a much better way of handling libraries in the Python 3 version, if I ever get a chance to get back to work on it.

mpsftw avatar Oct 17 '20 17:10 mpsftw

If there are any previous versions of processing/pythonMode/video library where webcam worked - please share

vdurnev avatar Oct 23 '20 05:10 vdurnev

I've been looking at this and it is non-trivial. It's getting caught in dll hell looking for dependencies. I'm still looking for either a work-around or a fix, but this is a tough one. My lack of windows experience is not helping here, so if anyone has any ideas, feel free to chime in.

mpsftw avatar Nov 14 '20 19:11 mpsftw

Who solved this problem? I tried 1.0.1 and 2.0 version, but they all failed.

njchenyi avatar Jul 16 '21 09:07 njchenyi