kivy-examples/demo/kivycatalog won't play...

475 views
Skip to first unread message

ToR

unread,
Jul 2, 2021, 5:40:25 PM7/2/21
to Kivy users support
Tried to run the catalog demo, it will not play cityCC0.mpg, otherwise it runs as I believe is expected.

Using Kivy 1.11.1 with Python 3.7 in a venv.
I also tried with Kivy 2.0.0, same error (but only once)

Info when running main.py:
"
(venv) BP:kivycatalog tor$ python3 main.py
...
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Video       ] Provider: null(['video_ffmpeg', 'video_ffpyplayer'] ignored)
[ERROR  ] [Image       ] Error loading texture ../../widgets/cityCC0.mpg
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Start application main loop
[INFO   ] [Clipboard   ] Provider: sdl2(['clipboard_nspaste'] ignored)
[ERROR  ] [Image       ] Error loading texture ../../widgets/cityCC0.mpg
[ERROR  ] [Image       ] Error loading texture ../../widgets/cityCC0.mpg
[INFO   ] [WindowSDL   ] exiting mainloop and closing.
[INFO   ] [Base        ] Leaving application in progress...
"
While trying to fix this I  did:
pip3 install ffpyplayer
pip3 install ffmpeg

Which gave:
"
[INFO   ] [Video       ] Provider: ffmpeg
[ERROR  ] [Image       ] Error loading texture ../../widgets/cityCC0.mpg
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Start application main loop
[INFO   ] [Base        ] Leaving application in progress...
 Traceback (most recent call last):
   File "main.py", line 192, in <module>
     KivyCatalogApp().run()

---- lots of output -----

   File "/Users/tor/prj/RP-kivy-tut/venv/lib/python3.7/site-packages/kivy/uix/video.py", line 189, in _do_video_load
     self._video.play()
   File "/Users/tor/prj/RP-kivy-tut/venv/lib/python3.7/site-packages/kivy/core/video/video_ffmpeg.py", line 47, in play
     self._player = ffmpeg.FFVideo(self._filename)
 AttributeError: module 'ffmpeg' has no attribute 'FFVideo'
"
Now the catalog demo won't run at all...

Not much fun with FFVideo either, a traceback ends in:
"
   File "/Users/tor/prj/RP-kivy-tut/venv/lib/python3.7/site-packages/kivy/uix/video.py", line 189, in _do_video_load
     self._video.play()
   File "/Users/tor/prj/RP-kivy-tut/venv/lib/python3.7/site-packages/kivy/core/video/video_ffmpeg.py", line 47, in play
     self._player = ffmpeg.FFVideo(self._filename)
 AttributeError: module 'ffmpeg' has no attribute 'FFVideo'
"

Now I am at at a loss of how to proceed, it is supposed to work, right ?.
Any help is much appreciated.

Elliot Garbus

unread,
Jul 2, 2021, 5:52:17 PM7/2/21
to kivy-...@googlegroups.com

There errors are not a problem and the demon will run.

 

ERROR  ] [Image       ] Error loading texture ../../widgets/cityCC0.mpg
[ERROR  ] [Image       ] Error loading texture ../../widgets/cityCC0.mpg

The Video widget is derived from Image, and will display images or videos.  Image will log an error when loading a video, because it is not an image… and the load the video.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/9e1dda20-e538-4ade-bdf7-e68e1316aa9dn%40googlegroups.com.

 

Tommy Rausberg

unread,
Jul 2, 2021, 6:11:47 PM7/2/21
to kivy-...@googlegroups.com
OK but I'm afraid I have not been able to make the catalog demo play the video.
Any ideas on what to do next is appreciated

Elliot Garbus

unread,
Jul 2, 2021, 6:38:48 PM7/2/21
to kivy-...@googlegroups.com
It is playing video on my system.  I’d suggest creating a new venv, and install kivy[full], per the install directions. 

Sent from my iPhone

On Jul 2, 2021, at 3:11 PM, Tommy Rausberg <tommy.r...@gmail.com> wrote:



Tommy Rausberg

unread,
Jul 3, 2021, 2:55:44 PM7/3/21
to kivy-...@googlegroups.com
Thanks for your help,
I did create a new venv, and did it again following the kivy.org installation web page with the same outcome; video cityCC0.mpg does not play.
In venv "pip list" gives:
"
Package       Version
------------- ---------
certifi       2021.5.30
chardet       4.0.0
docutils      0.17.1
ffpyplayer    4.3.2
idna          2.10
Kivy          2.0.0
Kivy-examples 2.0.0
Kivy-Garden   0.1.4
Pillow        8.3.0
pip           21.1.3
Pygments      2.9.0
requests      2.25.1
setuptools    40.8.0
urllib3       1.26.6
"
Python main.py output (last lines):
"
[INFO   ] [Text        ] Provider: sdl2

[INFO   ] [Video       ] Provider: null(['video_ffmpeg', 'video_ffpyplayer'] ignored)
[WARNING] [Image       ] Unable to load image </Users/tor/prj/Kivy/share/kivy-examples/widgets/cityCC0.mpg>
[ERROR  ] [Image       ] Error loading <../../widgets/cityCC0.mpg>

[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Start application main loop
[WARNING] [Image       ] Unable to load image </Users/tor/prj/Kivy/share/kivy-examples/widgets/cityCC0.mpg>
[ERROR  ] [Image       ] Error loading <../../widgets/cityCC0.mpg>
"
and the video cityCC0.mpg does not play although the png is rendered ok.
I am on mac os 10.13.6 and python 3.7.3.
Clearly there are things here I do not understand, stupid error on my part most likely...
Any ideas are welcome.

Elliot Garbus

unread,
Jul 3, 2021, 3:21:56 PM7/3/21
to kivy-...@googlegroups.com

I’ll try it on my Mac, but I see you do not have a video player installed

 

[INFO   ] [Video       ] Provider: null(['video_ffmpeg', 'video_ffpyplayer'] ignored)

Did you install kivy[full] or kivy[base]?

Tommy Rausberg

unread,
Jul 3, 2021, 5:53:05 PM7/3/21
to kivy-...@googlegroups.com
Installed kivy[full] per the instructions on kivy.org, at least I honestly belive so.
The full story:
python3 -m venv Kivy
cd Kivy
source bin/activate
pip install --upgrade pip
pip3 install kivy[full]
pip3 install kivy_examples
cd share/kivy-examples/demo/kivycatalog/
python main.py

[INFO   ] [Video       ] Provider: null(['video_ffmpeg', 'video_ffpyplayer'] ignored)
That message led me onto a dark path with ffmpeg and FFVideo as previously described.

Tommy Rausberg

unread,
Jul 4, 2021, 9:48:46 AM7/4/21
to kivy-...@googlegroups.com
Running the catalog demo on Ubuntu 20.04 via VMware Fusion just works.
Guess the Kivy/ffpyplayer combo is broken on mac os x 10.13.6 or something is misconfigured on my machine.

Elliot Garbus

unread,
Jul 4, 2021, 12:18:57 PM7/4/21
to kivy-...@googlegroups.com
You should log an issue on the kivy GitHub. 

Sent from my iPhone

On Jul 4, 2021, at 6:48 AM, Tommy Rausberg <tommy.r...@gmail.com> wrote:



Tommy Rausberg

unread,
Jul 4, 2021, 5:32:26 PM7/4/21
to kivy-...@googlegroups.com
Done.

Thank you for your help!

Reply all
Reply to author
Forward
0 new messages