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. |
26th September 2015, 23:55 | #1 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
How to call Histogram ?
It's probably something stupid, but I can't get Histogram to work . I tried bunch of combos, lower case "h", input = ret, etc... It works fine without the Histogram line
I either get a "There is no attribute or namespace named histogram", or "There is no function named histogram" message. "libhistogram.dll" is in my C:\Program Files (x86)\VapourSynth\core64\plugins directory Can someone please give an example of the syntax ? I couldn't find any documentation or examples Code:
import vapoursynth as vs import havsfunc as haf core = vs.get_core() ret = core.lsmas.LWLibavSource(source=r'E:\video.avi', format="YUV420P8") #ret = core.std.Histogram(ret) ret.set_output() Last edited by poisondeathray; 27th September 2015 at 00:01. |
27th September 2015, 00:06 | #2 | Link |
Registered User
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
|
Code:
import vapoursynth as vs import havsfunc as haf core = vs.get_core() ret = core.lsmas.LWLibavSource(source=r'E:\video.avi', format="YUV420P8") ret = core.hist.Classic(ret) ret.set_output() Last edited by Are_; 27th September 2015 at 00:10. |
27th September 2015, 01:17 | #4 | Link |
Registered User
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
|
Certainly. Anyway, when documentation is too vague or nonexistent you can use this script:
Code:
import os import vapoursynth as vs core = vs.get_core() filepath = "/path/to/somewhere" filename = "vs_function_list.txt" info = core.list_functions() fn = os.path.join(filepath, filename) os.remove(fn) if os.path.exists(fn) else None with open(fn, 'a') as f: for line in info: f.write(line) From that file: Code:
name: VapourSynth Histogram Plugin namespace: hist identifier: com.nodame.histogram Classic(clip:clip) Color(clip:clip) Color2(clip:clip) Levels(clip:clip; factor:float:opt) Luma(clip:clip) |
|
|