Topic: wrong framerate detected

while trying to play video with mpv and using paramater "--input-ipc-server=mpvpipe", it always fails due to wrong framerate was detected. i'm told from the scripts.

super_params     = "{scale:{up:0},gpu:1,rc:true}"
analyse_params   = "{main:{search:{coarse:{distance:-8,bad:{sad:2000,range:24}},type:2}},refine:[{thsad:250}]}"
smoothfps_params = "{gpuid:21,rate:{num:32,den:1},algo:13,mask:{area:100},scene:{}}"

src_fps     = container_fps if container_fps>0.1 else 1.875
demo_mode   = 0
stereo_type = 0
nvof = 0

//original frame rate at 30fps

smoothfps_params = "{gpuid:21,gpu_qn:2,rate:{num:2767,den:7},algo:13,mask:{area:100},scene:{}}"

src_fps     = container_fps if container_fps>0.1 else 0.152
demo_mode   = 0
stereo_type = 0
nvof = 0

//original frame rate at 6fps
also mpv got errors:

[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 1946, in vapoursynth.vpy_evaluateScript
[vapoursynth]   File "src\cython\vapoursynth.pyx", line 1947, in vapoursynth.vpy_evaluateScript
[vapoursynth]   File "C:\Users\zxhzxhz\AppData\Roaming\SVP4\scripts\530771e.py", line 56, in <module>
[vapoursynth]     smooth =  interpolate(clip)
[vapoursynth]   File "C:\Users\zxhzxhz\AppData\Roaming\SVP4\scripts\530771e.py", line 39, 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 1852, in vapoursynth.Function.__call__
[vapoursynth] vapoursynth.Error: Filter SVSmoothFps returned zero or negative frame count
[vapoursynth]
[vapoursynth] could not init VS
Disabling filter vapoursynth.00 because it has failed.

and also runtime error:

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!

Program: ...
File: ../video/filter/vf_vapoursynth.c
Line: 598

Expression: !p->in_node_active

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled)

i didn't modify override.js and generate.js....
what should i do to get over this?
i tried mpc-be and it works well....

Re: wrong framerate detected

what video?

Re: wrong framerate detected

Chainik wrote:

what video?

1.https://www.youtube.com/watch?v=g--b9nlwnBs
(+) Video --vid=1 (*) (h264 1920x1080 30.000fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
2.https://www.youtube.com/watch?v=zPWr36JkYo4
(+) Video --vid=1 (*) (h264 1280x720 6.007fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)

download with youtube-dl

Re: wrong framerate detected

dunno, both works as expected when playing directly via SVPtube

please show SVP's log

5 (edited by zxhzxhz 11-01-2020 13:00:40)

Re: wrong framerate detected

Chainik wrote:

dunno, both works as expected when playing directly via SVPtube

please show SVP's log

log's here:

20:55:17.963 [i]: Main: starting up SVP 4 Pro [4.3.0.175]... 
20:55:17.963 [i]: Main: args: none
20:55:17.973 [i]: Main: working dir is C:\Program Files (x86)\SVP 4\
20:55:17.973 [i]: Main: data dir set to C:\Users\zxhzxhz\AppData\Roaming\SVP4\
20:55:17.975 [i]: Settings: loading main.cfg OK
20:55:17.975 [i]: Settings: loading ui.cfg OK
20:55:17.975 [i]: Settings: loading frc.cfg OK
20:55:17.975 [i]: Settings: loading profiles.cfg OK
20:55:17.975 [i]: Settings: loading custom.cfg OK
20:55:17.975 [i]: Settings: loading lights.cfg OK
20:55:17.975 [i]: Main: using Qt 5.12.5 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2017)
20:55:17.975 [i]: Main: device scale is 1.25, user defined scale is 0
20:55:17.983 [i]: Main: system locale is [zh]
20:55:17.983 [i]: Main: preferred language is [zh-cn]
20:55:17.985 [i]: Main: setting language file to zh-cn.qm...
20:55:17.993 [W]: Main: module 'plugins/svpflow1.dll': NOT FOUND
20:55:17.993 [W]: Main: module 'plugins/svpflow2.dll': NOT FOUND
20:55:17.993 [i]: Main: module 'plugins64/svpflow1.dll': 4.3.0.156
20:55:17.993 [i]: Main: module 'plugins64/svpflow2.dll': 4.3.0.168
20:55:17.993 [i]: Main: module 'plugins64/svpflow1_vs.dll': 4.3.0.156
20:55:17.993 [i]: Main: module 'plugins64/svpflow2_vs.dll': 4.3.0.168
20:55:17.993 [W]: Main: PYTHONPATH doesn't contain mpv64 folder, VLC and libmpv players may not work
20:55:17.993 [i]: Main: VLC filter (64 bit): 1.0.0.170
20:55:17.993 [W]: Main: PYTHONPATH is EMPTY
20:55:17.993 [i]: Main: running OpenCL info...
20:55:18.006 [i]: Main: collecting system information...
20:55:18.006 [i]: OS: Windows 10 [10.0.18362]
20:55:18.006 [i]: CPU: Intel Core i5-7300HQ [base frequency 2496 MHz, 4 threads]
20:55:18.006 [i]: Video: registry info - Intel HD Graphics 630
20:55:18.006 [i]: Video: reading OpenCL info...
20:55:18.287 [i]: Video: 1 GPU OpenCL device(s) on Intel(R) OpenCL [OpenCL 2.1] (Intel(R) Corporation)
20:55:18.287 [i]: Video 1: Intel(R) HD Graphics 630 (Intel(R) Corporation, ver.24.20.100.6344) [gpuID=11]: OK
20:55:18.287 [i]: Video: 1 GPU OpenCL device(s) on NVIDIA CUDA [OpenCL 1.2 CUDA 10.1.120] (NVIDIA Corporation)
20:55:18.287 [i]: Video 1: GeForce GTX 1050 Ti (NVIDIA Corporation, ver.419.35) [gpuID=21]: OK
20:55:18.287 [i]: Memory:  16269  MB total,  9141 MB free
20:55:18.287 [i]: System: finding network settings...
20:55:18.965 [i]: Power: AC is ON [1]
20:55:19.189 [i]: Screens: updating information, 1 screen(s) found
20:55:19.388 [i]: Main: preparing video profiles...
20:55:19.520 [i]: Main: preparing performance graphs...
20:55:19.691 [i]: Main: preparing ffdshow...
20:55:19.692 [i]: FFDShow: found 64-bit version 1.3.4533.0 [C:\Program Files\ffdshow\ffdshow.ax]
20:55:19.695 [i]: Main: preparing mpv...
20:55:19.696 [i]: Main: preparing remote control...
20:55:19.696 [i]: RemoteControl: started
20:55:19.697 [i]: Main: preparing main menu...
20:55:19.797 [i]: Main: loading extensions...
20:55:19.804 [i]: Extensions: found svpcast 1.1.0.174 ...
20:55:19.805 [i]: Settings: loading cast.cfg OK
20:55:19.822 [W]: Control: failed to register shortcut Meta+Ctrl+S
20:55:19.842 [i]: Streaming: Web UI listening on http://192.168.137.1:9900
20:55:19.862 [i]: Extensions: found svpcode 1.0.0.174 ...
20:55:19.862 [i]: Settings: loading code.cfg OK
20:55:19.908 [i]: Extensions: found svplight 2.0.0.168 ...
20:55:19.908 [i]: Settings: loading leds.cfg OK
20:55:19.997 [i]: Extensions: found svptube 2.1.0.173 ...
20:55:20.013 [i]: Settings: loading tube.cfg OK
20:55:20.037 [i]: Tube: initializing youtube_dl...
20:55:20.077 [i]: Main: initialization completed in 2084 ms, but still waiting for the screens measurement...
20:55:20.155 [i]: Updates: checking now...
20:55:21.559 [i]: Screens: screen 0 - 1920x1080 @60.026 Hz [measured], x1.3 [141 DPI]
20:55:21.559 [i]: Screens: primary screen is 0
20:55:22.034 [i]: Tube: youtube_dl ready
20:55:24.982 [i]: Performance: quick estimation = 576 (previous value was 575)
20:55:36.997 [i]: VideoPlayer: mpv connected, waiting for the video info...
20:55:38.104 [i]: VideoPlayer: mpv 0.30.0-256-g61b8e1d436
20:55:38.564 [i]: Media: video 1280x720 [PAR 1.000] at 6.000 fps [constant]
20:55:38.564 [i]: Media: codec type is AVC, YUV/4:2:0/8 bits
20:55:38.618 [i]: Playback: starting up...
20:55:38.625 [i]: Playback [f4f45561]: Frame server (64-bit) C:\Program Files (x86)\SVP 4\mpv64\vapoursynth.dll
20:55:38.626 [i]: Playback [f4f45561]: resulting video frame 1280x720
20:55:38.627 [i]: Playback [f4f45561]: 1 acceptible profiles, best is 'auto' [0]
20:55:38.637 [i]: Playback [f4f45561]: enabled while video is playing
20:55:38.639 [i]: Profile: using automatic profile #1 /film
20:55:38.658 [i]: Playback [f4f45561]: playing at 60 [6 *10/1] 
20:55:43.666 [i]: Playback [f4f45561]: source frame rate changed to 0.20749
20:55:43.666 [i]: Playback [f4f45561]: 1 acceptible profiles, best is 'auto' [0]
20:55:43.667 [i]: Playback [f4f45561]: keep previously selected profile 'auto'
20:55:43.667 [i]: Profile: using automatic profile #1 /film
20:55:43.686 [i]: Playback [f4f45561]: playing at 60.0337 [0.20749 *868/3]
20:57:21.334 [i]: Playback [f4f45561]: disabled while video is playing
20:57:21.343 [i]: Playback [f4f45561]: deleted 

Re: wrong framerate detected

problem just solved...
i updated mpv and it worked again. It seems to be mpv has some bug in vapoursynth filter function and they fixed it in newer version.
sorry to bother, and thank you for your help~

Re: wrong framerate detected

there also were some changes after SVP rev.175 that may affect this