I don't know if my hardware is bad or if the script I'm using is slowing down the process, but when I try to deinterlace a 1 hour video using Vdub2 + Avisynth, it takes ages to process and I always end up aborting. I am using H264 10bit codec with lossless compression ratio. Here's the script that fixes chroma ghosting while deinterlacing:
LWLibavVideoSource("Tape 1 - AV Box 75.mp4", cache=false)
AssumeTFF()
SelectEven()
QTGMC()
even = SelectEven()
odd = SelectOdd()
interp = even.FrameRateConverter().SelectOdd()
odd = MergeChroma(odd, interp)
fixed = Interleave(even, odd)
return(fixed)
Please let me know if there's something I can do to speed up the process while keeping the best possible video quality, I mean without any compression loss.
Thanks!
+ Reply to Thread
Results 1 to 8 of 8
-
-
I am not an expert in this area but why not use uncompressed video? That would be faster than h264 or any lossless compression.
-
Your pc specs and the resolution of the video are contributing factors.
Check the cpu % in the task manager -
You should use AviSynth+ rather than AviSynth. Then enable multithreading by adding prefetch(N) at the end of the script:
Code:LWLibavVideoSource("Tape 1 - AV Box 75.mp4", cache=false) AssumeTFF() SelectEven() QTGMC() even = SelectEven() odd = SelectOdd() interp = even.FrameRateConverter().SelectOdd() odd = MergeChroma(odd, interp) Interleave(even, odd) prefetch(8) # ~number of cores/threads of your CPU.
Last edited by jagabo; 14th Jul 2023 at 17:03.
-
prefetch(8) # ~number of cores/threads of your CPU.
default: (number of logical cores in the system) +1
Andrew, on his blog here, says that the Prefetch number is relates to the number of Logical Processors.
You can get the number of logical processors from your Task Manager CPU display:
[Attachment 72424 - Click to enlarge]
I have my Prefetch set on 20 and achieve around a 400% processing speed increase. -
And it's not even as simple as the number of cores or threads. It also depends on the particular script, the decoder(s), and encoder(s) you are using. You basically have to try a few different settings to get optimal results. Or just use a compromise setting that works for most scenarios. With my 8 core, 16 thread CPU I get optimal throughput somewhere Prefetch 8 and 16. Sometimes I have to go a little higher. And sometimes I don't want 100 percent cpu usage by AviSynth and the encoding (to leave CPU for other things, or just for quieter running) so I use fewer than "optimal".
-
Thanks @Jagabo [this chroma script I'm using is yours
], @Alwyn and others for the quick replies!!
It seems that my laptop specs are not that good for this kind of thing. Here are my specs taken from Task Manager:
[Attachment 72637 - Click to enlarge]
I have just 4 Cores and 8 Logical Processors, with 8 gig of RAM. This seems to be the culprit here :/
Jagabo, I'm acutally using Avisynth+, sorry about that. I will insert that prefetch(8) line in my script as suggested to speed up things a little bit!!
Thanks again for your kind support on this!
Best,
RC -
Your notebook may do throttling due insufficient cooling - this may be also important factor for declared slowness, side to CPU utilization verify also CPU temperatures and how quickly it raise from IDLE to full load. If temperature raise immediately after applying load to CPU and stabilize at relatively high value then it may be sign of the CPU overheat.
Similar Threads
-
Bob deinterlacing in AviSynth without doubling the frame-rate?
By orion44 in forum Video ConversionReplies: 11Last Post: 6th Dec 2021, 00:44 -
AviSynth Script for Only Deinterlacing Combed Lines (MeGUI)
By AOmundson in forum Video ConversionReplies: 9Last Post: 15th Mar 2021, 14:04 -
Best AVISynth+ settings for deinterlacing these DVDs?
By Xandros in forum Video ConversionReplies: 2Last Post: 15th Jun 2020, 03:34 -
Encoding, Deinterlacing, and Denoising with AviSynth+
By SamFinisher in forum Newbie / General discussionsReplies: 14Last Post: 26th Jan 2019, 23:05 -
U-matic captyre and sudio - video sync
By pharries in forum Capturing and VCRReplies: 7Last Post: 16th Jan 2019, 21:14