You can ignore this error.
If you trace through the video widget you will see the code first attempts to load a still image, if that fails, then it will load the video. You can use the video widget to display a slide show of jpeg images or mix a list of still images and videos.
--
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/d9afc61e-a6a5-4ac9-9bf4-6fa4fdb67eaf%40googlegroups.com.
Â
I should add – if you load a still image with the Video widget, you will not see the error.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5ea6cb81.1c69fb81.9e4a5.a413SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
Â
The example below plays a list of videos or images from the list video_list. Replace the filenames with your own. You will see in the log that there are no error for the still images, and errors for the videos.
Â
Â
from kivy.app import App
from kivy.uix.video import Video
from kivy.lang import Builder
kv = """
BoxLayout:
   orientation: 'vertical'
   Player:
       id:player
   BoxLayout:
       size_hint_y: .1
       Button:
            text: 'play'
           on_release: player.state = 'play'
"""
video_list = ['IMG_1853.jpg',
             'Hand Washing - 34091.mp4'] # Put you content in this list.
class Player(Video):
   def __init__(self, **kwargs):
       self.v = 0
       super().__init__(source=video_list[0], state='stop', **kwargs)
   def on_eos(self, *args):
       print(f'on_eos: {self.eos} loaded: {self.loaded}, state: {self.state}')
       if self.eos:
           self.v += 1
           if self.v == len(video_list):
               print('End of playlist')
               self.v = 0
               return
       self.source = video_list[self.v]
       self.state = 'play' # must set state to play for video to be loaded
   def on_loaded(self, *args):
       # print('*' * 80)
       print(f'loaded: {self.loaded}')
class VideoPlayerApp(App):
   def build(self):
       return Builder.load_string(kv)
if __name__ == '__main__':
   VideoPlayerApp().run()
Â
Â
Â
From: Degenerate Tech
Sent: Monday, April 27, 2020 5:12 AM
To: Kivy users support
--
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/563abfd6-00d4-4edd-a774-bf8710452682%40googlegroups.com.
Â
Yes, You can make your own custom video player using buttons and sliders.
The video will size automatically to fit the size of the enclosing layout.
Â
Â
From: Degenerate Tech
Sent: Monday, April 27, 2020 5:26 AM
To: Kivy users support
Subject: RE: [kivy-users] Re: kivy videoplayer on android
Â
&. can I make my coustom video player? by using button ,slider etc ?
Â
--
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/aee54975-59ec-451d-aa84-0d8a202557df%40googlegroups.com.
Â
Yes, You can make your own custom video player using buttons and sliders.
The video will size automatically to fit the size of the enclosing layout.
Â
Â
From: Degenerate Tech
Sent: Monday, April 27, 2020 5:26 AM
To: Kivy users support
Subject: RE: [kivy-users] Re: kivy videoplayer on androidÂ
&. can I make my coustom video player? by using button ,slider etc ?
Â
--
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-...@googlegroups.com.
You can go fullscreen – but I don’t see an easy way to change the aspect ratio.
If you need to change the aspect ratio, it might be useful to look at the source code for Image and look how keep_ratio (especially keep_ratio: False) works to change the aspect ration of a still image.
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/f1d19adc-3ba5-4cfb-a8ac-608f45c81564%40googlegroups.com.
Â
You can go fullscreen – but I don’t see an easy way to change the aspect ratio.
If you need to change the aspect ratio, it might be useful to look at the source code for Image and look how keep_ratio (especially keep_ratio: False) works to change the aspect ration of a still image.
Â
From: Degenerate Tech
Sent: Monday, April 27, 2020 6:06 AM
To: Kivy users support
Subject: Re: [kivy-users] Re: kivy videoplayer on androidÂ
sir aspect ratio ? i want to fit video in whole screen..
On Monday, April 27, 2020 at 6:26:53 PM UTC+5:30, Elliot Garbus wrote:Yes, You can make your own custom video player using buttons and sliders.
The video will size automatically to fit the size of the enclosing layout.
Â
Â
From: Degenerate Tech
Sent: Monday, April 27, 2020 5:26 AM
To: Kivy users support
Subject: RE: [kivy-users] Re: kivy videoplayer on androidÂ
&. can I make my coustom video player? by using button ,slider etc ?
Â
--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/aee54975-59ec-451d-aa84-0d8a202557df%40googlegroups.com.
Â
--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/f1d19adc-3ba5-4cfb-a8ac-608f45c81564%40googlegroups.com.
Â
FFPyPlayer is a python binding for the FFmpeg library for playing and writing media files.
https://pypi.org/project/ffpyplayer/
Â
FFmpeg supports:
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/45768349-ff0f-492e-9d98-a16f13577a9c%40googlegroups.com.
Â
Your asking some big open ended questions. There are lots of ways. Start coding up some ideas. Happy to answer a more specific question.
Â
From: Degenerate Tech
Sent: Monday, April 27, 2020 12:34 PM
To: Kivy users support
Subject: RE: [kivy-users] Re: kivy videoplayer on android
Â
sir...I want to open a video by this video player .....how to implement that ?
I want to click on video list will show my video player ..how to do that in Android ... openwith mode ..
Â
--
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/5108677f-3d83-4107-9653-f9ad137989f8%40googlegroups.com.
Â
Use glob to get a list of video files. Put a list of file names on buttons in a scroll view, or recycle view, on the button press, play a video.
Sent from my iPhone
> On Apr 27, 2020, at 2:25 PM, Degenerate Tech <sksah...@gmail.com> wrote:
>
> give me a direction ...I am new in Python
>
> --
> 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-...@googlegroups.com.
😊 Congratulations!Â
Â
From: Degenerate Tech
Sent: Thursday, April 30, 2020 12:19 PM
To: Kivy users support
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/e27d2238-9916-4d20-ae72-991a74f6cc4b%40googlegroups.com.
Â
def test_ffmpeg():try:import subprocessprint(subprocess.check_output(['ffmpeg', '-version']))except Exception as e:print(e)print('==> ffmpeg is not good :(, nooooooooooooo')else:print('==> ffmpeg is good :)')test_ffmpeg()
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/45768349-ff0f-492e-9d98-a16f13577a9c%40googlegroups.com.
Â
I have no experience with Android.  Robert, Do you know?
Â
Take a look at the source for the kivy core video player to see how kivy uses ffpyplayer.
https://github.com/kivy/kivy/blob/master/kivy/core/video/video_ffpyplayer.py
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/4f0ca95c-4783-4a32-b66b-41d315e1f87co%40googlegroups.com.
Â
# disable binaries / doc
 flags += [
 '--disable-programs',
 '--disable-doc',
 ]
However you know what version of ffmpeg was used because you built it ! Also in requirements one can specify a version of a package (e.g kivy==2.0.0rc3). So ffmpeg==whatever  HOWEVER I can't tell you if version WHATEVER will catually build on Android. |
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/4f0ca95c-4783-4a32-b66b-41d315e1f87co%40googlegroups.com.
Â