View Full Version : Need help to get started
karasu
24th October 2016, 18:39
Hi,
I just installed VpourSynth on linux and I wish to use nnedi3, but I need help.
I tried the 'getting started' script in the official doc and it's working, I used vspipe with ffplay.
now I want to use nnedi3 as deinterlacer, however I can't load the nnedi3 plugin.
I installed nnedi3_weights from the PPA
How should I load nnedi3 in my script?
I read through http://www.vapoursynth.com/doc/autoloading.html but I don't understand what I have to do to have autoloading working.
Also, afterwards I'd like to test the nnedi3 2x scaler on some PNG. I believe VapourSynth can be used with imagemagick, can you help me to write a script for that?
Thanks
jackoneill
24th October 2016, 21:58
What happens when you try to load libnnedi3.so?
import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin("/some/place/libnnedi3.so")
You don't have to do anything to make autoloading work. It works out of the box. You can configure the folders where VapourSynth looks for plugins when autoloading them, if you want.
You can just copy your plugins to the same folder where libvivtc.so is, but that probably requires root. Or you can set up a folder in your own $HOME, as described in the document you linked.
import vapoursynth as vs
core = vs.get_core()
# It will be core.imwrif.Read, if your ImageMagick is configured with HDRI.
image = core.imwri.Read("/some/place/image.png")
image = core.nnedi3.nnedi3(image, field=0, dh=True)
image = core.std.Transpose(image)
image = core.nnedi3.nnedi3(image, field=0, dh=True)
image = core.std.Transpose(image)
After this you may want to use a resizer to shift the image a bit, because nnedi3 doesn't preserve the center.
nnedi3_rpow2 (http://forum.doom9.org/showthread.php?t=172652) takes care of the shift for you, but you have to import the script.
karasu
25th October 2016, 08:33
Thanks jackoneill,
I thought nnedi3 was included, so I have to compile it from here?
https://github.com/jpsdr/NNEDI3
Are_
25th October 2016, 09:36
No, from here: https://github.com/dubhater/vapoursynth-nnedi3
http://www.vapoursynth.com/doc/pluginlist.html is a good place to look for plug-ins and scripts.
karasu
25th October 2016, 19:17
Thanks for the help.
I cloned the repo and tried to compile vapoursynth-nnedi3 :
http://pastebin.com/Tmq78Fxi
It did not produce a libnnedi3.so, so I tried to load the libnnedi3.la in my script
vapoursynth.Error: Failed to load /home/karasu/Dev/vapoursynth-nnedi3/libnnedi3.la. Error given: /home/karasu/Dev/vapoursynth-nnedi3/libnnedi3.la: invalid ELF header
Was something wrong during compilation?
also as a side note :
- in VSEdit ctrl-s does not work, I have to manually select file>save script
- the ~/ shortcut for home directory does not work in the scripts, absolute path seems to be mandatory
Mystery Keeper
25th October 2016, 19:55
Thanks for the help.
I cloned the repo and tried to compile vapoursynth-nnedi3 :
http://pastebin.com/Tmq78Fxi
It did not produce a libnnedi3.so, so I tried to load the libnnedi3.la in my script
vapoursynth.Error: Failed to load /home/karasu/Dev/vapoursynth-nnedi3/libnnedi3.la. Error given: /home/karasu/Dev/vapoursynth-nnedi3/libnnedi3.la: invalid ELF header
Was something wrong during compilation?
also as a side note :
- in VSEdit ctrl-s does not work, I have to manually select file>save script
- the ~/ shortcut for home directory does not work in the scripts, absolute path seems to be mandatory
Ctrl+S does work. But you need to press it in the edit window, not in preview or any other dialog.
jackoneill
25th October 2016, 20:01
Was something wrong during compilation?
Everything went well.
ls .libs
karasu
25th October 2016, 21:51
.libs
OK, hidden folder. Now it's working!
Actually I had an error message telling me nnedi3 is already loaded. So I don't need to declare the path. I guess it was effectively installed from the PPA.
Thanks for your help!
Ctrl+S does work. But you need to press it in the edit window, not in preview or any other dialog.
Ubuntu 16.04, VapourSynth Editor r8, ctrl-s does nothing when my cursor is in the editor. maybe it's a unity/QT5 thing?
Mystery Keeper
25th October 2016, 22:22
Ubuntu 16.04, VapourSynth Editor r8, ctrl-s does nothing when my cursor is in the editor. maybe it's a unity/QT5 thing?Is "Save" action hotkey set to Ctrl+S in your settings?
karasu
26th October 2016, 07:54
Is "Save" action hotkey set to Ctrl+S in your settings?
yes, in the file menu, Ctrl-S is written after "Save file"
Ctrl-S works fine in other applications.
Mystery Keeper
26th October 2016, 13:16
yes, in the file menu, Ctrl-S is written after "Save file"
Ctrl-S works fine in other applications.In Mint 18 Cinnamon everything works fine. Sorry, but no idea what might be wrong. Do you get any Qt messages in the log when you press Ctrl+S?
karasu
29th October 2016, 14:34
It's the same with Avidemux (QT5). And nothing in the console when I hit ctrl-s. So I guess it's a Ubuntu/Unity/Qt5 thing.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.