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. |
13th February 2019, 16:00 | #3241 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
assuming you named the file DUMMY.py and placed int into the autoloading folder (http://www.vapoursynth.com/doc/autoloading.html),
Code:
# Import the script import DUMMY # ... whatever you do otherwise in your script # call the script clip = DUMMY.bbmod(c=clip, cTop = 0, cBottom = 0, cLeft = 0, cRight = 0, thresh = 128, blur = 999) Code:
# Imports import os import sys # Import scripts folder scriptPath = 'e:/vsfilters' sys.path.append(os.path.abspath(scriptPath)) # Import script import DUMMY # ... whatever you do otherwise in your script # call the script clip = DUMMY.bbmod(c=clip, cTop = 0, cBottom = 0, cLeft = 0, cRight = 0, thresh = 128, blur = 999) Last edited by Selur; 13th February 2019 at 16:45. |
13th February 2019, 19:51 | #3244 | Link | |
Beyond Kawaii
Join Date: Feb 2008
Location: Russia
Posts: 724
|
Quote:
__________________
...desu! |
|
16th February 2019, 08:17 | #3245 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Is there something like Wavefront for Vapoursynth?
I'd like to do something along the (Avisynth) lines of: Code:
LoadPlugin("I:\MkvCutter\ffms2.dll") LoadPlugin("I:\MkvCutter\waveform.dll") function m4(float x) {return(x<16?16:int(round(x/4.0)*4))} V = FFVideoSource("F:\Family.mkv", cachefile="F:\Family.ffindex", threads=1).ConvertToYv12() A = FFAudioSource("F:\Family.mkv", cache=false).ConvertToMono V = V.BicubicResize(Ceil(V.Width*1)-(Ceil(V.Width*1)) % 4, V.Height) AudioDub(V,A).WaveForm(window=1, height=m4(V.Height/4.0)) a. taking audio and video from a source b. converting the audio to mono c. overlaying the audio wavefront onto the video Did some googling, but couldn't find anything. So does someone know how to do this with Vapoursynth or is it simply not possible atm. ? Cu Selur Last edited by Selur; 16th February 2019 at 09:47. |
16th February 2019, 21:39 | #3246 | Link | |
Beyond Kawaii
Join Date: Feb 2008
Location: Russia
Posts: 724
|
Quote:
__________________
...desu! |
|
17th February 2019, 13:12 | #3247 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
@Selur, remember than VapourSynth don't support audio.
Don't exist any xxAudioSource() or AudioDub(). waveform.dll can't read audio data inside VapourSynth. Like Mystery Keeper say a new source filter must do all the job: a. taking audio from a source b. converting the audio to mono c. supply the waveform converted to video
__________________
BeHappy, AviSynth audio transcoder. |
17th February 2019, 16:11 | #3249 | Link |
Registered User
Join Date: May 2005
Posts: 1,462
|
Nor should it, IMHO. There's absolutely no point letting VS do audio conversions, when you can just use eac3to to convert/extract your audio outside the VS process.
__________________
Gorgeous, delicious, deculture! |
17th February 2019, 20:44 | #3250 | Link | |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
Quote:
Some audio trimming programs can takes in a cut_list file and trim the audio according to the cut points in that file. It would be nice to have vapoursynth or vs editor to output these cut_list file as well according to the trimming in the script. |
|
18th February 2019, 20:14 | #3251 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
@asrain:
a. for me it's not about doing a conversion, but seeing the wave front in a preview to make decisions about cutting and chapter points. b. last I checked eac3to is Windows only and only support a few audio formats and no filtering, so at least for me it's hardly useful. (ffmpeg and sox are way more useful for me) |
20th February 2019, 17:49 | #3253 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,374
|
avfs x64 issue with certain x64 avs scripts ? R45
A simple TIVTC script works ok through avisynth+ x64 , verified in avspmod x64, or vdub2 x64 . But when run though avfs x64, it produces "green screen" . avfs x86 ok Code:
MPEG2Source() TFM().TDecimate() Code:
version() converttoyv12() Code:
blankclip(pixel_type="YV12") Why does avfs x64 TIVTC script in YV12 not work ? But simple "version" or "blankclip" in YV12 work ? Even if I remove the x86 dgdecode.dll, tivtc.dll from the avisynth x86 plugins folder to "force" x64 pathway, still does not work But different source filter works in x64, TIVTC works, so this suggests the x64 dgdecode compatibility issue with avfs ? dgdecode.dll x64 was from here https://www.mediafire.com/download/c..._3-19-2010.rar http://avisynth.nl/index.php/AviSynth%2B_x64_plugins Code:
FFVideoSource() TFM().TDecimate() |
20th February 2019, 17:57 | #3255 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,374
|
newer avfs versions are from vapoursynth . It's distributed that way. Myrsloik updates and compiles it now. If it's more appropriate, perhaps move discussion over to the avfs thread if some mod wants to move it
Last edited by poisondeathray; 20th February 2019 at 18:01. |
21st February 2019, 04:02 | #3257 | Link | |
Registered User
Join Date: Jan 2016
Posts: 98
|
Quote:
|
|
23rd February 2019, 08:45 | #3259 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Using a 1280x720 source and:
Code:
# Imports import os import sys import vapoursynth as vs core = vs.get_core() # Import scripts folder scriptPath = 'I:/Hybrid/64bit/vsscripts' sys.path.append(os.path.abspath(scriptPath)) # Loading Plugins core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/Support/libmvtools.dll") core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/DeCrawlFilter/DotKill/dotkill64.dll") core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll") # Import scripts import hysteria import hnwvsfunc import mvsfunc # Loading E:\to convert\test.mkv using LWLibavSource clip = core.lsmas.LWLibavSource(source="E:\to convert\test.mkv", format="YUV420P8", cache=0) # making sure input color matrix is set as unspec clip = core.resize.Point(clip, matrix_in_s="unspec",range_s="limited") # making sure frame rate is set to 24000/1001 clip = core.std.AssumeFPS(clip, fpsnum=24000, fpsden=1001) # Setting color range to TV (limited) range. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) # DeCrawling using DotKill clip = core.dotkill.DotKill(clip=clip, napply=3) # removing grain using MLDegrain clip = hnwvsfunc.MLDegrain(clip=clip, soft=[0,0,0]) # sharpening using FineSharp clip = hnwvsfunc.FineSharp(clip=clip) # line darkening using Hysteria clip = hysteria.Hysteria(clip=clip,highthresh=10) # Output clip.set_output() Is this something on my system, a known problem, or should I do some more testing and test these filters one by one? Cu Selur Ps.: What's the recommend way to limit the RAM usage? PPs.: With growing memory usage 18GB+ now the CPU usage also drops, so this probably is one of the filters using more and more RAM and slowing down while handling that RAM. => GOT IT, problem is with DotKill, updating to the latest version of DotKill fixed it. Last edited by Selur; 23rd February 2019 at 08:57. |
24th February 2019, 01:46 | #3260 | Link |
Registered User
Join Date: May 2011
Posts: 321
|
Same is hapening with QTGMC (havsfunc) and there might be others. I just simply tell Vapoursynth to limit RAM,
some cross platform method, like in python: mem = psutil.virtual_memory() available = int(mem.available/1024/1024) #MB cache = available - some_wiggle_room_value core.max_cache_size = cache Vapoursynth then releases RAM, if I watch usage it goes all the way to the limit and then it is drastically released. It cycles like that for a some short time - filled/released,filled/released but strangely, after some short time, it settles somewhere underneath that set limit. Almost like someone wrote that in some intelligent way, or it is a coincidence, not sure. |
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|