I’ve not used Gstreamer on mac, looking at the install directions: https://kivy.org/doc/stable/gettingstarted/installation.html#install-pip
Have you installed kivy_deps.gstreamer?
https://pypi.org/project/kivy-deps.gstreamer/
For my python work I prefer to do native installs, rather than using brew.
I work primarily on Windows and use the mac for doing ports.
--
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/bf4fd38b-3850-423d-9367-085f1a431b05n%40googlegroups.com.
[INFO ] [Logger ] Record log in /Users/brian/.kivy/logs/kivy_22-06-12_8.txt
[INFO ] [Kivy ] v2.1.0
[INFO ] [Kivy ] Installed at "/Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/__init__.py"
[INFO ] [Python ] v3.9.13 (v3.9.13:6de2ca5339, May 17 2022, 11:37:23)
[Clang 13.0.0 (clang-1300.0.29.30)]
[INFO ] [Python ] Interpreter at "/Users/brian/venv/kivy/bin/python"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
[INFO ] [Factory ] 189 symbols loaded
objc[24982]: Class SDLApplication is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b0240) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a608e0). One of the two will be used. Which one is undefined.
objc[24982]: Class SDLAppDelegate is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b0290) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a60930). One of the two will be used. Which one is undefined.
objc[24982]: Class SDLTranslatorResponder is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b03a8) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a609a8). One of the two will be used. Which one is undefined.
objc[24982]: Class SDLMessageBoxPresenter is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b03d0) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a609d0). One of the two will be used. Which one is undefined.
objc[24982]: Class SDL_cocoametalview is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b0330) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a60a20). One of the two will be used. Which one is undefined.
objc[24982]: Class SDLOpenGLContext is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b02e0) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a60a70). One of the two will be used. Which one is undefined.
objc[24982]: Class SDLWindow is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b0420) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a60ac0). One of the two will be used. Which one is undefined.
objc[24982]: Class Cocoa_WindowListener is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b0448) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a60ae8). One of the two will be used. Which one is undefined.
objc[24982]: Class SDLView is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b04c0) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a60b60). One of the two will be used. Which one is undefined.
objc[24982]: Class METAL_RenderData is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b01a0) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a60bb0). One of the two will be used. Which one is undefined.
objc[24982]: Class METAL_TextureData is implemented in both /Users/brian/venv/kivy/lib/python3.9/site-packages/kivy/.dylibs/SDL2 (0x1023b01f0) and /Users/brian/venv/kivy/lib/python3.9/site-packages/ffpyplayer/.dylibs/libSDL2-2.0.0.dylib (0x104a60c00). One of the two will be used. Which one is undefined.
[INFO ] [ImageLoaderFFPy] Using ffpyplayer 4.3.5
[INFO ] [Image ] Providers: img_tex, img_imageio, img_dds, img_sdl2, img_pil, img_ffpyplayer
[INFO ] [VideoFFPy ] Using ffpyplayer 4.3.5
[INFO ] [Video ] Provider: ffpyplayer(['video_ffmpeg'] ignored)
I’ll try a quick experiment on my mac tomorrow and see what happens. There are a number of the kivy devs on the kivy discord channel. They may have a clearer answer.
You might want to try setting the appropriate environment variable. This needs to be set prior to importing kivy.
https://kivy.org/doc/stable/guide/environment.html?highlight=env
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/dbcd1d13-c377-4b93-be30-371cc174325en%40googlegroups.com.
python -m pip install "kivy[base, media]" kivy_examples
from kivy.lang import Builder
from kivy.app import App
KV = '''
Screen:
Video:
source: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/SubaruOutbackOnStreetAndDirt.mp4' #'Video1.mp4'
state: 'play'
allow_fullscreen: False
'''
class TestVideoPlayer(App):
def build(self):
return Builder.load_string(KV)
TestVideoPlayer().run()
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/62a6bc0d.1c69fb81.b3931.a66cSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
Adding more color this is a know issue: https://github.com/matham/ffpyplayer/issues/68
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/52CF6854-68D8-486C-8251-BE846BAE5D94%40cox.net.
I have an Intel x86 based Mac. I did NOT separately install Gstreamer, or any SDL Framework. I created a venv, and pip installed kivy as described earlier. I installed python manually from the python web site.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/887e79e7-3cd0-4ce7-9df2-09f699e7505an%40googlegroups.com.