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. |
23rd February 2020, 21:13 | #3741 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Using the avisynth C api is really iffy. If all you want is to evaluate a script and get frames out then writing your own C++ wrapper dll will be so much more reliable and also faster. Believe me, I've tried both ways long ago when developing yatta.
VapourSynth has a very straightforward C-api in comparison.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
23rd February 2020, 23:18 | #3742 | Link |
Registered User
Join Date: May 2011
Posts: 321
|
If trying to modify props and clip resolution is ridiculously small, it crashes, where no recovery is possible, it locks a PC.
Code:
rgb = core.std.BlankClip(width=30, height=16, format=vs.RGB24) rgb2 = rgb.std.PlaneStats(prop='PlaneStats') PROP_NAME = f'New_string_name_here' def copy_prop(n,f): f_out = f[0].copy() f_out.props[PROP_NAME] = '{:.1f}'.format(f[1].props['PlaneStatsAverage']*100) return f_out rgb = core.std.ModifyFrame(rgb, [rgb, rgb2], copy_prop) Last edited by _Al_; 23rd February 2020 at 23:20. |
24th February 2020, 00:31 | #3743 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
For a GUI like staxrip it's totally fine, it's not used for encoding but only to access parameters and for a basic crop and preview dialog that doesn't support playback and HDR color handling but has mpv/mpc integration to take care of this. The GDI based WinForms rendering was ridiculously slow but it was addressed with a hardware accelerated Direct2D replacement. It does a vertical flip and converts to RGB32 in software via avs/vs. For best possible performance vertical flip and YV12 could be handled by Direct3D and like you told frames could be accessed asynchronously.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 24th February 2020 at 00:46. |
29th February 2020, 15:22 | #3744 | 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 |
|
1st March 2020, 00:02 | #3745 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
R49-RC1 is now available. All maintenance this time since I'm slowly working on the separate audio build.
Changes: Code:
r49: updated to python 3.8 on windows updated visual studio 2019 runtime version updated zimg and added support for spline64 resize method fixed a savestring bug in avscompat (sekrit-twc) interleave, selectevery and separate fields now have a modify_duration argument to determine if they modify frame durations and fps addborders and crop now update the _fieldbased attribute properly when an odd number of lines are cut from the top fixed add to path not working for single user installs fixed compilation on non-x86 systems fixed an infinite loop in the expr filter optimizer that was introduced in r48 (sekrit-twc)
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
3rd March 2020, 07:44 | #3746 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
I don't know if this is a bug from vapoursynth or KNLMeansCL. KNLMeansCL requires input clip to be YUV444P10, but it still complains about it when I converted my clip to YUV444P10.
Code:
clip = core.resize.Bicubic(clip, format=vs.YUV444P10) clip = core.knlm.KNLMeansCL(clip) |
4th March 2020, 19:31 | #3747 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
@lansing: read https://github.com/Khanattila/KNLMeansCL/issues/42
|
4th March 2020, 20:31 | #3748 | Link | |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
Quote:
|
|
19th March 2020, 21:21 | #3749 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
R49-RC2 is out. Should be the final RC.
Code:
r49: updated to python 3.8 on windows updated visual studio 2019 runtime version updated zimg and added support for spline64 resize method fixed transfer characteristics not being applied to gray format clips (sekrit-twc) fixed vdecimate bugs when compiled on systems where char is unsigned by default fixed a regression introduced in r48 in that could sometimes cause corrupt output from expr on cpus without sse4.1 (sekrit-twc) fixed a savestring bug in avscompat (sekrit-twc) interleave, selectevery and separate fields now have a modify_duration argument to determine if they modify frame durations and fps addborders and crop now update the _fieldbased attribute properly when an odd number of lines are cut from the top fixed add to path not working for single user installs fixed compilation on non-x86 systems fixed an infinite loop in the expr filter optimizer that was introduced in r48 (sekrit-twc)
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
24th March 2020, 16:30 | #3751 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
There's also always the portable version. Maybe that's easier.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
25th March 2020, 09:05 | #3753 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Yes, they point to the same underlying frame.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
26th March 2020, 15:25 | #3755 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
They're only valid inside the create function and usually destroyed very quickly after.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
26th March 2020, 15:37 | #3757 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Yes, always.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
26th March 2020, 16:32 | #3758 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,731
|
If I have a VFR video clip, say like part A deinterlaced to 25fps and part B bobbed to 50fps in the script and the two parts combined with A+B - what is the proper way to get the correct timecodes out with vspipe? Should I use AssumeFPS to set the framerate to 25fps (which I will use when I feed it to x265) or leave it as it is?
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
26th March 2020, 20:31 | #3759 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
R49 released!
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
26th March 2020, 20:33 | #3760 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
Or that's how I think it should work.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|