環境:Python 3.7.7 kivy 2.0.0rc1
上記環境でvideoを使ってmp4を再生しようとしたところ下記のエラーが発生しました
[ERROR ] [Image ] Error loading texture ./movie/sample.mp4 [WARNING] Deprecated property "<BooleanProperty name=play>" of object "<kivy.uix.video.Video object at 0x71aaeb30>" was accessed, it will be removed in a future version
公式ドキュメントにもvideoの上記verでのドキュメントにもvideoの記載はなかっったので
おそらく使えないとは思うのですが、
使う方法等はございませんでしょうか?
よろしくお願いいたします。
---------追記------------
使う方法がない場合は、verを安定版に下げようと考えているのですが
その場合には、kivyを一度アンインストールしてから安定版のインストール手順を踏めばよいのでしょうか
あるいは、上書きのような形で可能なのでしょうか
また、依存モジュールの再インストール等も行ったほうがよいでしょうか。
合わせてご回答いただけると嬉しいです。
---------追記(コメント返信)------------
実行環境↓
$ pip3 list Package Version ----------- ---------- certifi 2020.4.5.1 chardet 3.0.4 Cython 0.29.14 docutils 0.16 idna 2.9 Kivy 2.0.0rc1 Kivy-Garden 0.1.4 Pillow 7.1.1 pip 20.0.2 pygame 1.9.6 Pygments 2.6.1 requests 2.23.0 setuptools 46.1.3 urllib3 1.25.8
該当クラス↓
from kivy.uix.video import Video class InCallingScreen(Screen, Video): def __init__(self, **kwargs): super().__init__(**kwargs) boxlayout = self.children[0] grid = boxlayout.children[1] video = Video(source='./movie/sample.mp4', options={'eos': 'loop'}) grid.add_widget(video) def on_enter(self): Clock.schedule_once(self.change_screen) def change_screen(self, dt): boxlayout = self.children[0] grid = boxlayout.children[1] video = grid.children[0] video.state = 'play' def cancellClicked(self): # ボタンをクリック時 boxlayout = self.children[0] grid = boxlayout.children[1] video = grid.children[0] video.state = 'stop'
ログ↓
$ python3 screen.py [INFO ] [Logger ] Record log in /〇〇/〇〇/.kivy/logs/kivy_20-04-13_9.txt [INFO ] [Kivy ] v2.0.0rc1, git-Unknown, 20200410 [INFO ] [Kivy ] Installed at "/〇〇/〇〇/.local/lib/python3.7/site-packages/kivy/__init__.py" [INFO ] [Python ] v3.7.7 (default, Apr 9 2020, 07:21:57) [GCC 8.3.0] [INFO ] [Python ] Interpreter at "/usr/local/bin/python3" [INFO ] [Factory ] 184 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer, img_gif ignored) [INFO ] [VideoGstplayer] Using Gstreamer 1.14.4.0 [INFO ] [Video ] Provider: gstplayer [INFO ] [Text ] Provider: sdl2 [INFO ] [Window ] Provider: egl_rpi [INFO ] [GL ] Using the "OpenGL ES 2" graphics system [INFO ] [GL ] Backend used <gl> [INFO ] [GL ] OpenGL version <b'OpenGL ES 2.0'> [INFO ] [GL ] OpenGL vendor <b'Broadcom'> [INFO ] [GL ] OpenGL renderer <b'VideoCore IV HW'> [INFO ] [GL ] OpenGL parsed version: 2, 0 [INFO ] [GL ] Shading version <b'OpenGL ES GLSL ES 1.00'> [INFO ] [GL ] Texture max size <2048> [INFO ] [GL ] Texture max units <8> [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked [INFO ] [GL ] NPOT texture support is available [ERROR ] [Image ] Error loading texture ./movie/sample.mp4 [INFO ] [Clipboard ] Provider: xclip [INFO ] [CutBuffer ] cut buffer support enabled [INFO ] [ProbeSysfs ] device match: /dev/input/event3 [INFO ] [HIDInput ] Read event from </dev/input/event3> [INFO ] [ProbeSysfs ] device match: /dev/input/event1 [INFO ] [HIDInput ] Read event from </dev/input/event1> [INFO ] [ProbeSysfs ] device match: /dev/input/event2 [INFO ] [HIDInput ] Read event from </dev/input/event2> [INFO ] [ProbeSysfs ] device match: /dev/input/event0 [INFO ] [HIDInput ] Read event from </dev/input/event0> [INFO ] [Base ] Start application main loop [INFO ] [HIDMotionEvent] using <FT5406 memory based driver> [INFO ] [HIDMotionEvent] using <USB Keyboard Consumer Control> [INFO ] [HIDMotionEvent] <FT5406 memory based driver> range ABS X position is 0 - 800 [INFO ] [HIDMotionEvent] <FT5406 memory based driver> range ABS Y position is 0 - 480 [INFO ] [HIDMotionEvent] using <USB Keyboard System Control> [INFO ] [HIDMotionEvent] <FT5406 memory based driver> range position X is 0 - 800 [INFO ] [HIDMotionEvent] <FT5406 memory based driver> range position Y is 0 - 480 [INFO ] [HIDMotionEvent] using <USB Keyboard> [WARNING] Deprecated property "<BooleanProperty name=play>" of object "<kivy.uix.video.Video object at 0x71a79930>" was accessed, it will be removed in a future version
回答1件
あなたの回答
tips
プレビュー