Video and VideoPlayer Error loading texture
See original GitHub issueVersions
- Python: 3.6
- OS: Ubuntu 18.04(Virtual)
- Kivy: 1.10.1
- Cython: 0.29.6
- Kivy installation method: pip
Description
Cant load any video using VideoPlayer or Video. When I launch the application, I get an endless animation of loading if I use VideoPlayer or a blank(white) screen if I use Video.
Code and Logs
from os.path import dirname, join
from kivy.app import App
from kivy.uix.videoplayer import VideoPlayer
class VideoPlayerApp(App):
def build(self):
curdir = dirname(__file__)
filename = join(curdir, 'cityCC0.mpg')
return VideoPlayer(source=filename, state='play')
if __name__ == '__main__':
VideoPlayerApp().run()
Output:
[INFO ] [Logger ] Record log in /home/v/.kivy/logs/kivy_19-03-05_11.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Video ] Provider: null(['video_ffmpeg', 'video_ffpyplayer'] ignored)
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] Backend used <gl>
[INFO ] [GL ] OpenGL version <b'3.0 Mesa 18.0.5'>
[INFO ] [GL ] OpenGL vendor <b'VMware, Inc.'>
[INFO ] [GL ] OpenGL renderer <b'SVGA3D; build: RELEASE; LLVM;'>
[INFO ] [GL ] OpenGL parsed version: 3, 0
[INFO ] [GL ] Shading version <b'1.30'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <16>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [GL ] NPOT texture support is available
[INFO ] [Base ] Start application main loop
[WARNING] [Image ] Unable to load image </home/v/PycharmProjects/test-app/cityCC0.mpg>
[ERROR ] [Image ] Error loading texture /home/v/PycharmProjects/test-app/cityCC0.mpg
Lines that cause attention:
[INFO ] [Video ] Provider: null(['video_ffmpeg', 'video_ffpyplayer'] ignored)
[ERROR ] [Image ] Error loading texture /home/v/PycharmProjects/test-app/cityCC0.mpg
Kivy installed by commands:
pip install cython pillow pygame && pip install kivy
and all libs from https://kivy.org/doc/stable/installation/installation-linux.html
Gstreamer installed from https://gstreamer.freedesktop.org/documentation/installing/on-linux.html
Gstreamer checked by command:
gst-launch-1.0 videotestsrc ! autovideosink
If I try:
from kivy.lib.gstplayer import GstPlayer
I get an error:
ModuleNotFoundError: No module named 'kivy.lib.gstplayer._gstplayer'
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Trying to play a video and getting a Error loading texture error ...
Trying to play a video and getting a Error loading texture error, Audio still plays perfectly though : r/kivy.
Read more >Kivy VideoPlayer loading texture - python - Stack Overflow
I have this code: import kivy from kivy.app import App from kivy.uix.videoplayer import VideoPlayer kivy.require('1.10.1') class ...
Read more >Kivy Video Player not working - Google Groups
I'm trying this simple example to play a video using Kivy: from kivy.app import App from kivy.uix.videoplayer import VideoPlayer class ...
Read more >Bug - Video Player Memory Leak - Unity Forum
Each time I load a new clip, the Memory Profiler shows an additional WindowsVideoMedia_DecodeTexture that never gets destroyed. This happens ...
Read more >Video Playback Prefab - Problem loading more than 4 videos
if (video.VideoPlayer.Load(video.m_path, VideoPlayerHelper.MediaType.ON_TEXTURE, true, mVideoCurrentPosition)). {. Debug.Log ("Loaded Video: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Did you run
python -m pip install ffpyplayer
?Thanks for the responses.