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. |
4th March 2017, 17:34 | #2401 | Link | ||
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Quote:
Quote:
|
||
7th March 2017, 05:04 | #2402 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Small question when I have to clips (left, right) I want to StackHorizontal, how can I do something like this in Vapoursynth?
Code:
if(left.color_space != right.color_space){ left = convertToColorspace(left, right.color_space); } |
7th March 2017, 05:24 | #2403 | Link | |
Beyond Kawaii
Join Date: Feb 2008
Location: Russia
Posts: 724
|
Quote:
Code:
left = core.resize.Spline36(left, format=right.format.id) diff = core.std.StackHorizontal([left, right])
__________________
...desu! |
|
8th March 2017, 19:51 | #2405 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
R37 RC1
I just want to fix one final bug in avfs that causes random crashes for avisynth peasants before the final release. It's very safe to use since this time it's all bug fixes. Changes: Code:
fixed blankclip and addborders sometimes rejecting valid floating point color values (jackoneill) vdecimate no longer stores the metrics for all frames, thus saving a lot of memory for long clips (jackoneill) changed get_read* functions in python so their memory no longer incorrectly is writable (Kamekameha) added rational number fps property to clips in python (Kamekameha) mostly worked around an issue where python would replace the sigint handler fixed bug that could sometimes cause false memory leak warnings when freeing core fixed possible corruption on frames without subtitles in subtext (jackoneill) added a proxy object to avoid referencing the wrong core in scripts (stuxcrystal)
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
9th March 2017, 12:09 | #2406 | Link |
Registered User
Join Date: Oct 2009
Location: crow-land
Posts: 540
|
Just a thought.
Has anyone noted the nvidia-GPU accelerated filters for deinterlace / knlmeans / lsf over at DG's site ? Reported phenomenal speeds as compared to equivalent cpu based filters. http://rationalqm.us/board/viewtopic.php?f=8&t=506 http://rationalqm.us/board/viewtopic.php?f=8&t=558 |
10th March 2017, 13:45 | #2407 | Link | ||
Registered User
Join Date: Oct 2009
Location: crow-land
Posts: 540
|
Per this post http://rationalqm.us/board/viewtopic...6&p=6250#p6248 about the 2 new filters DGDenoise DGSharpen which use the GPU for seriously sped up filtering, I get now these messages all the time:
Quote:
Quote:
I and presumably some others would like to benefit from gpu accelerated filters yielding eye-wateringly fast speeds Thanks. |
||
10th March 2017, 14:05 | #2408 | 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 |
|
12th March 2017, 00:29 | #2411 | Link | |
Excessively jovial fellow
Join Date: Jun 2004
Location: rude
Posts: 1,100
|
Quote:
When VS loads Avisynth filters via the fake Avisynth environment, the filters that have been whitelisted (together with what frames they are expected to require to produce an output frame) are actually parallelized to a certain degree. Only one thread will call the filter's (Avisynth) GetFrame function at a time, so the actual processing is still single-threaded, but since VS knows in advance what frames the filter is going to request from the upstream filter if you request frame n, those frames are pre-fetched (in parallel, if the upstream filter supports it) before the filter's GetFrame(n) is ever called and any GetFrame requests from within the filter can return immediately. Even spatial only filters benefit (they still require one frame from the upstream filter, and that frame can be prefetched). Whitelisted filters also play nicer with parallelized downstream filters, since they can request many frames in parallel from the Avisynth filter wrapper, which then requests many frames in parallel from the upstream filters. In other words: in single threaded, original Avisynth, only one filter can do work at a time. Every other filter spends all its time waiting for processing getting done somewhere else. When a single threaded Avisynth filter is used in VS, in an ideal world it can sit in its own thread and do processing as fast it can, never waiting on input (because the input is being processed in many other threads in parallel), while filters that do further processing on its output aren't bottlenecked on waiting for the Avisynth filter's input, and potentially not even on the Avisynth filter itself. Last edited by TheFluff; 12th March 2017 at 03:33. |
|
12th March 2017, 12:06 | #2413 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
yes, there is srestore: https://forum.doom9.org/showthread.php?t=166582
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
15th March 2017, 12:08 | #2415 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Sure is, that's completely equivalent from python's perspective. Why you want to prefix everything with 'vs.' is a mystery though...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
15th March 2017, 12:26 | #2416 | Link | |
I'm Siri
Join Date: Oct 2012
Location: void
Posts: 2,633
|
Quote:
Code:
from vapoursynth import core |
|
15th March 2017, 12:38 | #2417 | Link |
Registered User
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
|
Yeah, I also found the same problem, I could not pass stuff like "vs.YUV444P16" or whatever to these functions, I think it's not convenient at all. Also its bad practice in python to do imports inside functions.
|
15th March 2017, 13:18 | #2420 | Link | |
I'm Siri
Join Date: Oct 2012
Location: void
Posts: 2,633
|
@Myrsloik
I think the global core is not working as expected in modules so a test script like Code:
from vapoursynth import core BlankClip = core.std.BlankClip def GenBlank(src): return BlankClip(src) ref = BlankClip() clp = GenBlank(ref) clp.set_output() Code:
#blah.py from vapoursynth import core BlankClip = core.std.BlankClip def GenBlank(src): return BlankClip(src) Code:
#test script from vapoursynth import core import blah BlankClip = core.std.BlankClip ref = BlankClip() clp = blah.GenBlank(ref) clp.set_output() Quote:
|
|
Tags |
speed, vaporware, vapoursynth |
|
|