View Full Version : Merge & Multithreading issue
Mounir
10th April 2017, 13:36
I got a problem with my script, i'm not sure what's goin' on:
For my needs i need this piece of code:
avisource()
vid=last
vid1 = vid.filter1()
vid2 = vid.filter2()
Merge (vid1, vid2,0.5)
it seems when i add the filters it's not working anymore (tested with avsmeter); it's working great on avspmod though
Groucho2004
10th April 2017, 13:54
- What's the error?
- Which Avisynth version?
- What are filter1, filter2?
- I don't see any multi-threading statements in the script
Mounir
10th April 2017, 15:36
right my bad, forget about multithreading
filter 1 is hdragc and filter 2 is autoadjust with avisynth 2.6 MT
No error on avspmod (yet won't encode when i try the vfw encoder) and on avsmeter it "analyse" the script indefinitely
Groucho2004
10th April 2017, 19:23
Open the script in VirtualDub and run the "video analysis pass" in the File menu.
Groucho2004
10th April 2017, 21:08
I tried this with mpc-hc and AVSMeter (Avisynth MT):
setmtmode(5)
AVISource("stretch.avi")
vid=last
setmtmode(2)
vid1 = vid.hdragc()
vid2 = vid.autoadjust()
Merge(vid1, vid2, 0.5)
Runs without a glitch.
Mounir
10th April 2017, 22:14
Well it seems setmtmode(2,4) before hdragc & autoadjust does it, and for the record it works ok in vdub & avsmeter now.
71% cpu usage / 1.9 fps (with more filters) ..time for me to invest in a ryzen cpu, ouch
Thanks guys
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.