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. |
9th March 2021, 10:40 | #1 | Link |
Registered User
Join Date: Oct 2020
Posts: 20
|
Avisynth+ MT and broken Frame Order
Hello
I am using Avisynth+ for some enhancements. In this particular case I am using TemporalDegrain2 for degraining. As this is fairly slow, I am using multithreading to speed things up. In my first try, I just added SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE) which leads to a lot of frames being out of order (but only for larger sources, smaller ones seem to work fine). Then I found the mtmodes.avsi which should set the correct modes per filter and import this. Now it is much better bit I still found very few frames that were out of order. Is there a way to prevent them completely and still using MT? My script is fairly simple, all it does is: Code:
src2 = FFmpegSource2("00004.m2ts", atrack=1, fpsnum=24000, fpsden=1001).Crop(220, 0, -220, 0) src2 = src2.ConvertAudioToFloat().TimeStretch(tempo=100.0*25.0/(24000.0/1001.0)).TemporalDegrain2(degrainTR=3, postFFT=1, postSigma=4, postDither=-1) AudioDub(src2, src2) AssumeFPS(25) PreFetch(10) Any help would be really appreciated. Last edited by Roemer; 9th March 2021 at 11:05. |
|
|