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. |
8th February 2018, 23:05 | #2961 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Maybe later. Report some more bugs so I'll have to make a full release...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
9th February 2018, 04:26 | #2963 | Link | |
Registered User
Join Date: Jan 2016
Posts: 162
|
Quote:
core.std.Minimum expand: core.std.Maximum |
|
9th February 2018, 23:30 | #2967 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Make it parallelrequests. Allocate it once in the constructor. See if less parallelism even matters?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
10th February 2018, 00:19 | #2968 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Code:
# Imports import vapoursynth as vs core = vs.get_core() # Loading Plugins core.std.LoadPlugin(path="G:/Hybrid/64bit/vsfilters/SourceFilter/FFMS2/ffms2.dll") # Loading F:\TestClips&Co\files\Test-AC3-5.1.avi using FFMS2 clip = core.ffms2.Source(source="F:/TESTCL~1/files/TEST-A~1.AVI",cachefile="H:/Temp/avi_4a88093b3b83d19d00642a5a96b0af78_41.ffindex",format=vs.YUV420P8,alpha=False) # making sure input color matrix is set as 470bg clip = core.resize.Point(clip, matrix_in_s="470bg") # Making sure input color range is set to TV (limited) range. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) # Loading F:\TestClips&Co\files\Subtitles\Appa 7 Arb done.ass using SubText clip = core.sub.TextFile(clip=clip, file="F:/TestClips&Co/files/Subtitles/Appa 7 Arb done.ass", fontdir="G:/Hybrid/settings/fonts") # adjusting output color from: RGB24 to YUV420P10 for x265Model (i420) clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, matrix_s="470bg") # Output clip.set_output() Code:
Error getting the frame number 0: Resize error: Resize error 3074: no path between colorspaces (2/2/2 => 5/2/2). May need to specify additional colorspace parameters. Cu Selur |
10th February 2018, 01:40 | #2969 | Link |
Registered User
Join Date: Jan 2016
Posts: 98
|
Code:
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, matrix_s="470bg", matrix_in_s="470bg") Code:
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10) Last edited by VS_Fan; 10th February 2018 at 01:46. |
11th February 2018, 00:30 | #2972 | Link |
Registered User
Join Date: Nov 2009
Posts: 327
|
You can store the buffer per-thread. Allocate the buffer on first use.
Code:
std::map<std::thread::id, std::shared_ptr<void>> per_thread_buffer; /* ... */ get_frame(/* ... */) { void *buf = per_thread_buffer[std::this_thread::get_id()].get(); // ... } Code:
/* ... */ get_frame(/* ... */, VSCore *core, VSAPI *vsapi) { const int buffer_size = /* ... */; VSFrameRef *buf_frame = vsapi->newVideoFrame(vsapi->getFormatPreset(pfGray8, core), buffer_size, 1, nullptr, core); void *buf = vsapi->getReadPtr(buf_frame, 0); // ... vsapi->freeFrame(buf_frame); } Last edited by Stephen R. Savage; 11th February 2018 at 00:35. |
11th February 2018, 11:49 | #2973 | Link | |
Registered User
Join Date: Aug 2012
Posts: 203
|
Quote:
|
|
28th February 2018, 15:51 | #2974 | Link |
Registered User
Join Date: Jul 2016
Posts: 39
|
Could someone please explain how to get the OCR plugin working? Supposedly it's meant to be an included plugin, however my installation doesn't have any corresponding dll file. I've taken a look at five or so of the latest vapoursynth releases on github and none of them have included the dll for the ocr plugin.
|
1st March 2018, 02:15 | #2976 | Link |
Registered User
Join Date: Jul 2016
Posts: 39
|
Yeah, supposedly it exists according to: www.vapoursynth.com/doc/plugins/ocr.html
Can't find any documentation on getting it setup and working though as it doesn't seem to come with vapoursynth from what I can tell |
1st March 2018, 11:33 | #2977 | 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 |
|
14th March 2018, 01:10 | #2978 | Link | |
Registered User
Join Date: Mar 2016
Posts: 19
|
Short question regarding the documentation:
From the Windows Portable Instructions Quote:
The usual default is XXXX\AppData\Local\Programs\Python\Python36 .. and the VapourSynth Editor should be extracted into this directory as well? There isn't another way to do this? Without tampering with my Python install dir? |
|
14th March 2018, 01:23 | #2979 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
I use a portable Vapoursynth and Pyhton in Hybrid.
I downloaded the portable Vapoursynth and extracted the portable Python into the Vapoursynth folder, into which I also extracted vsedit, works all fine. If you got a system wide Python installed no moving of the portable version or vsedit is required iirc. Cu Selur |
18th March 2018, 19:57 | #2980 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
I wrote a small "vs plugin loading checker" script and got some errors...
What does "No entry point found" mean exactly? CombMask should be a vs dll. Error 193 means it's a 32Bit dll, correct? Is it possible to not autoload all plugins when using get_core()? Quote:
Code:
import sys, os, glob import vapoursynth as vs def print_version(core): vs_version = core.version() print('#######################################') print(vs_version) print('#######################################') def main(argv): if(len(sys.argv) > 1): path = argv[1] else: exit("\n\rUsage: vs_plugin_check.py <path-to-vapoursynth-plugins-folder>\n\r") core = vs.get_core() print_version(core) plugin_dir = glob.glob(path + '/*.dll') print("checking dlls in", path) print('#######################################') error_count = 0 for dll in plugin_dir: cnt += 1 try: core.std.LoadPlugin(path=dll) except Exception as e: if "already loaded" not in str(e): error_count += 1 print(e) print('#######################################') print("Found", len(plugin_dir), "dlls. Errors:", error_count) print() if __name__ == "__main__": main(sys.argv)
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 18th March 2018 at 20:06. |
|
Tags |
speed, vaporware, vapoursynth |
|
|