Topic: Linux + SVP + Livestreamer + Crunchyroll = No FPS, SVP Crashes

I don't think this is an issue with SVP, but I figured I would ask here first, since livestreamer development has been dead for quite some time.

I can watch Crunchyroll streams using livestreamer no issue on my laptop in Linux.

However, with SVP 4 manager running, either before the video is played or after it starts, causes SVP 4 Manager to force close, and the video player as well.

From logs, appears to be an issue with crunchyroll streams not reporting video FPS as "INFO_VIDEO_FPS=" shows up blank in logs right before a vapoursynth fails.

If anyone can help, would be great. I will play with some stream options and see if I can get the FPS to report with the stream, but so far I have had no luck.

MPV log:

/usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-file=/dev/stdin --no-fs --vd-lavc-threads=8 --hwdec=no --sub-auto=fuzzy --vo=opengl, --ao=pulse, --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=119537716 --monitorpixelaspect=1 --osd-scale=1 --sub-ass --embeddedfonts --sub-ass-line-spacing=0 --sub-scale=1 --sub-font=Arial --sub-color=#ffffffff --sub-shadow-color=#ff000000 --sub-border-color=#ff000000 --sub-border-size=0.75 --sub-shadow-offset=2.5 --sub-codepage=utf8:ISO-8859-1 --sub-pos=100 --volume=92 --cache=8192 --osd-level=0 --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/home/lolihunter/Downloads --audio-channels=2 --audio-pitch-correction=yes --af-add=equalizer=0:0:0:0:0:0:0:0:0:0 --volume-max=110 --ytdl --hwdec=no --input-ipc-server=/tmp/mpvsocket --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-aspect}
INFO_VIDEO_FPS=${=container-fps:${=fps}}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_AUDIO_FORMAT=${=audio-codec-name}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-params/samplerate}
INFO_AUDIO_NCH=${=audio-params/channel-count}
INFO_LENGTH=${=duration:${=length}}
INFO_DEMUXER=${=current-demuxer:${=demuxer}}
INFO_SEEKABLE=${=seekable}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
 --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} http://www.crunchyroll.com/liveplaylist/videoencode_2429981.m3u8?key=ZFlUQllLSGY3S0pjOEg3UGJiMW55dWZDQlprPV97ImwiOjE0NDAwLCJvIjoiZW5VUyIsInMiOjg4MTczNSwic2xpc3QiOiJcL3ZlMjQyOTk4MVwvIiwidCI6MTQ3OTI1MTA1MCwidSI6IjI0OTY1ODAzIiwidiI6MX0&client=com.crunchyroll.iphone

Playing: http://www.crunchyroll.com/liveplaylist/videoencode_2429981.m3u8?key=ZFlUQllLSGY3S0pjOEg3UGJiMW55dWZDQlprPV97ImwiOjE0NDAwLCJvIjoiZW5VUyIsInMiOjg4MTczNSwic2xpc3QiOiJcL3ZlMjQyOTk4MVwvIiwidCI6MTQ3OTI1MTA1MCwidSI6IjI0OTY1ODAzIiwidiI6MX0&client=com.crunchyroll.iphone
[ytdl_hook] ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[ytdl_hook] youtube-dl failed, trying to play URL directly ... 
 (+) Video --vid=1 (h264)
 (+) Audio --aid=1 (aac)
AO: [pulse] 44100Hz stereo 2ch float
VO: [opengl] 1920x1080 yuv420p
INFO_VIDEO_DSIZE=1920x1080
MPV_VERSION=mpv 0.21.0
INFO_VIDEO_WIDTH=1920
INFO_VIDEO_HEIGHT=1080
INFO_VIDEO_ASPECT=1.777778
INFO_VIDEO_FPS=
INFO_VIDEO_FORMAT=h264
INFO_VIDEO_CODEC=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
INFO_AUDIO_FORMAT=aac
INFO_AUDIO_CODEC=AAC (Advanced Audio Coding) [lavc:aac]
INFO_AUDIO_RATE=44100
INFO_AUDIO_NCH=2
INFO_LENGTH=1333.000000
INFO_DEMUXER=lavf
INFO_SEEKABLE=yes
INFO_TITLES=
INFO_CHAPTERS=0
INFO_TRACKS_COUNT=2
METADATA_TITLE=
METADATA_ARTIST=
METADATA_ALBUM=
METADATA_GENRE=
METADATA_DATE=
METADATA_TRACK=
METADATA_COPYRIGHT=
INFO_MEDIA_TITLE=videoencode_2429981.m3u8?key=ZFlUQllLSGY3S0pjOEg3UGJiMW55dWZDQlprPV97ImwiOjE0NDAwLCJvIjoiZW5VUyIsInMiOjg4MTczNSwic2xpc3QiOiJcL3ZlMjQyOTk4MVwvIiwidCI6MTQ3OTI1MTA1MCwidSI6IjI0OTY1ODAzIiwidiI6MX0&client=com.crunchyroll.iphone
INFO_TRACK_0: video 1 '' '' yes
INFO_TRACK_1: audio 1 '' '' yes
Track switched:
 (+) Video --vid=1 (h264)
 (+) Audio --aid=1 (aac)
Opening video filter: [vapoursynth file=/home/lolihunter/.local/share/SVP4/scripts/11d10034.py buffered-frames=4 concurrent-frames=9]
[vapoursynth] Script evaluation failed:
[vapoursynth] Python exception: SVSmoothFps: unable to determine source frame rate
[vapoursynth] Traceback (most recent call last):
[vapoursynth]   File "src/cython/vapoursynth.pyx", line 1491, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:27905)
[vapoursynth]   File "/home/lolihunter/.local/share/SVP4/scripts/11d10034.py", line 53, in <module>
[vapoursynth]     smooth =  interpolate(clip)
[vapoursynth]   File "/home/lolihunter/.local/share/SVP4/scripts/11d10034.py", line 36, in interpolate
[vapoursynth]     smooth  = core.svp2.SmoothFps(input,super["clip"],super["data"],vectors["clip"],vectors["data"],smoothfps_params,src=clip,fps=container_fps)
[vapoursynth]   File "src/cython/vapoursynth.pyx", line 1383, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:26156)
[vapoursynth] vapoursynth.Error: SVSmoothFps: unable to determine source frame rate
[vapoursynth] 
Core freed but 3 filter instances still exist
mpv: ../video/filter/vf_vapoursynth.c:555: destroy_vs: Assertion `!p->in_node_active' failed.

Re: Linux + SVP + Livestreamer + Crunchyroll = No FPS, SVP Crashes

SVPtube extension can handle Crunchyroll w/o Livestreamer wink