This problem persists in SVP4Mac 4.3.155

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?

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.

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

Indeed it is!  Thanks for the quick fix.  smile

At least on my system, passing -p (pid) doesn't have this delay, so if you had the pid already (or some way to get it) you could add -p argument to get the file descriptor.  Not helpful if you're using lsof to get the pid in the first place... in which case maybe reach out to mpv developers (submit a PR?) to allow get-property to get pid (or even file descriptor if that's what you need from lsof) directly from mpv?

I'm using SVP 4 Mac 4.30.0.150 with mpv 0.29.1.  It works great, but it takes 10-15 seconds from when mpv starts up to when SVP begins interpolating videos.  This is just for the first item it plays -- if I play multiple items in a playlist, SVP works immediately when skipping to the next track.  Is this normal, and is there a way to reduce or eliminate this delay?

My mpv config is here:

ytdl-format=[protocol!=http_dash_segments]
slang=eng
no-osc
no-sub
sub-font-size=36
native-fs=no
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
hr-seek=yes

Thanks.