keiichiiownsu12 wrote:

Running SVP on Arch. I am trying to install the SVPCode extension, however the Utilities --> Additional programs and features... dialogue does not show. I.e. when clicking, no dialogue or error message shows.

Is this some sort of error with my installation? Is there another way I could enabel SVPCode?

I let the packager know here: https://aur.archlinux.org/packages/svp

Chainik wrote:

it launches the 'svp4-maintenance' created by the installer
it you don't have one you're definitely out of luck

That is the case for me at least, thanks for clearing that up Chainik!

check w/:

pacman -Ql svp|grep -i maint

..if you installed from aur.

I'm on arch too (not sure how that is/if related), I'm getting the same results. Clicking the 'additional programs...' does seemingly nothing.
I tried debugging w/ gdb (no debugging symbols so nothing of value there), I tried strace:ing and found nothing there either.
I also tried enforcing the fusion style to see if it's the style that's doing something strange... same results.

*shrugs* I guess I'd try reading/editing the config files in $HOME/.local/share/SVP4

4

(8 replies, posted in Using SVP)

Chainik wrote:

wtf is "cw"? hmm

According to the archlinux wiki (https://wiki.archlinux.org/index.php/Co … l_wrappers) it is a:

A non-intrusive real-time ANSI color wrapper for common unix-based commands.

What it does is color the output of common linux commands to make them more readable, pic attached.

5

(8 replies, posted in Using SVP)

Nevermind.... me is and idiot!

I should have figured it I cant use cw w/ svp, if I remove:

/usr/lib/cw/lsof

so I get:

> which lsof
/usr/bin/lsof

...and it works, hmm, might be a good idea to let (linux) users know that if they use cw they have to remove the lsof part in order for svp to work!

How do I mark this as solved?

//Robert

Hi!

I have a rather peculiar problem here, I have svp setup w/ vapoursynth enabled mpv.
I have all the required applications settings and applications (lsof).

In the mpv config file ($HOME/.config/mpv/mpv.conf) I have:

input-ipc-server=/tmp/mpvsocket

but still I get the unable to find mpv's pid.

I don't see anything that's wrong, apart from it not working ofc.

Here is an strace snippet

poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 86) = 0 (Timeout)
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 99) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 39) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 39) = 0 (Timeout)
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 70) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 21) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 4) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 3) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\2\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 2) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\2\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 2) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 2) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\n\0\0\0\0\0\0\0", 16)         = 8
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 39
connect(39, {sa_family=AF_UNIX, sun_path="/tmp/mpvsocket"}, 110) = -1 ECONNREFUSED (Connection refused)
close(39)                               = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 39
connect(39, {sa_family=AF_UNIX, sun_path="/tmp/cmdrkotori.mpc-qt.mpv"}, 110) = -1 ENOENT (No such file or directory)
close(39)                               = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 2) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 2) = 0 (Timeout)
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 100) = 0 (Timeout)
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 99) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 98) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 98) = 0 (Timeout)
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=20, events=POLLIN}, {fd=21, events=POLLIN}, {fd=23, events=POLLIN}], 6, 49) = 0 (Timeout)
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 39
connect(39, {sa_family=AF_UNIX, sun_path="/tmp/mpvsocket"}, 110) = 0
getsockname(39, {sa_family=AF_UNIX}, [28->2]) = 0
getpeername(39, {sa_family=AF_UNIX}, [2->17]) = 0
getsockopt(39, SOL_SOCKET, SO_TYPE, [1], [4]) = 0
fcntl(39, F_GETFL)                      = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl(39, F_SETFL, O_RDWR|O_NONBLOCK)   = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
pipe2([40, 41], O_CLOEXEC)              = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
pipe2([42, 43], O_CLOEXEC)              = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
pipe2([44, 45], O_CLOEXEC)              = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
pipe2([46, 47], O_CLOEXEC)              = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
getcwd("/home/<username>", 4096)             = 12
statx(AT_FDCWD, "/home/<username>/~/.scripts/lsof", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffdc29bf940) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/usr/lib/cw/lsof", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0755, stx_size=726, ...}) = 0
access("/usr/lib/cw/lsof", X_OK)        = 0
pipe2([48, 49], O_CLOEXEC)              = 0
eventfd2(0, EFD_CLOEXEC)                = 50
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f22915eaad0) = 7885
write(50, "*\0\0\0\0\0\0\0", 8)         = 8
close(50)                               = 0
close(47)                               = 0
close(40)                               = 0
fcntl(41, F_GETFL)                      = 0x1 (flags O_WRONLY)
fcntl(41, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
close(43)                               = 0
fcntl(42, F_GETFL)                      = 0 (flags O_RDONLY)
fcntl(42, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
close(45)                               = 0
fcntl(44, F_GETFL)                      = 0 (flags O_RDONLY)
fcntl(44, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
ppoll([{fd=46, events=POLLIN}], 1, {tv_sec=60, tv_nsec=0}, NULL, 8) = 1 ([{fd=46, revents=POLLHUP}], left {tv_sec=59, tv_nsec=999998669})
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
read(46, "", 12)                        = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
close(46)                               = 0
ppoll([{fd=-1}, {fd=42, events=POLLIN}, {fd=44, events=POLLIN}, {fd=48, events=POLLIN}], 4, {tv_sec=60, tv_nsec=0}, NULL, 8) = 1 ([{fd=42, revents=POLLIN}], left {tv_sec=59, tv_nsec=851643201})
ioctl(42, FIONREAD, [765])              = 0
read(42, "\33[00;36m\33[01;32mp\33[01;36m5690\33[0"..., 765) = 765
ppoll([{fd=-1}, {fd=42, events=POLLIN}, {fd=44, events=POLLIN}, {fd=48, events=POLLIN}], 4, {tv_sec=59, tv_nsec=852000000}, NULL, 8) = 2 ([{fd=42, revents=POLLHUP}, {fd=44, revents=POLLHUP}], left {tv_sec=59, tv_nsec=751600696})
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7885, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
waitid(P_ALL, 0, {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7885, si_uid=1000, si_status=0, si_utime=0, si_stime=0}, WNOHANG|WEXITED|WNOWAIT, NULL) = 0
wait4(7885, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, {ru_utime={tv_sec=0, tv_usec=62039}, ru_stime={tv_sec=0, tv_usec=62094}, ...}) = 7885
write(49, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0W\362\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 152) = 152
close(49)                               = 0
waitid(P_ALL, 0, 0x7ffdc29bf3d0, WNOHANG|WEXITED|WNOWAIT, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = 2
ioctl(42, FIONREAD, [0])                = 0
read(42, "", 1)                         = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
close(42)                               = 0
ioctl(44, FIONREAD, [0])                = 0
read(44, "", 1)                         = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
close(44)                               = 0
ppoll([{fd=-1}, {fd=-1}, {fd=-1}, {fd=48, events=POLLIN}], 4, {tv_sec=59, tv_nsec=750000000}, NULL, 8) = 1 ([{fd=48, revents=POLLIN|POLLHUP}], left {tv_sec=59, tv_nsec=749999074})
read(48, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0W\362\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 152) = 152
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
close(48)                               = 0
close(41)                               = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1900, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1900, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1900, ...}) = 0
write(2, "18:10:29.736 [E]: VideoPlayer: u"..., 5618:10:29.736 [E]: VideoPlayer: unable to find mpv's PID

I just edited my username to be <username> for anonymity.

At first, the connect fails, due to mpv not running (ECONNREFUSED), then when I start mpv
we can se that there is no error for the connect:

connect(39, {sa_family=AF_UNIX, sun_path="/tmp/mpvsocket"}, 110) = 0

then we can see that accessing lsof is fine:

access("/usr/lib/cw/lsof", X_OK)        = 0

and then at the bottom:

write(2, "18:10:29.736 [E]: VideoPlayer: u"..., 5618:10:29.736 [E]: VideoPlayer: unable to find mpv's PID

Can anybody tell me what's wrong?
Any help / pointers / insults very welcome!

//Robert

7

(0 replies, posted in Using SVP)

I posted some time ago here: https://www.svp-team.com/forum/viewtopic.php?id=4277

I'm still having this same problem, now I've written a script that makes use of the svpflow libs,
however, at least /I/ am not able to get the same level of performance using those as I am(was)
w/ svp.

I'm still get the same results w/ svp, unable to find mpv's pid, I have re-installed the system, w/
similar results this time around, svp worked for a while, and then suddenly, doesnt.

So, what I wanted to ask was: is there any way I can just manually tell svp the pid of the mpv
process running that I want svp to 'manage'????

Also, I've got all the dependencies needed (including lsof) - it did work for some time til it didnt.

8

(7 replies, posted in Using SVP)

Hmm, it works as expected now, like I said smile everything is fine.

9

(7 replies, posted in Using SVP)

Well, should be so, yes.

https://aur.archlinux.org/packages/vapo … flow2-bin/
https://aur.archlinux.org/packages/vapo … -svpflow1/

Those are the packages I've got installed.

10

(7 replies, posted in Using SVP)

Ha!

I just changed that and got:

vapoursynth.Error: SVSuper: pel has to be 1 or 2 or 4

then I set pel to 1, and whollaaaaaa!

so, now the line says:

super_params='{"gpu":1,"pel":1}'

Thanks again good sir!

11

(7 replies, posted in Using SVP)

Hi,

After days of trying to get rid of the 'unable to find mps pid' problem ( https://www.svp-team.com/forum/viewtopic.php?id=4277 )
I figured I'd try using the SVPFlow plugins, https://www.svp-team.com/wiki/Manual:SVPflow .

Here's my script, basically stolen from here: https://www.svp-team.com/forum/viewtopi … 67&p=2

import vapoursynth as vs
core = vs.get_core(threads=5)

clip = video_in
clip = clip.resize.Bicubic(format=vs.YUV420P8)

super_params="{gpu:1}"
analyse_params="{}"
smoothfps_params="{rate:{num:5,den:2}}"

super  = core.svp1.Super(clip,super_params)
vectors= core.svp1.Analyse(super["clip"],super["data"],clip,analyse_params)
smooth = core.svp2.SmoothFps(clip,super["clip"],super["data"],vectors["clip"],vectors["data"],smoothfps_params, fps=container_fps)
smooth = core.std.AssumeFPS(smooth,fpsnum=smooth.fps_num,fpsden=smooth.fps_den)

smooth.set_output()

and heres the error:

[vapoursynth] Script evaluation failed:
[vapoursynth] Python exception: SVSuper: invalid 'params' syntax: * Line 1, Column 2
[vapoursynth]   Missing '}' or object member name
[vapoursynth] 
[vapoursynth] 
[vapoursynth] Traceback (most recent call last):
[vapoursynth]   File "src/cython/vapoursynth.pyx", line 1830, in vapoursynth.vpy_evaluateScript
[vapoursynth]   File "/home/bobby/.config/mpv/svpflow.py", line 11, in <module>
[vapoursynth]     super  = core.svp1.Super(clip,super_params)
[vapoursynth]   File "src/cython/vapoursynth.pyx", line 1722, in vapoursynth.Function.__call__
[vapoursynth] vapoursynth.Error: SVSuper: invalid 'params' syntax: * Line 1, Column 2
[vapoursynth]   Missing '}' or object member name
[vapoursynth] 
[vapoursynth] 

Any pointers, even RTFM ones (preferrably w/ a link to some actually relevant manual)
are *highly* welcome, I've spent too many days on this now, anything.

12

(4 replies, posted in Using SVP)

Same, I had it working and for the longest time it was smooth sailing and smiles all the way.

Then all of the sudden the AUR svp package doesnt wanna install https://aur.archlinux.org/packages/svp/
thats my comment the top one.

Everything is just the same as it was when it was working, only thing that is different is I used
the official installer from the svp site.

If I somehow get it working and actually find out what the problem was I'll post the solution here,
but chances are it'll just get fixed somehow and I'll be none the wiser.

Thanks for genuinely trying to help tho! Appreciated.

13

(4 replies, posted in Using SVP)

> lsof -Fp /tmp/mpvsocket
p11636
f10
f11

works as expected, still, unable to find mpvs pid.

14

(4 replies, posted in Using SVP)

So,

I've got mpv.conf setup w/ input-ipc-server=/tmp/mpvsocket and SVPManager running, and I've got lsof installed version 4.89.

It doesnt matter if I open the video files w/ svpmanager or mpv, I *still* get the unable to find mpv's pid message in the log,
and, obviously, no motion smoothing. This is starting to drive me nuts, I've got no clue what I should try next.

I've got everything setup the way it should, mpv compiled w/ vapoursynth etc. I'm happy to provide any output or whatever,
just, no other relevant error message then the unable to find mpv's pid.

I'm using archlinux and svp4linux latest version (4.2.0.122) and mpv 0.27.0.