1 (edited by Super4Jet 11-02-2021 11:55:56)

Topic: Can't get SVP to run (mpv/vapoursynth issue?)

Hi everyone,
so, I have a problem: I have already installed Vapoursynth and Python and zimg and all that, but SVP tells me it doesn't work (see attached picture)
Now though it's not my first time using Linux, I can't get this to work, and the internet doesn't tell me anything. If that helps:  vspipe -v is (mostly) happy. But mpv doesn't even list VS in the vf=help section.
Log:

02:46:59.615: ===== Starting mpv ======
02:46:59.615: Command line: /usr/bin/mpv /home/ubuntu/Desktop/Butterfly.mp4 --o=/home/ubuntu/Desktop/Butterfly.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=/tmp/mpvencodesocket --input-media-keys=no --no-msg-color --vf=vapoursynth:/home/ubuntu/.local/share/SVP4/scripts/ffff.py:4:4 --of=matroska --ovc=libx265 --ovcopts=crf=18,preset=slow,threads=4
02:46:59.712: Option vf: vapoursynth doesn't exist.
02:46:59.712: Error parsing option vf (option parameter could not be parsed)
02:46:59.712: Setting commandline option --vf=vapoursynth:/home/ubuntu/.local/share/SVP4/scripts/ffff.py:4:4 failed.
02:46:59.712: Exiting... (Fatal error)
02:46:59.714: (!!!) Intermediate file may be broken: /home/ubuntu/Desktop/Butterfly.SVP.temporary.mkv
02:46:59.714: ===== mpv exited with code 1 =====

If you need any more information, feel free to ask me, I'd be glad about any help.
Super4Jet

I can't reply?
So here is a reply as an edit:
Thanks Chainik,
so I did rebuild it (and sudo installed it), but SVPManager still tells me mpv didn't find vapoursynth. How do I make sure mpv correctly discovered and installed VS? I'm kind of lost here...

Re: Can't get SVP to run (mpv/vapoursynth issue?)

you have to _build_ mpv after installing all of these stuff

Re: Can't get SVP to run (mpv/vapoursynth issue?)

Thanks Chainik,
so I did rebuild it (and sudo installed it), but SVPManager still tells me mpv didn't find vapoursynth. How do I make sure mpv correctly discovered and installed VS? I'm kind of lost here...

Re: Can't get SVP to run (mpv/vapoursynth issue?)

> How do I make sure mpv correctly discovered and installed VS?

check the mpv's configure output while building...

5 (edited by Super4Jet 12-02-2021 08:23:59)

Re: Can't get SVP to run (mpv/vapoursynth issue?)

Thank you very much smile
So I rebuild it again and took a copy of the log. I don't want to cause too much trouble, but just in case there is something else I might have overlooked, I attached the whole log. But I believe only the last lines are interesting as in line 4468 and 4638 it says "compiling [...] vf_vapoursynth.c" - which leads me to believe that it did compile and, after ./install, install it. - ?

https://pastebin.com/xVNEEdgc

Reply limit...

Re: Can't get SVP to run (mpv/vapoursynth issue?)

and installed where? are you sure /usr/bin/mpv is _this_ version you just built?

7 (edited by Super4Jet 12-02-2021 09:01:36)

Re: Can't get SVP to run (mpv/vapoursynth issue?)

Ah no it's installed at /usr/local/bin/mpv
Install log for completeness: https://pastebin.com/irHfaQeb
Do I need to change that?

Reply limit:
Ah thanks, that did the trick! Now it's working. I'm super excited how this will turn out! smile
Feeling rather stupid now...

Re: Can't get SVP to run (mpv/vapoursynth issue?)

> Do I need to change that?

if you're actually running /usr/bin/mpv - what do you think?

mpv's path is in All settings -> main.setup.player

Re: Can't get SVP to run (mpv/vapoursynth issue?)

Okay so hi again, I now got another issue: 4k is not working. 1080p works and I'm very happy with it, it's really smooth! 1080p works with both encoders (264+265), but 2160p always fails:

21:35:55.499: ===== Starting mpv ======
21:35:55.499: Command line: /usr/local/bin/mpv /run/user/1000/gvfs/smb-share:server=192.168.178.10,share=nas/My Data/WhyNot1.mp4 --o=/run/user/1000/gvfs/smb-share:server=192.168.178.10,share=nas/My Data/WhyNot1.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=/tmp/mpvencodesocket --input-media-keys=no --no-msg-color --vf=vapoursynth:/home/ubuntu/.local/share/SVP4/scripts/ffff.py:4:6 --of=matroska --ovc=libx265 --ovcopts=crf=18,preset=slow,threads=6
21:35:55.561: (+) Video --vid=1 (*) (hevc 3840x2160 23.976fps)
21:35:55.561: Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
21:35:55.561: Audio --aid=2 --alang=eng (aac 2ch 44100Hz)
21:35:55.849: VO: [lavc] 3840x2160 yuv420p
21:35:55.849: [vo/lavc] Opening encoder: libx265 H.265 / HEVC [libx265]
21:35:55.850: x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
21:35:55.850: x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 8bit+10bit+12bit
21:35:55.850: x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
21:35:55.850: x265 [info]: Main profile, Level-6.1 (Main tier)
21:35:55.850: x265 [info]: Thread pool created using 6 threads
21:35:55.850: x265 [info]: Slices : 1
21:35:55.850: x265 [info]: frame threads / pool features : 6 / wpp(34 rows)
21:35:55.883: x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
21:35:55.883: x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
21:35:55.883: x265 [info]: ME / range / subpel / merge : star / 57 / 3 / 3
21:35:55.883: x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
21:35:55.883: x265 [info]: Lookahead / bframes / badapt : 25 / 4 / 2
21:35:55.883: x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
21:35:55.883: x265 [info]: References / ref-limit cu / depth : 4 / on / on
21:35:55.883: x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
21:35:55.883: x265 [info]: Rate Control / qCompress : CRF-18.0 / 0.60
21:35:55.883: x265 [info]: tools: rect limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00
21:35:55.883: x265 [info]: tools: rskip signhide tmvp strong-intra-smoothing lslices=4
21:35:55.883: x265 [info]: tools: deblock sao
21:35:55.883: [encode] Opening output file: /run/user/1000/gvfs/smb-share:server=192.168.178.10,share=nas/My Data/WhyNot1.SVP.temporary.mkv
21:35:55.902: [encode] Opening muxer: Matroska [matroska]
21:35:55.996: V: 00:00:00 / 00:03:46 (0%) {3.8min 0.0MB} Cache: 10s/9MB
21:36:05.282: (!!!) Intermediate file may be broken: /run/user/1000/gvfs/smb-share:server=192.168.178.10,share=nas/My Data/WhyNot1.SVP.temporary.mkv
21:36:05.282: ===== mpv exited with code 9 =====

No matter whether I take the h.264 or h.265 encoder, it would fire up, count up a few numbers, show 0.1fps and it fails directly after that. Does SVP then even support 4K? I tested the same file, encoded in HandBrake, same settings (RF same, not the bitrate, that'd pointless, and h.265), just downscaled for the 1080p version.

Re: Can't get SVP to run (mpv/vapoursynth issue?)

this probably means out of memory

Re: Can't get SVP to run (mpv/vapoursynth issue?)

Ah yes, didn't know mpv would be using more than 4.5Gigs. You're genius, thanks! It's working now smile