Open ShootingStarDragon opened 1 year ago
so these commands are to ffprobe-all, but ffpyplayer is a port of ffplay, which does not have these commands. very suspicious
typing this for the manual in the terminal ffplay -h > "ffplay h.txt"
gets me these:
http AVOptions:
...
...
-reconnect <boolean> .D........ auto reconnect after disconnect before EOF (default false)
-reconnect_at_eof <boolean> .D........ auto reconnect at EOF (default false)
-reconnect_streamed <boolean> .D........ auto reconnect streamed / non seekable streams (default false)
-reconnect_delay_max <int> .D........ max reconnect delay in seconds after which to give up (from 0 to 4294) (default 120)
I'm making a desktop app with kivy and ffpyplayer is a godsend. However, I am trying to load youtube links asynchronously and sometimes I get this error:
After googling for some time, people using discord.py also have this problem and they have solved it by adding
'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5'
to ffmpeg to force a reconnect. How can I do this for kivy? I tried adding these flags toff_opts
in video_ffpyplayer.py. However, I am still getting this error.I also figured out that by holding the window with the mouse, you can block redraws. Will this break the ffpyplayer videoplayer when streaming from youtube? Just a thought.
TLDR: Is there a way to supply these commands to ffopts?
'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5'
(these are positional as per: https://superuser.com/a/1050499)Is there a way to intercept this error message and get ffpyplayer video to restart/reconnect?
Thanks matham, ffpyplayer is amazing but I need a bit more help to get where I need to go. Cheers.