# Processing video library isn't loading videos

**URL:** <https://discourse.processing.org/t/processing-video-library-isnt-loading-videos/36308>\
**Category:** Libraries\
**Created:** [April 12, 2022, 6:16pm UTC](https://discourse.processing.org/t/processing-video-library-isnt-loading-videos/36308 "2022-04-12T18:16:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tete40i](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tete40i/32/16045_2.png) [@tete40i](https://discourse.processing.org/u/tete40i)\
**Post date:** [April 12, 2022, 6:16pm UTC](https://discourse.processing.org/t/processing-video-library-isnt-loading-videos/36308/1 "2022-04-12T18:16:25Z")

</div>

Hello, I’m using Processing 4.0b7 (also tried with previous versions), and installed its Video Library. I have the following code (Im literally just trying to play a video):

```auto
    import processing.video.*;
    Movie video;
    
    void setup() {
      size(640, 480);
      video = new Movie(this, "video.mp4");
      video.play();
    }
    
    void draw() {
      if (video.available()) {
        video.read();
        image(video, 0, 0);
      }
    }

```

I have “video.mp4” on a folder named data, on the same file as the sketch.  
Whenever I try to run the code, I get the following error:

```auto
    (java.exe:28748): GLib-CRITICAL **: 19:04:53.545: g_dir_open_with_errno: assertion 'wpath != NULL' failed
    Cannot load GStreamer plugins from C:\Users\Estêvão\Documents\Processing\libraries\video\library\windows-amd64\gstreamer-1.0
    Processing video library using bundled GStreamer 1.16.2
    java.lang.IllegalArgumentException: No such Gstreamer factory: playbin
    	at org.freedesktop.gstreamer.ElementFactory.makeRawElement(ElementFactory.java:307)
    	at org.freedesktop.gstreamer.Element.makeRawElement(Element.java:104)
    	at org.freedesktop.gstreamer.elements.PlayBin.<init>(PlayBin.java:118)
    	at processing.video.Movie.initGStreamer(Unknown Source)
    	at processing.video.Movie.<init>(Unknown Source)
    	at ex5_2_1.setup(ex5_2_1.java:26)
    	at processing.core.PApplet.handleDraw(PApplet.java:2142)
    	at processing.awt.PSurfaceAWT$9.callDraw(PSurfaceAWT.java:1440)
    	at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:356)
    RuntimeException: Could not load movie file video.mp4
    RuntimeException: Could not load movie file video.mp4
    RuntimeException: Could not load movie file video.mp4

```

I’m using Windows 11. I think the problem is coming from the library instalation, but I’ve asked for friends who have their video working to send me their Processing files, and I’m still getting the same problem. Also deleted everything Processing-related and reinstalled it several times, and I still can’t get it to work. Other libraries such as sound are working.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [May 28, 2025, 5:10pm UTC](https://discourse.processing.org/t/processing-video-library-isnt-loading-videos/36308/3 "2025-05-28T17:10:17Z")

</div>

If you happen across this post…

The most current version of Processing is available here:

> **[Welcome to Processing!](https://processing.org/)**
>
> Processing is a flexible software sketchbook and a language for learning how to code. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology…

Have fun processing with Processing!

`:)`
