Topic: SVP 4 Mac: crash when video is paused for more than a few seconds

Getting the following error after pausing any video and waiting maybe 20 seconds:

Playing: /Users/tonyc/Movies/Juno Jupiter Flyby.mp4
 (+) Video --vid=1 (*) (h264 1920x1080 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
Using hardware decoding (videotoolbox-co).
VO: [libmpv] 1920x1072 nv12
AO: [coreaudio] 48000Hz stereo 2ch floatp
AV: 00:00:00 / 00:03:00 (0%) A-V:  0.000
[autoconvert] Converting nv12 -> yuv420p
(Paused) AV: 00:00:00 / 00:03:00 (0%) A-V:  0.000
[autoconvert] Converting nv12 -> yuv420p
(...) AV: 00:00:00 / 00:03:00 (0%) A-V:  0.000
VO: [libmpv] 1920x1072 yuv420p
(Paused) AV: 00:00:00 / 00:03:00 (0%) A-V:  0.000
[autoconvert] Converting nv12 -> yuv420p
(Paused) AV: 00:00:00 / 00:03:00 (0%) A-V:  0.000
[autoconvert] Converting nv12 -> yuv420p
(Paused) AV: 00:00:00 / 00:03:00 (0%) A-V:  0.000
[autoconvert] Converting nv12 -> yuv420p
[vapoursynth] Script evaluation failed:
[vapoursynth] Python exception: Filter SVSmoothFps returned zero or negative frame count
[vapoursynth]
[vapoursynth] Traceback (most recent call last):
[vapoursynth]   File "src/cython/vapoursynth.pyx", line 1937, in vapoursynth.vpy_evaluateScript
[vapoursynth]   File "src/cython/vapoursynth.pyx", line 1938, in vapoursynth.vpy_evaluateScript
[vapoursynth]   File "/Users/tonyc/Library/Application Support/SVP4/scripts/98daa1a.py", line 51, in <module>
[vapoursynth]     smooth =  interpolate(clip)
[vapoursynth]   File "/Users/tonyc/Library/Application Support/SVP4/scripts/98daa1a.py", line 34, in interpolate
[vapoursynth]     smooth  = core.svp2.SmoothFps(input_m,super["clip"],super["data"],vectors["clip"],vectors["data"],smoothfps_params,src=input_um,fps=src_fps)
[vapoursynth]   File "src/cython/vapoursynth.pyx", line 1843, in vapoursynth.Function.__call__
[vapoursynth] vapoursynth.Error: Filter SVSmoothFps returned zero or negative frame count
[vapoursynth]
Core freed but 7 filter instance(s) still exist
Assertion failed: (!p->in_node_active), function destroy_vs, file ../video/filter/vf_vapoursynth.c, line 598.
[2]    65137 abort      mpv ~/Movies/Juno\ Jupiter\ Flyby.mp4

SVP 4 Mac 4.3.0.151, OS X 10.13.6

Re: SVP 4 Mac: crash when video is paused for more than a few seconds

Can't reproduce.

mpv 0.29.1?
anything unusual in mpv.conf?

Re: SVP 4 Mac: crash when video is paused for more than a few seconds

Yes, 0.29.1.

Here's my full mpv.conf:

ytdl-format=[protocol!=http_dash_segments]
slang=eng
osd-duration=2000
osd-font-size=10
osd-bar-align-y=0.8
osd-bar-h=2
osd-color='#c08080FF'
#autosync=30
no-osc
no-sub
sub-font-size=36
native-fs=no
#no-border
keep-open=yes
keep-open-pause=no
input-ipc-server=/tmp/mpvsocket
hwdec-codecs=all
hwdec=auto-copy
opengl-early-flush=no
hr-seek-framedrop=no
no-resume-playback
#cache=8192
title=mpv: ${filename} ${?video-format:V: ${vid} ${video-format} ${video-params/w}x${video-params/h}} ${container-fps}fps ${video-bitrate} ${?audio-samplerate:A: ${aid} ${audio-format} ${audio-samplerate} ${audio-bitrate}} ${time-pos}/${length}
osd-status-msg="[${playlist-pos-1}/${playlist-count}]    ${filename}    ${file-size}\n[${time-pos}/${duration}]    ${?chapter:[${chapter} / ${chapters}]}    ${?video-format:V: ${vid} ${video-format} ${video-params/w}x${video-params/h}} ${container-fps}fps ${video-bitrate}    ${?audio-samplerate:A: ${aid} ${audio-format} ${audio-samplerate} ${audio-bitrate}}    ${estimated-frame-number}/${estimated-frame-count}    (${percent-pos}%)"
hr-seek=yes
load-scripts=yes
#script=Blackbox
#script=excerpt

I moved my ~/.mpv/scripts folder aside to rule out any auto-loading scripts being the problem, but the problem persisted.

Re: SVP 4 Mac: crash when video is paused for more than a few seconds

Chainik wrote:

Can't reproduce.

mpv 0.29.1?
anything unusual in mpv.conf?

Hi, is there any other info I can give you to help diagnose / reproduce this problem?  Maybe a test build with instrumentation / logging to indicate what args the SVSmoothFps filter is getting?

Re: SVP 4 Mac: crash when video is paused for more than a few seconds

This problem persists in SVP4Mac 4.3.155

Re: SVP 4 Mac: crash when video is paused for more than a few seconds

Yeah, I can see it now from time to time in mpv for Windows hmm