I sometimes get a bug when using MT where the video will encode at less than 1fps for no reason. But if I encode another Non-MT video such as re-encoding a 1080i video to 720p then restart the MT encoding, it will start encoding at the correct speed.
However lately I've noticed this slow encoding bug in non-MT! I thought that should never happen in non-MT? Here's my script for upscaling a 576i video to 1080p (I do this to prevent quality loss when uploading SD clips to YouTube):
Sometimes the slow encoding bug in MT is causing by 2 x264.exe processes running at once which is a glitch. I close the processes and restart making sure there's only 1 process and it works fine. But there's only 1 process running with the script above so that problem isn't an issue here. Any idea why it's encoding far slower than it should be? It's encoding at less than 1fps when it should be encoding at 5fps.Code:DGSource("W:Video.dgi") AssumeTFF() QTGMC(Preset="Super Fast") McTemporalDenoise(settings="low", interlaced=false) Crop(16,2,-20,-8) nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1920, fheight=1080)
+ Reply to Thread
Results 1 to 11 of 11
-
-
-
RAM usage of 7.28GB out of 8GB RAM installed. What do you mean by swapping? I've also set Virtual member page file to system managed.
-
Yes, this "page file" gets used when a process requests RAM, but too much of it is already in use, so a part of the RAM already used by a process gets written into the page file, and that will probably be some of the frames AviSynth just calculated and one of the encoders needs for compression. Then it has to read it from the page file instead from RAM. And this is, of course, a lot slower.
Very complex scripts need more RAM for the AviSynth process calculating the filters. The more MT threads you want to use, the more RAM it needs.
Very complex encoding settings need more RAM for the encoder process. Slowest presets are not always best suited. -
Yes thanks. That's basically the same issue. Glad to know I'm not the only one having that problem. Still doesn't seem to be a fix for it though. I read all the posts there.
-
The version of QTGMC linked to in post #13 in the doom9 thread tends to behave itself better for me. There's still sometimes slowdowns, but they seem to be less frequent.
Other than that I always add -stitchable to the x264 command line so if an encode does run slow I can abort it and use MKVMergeGUI to split the encoded video on a keyframe near the end, then I add Trim() to the script in order to re-commence encoding from there. The second attempt tends to behave itself and I append the encoded video later. Hopefully someone will work out what's causing it eventually. -
Tried that and it doesn't seem to make a difference to a new problem I'm having where I've got a 544 x 576 video I'm encoding to 720 x 576.
I can use any QTGMC preset but if I also use McTemporalDenoise Low preset then the encode always fails. Yet the McTemp Medium preset encodes fine! Cropping the video or not makes no difference.
Code:setmtmode(5,6) mpeg2source("M:\Video.d2v") setmtmode(2) McTemporalDenoise(settings="low", interlaced=true) AssumeTFF() QTGMC(Preset="Slow") Crop(10,2,-10,-8) nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=720, fheight=576) SeparateFields() SelectEvery(4,0,3) Weave()
-
Try it again, starting the script with
Code:setmtmode(5,4) ...
If you run the script via AVSMeter, how much RAM consumption does it report for the AviSynth process, with either 6 or 4 threads? Also try to use a good Task Manager (like SysInternals ProcessExplorer) to monitor the process using AviSynth, it may be interesting to learn about the RAM requirements over the processing time.
Similar Threads
-
DV encoding bug in Vegas?
By _Al_ in forum Video ConversionReplies: 1Last Post: 9th Oct 2015, 22:15 -
AVISynth Reverse is slow
By smike in forum EditingReplies: 7Last Post: 20th Apr 2015, 09:27 -
avisynth slow to load using FFVideoSource(....) than Virtualdub
By marcorocchini in forum Newbie / General discussionsReplies: 15Last Post: 23rd Sep 2014, 16:48 -
Avisynth MDegrain very slow
By Dominik2000 in forum Video ConversionReplies: 0Last Post: 4th Feb 2013, 05:24 -
Avisynth - Stack 4 Videos But Too Slow - Help!
By controlalt in forum EditingReplies: 10Last Post: 14th Mar 2011, 08:36