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. |
10th September 2021, 10:59 | #4421 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
Plugins: 99% no change needed Scripts: Minor changes needed if you used the deprecated get_core() function or YCOCG that's all removed. There are a few more smaller differences but a 2 minute change at most and many scripts are already adapted for it. VSScript users: Most of them use the COMPAT* formats for output but they're removed. The rest is completely compatible. Moral of the story: Planar formats FTW.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
10th September 2021, 22:34 | #4423 | Link | |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
Quote:
Code:
import vapoursynth as vs import muvsfunc as muf import mvsfunc as mvf core = vs.core orig = core.ffms2.Source(source=r"c:\zopti\strangerthings_s02e01.avi") alternate = core.resize.Bicubic(orig, width=1280, height=640, filter_param_a=-0.7, filter_param_b=0.35) alternate = core.resize.Bicubic(alternate, width=orig.width, height=orig.height, filter_param_a=0, filter_param_b=0.5) orig = core.resize.Bicubic(orig, format=vs.RGB24, matrix_in_s='709') alternate = core.resize.Bicubic(alternate, format=vs.RGB24, matrix_in_s='709') clp = muf.MDSI(orig, alternate) clp = core.text.FrameProps(clp) clp.set_output() R53 shows MDSI score 0.211945 R54 shows MDSI score 127114388.903713 There are several frames where this happens.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
10th September 2021, 22:53 | #4424 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Even simpler. I get also very high, almost random, numbers. Tested with R55.
Code:
clip=mvf.ToRGB(clip) clip = muf.MDSI(clip, clip.text.Text("A")) clip = core.text.FrameProps(clip) EDIT It's OK with core.std.SetMaxCPU("none")
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 10th September 2021 at 22:57. |
10th September 2021, 23:08 | #4425 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
If I replace the 3 expr lines https://github.com/WolframRhodium/mu...sfunc.py#L4713
core.std.Expr([ix_l1, iy_l1], ['x dup * y dup * + sqrt']) with something else (or the convolution line from above) , then the score shows the same value with/without cpu none.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
16th September 2021, 16:18 | #4426 | Link | ||||
Registered User
Join Date: Jul 2021
Posts: 26
|
Why does vspipe produce different errors based on the order of the script? This is a nightmare to debug...
Two scripts, the content is the same only the order is different. Both scripts "work", I can preview them in VSEdit, but vspipe errors. Quote:
Quote:
Quote:
Quote:
Last edited by Quadratic; 16th September 2021 at 16:20. |
||||
16th September 2021, 16:19 | #4427 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Probably memory corruption somewhere in rgsf.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
17th September 2021, 07:40 | #4429 | Link | ||
Registered User
Join Date: Jul 2021
Posts: 26
|
Thank you for the prompt responses, but this does not give me an answer.
Running this script gives me an attribute error for ffms2 Quote:
Quote:
Unfortunately, there are some modules which contain functions that rely on rgsf.RemoveGrain/Repair such as https://lvsfunc.encode.moe/en/latest/ Maybe I can ask them to remove them but I don't know if there's any replacement filters which could be used in their stead. Last edited by Quadratic; 17th September 2021 at 07:55. |
||
18th September 2021, 02:58 | #4430 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,374
|
Quote:
vspipe --info script.vpy gives no error message Pipe into ffmpeg is also ok. eg. 1st script, no error message Code:
import vapoursynth as vs core = vs.core core.std.LoadPlugin(r'PATH\RGSF_x64.dll') clip = core.std.BlankClip(format=vs.RGBS) clip2 = core.ffms2.Source(r'PATH\test.gif') rg = core.rgsf.RemoveGrain(clip, mode=1) rg.set_output() Code:
vspipe script.vpy - | ffmpeg -f rawvideo -pix_fmt gbrpf32le -s 640x480 -r 24 -i - -an -f null NUL Last edited by poisondeathray; 18th September 2021 at 03:04. |
|
19th September 2021, 07:22 | #4431 | Link |
Registered User
Join Date: Jul 2021
Posts: 26
|
I noticed that all third-party plugins were now broken, I spent the entire night removing everything Vapoursynth related from my system (scorched earth) and reinstalling everything.
Things are working again, including core.rgsf.RemoveGrain. I still do not know the root cause. Thanks and apologies for my behavior. |
21st September 2021, 09:42 | #4432 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
New release. Now the API4 builds are the normal builds. Audio support and performance for everyone!
Also windows 7 support is back since you can use both python 3.8 and 3.9 now. Full blog post with the changes here. For the more conservative of you there's R55-API3 which is the same as R54 with a few bug fixes. Have fun reporting bugs.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
22nd September 2021, 06:21 | #4433 | Link |
Registered User
Join Date: Dec 2014
Posts: 28
|
It doesn't seem like imwri is included in vsrepo, nor is it included with the R55 build so how can we get it exactly?
Edit: As a temporary solution, I copied the imwri binary from R54 API4 test1 build. Last edited by Izuchi; 22nd September 2021 at 06:30. |
22nd September 2021, 07:38 | #4434 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
Alternatively someone could use mingw/cross compile a single dll and contribute that. Simply grab it from the R55 api3 portable archive if you really need it for now.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
22nd September 2021, 13:14 | #4435 | 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 |
|
23rd September 2021, 09:06 | #4436 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
@Myrsloik Could you check if the vsrepo addgrain commit is the "correct" way of upgrading a plugin to hybrid api4 / api3 releases?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
23rd September 2021, 09:10 | #4437 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
https://github.com/vapoursynth/vsrep...a1ea4af78360c4
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
23rd September 2021, 09:18 | #4438 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Thx. Kinda missed the example package.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
23rd September 2021, 13:49 | #4439 | Link |
Registered User
Join Date: Jan 2015
Posts: 14
|
Hm. OK so after a bit of thrashing around creating new meson build systems for eedi3, miscfilters and removegrain, and diking out vs.YCOCG and vs.COMPAT from everywhere, I've tried current master out (commit ae11137cdf4605) with my own slightly-hacked-about copy of the wonderfully effective, unfortunately long-vanished-from-the-net G41Fun.RemoveGrain2. It seems to work!
But... I am sorry to report that rather than being 10% faster, with this workload v55 is consistently about 10% *slower* than v54 was, at 6.3fps rather than 6.9. I'll do some profiling and figure out where the speed is going perhaps a Broadwell-EX is not a "modern" CPU, but given that Intel are (still!) selling fairly-high-end servers with this CPU it's certainly not old. I was hoping for a speedup, dammit! *throws toys out of pram* (cost of pram: $0; obligations of pram manufacturer: nil, so I'll track this down rather than whining: or I'll try to: given how nondeterministic modern CPUs are, I'm not confident it'll be possible to identify a cause). (This is using Python 3.9.7, Cython 0.29.24 and GCC off the 10 release branch as of May 21: not exactly a new GCC, but the rest is pretty up-to-date.) |
23rd September 2021, 13:51 | #4440 | 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 |
|
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|