Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
27th December 2017, 23:07 | #1 | Link | |
Registered User
Join Date: Nov 2009
Posts: 327
|
How to run Avisynth scripts within VapourSynth
README:
Quote:
Code:
import vapoursynth as vs core = vs.get_core() red = core.std.BlankClip(color=[255, 0, 0]) green = core.std.BlankClip(color=[0, 255, 0]) # Before executing the Avisynth script, "r" and "g" are set to the bound clips. c = core.avsw.Eval("Merge(r, g)", clips=[red, green], clip_names=["r", "g"]) c.set_output() Last edited by Stephen R. Savage; 13th January 2018 at 18:48. |
|
28th December 2017, 01:53 | #2 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
NICE!!
Code:
c = core.std.BlankClip(color=[255, 0, 0]) c = core.avsw.eval('AddAutoloadDir("D:\\AvisynthRepository\\SCRIPTS") mpeg2source("D:\\01.d2v") AnimeIVTC(mode=1)', clips=[c], clip_names=["last"]) clip=c This avs script crashed via Avisource and with avfs.exe, but avsproxy is stable. Two questions: - Is it possible to use avisynth x64 with this filter? - Would be a "portable" avisynth possible as long as avisynth.dll is in the same folder? (or via path parameter in avsw)
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 28th December 2017 at 01:56. |
28th December 2017, 02:15 | #3 | Link | ||
Registered User
Join Date: Nov 2009
Posts: 327
|
Quote:
Quote:
Last edited by Stephen R. Savage; 28th December 2017 at 02:18. |
||
28th December 2017, 16:53 | #4 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Quote:
And loading my sample script via VFW aka Avisource is not possible -> instant crash in VS ( No problems in Virtualdub-64). That's why I asked if x64 would possible.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
|
28th December 2017, 18:36 | #5 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Instant crash? Does it output any error like bad mmx state if you try to output it with vspipe?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
21st May 2018, 18:05 | #7 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
Actually, AVISource only allows passing clips (including avs scripts), and you can call the clip anywhere in the script Plugins are loaded either through this avsproxy plugin, or through avs.LoadPlugin through the compatibility wrapper http://www.vapoursynth.com/doc/funct...pluginavs.html |
|
23rd May 2018, 18:27 | #8 | Link | ||
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Quote:
I mean AviSource cannot be inserted in the middle of a VapourSynth task because it cannot take any clip to feed into the Avisynth script. If I want to run Denoise in VapourSynth, Deshaker in Avisynth, and frame interpolation in VapourSynth, this can only be done using this avsproxy, not AviSource. Quote:
__________________
FrameRateConverter | AvisynthShader | AvsFilterNet | Natural Grounding Player with Yin Media Encoder, 432hz Player, Powerliminals Player and Audio Video Muxer Last edited by MysteryX; 23rd May 2018 at 18:30. |
||
28th December 2017, 14:46 | #9 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
Holy smoke, thank you very much! I've been waiting to get my hands on SmoothD2 in 64-bit Vapoursynth since we are still waiting for a proper port, and with this tool, it's possible
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
28th December 2017, 19:44 | #10 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
No output. Tested like this with R41-test4
Code:
.\VSPipe.exe -i 'D:\Test.vpy' . Code:
clip = core.avisource.AVISource(r'D:\ivtc.avs') clip.set_output() Code:
AddAutoloadDir("D:\AvisynthRepository\SCRIPTS") mpeg2source("D:\01\VTS_01_CHAPTER_03_1.d2v") tfm(mode=6, PP=5, slow =2, d2v="D:\01\VTS_01_CHAPTER_03_1.d2v") <- bad boy But this forced me to switch to vivtc, and after some conditionalDeintStillCombed magic I got similar/better results.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 28th December 2017 at 19:47. |
28th December 2017, 20:27 | #11 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
28th December 2017, 22:26 | #12 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Here is my x64 r2544 avs folder (plugins, scripts & sample script)
LINK //EDIT Same crash with r2580
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 28th December 2017 at 22:34. |
29th December 2017, 17:47 | #13 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
30th December 2017, 19:49 | #14 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
30th December 2017, 20:22 | #15 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Code:
vapoursynth.Error: Avisynth read error: CAVIStreamSynth: System exception - Access Violation at 0x000001D41A5DB6D0 2017-12-30 20:16:58.862 Core freed but 460800 bytes still allocated in framebuffers Core freed but 460800 bytes still allocated in framebuffers 2017-12-30 20:17:05.392 Bad MMX state detected when creating new core
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
30th December 2017, 20:29 | #16 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
29th December 2017, 00:01 | #17 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Thx, woking now. Loading an external avisynth.dll too!
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
30th December 2017, 20:37 | #18 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Working now. I had an old x64 TIVTC.dll from 2010, don't know why :-/
No problems with: https://github.com/pinterf/TIVTC/releases EDIT: I guess I took it from this (outdated) list http://avisynth.nl/index.php/AviSynth%2B_x64_plugins EDIT2: But it's still interessting that it only crashes in VS and not in VdubMod
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 30th December 2017 at 20:48. |
7th January 2018, 11:07 | #19 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
I should be able to pass a VS clip to Avisynth, right?
Because this works Code:
c = core.avsw.eval('blankclip() Subtitle("Hello world!") ') Code:
c = core.std.BlankClip(color=[255, 0, 0]) c = core.avsw.eval('Subtitle("Hello world!") ', clips=[c], clip_names=["last"])
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
8th January 2018, 01:27 | #20 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
The original from Soureforge works, also 2.6 (MT) from here https://forum.doom9.org/showthread.php?t=148782
But the colors are shifted https://www.dropbox.com/s/7lft4ek963...color.PNG?dl=0 AVS+ would be nice for 16bit support (if possible)
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 8th January 2018 at 01:29. |
Thread Tools | Search this Thread |
Display Modes | |
|
|