Kivy not loading video

Viewed 845

I'm using the following code using kivy, trying to load a video. I created a new file that didn't have all the extra things I was doing, as to eliminate all the possible complications. I'm new to stack overflow, so if I've done something wrong don't judge...The video is in the same file, and I've tried everything I found online about these kind of errors, I've also installed pillow and ffpyplayer. The error I receive is [ERROR ] [Image ] Error loading <ironman.mp4>

import kivy
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.label import Label
from kivy.uix.button import Button
from kivy.lang import Builder
from kivy.uix.screenmanager import Screen, ScreenManager
from kivy.uix.video import Video
from kivy.uix.videoplayer import VideoPlayer






class MyApp(App):
    def build(self):

        video = Video(source='ironman.mp4')
        video.state = "play"
        video.options = {'eos': 'loop'}
        video.allow_stretch = True
        video.loaded = True

        return video

if __name__ == "__main__":
    MyApp().run()
1 Answers

I had the same problem but with Image. Install pillow 8.4.0.

Related