# Why there is a error in importing the video library

**URL:** https://discourse.processing.org/t/why-there-is-a-error-in-importing-the-video-library/38815
**Category:** Processing.py
**Created:** [September 17, 2022, 8:36am UTC](https://discourse.processing.org/t/why-there-is-a-error-in-importing-the-video-library/38815 "2022-09-17T08:36:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![huxx](https://avatars.discourse-cdn.com/v4/letter/h/edb3f5/32.png) [@huxx](https://discourse.processing.org/u/huxx)
#### Post date: [September 17, 2022, 8:36am UTC](https://discourse.processing.org/t/why-there-is-a-error-in-importing-the-video-library/38815/1 "2022-09-17T08:36:04Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/7/4/74b7307314d620cef26ee1d43107b5b80fce83ce.png)  
Processing 3.5.4 Python Video3  
sketch\_220915d.pyde:1: RuntimeWarning: PyTableCode.call caught a Throwable that is not an Exception:  
java.lang.UnsatisfiedLinkError: C:\Users\17164\Documents\Processing\libraries\video\library\windows64\avfilter-7.dll: Can’t find dependent libraries  
Jython internals might be in a bad state now that can cause deadlocks later on.  
See [Issue 2536: deadlocks in regrtests due to StackOverflowError in finally block - Jython tracker](http://bugs.jython.org/issue2536) for details.

processing.app.SketchException: java.lang.UnsatisfiedLinkError: C:\Users\17164\Documents\Processing\libraries\video\library\windows64\avfilter-7.dll: Can’t find dependent libraries  
at java.lang.ClassLoader$NativeLibrary.load(Native Method)  
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)  
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)  
at java.lang.Runtime.load0(Runtime.java:809)  
at java.lang.System.load(System.java:1086)  
at jycessing.LibraryImporter.recursivelyLoadNativeLibraries(Unknown Source)  
at jycessing.LibraryImporter.addLibrary(Unknown Source)  
at jycessing.LibraryImporter$1. **call** (Unknown Source)  
at org.python.core.PyObject. **call** (PyObject.java:480)  
at org.python.core.PyObject. **call** (PyObject.java:484)  
at org.python.pycode.\_pyx70.f$0(sketch\_220915d.pyde:1)  
at org.python.pycode.\_pyx70.call\_function(sketch\_220915d.pyde)  
at org.python.core.PyTableCode.call(PyTableCode.java:171)  
at org.python.core.PyCode.call(PyCode.java:18)  
at org.python.core.Py.runCode(Py.java:1614)  
at org.python.core.Py.exec(Py.java:1658)  
at org.python.pycode.\_pyx69.f$0(C:\Users\17164\AppData\Local\Temp\sketch\_220915d7268400904910400132\sketch\_220915d.pyde:96)  
at org.python.pycode.\_pyx69.call\_function(C:\Users\17164\AppData\Local\Temp\sketch\_220915d7268400904910400132\sketch\_220915d.pyde)  
at org.python.core.PyTableCode.call(PyTableCode.java:171)  
at org.python.core.PyCode.call(PyCode.java:18)  
at org.python.core.Py.runCode(Py.java:1614)  
at org.python.core.Py.exec(Py.java:1658)  
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:276)  
at jycessing.PAppletJythonDriver.processSketch(Unknown Source)  
at jycessing.PAppletJythonDriver.findSketchMethods(Unknown Source)  
at jycessing.Runner.runSketchBlocking(Unknown Source)  
at jycessing.mode.run.SketchRunner.lambda$startSketch$3(Unknown Source)  
at java.lang.Thread.run(Thread.java:748)

```
at jycessing.mode.run.SketchRunner.convertPythonSketchError(Unknown Source)
at jycessing.mode.run.SketchRunner.lambda$startSketch$3(Unknown Source)
at java.lang.Thread.run(Thread.java:748)

```

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [September 17, 2022, 4:25pm UTC](https://discourse.processing.org/t/why-there-is-a-error-in-importing-the-video-library/38815/2 "2022-09-17T16:25:22Z")

</div>

Hi @huxx,

Welcome to the forum! 😉

I don’t have a solution for your particular issue but you might want to check those previous threads:

- [How to display video in PythonMode?](https://discourse.processing.org/t/how-to-display-video-in-pythonmode/485)
- [SVG library doesn't work in Python mode?](https://discourse.processing.org/t/svg-library-doesnt-work-in-python-mode/10270)
- [Can't load library](https://discourse.processing.org/t/cant-load-library/23466)

(On Linux and Processing 3 importing the video library works correctly)

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [September 17, 2022, 4:55pm UTC](https://discourse.processing.org/t/why-there-is-a-error-in-importing-the-video-library/38815/3 "2022-09-17T16:55:54Z")

</div>

> <https://github.com/jdf/Processing.py-Bugs/issues/229>
>
> Processing can't run this code below:
> 
> \`\`\`
> add\_library('video')
> 
> def setup(…):
> size(640, 360)
> background(0)
>     
> movie = Movie(this, "transit.mov")
> movie.loop()
>     
> def movieEvent(m):
> m.read()
>     
> def draw():
> image(movie, 0,0,width,height)
> \`\`\`
> 
> Error says "processing.app.SketchException: java.lang.RuntimeException: Could not load movie file transit.mov"

> <https://github.com/jdf/Processing.py-Bugs/issues/304>
>
> I'll try to investigate if this is caused by an unusual location of the Processi…ng/sketchbook folder, but the Java mode video capture example worked fine... (Also working on Python mode on my Linux machine).
> 
> \`\`\`
> add\_library('video') # import processing.video.\*
> def setup():
> global video
> video = Capture(this, 640, 480)
> video.start()
> # ... actually I could reproduce with just the add\_library() line
> \`\`\`
> 
> Error:
> \`\`\`
> UnsatisfiedLinkError: D:\\sketchbook\_old\\libraries\\video\\library\\windows64\\libgio-2.0-0.dll: Can't find dependent libraries
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
> at java.lang.Runtime.load0(Runtime.java:809)
> at java.lang.System.load(System.java:1086)
> at jycessing.LibraryImporter.recursivelyLoadNativeLibraries(Unknown Source)
> at jycessing.LibraryImporter.addLibrary(Unknown Source)
> at jycessing.LibraryImporter$1.\_\_call\_\_(Unknown Source)
> at org.python.core.PyObject.\_\_call\_\_(PyObject.java:480)
> at org.python.core.PyObject.\_\_call\_\_(PyObject.java:484)
> at org.python.pycode.\_pyx11.f$0(sketch\_2020\_07\_30b.pyde:1)
> at org.python.pycode.\_pyx11.call\_function(sketch\_2020\_07\_30b.pyde)
> at org.python.core.PyTableCode.call(PyTableCode.java:171)
> at org.python.core.PyCode.call(PyCode.java:18)
> at org.python.core.Py.runCode(Py.java:1614)
> at org.python.core.Py.exec(Py.java:1658)
> at org.python.pycode.\_pyx10.f$0(C:/Users/Lenovo/Desktop/sketch\_2020\_07\_30b/sketch\_2020\_07\_30b.pyde:96)
> at org.python.pycode.\_pyx10.call\_function(C:/Users/Lenovo/Desktop/sketch\_2020\_07\_30b/sketch\_2020\_07\_30b.pyde)
> at org.python.core.PyTableCode.call(PyTableCode.java:171)
> at org.python.core.PyCode.call(PyCode.java:18)
> at org.python.core.Py.runCode(Py.java:1614)
> at org.python.core.Py.exec(Py.java:1658)
> at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:276)
> at jycessing.PAppletJythonDriver.processSketch(Unknown Source)
> at jycessing.PAppletJythonDriver.findSketchMethods(Unknown Source)
> at jycessing.Runner.runSketchBlocking(Unknown Source)
> at jycessing.mode.run.SketchRunner.lambda$startSketch$3(Unknown Source)
> at java.lang.Thread.run(Thread.java:748)
> \`\`\`

> <https://github.com/jdf/Processing.py-Bugs/issues/307>
>
> 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

---

<div class="post-metadata">

### Author: ![ppiyo](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@ppiyo](https://discourse.processing.org/u/ppiyo)
#### Post date: [June 12, 2024, 10:45am UTC](https://discourse.processing.org/t/why-there-is-a-error-in-importing-the-video-library/38815/4 "2024-06-12T10:45:19Z")

</div>

Has the problem been solved yet? I got a similar problem while using the add\_library(‘video’), but my error message is

UnsatisfiedLinkError: C:\Users\user\Documents\Porcessing\libraries\video\library\windows64\avcodec-58.dll: Can’t find dependent libraries …
