▲ 4 r/ffmpeg

Speed up VMAF motion analysis

im currently building an automatic compression for CCTV footage, each footage is h264 1 hour long.
the problem is when using VMAF motion to get the score to decide the target bitrate classification take so long.

on my R7 7745HX at 100% 4.7 Ghz took 27 mins using: ffmpeg -i input.mp4 -vf vmafmotion -f null -

while calculate the VMAF using CUDA on RTX 4060 took only 3:45 mins using: ffmpeg -init_hw_device cuda=gpu -filter_hw_device gpu -i output.mp4 -i input.mp4 -filter_complex "[0:v]fps=30,hwupload_cuda[dist];[1:v]fps=30,hwupload_cuda[ref];[dist][ref]libvmaf_cuda=log_fmt=json:log_path=vmaf_report.json" -f null -

and compressing it into h265 NVENCc also only took 3:40 mins using: ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i input.mp4 -vf "scale_cuda=format=nv12" -c:v hevc_nvenc -preset p4 -rc vbr -cq 28 -b:v 1700k -maxrate 1700k -bufsize 2500k -c:a copy output.mp4.

is there any alternative solution that i can use? thanks

reddit.com
u/LiL_E03 — 11 days ago

Overclocking a laptop CPU

Ryzen 7 7745HX with uv -40 curve all cores:
5.140 Mhz to 5.340 Mhz = 3.9%
1829 to 1918 = 4.9%

well -40 is not that stable in OC mode, it would crash in some heavy multi cores senarios. but in stock 5.1 Ghz it really stable and never crashed, lucky me.

multi core score would be the same at 18.722 cuz there is no thermal headroom left (this laptop advertising 80W CPU perfromance, but mine is a bit beyond that).
laptop: Mechrevo Jiaolong 16 pro MRID6-23 / 7745HX / RTX 4060 140W / 32GB / 1TB.

voltage difference between non uv vs -40: https://youtube.com/shorts/74oxVJr0p2E?feature=share
how efficient the cpu with -40 in game: https://youtu.be/qnH2n0eKqZo

I have posted this in r/overclocking first, but i got hate from people instead just because i got lucky having a stable -40 curve all cores. will i also get hates in here?

u/LiL_E03 — 1 month ago

overclocking a mobile CPU 7745HX

Ryzen 7 7745HX with uv -40 curve all cores:
5.140 Mhz to 5.340 Mhz = 3.9%
1829 to 1918 = 4.9%

well -40 is not that stable in OC mode, it would crash for some heavy multi cores senarios. but in stock 5.1 Ghz it really stable and never crashed, lucky me.

multi core score would be the same at 18.722 cuz there is no thermal headroom left (this laptop advertising 80W CPU perfromance, but mine is a bit beyond that).
laptop: Mechrevo Jiaolong 16 pro MRID6-23 / 7745HX / RTX 4060 140W / 32GB / 1TB

Edit: why are people hating on me and so jealous just because I got lucky having a stable -40 curve all cores lol? is this normal in reddit?

1 hour OCCT test: https://imgur.com/a/HL6X4l2

u/LiL_E03 — 1 month ago