View Full Version : VapourSynth Editor
Pages :
1
2
3
4
5
6
7
8
[
9]
10
11
12
13
14
15
16
lansing
8th August 2017, 06:21
I downloaded them and put them into the "core/plugins" folder, but still it said the namespace doesn't exist.
imw = core.imwri.Write(clip, imgformat="PNG", filename=r"F:\temp_img_w\image%06d.png", firstnum=1)
UPDATE:
Okay it works now, don't know why it took a few minutes before it start working.
lansing
8th August 2017, 06:55
I saw another bug, I turned "character typed to start autocompletion" to 0, but it gives me a selection even on a blank space, and there's only the "core" selection to choose from, which is unnecessary.
lansing
10th August 2017, 18:33
Hi, when I use the scxvid (https://github.com/dubhater/vapoursynth-scxvid)plugin the program just load for a while and terminated.
clip = core.scxvid.Scxvid(clip, use_slices=True)
for i in range (len(clip)):
frame = clip.get_frame(i)
if frame.props._SceneChangePrev == 1:
b = 8
clip.set_output()
lansing
11th August 2017, 16:58
Reporting on another bug, when I create a new script and click save, nothing happened instead of having the save dialog box popping up.
Mystery Keeper
11th August 2017, 18:42
Reporting on another bug, when I create a new script and click save, nothing happened instead of having the save dialog box popping up.Noted.
blaze077
23rd August 2017, 23:52
Could you add a feature to import bookmarks from a file? It would help with adding bookmarks at scenechanges or something of that sort.
Mystery Keeper
24th August 2017, 05:20
Could you add a feature to import bookmarks from a file? It would help with adding bookmarks at scenechanges or something of that sort.I'll think about. Bookmarks are written into a text (.bookmarks) file along the script. You can just edit that file and reload preview.
blaze077
24th August 2017, 06:21
I'll think about. Bookmarks are written into a text (.bookmarks) file along the script. You can just edit that file and reload preview.
That works out for me. Thanks.
lansing
2nd September 2017, 08:22
Hi I would like a request a "find" function, it's giving me headaches trying to delete/rename something through a long script.
Mystery Keeper
2nd September 2017, 15:46
Hi I would like a request a "find" function, it's giving me headaches trying to delete/rename something through a long script.Planned. Sorry, but the progress is slow right now. My work takes most of my energy and time.
lansing
8th September 2017, 13:53
My workflow requires me to load in two videos and compare them side by side on every frame, and after a while the memory usage piled up reaching my max memory, but then closing the preview window didn't flush it, I have to close the program entirely and reopen it in order to continue.
george84
17th September 2017, 08:19
The following script will crash Editor. Newest version.
import vapoursynth as vs
core = vs.get_core()
clipsRGB = core.imwrif.Read("C:/Users/Walter/Documents/SMIL/BSG23/testsuite/OLED/vapoursynth/colorcheckerchart4k.tif")
clipsRGB = clipsRGB.text.ClipInfo()
clipRec2020 = core.imwrif.Read("C:/Users/Walter/Documents/SMIL/BSG23/testsuite/OLED/vapoursynth/colorcheckerchart4kElleV4Big2.tif")
clipsRGB = core.resize.Bicubic(clipsRGB, format=vs.RGB24, primaries_s="709", transfer_in_s="601")
clipRec2020 = core.resize.Bicubic(clipRec2020, format=vs.RGB24, primaries_s="2020", transfer_in_s="2020_10")
d = core.std.MakeDiff(clipsRGB, clipRec2020)
da = core.std.Levels(d, min_in=126, max_in=130, gamma=1, min_out=64, max_out=192, planes=[0,1,2])
da.set_output()
It seems to happen in first resize.
Mystery Keeper
22nd September 2017, 11:52
R17 is couple of bugs (context menu related) away from release. The jobs queue is now handled by server, which comes with a controlling "watcher" and supports whitelist based remote control. Now you don't need to keep editor windows open while your jobs are processed. And less GUI overhead means even more processing speed. Instant encoding is back too.
Those of you who build it from source - please test.
Linux Mint users might experience problems with Watcher tray icon. The problem does not appear if you run Watcher as root. If anyone knows how to fix it - please tell.
If you closed Watcher into tray and can't get it back - run it again. Instead of running new instance, the existing window will show.
And here is a Windows build. (https://bitbucket.org/mystery_keeper/vapoursynth-editor/downloads/VapourSynthEditor-64bit-2017-09-22.7z)
Are_
22nd September 2017, 12:26
It's not yet tagged in the main repo.
Mystery Keeper
22nd September 2017, 12:56
It's not yet tagged in the main repo.
Because it is not released yet. Since changes are big, I'd like users to test.
I've just stomped out the context menu bugs and updated the test build.
Are_
22nd September 2017, 18:50
Oh yep, I missread you.
lansing
22nd September 2017, 20:36
The right click control still feel kind of weird. When I highlight the selection and right click, the selection in the background should remain highlighted. And the context menu for the selection should only be selectable if I right click on top of the selection, it shouldn't be available if I right click on anywhere else in the editor.
Another issue with selection I found, when I double click on a word and drag very fast to the right, the highlight always misses the last character of the line, for example
core = vs.get_core(accept_lowercase=True)
It always missed the ")" at the end.
Mystery Keeper
22nd September 2017, 22:02
The right click control still feel kind of weird. When I highlight the selection and right click, the selection in the background should remain highlighted. And the context menu for the selection should only be selectable if I right click on top of the selection, it shouldn't be available if I right click on anywhere else in the editor.
Another issue with selection I found, when I double click on a word and drag very fast to the right, the highlight always misses the last character of the line, for example
core = vs.get_core(accept_lowercase=True)
It always missed the ")" at the end.
The text doesn't get deselected. Just the background colour seems to change on the editor loosing focus. But I checked with other editors, and some of them do what Qt's editor doesn't. They reset cursor if right click is made outside the selection. I don't know if I should adopt that behavior.
Your second problem I can't reproduce.
lansing
22nd September 2017, 23:34
The text doesn't get deselected. Just the background colour seems to change on the editor loosing focus. But I checked with other editors, and some of them do what Qt's editor doesn't. They reset cursor if right click is made outside the selection. I don't know if I should adopt that behavior.
That's what every editor do, including the browser.
Your second problem I can't reproduce.
Double click on the first word, hold on the left button, then drag very quickly to the right to highlight the line, the selection will always break before the last character that wasn't a part of a word.
# this works normally
core = vs.get_core(accept_lowercase=True
# this will break before ")"
core = vs.get_core(accept_lowercase=True)
# this will break before "."
core = vs.get_core(accept_lowercase=True.
Are_
22nd September 2017, 23:35
I finally got to test it on Gentoo Linux (KDE Plasma desktop) and nothing related to the jobs works. What can I do to help you debug it?
2017-09-23 00:30:43.613
Could not start job server watcher.
Mystery Keeper
23rd September 2017, 00:26
That's what every editor do, including the browser.
Firefox edit boxes don't. I might try to fix it in vsedit, but that's a Qt control limitation, not a bug.
Double click on the first word, hold on the left button, then drag very quickly to the right to highlight the line, the selection will always break before the last character that wasn't a part of a word.
# this works normally
core = vs.get_core(accept_lowercase=True
# this will break before ")"
core = vs.get_core(accept_lowercase=True)
# this will break before "."
core = vs.get_core(accept_lowercase=True.
Reproduced it. Once again, that's a Qt control limitation. Might call it a bug. I probably can't fight it at all without committing to Qt code. Also, it's a very minor and avoidable nuisance. I'm inclined to ignore it.
I finally got to test it on Gentoo Linux (KDE Plasma desktop) and nothing related to the jobs works. What can I do to help you debug it?
2017-09-23 00:30:43.613
Could not start job server watcher.
Have you built the job server and the watcher? You need to build the whole parent project, not just vsedit. Also note that you need QtNetwork and QtWebSocket components to build it now.
Mystery Keeper
23rd September 2017, 16:40
R17 is out:
-BUGFIX: Blank preview on variable size video with fixed zoom ratio.
-BUGFIX: Saving new script.
-BUGFIX: Invalid context menu for editor.
-BUGFIX: Context menu behavior in preview.
-New multi-app architecture: editor, job server, server watcher.
You can now encode your script with a familiar dialog or enqueue an encoding job on job server.
Server Watcher acts both like a GUI frontend to server and as a bridge between the editor and various servers.
Server itself has no GUI, which makes it process the jobs faster.
Only one watcher instance can run at time, and you can connect it to remote server.
By default watcher starts or connects to local server.
Remote server only lets to edit jobs from whitelisted addresses.
Same goes for editing the white list. Initially only local watcher can do that.
JOBS CAN BE USED TO RUN ARBITRARY PROCESSES AND SHELL COMMANDS ON YOUR PC. ALLOWING REMOTE CONNECTIONS PUTS YOUR PC IN DANGER.
VS_Fan
11th October 2017, 02:07
The 32bit version gives me: "The application was unable to start correctly (0xc000007b). Click OK to close the application", both with installed and portable versions of VapourSynth R39.
V16 works fine with VS R39, installed and portable
Web search results coincide on "0xc000007b error usually comes from mixing up 32bit environment with 64bit one. For example 32bit application loads a 64bit dll causing 0xc000007b error (http://www.tomshardware.com/answers/id-1991597/windows-bit-error-0xc000007b.html).
Could the cause be that some 64bit libs were erroneously included in the 32bit package ?
Mystery Keeper
11th October 2017, 05:21
The 32bit version gives me: "The application was unable to start correctly (0xc000007b). Click OK to close the application", both with installed and portable versions of VapourSynth R39.
V16 works fine with VS R39, installed and portable
Web search results coincide on "0xc000007b error usually comes from mixing up 32bit environment with 64bit one. For example 32bit application loads a 64bit dll causing 0xc000007b error (http://www.tomshardware.com/answers/id-1991597/windows-bit-error-0xc000007b.html).
Could the cause be that some 64bit libs were erroneously included in the 32bit package ?
Indeed. Qt seems to has deployed wrong distribution. I'll fix it later today.
Update: Fixed.
VS_Fan
12th October 2017, 04:42
Thank you. It's working fine
ale_x
13th October 2017, 10:16
Hey guys!
First of all this steps I did it in my laptop (Win 8.1 64) and everything working perfectly , but When I did that in my Server (wind server 2012 - 64) I got an error
Fisrt I installed "python-3.6.2-amd64-webinstall" after that "python-3.6.2-amd64-webinstall_run_after_installed" + py scripts
Path : C:\Users\xxxxxxx\AppData\Local\Programs\Python\Python36
my py scripts : https://i.imgur.com/YhZLWam.png
following VapourSynth-R38 + dll files
Path: C:\Program Files (x86)\VapourSynth
my dll files : https://i.imgur.com/Tc9R7Qg.png
When I opened my script with vsedit.exe program I got this three message
https://i.imgur.com/5zN69nn.png
https://i.imgur.com/ETC0pt7.png
https://i.imgur.com/aBjirhe.png
ٍI ignored all this messages and opened my vpy script with vsedit
from vapoursynth import core
import vapoursynth as vs
core = vs.get_core()
#core.std.LoadPlugin(path=r'C:\Program Files (x86)\VapourSynth\plugins64\KNLMeansCL.dll')
#core.std.LoadPlugin(path=r'C:\Program Files (x86)\VapourSynth\plugins64\KNLMeansCL.dll')
#core.std.LoadPlugin(path=r'C:\Program Files (x86)\VapourSynth\plugins64\eedi3.dll')
import fvsfunc as fvf
import mvsfunc as mvf
import havsfunc as hvf
src = core.ffms2.Source("")
src = src.std.AssumeFPS(fpsnum=24000,fpsden=1001)
src = mvf.Depth(src, 16)
merged = merged.std.Trim(3855,3860)
merged.set_output()
This is the error that I got
Failed to evaluate the script:
Python exception: No attribute with the name <<knlm>> exists. Did you mistype a plugin namespace?
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1810, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:36455)
File "C:/Users/xxxxx/Desktop/xxxxx/DC_loslss.vpy", line 17, in
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python36\lib\site-packages\kagefunc.py", line 383, in hybriddenoise
for plane in planes[1:]]
File "C:\Users\alkoon\AppData\Local\Programs\Python\Python36\lib\site-packages\kagefunc.py", line 383, in
for plane in planes[1:]]
File "src\cython\vapoursynth.pyx", line 1524, in vapoursynth._CoreProxy.__getattr__ (src\cython\vapoursynth.c:31934)
File "src\cython\vapoursynth.pyx", line 1379, in vapoursynth.Core.__getattr__ (src\cython\vapoursynth.c:29142)
AttributeError: No attribute with the name knlm exists. Did you mistype a plugin namespace?
So I used
core.std.LoadPlugin('C:\Program Files (x86)\VapourSynth\plugins64\KNLMeansCL.dll')
But I got error again
Failed to evaluate the script:
Python exception: Failed to load C:\Program Files (x86)\VapourSynth\plugins64\KNLMeansCL.dll. GetLastError() returned 127.
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1810, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:36455)
File "C:/Users/xxxxx/Desktop/xxxxx/DC_loslss.vpy", line 5, in
#core.std.LoadPlugin('C:\Program Files (x86)\VapourSynth\plugins64\KNLMeansCL.dll')
File "src\cython\vapoursynth.pyx", line 1702, in vapoursynth.Function.__call__ (src\cython\vapoursynth.c:34595)
vapoursynth.Error: Failed to load C:\Program Files (x86)\VapourSynth\plugins64\KNLMeansCL.dll. GetLastError() returned 127.
its works in my laptop, but not in server I don't know why !_!
Thanks in advance.
(Excuse my poor eng).
Are_
13th October 2017, 14:50
Something wrong with your opencl install, either the minimum required version for this plug-ins to work is not supported by your car or bad driver install. Try reinstalling your graphic drivers and checking opencl versions.
ale_x
15th October 2017, 20:34
Something wrong with your opencl install, either the minimum required version for this plug-ins to work is not supported by your car or bad driver install. Try reinstalling your graphic drivers and checking opencl versions.
Actually my server don't have graphic drivers >_<
anyway many thanks for the prompt reply.
:thanks:
Mystery Keeper
28th October 2017, 21:06
R18 is out:
-BUGFIX: Crash on encode dialog initialization error.
-BUGFIX: No error in log on encode dialog initialization error.
-Import chapter files as preview bookmarks (by brainvlad@gmail.com).
I'm sick of fighting with Qt auto-distribution, so no more 32 bit builds.
lansing
28th November 2017, 08:29
Hi I requesting a feature to save bookmarks to text. I trying to record all key frames of a clip, so having a feature to do it without manually typing out every single key frames would save me tons of time.
Mystery Keeper
28th November 2017, 12:22
Hi I requesting a feature to save bookmarks to text. I trying to record all key frames of a clip, so having a feature to do it without manually typing out every single key frames would save me tons of time.
Bookmarks ARE in a text file.
<path to your script>.bookmarks
lansing
28th November 2017, 16:14
Bookmarks ARE in a text file.
<path to your script>.bookmarks
Oh I saw it now, didn't notice that it auto saves a bookmark file in the same location as the script.
Can you also add a couple of seconds of feedback in the status bar like "frame 123 bookmarked" after an action? Because I'm doing it with hotkey, and when I do it for a long period of time, I would start to lose concentration on whether I hit the right hotkey.
ChaosKing
28th November 2017, 17:20
Why don't you automate the key frame extraction? You could save all I-frames to a txt file, see FrameProps http://www.vapoursynth.com/doc/functions/frameprops.html
lansing
28th November 2017, 17:38
Why don't you automate the key frame extraction? You could save all I-frames to a txt file, see FrameProps http://www.vapoursynth.com/doc/functions/frameprops.html
Because all the scene change detection filter sucks.
Mystery Keeper
28th November 2017, 17:53
Because all the scene change detection filter sucks.
Keyframes and scene changes are different things.
lansing
28th November 2017, 19:07
Keyframes and scene changes are different things.
Either way, they're not accurate enough. FrameProps will miss I-frame on blending transitions or scenes with similar color on the corner of the frames. So the best way to get all the key frames is manually recording them.
DJATOM
28th November 2017, 19:48
lansing
bookmarks file consists from comma-separated numeric values (frame numbers), just parse them with, say, python and do your stuff :)
lansing
3rd December 2017, 18:06
Aside from the action feedback status bar, I would also like to request an option to display all bookmarks in a list so I can jump around between them. It's not navigable when I have hundreds of them.
https://i.imgur.com/zRnNxSE.png
Mystery Keeper
3rd December 2017, 19:22
Aside from the action feedback status bar, I would also like to request an option to display all bookmarks in a list so I can jump around between them. It's not navigable when I have hundreds of them.
https://i.imgur.com/zRnNxSE.png
You can jump around between the bookmarks. Either by CTRL+clicking the timeline, or by CTRL+arrows while in the preview dialog. And you don't need to keep every panel open in the preview dialog. Some of the buttons hide/show them.
lansing
3rd December 2017, 20:40
You can jump around between the bookmarks. Either by CTRL+clicking the timeline, or by CTRL+arrows while in the preview dialog. And you don't need to keep every panel open in the preview dialog. Some of the buttons hide/show them.
It's hard to click on the right spot on that tiny time bar...
And ctrl+left and right are overlapped by another shortcut action, I got warning message "Qt warning: QAction::eventFilter: Ambiguous shortcut overload: Ctrl+Left".
Mystery Keeper
3rd December 2017, 20:48
It's hard to click on the right spot on that tiny time bar...
And ctrl+left and right are overlapped by another shortcut action, I got warning message "Qt warning: QAction::eventFilter: Ambiguous shortcut overload: Ctrl+Left". That means you have two actions bound to Ctrl+left shortcut. Go into your hotkey settings and fix it.
lansing
3rd December 2017, 21:46
That means you have two actions bound to Ctrl+left shortcut. Go into your hotkey settings and fix it.
I checked it, it was conflicting with the "time: step forward/back" action, but I'm pretty sure that I haven't touch these settings before. It should be settings of the older version that got carry over when I upgraded the program and got merged with the new settings, therefore the conflict.
How do I reset default for the hotkey?
Mystery Keeper
3rd December 2017, 23:55
I checked it, it was conflicting with the "time: step forward/back" action, but I'm pretty sure that I haven't touch these settings before. It should be settings of the older version that got carry over when I upgraded the program and got merged with the new settings, therefore the conflict.
How do I reset default for the hotkey?
That's right. I changed few hotkeys, and you had old settings carry over. I should put reset to default options in few sections. For now you can edit "vsedit.config" file and simply erase the "hotkeys" section. It is either in the application folder or in C:\Users\<your user>\AppData\Local\ on Windows. Somewhere in the home folder on Linux.
lansing
6th December 2017, 17:59
Is there an option to save and load bookmarks? I don't want to copying and pasting every time I make a change to a bookmark text that is not the default bookmark file.
Mystery Keeper
6th December 2017, 20:24
Is there an option to save and load bookmarks? I don't want to copying and pasting every time I make a change to a bookmark text that is not the default bookmark file.There isn't. I'll add it in future.
lansing
7th December 2017, 06:07
I was saving a snap shot of the same frame from both adobe premiere and vs editor, both to png. The premiere one was in 32-bit, and the vs editor one was 24-bit. But the vs editor one is more than 2 times bigger in filesize, why is there a big difference?
poisondeathray
7th December 2017, 07:16
I was saving a snap shot of the same frame from both adobe premiere and vs editor, both to png. The premiere one was in 32-bit, and the vs editor one was 24-bit. But the vs editor one is more than 2 times bigger in filesize, why is there a big difference?
1) maybe some process differences contributing . e.g. different chroma upscaling method
2) maybe poor png compression algorithm. I tested avspmod png and it was 5x smaller. The vsedit produced png could be reduced in less than half by running it through ffmpeg to recompress as png . Using pngcrush or other optimized png compressors could probably reduce it more
Mystery Keeper
7th December 2017, 07:51
vsedit saves the preview frame (after conversion) to PNG with Qt standard method. This fact won't change. You can save as WebP if you want.
lansing
8th December 2017, 06:09
Hi is there any update on this problem (https://forum.doom9.org/showthread.php?p=1817822#post1817822)?
My editing requires me to reload the script and preview so often, and the program is not flushing memory, so after 10+ reloads the program piled up to 10+G of ram and ran out of memory.
Mystery Keeper
8th December 2017, 07:35
Hi is there any update on this problem (https://forum.doom9.org/showthread.php?p=1817822#post1817822)?
My editing requires me to reload the script and preview so often, and the program is not flushing memory, so after 10+ reloads the program piled up to 10+G of ram and ran out of memory.
Me and Myrsloik tried to root out that problem, but it doesn't seem to be in vsedit or VapourSynth. Probably some plugins don't free memory properly. There's nothing we can do about it.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.