# .mov and .mp4 files won't run w/ Video Library

**URL:** <https://discourse.processing.org/t/mov-and-mp4-files-wont-run-w-video-library/27597>\
**Category:** Libraries\
**Created:** [February 4, 2021, 11:53pm UTC](https://discourse.processing.org/t/mov-and-mp4-files-wont-run-w-video-library/27597 "2021-02-04T23:53:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hassan0987](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@Hassan0987](https://discourse.processing.org/u/Hassan0987)\
**Post date:** [February 4, 2021, 11:53pm UTC](https://discourse.processing.org/t/mov-and-mp4-files-wont-run-w-video-library/27597/1 "2021-02-04T23:53:50Z")

</div>

Well Hello!  
I’m beginning in Arduino and Processing which I think is a PERFECT alliance for me.  
I don’t know about you but for me it’s a dream come true to be able to make our own robot and make our own app to control it with the same programming language (or they’re just similar… I don’t know 😕 told you I’m beginning) that we use to program our robot and it’s pretty easy.  
WHATEVER!!!

So I am basically making an app to control my upcoming Arduino projects.  
For the moment I just wanna turn it on and off using the arrow keys of my computer and I know how to do that, IT IS NOT the problem.  
The problem is that I wanna put a video in my app and make it pause or play when it’s on or off but the video won’t RUUUN!!! ☹ Here’s the ERROR:

Processing video library using GStreamer 1.16.2  
BaseSrc: [source] : Could not open file “C:\Users\I’m not gonna show my last name in a forum\Downloads\Projet\data\Système\_Bleu.mov” for reading.  
BaseSrc: [source] : GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.  
BaseSrc: [source] : Could not open file “C:\Users\I’m still not gonna show my last name in a forum lol\Downloads\Projet\data\Système\_Bleu.mov” for reading.  
BaseSrc: [source] : GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.  
WARNING: no real random source present!

I don’t know how to fix it please help!  
Oh and by the way here is the code in case you need it:

> import processing.video.\*;  
> Movie systemebleu;  
> PImage niveaux;  
> PImage logo;  
> PImage animationlogo=new PImage[20];  
> void setup() {  
> fullScreen();  
> background(0);  
> systemebleu=new Movie(this, “Système\_Bleu.mov”);  
> systemebleu.loop();  
> niveaux=loadImage(“Niveaux.png”);  
> logo=loadImage(“Logo\_Hassan\_Labs.png”);  
> frameRate(15);  
> animationlogo[0]=loadImage(“Logo\_Animé\_D’Hassan\_Labs.png”);  
> animationlogo[1]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 2.png”);  
> animationlogo[2]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 3.png”);  
> animationlogo[3]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 4.png”);  
> animationlogo[4]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 5.png”);  
> animationlogo[5]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 6.png”);  
> animationlogo[6]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 7.png”);  
> animationlogo[7]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 8.png”);  
> animationlogo[8]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 9.png”);  
> animationlogo[9]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 10.png”);  
> animationlogo[10]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 11.png”);  
> animationlogo[11]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 12.png”);  
> animationlogo[12]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 13.png”);  
> animationlogo[13]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 14.png”);  
> animationlogo[14]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 15.png”);  
> animationlogo[15]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 16.png”);  
> animationlogo[16]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 17.png”);  
> animationlogo[17]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 18.png”);  
> animationlogo[18]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 19.png”);  
> animationlogo[19]=loadImage(“Logo\_Animé\_D’Hassan\_Labs 20.png”);  
> }  
> void draw() {  
> noStroke();  
> fill(50);  
> rect(0,0,width,height/7.68);  
> tint(200,255,255);  
> image(systemebleu,880,120,480,640);  
> noTint();  
> image(niveaux,width/2.276,500,200,178);  
> stroke(0,255,255);  
> fill(32,0,48);  
> rect(width/2.239,width/4.553,height/4.314,height/4.314);  
> image(animationlogo[frameCount%20],width/2.239,height/2.56,width/7.67,width/7.67);  
> image(logo,width/1.074,height/76.8,width/18.213,width/18.213);  
> }

Here are some informations you might need:  
- Operating System: Windows 10  
- Version of Processing: 3.5.4  
- Wig: snatched  
- Hotel: Trivago

Thank you for replying ^-^

---

<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:** [February 6, 2021, 7:46pm UTC](https://discourse.processing.org/t/mov-and-mp4-files-wont-run-w-video-library/27597/2 "2021-02-06T19:46:27Z")

</div>

Hi,

Welcome to the forum!

Love the humor in this post! 😉

By the way my name is J\*\*\*\*\* (we deserve privacy right?)

For your issue, are you sure that your video is located inside a `data` folder in your sketch folder?

I was thinking about problems with `.mov` format but are you sure that it doesn’t run with `.mp4` files?

I’ve already answered a topic on this here : [Cannot play the video after exporting the application](https://discourse.processing.org/t/cannot-play-the-video-after-exporting-the-application/25889)

Looks like some users have some issues with the library. You can try posting on this GitHub issue :

> <https://github.com/processing/processing-video/issues/104>
>
> I've been using version 2.0-beta1 of the video library on some long-running projects and it's been working great - it especially...
