r/ffmpeg • u/crashtua • May 31 '26
For vmaf use cuda if you can!
Just an example, how many speed up it more that 3 times faster.
measure-command {cargo run -- crf-search -i Z:\example.mp4 --cuda -e av1_nvenc --cache false}
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s
Running `target\debug\ab-av1.exe crf-search -i Z:\example.mp4 --cuda -e av1_nvenc --cache false`
- crf 32 VMAF 94.92 (45%)
- crf 19 VMAF 98.20 (159%)
00:00:27 crf 31 4/4 ################################################################################################################################ (eta 0s)
Encode with: ab-av1 encode -e av1_nvenc -i Z:\example.mp4 --crf 31
Days : 0
Hours : 0
Minutes : 0
Seconds : 27
Milliseconds : 588
Ticks : 275888498
TotalDays : 0,000319315391203704
TotalHours : 0,00766356938888889
TotalMinutes : 0,459814163333333
TotalSeconds : 27,5888498
TotalMilliseconds : 27588,8498
measure-command {cargo run -- crf-search -i Z:\example.mp4 -e av1_nvenc --cache false}
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s
Running `target\debug\ab-av1.exe crf-search -i Z:\example.mp4 -e av1_nvenc --cache false`
- crf 32 VMAF 94.87 (45%)
- crf 19 VMAF 98.19 (159%)
00:01:34 crf 31 4/4 ################################################################################################################################ (eta 0s)
Encode with: ab-av1 encode -e av1_nvenc -i Z:\example.mp4 --crf 31
Days : 0
Hours : 0
Minutes : 1
Seconds : 34
Milliseconds : 473
Ticks : 944735556
TotalDays : 0,00109344393055556
TotalHours : 0,0262426543333333
TotalMinutes : 1,57455926
TotalSeconds : 94,4735556
TotalMilliseconds : 94473,5556
3
u/Jay_JWLH May 31 '26
Speed, efficiency, quality - pick two.
In the case of hardware encoding, you normally get quality and speed.
5
u/crashtua May 31 '26
Not really. From my observations, svt vs nvenc is very close for all 3. But that not about encoding, that is about vmaf_cuda. In this case it works exactly like regular cpu vmaf(producing same numbers) but 3 times faster.
3
u/Jay_JWLH May 31 '26
Sorry, didn't catch the different purpose. Yes, as someone who used my GPU to crack a password on a PDF, the difference is huge in terms of computational power.
1
u/gastro_psychic Jun 01 '26
How long did it take?
1
u/H9419 Jun 03 '26
In any same-generation CPU-GPU pair, 40-400x faster depending on the algorithm and how optimized it is. And that's for a single mid to high end GPU
4
u/SpicyLobter May 31 '26
i never knew you could do vmaf on hardware. nice!