has anyone ever had that feeling where encoding has gotten slower and slower over the years, even when you don't change anything major in your hardware? i'm still rocking an i7-8700k, 64gb ddr4, an an nvidia rtx 2070. x264 encoding through ffmpeg has been pretty slow for a 480i avisynth script and i don't know why. i'm only getting 20fps with preset slow. shouldn't it be a little faster? at least a bit more than realtime?
x264 command:
i also tried to encode another avisynth script. the source is a 1080i mpeg2 file deinterlaced with qtgmc and upscaled to 4k for youtube. i'm not expecting realtime encoding with this of course, but in 2023 i could get about 2-4fps with hevc_nvenc. now it takes 20 minutes just for the encode to even start and i only get 0.05fps and maybe an slow increase to 1-3 overtime. same encoding settings and same script.Code:ffmpeg -hwaccel auto -i "script.avs" -pix_fmt yuv420p -aspect 652:480 -vf setfield=bff -c:v libx264 -x264opts bff=1 -x264-params opencl=true -preset slow -crf 16 -c:a libfdk_aac -cutoff 18000 -vbr 5 "output.mkv"
i'm trying to find some benchmarks of my cpu made when it came out (2017) and they aren't helpful. for x264 encoding benchmarks, a lot of them don't share the encoding preset or the resolution of the source, just framerates. so i can't tell if the speeds are accurate.
does anyone have any tips that could potentially help in slightly speeding things up? or are these speeds expected with my cpu? i could've swore it was faster a couple years ago.
hevc_nvenc command:
maybe these have always been the speeds i got. i'm not sure. does anyone know what's up?Code:ffmpeg -hwaccel auto -i "script.avs" -pix_fmt yuv420p10le -c:v hevc_nvenc -rc vbr -cq 16 -qmin 16 -qmax 16 -b:v 0K -preset p7 -c:a copy "output.mkv"
+ Reply to Thread
Results 1 to 7 of 7
-
-
What is your "script.avs" ?
Since you mentioned QTGMC, be aware that if you updated it, filters and the effect of presets might have changed.users currently on my ignore list: deadrats, Stears555, marcorocchini -
480i script:
my source for that is a 10 bit 4:2:2 uncompressed avi, so i know that's part of the issue. but the script itself runs at over 200fps.Code:SetFilterMTMode("DEFAULT_MT_MODE", 2) v = lwlibavvideoSource("G:\BlackMagic Captures\\Atlantic Record Music Video Tape_01.mkv", fpsnum=30000,fpsden=1001,rap_verification=false,prefer_hw=3) a = lwlibavaudiosource("G:\BlackMagic Captures\\Atlantic Record Music Video Tape_01.mkv") audiodub(v,a) Trim(774, 31345) Levels(0, 1,1035, 0, 1020, coring=false,dither=true) #turnRight().Histogram().TurnLeft() Trim(0, 30168) normalize(0.8912) Crop(0, 3, -0, -3) converttoyuv420(matrix="rec601", interlaced=true,chromaresample="spline36") prefetch(6)
1080i script:
that might explain it the 1080i slowness.Code:SetFilterMTMode("DEFAULT_MT_MODE", 2) v = D2VSource("F:\fixed ts\CBS (WEVV) - 2-17-26 - Comics Unleashed With Byron Allen (2006) - S02E49 - Talia Reese; DeRay Davis; Matty Chymbor; Gabriel Rutledge.d2v") a = lwlibavaudioSource("F:\fixed ts\CBS (WEVV) - 2-17-26 - Comics Unleashed With Byron Allen (2006) - S02E49 - Talia Reese; DeRay Davis; Matty Chymbor; Gabriel Rutledge PID 101 2_0ch 192Kbps DELAY 30ms.ac3") audiodub(v,a) delayaudio(.030) Trim(0, 55744) v1=last v = D2VSource("F:\fixed ts\CBS (WEVV) - 2-18-26 - Comics Unleashed With Byron Allen (2006) - 2023-10-10 07 00 00 - Comics Unleashed With Byron Allen.d2v") a = lwlibavaudioSource("F:\fixed ts\CBS (WEVV) - 2-18-26 - Comics Unleashed With Byron Allen (2006) - 2023-10-10 07 00 00 - Comics Unleashed With Byron Allen PID 101 2_0ch 192Kbps DELAY 11ms.ac3") audiodub(v,a) delayaudio(.011) Trim(1978, 57477) #Trim(0, 55744) v2=last v1++v2 normalize(0.8912) Trim(0, 110507) Trim(0, 1891) ++ Trim(2522, 110507) Trim(0, 2070) ++ Trim(14888, 109877) Trim(0, 8286) ++ Trim(14455, 97060) Trim(0, 15076) ++ Trim(22769, 90892) Trim(0, 21116) ++ Trim(28346, 83200) Trim(0, 21208) ++ Trim(30584, 75971) Trim(0, 27398) ++ Trim(33413, 66596) Trim(0, 34175) ++ Trim(44066, 60582) Trim(0, 40221) ++ Trim(48824, 50692) QTGMC(Preset="slow", ezdenoise=0.0, tr2=0, tuning="dv-hd", sourcematch=3, MatchEnhance=1, NoiseProcess=1, NoiseRestore=1.0, Sigma=0.0 , sharpness=0, border=false) SuperRes(matrixin="rec709", 2, .43, 0, """nnedi3_rpow2(2, nns=4, cshift="Spline36Resize")""", matrixout="rec709") prefetch(6) -
Have you checked how fast the script runs through ffmpeg without encoding? Something like:
ffmpeg -i "script.avs" -an -f null -
That will show how fast AviSynth can actually deliver frames to ffmpeg. If the fps there is already low, then the bottleneck is the script (QTGMC, nnedi3, source filters, etc.), not the encoder.
Also, did anything change recently (QTGMC version, plugins, AviSynth+, ffmpeg build, GPU driver)? QTGMC and its dependencies have changed over time and some presets can behave differently depending on plugin versions. -
-
well, i guess this is something that only helped me. but when i'd be about to throw something into bd rebuilder and i knew had hours of encoding ahead and lots of x264 filters in the mix.
i always got a nice speed boost by simply re-booting the computer. this was especially helpfully if the computer had been on for awhile.Last edited by geek gift; 5th Mar 2026 at 08:57.
-
for my 480i script, i get 215fps.
i do update everything i can from time to time. that might explain it.
done that. not a fan of nvenc's quality with low bitrates + last i tried, interlace support was weird.
that definitely helps!
Similar Threads
-
Please help me download starhub tv video, thanks a lot
By AmyA in forum Video Streaming DownloadingReplies: 13Last Post: 3rd Jul 2025, 19:30 -
Authoring an audio Blu-Ray with a lot of tracks?
By bizzybody in forum Authoring (Blu-ray)Replies: 1Last Post: 22nd Apr 2025, 00:29 -
Upgraded Ubuntu from 20.04.6 to 24.04.1 and ffmpeg slowed down a lot!
By BosseB in forum EditingReplies: 9Last Post: 19th Dec 2024, 07:55 -
WOW! Did I lose a lot of colour! (Trying to convert from HEVC HDR to a BD)
By Lathe in forum Video ConversionReplies: 8Last Post: 12th May 2023, 15:11 -
looking for s/w that can recreate an MP4 file at slower playback speed
By ginahoy in forum EditingReplies: 9Last Post: 11th May 2021, 06:37


Quote
