5 ms·
Maybe I am doing it wrong. But I tried the following commands to test it on h264/h265 and 1080p/4k sources: Soft: ffmpeg -i {src} -map 0:v -f null - Hard
by cm2187 3y ago
Maybe I am doing it wrong. But I tried the following commands to test it on h264/h265 and 1080p/4k sources:
Soft: ffmpeg -i {src} -map 0:v -f null -
Hard: ffmpeg -hwaccel cuda -i {src} -map 0:v -f null -
the result I get is:
Source Hard Soft
1080p-h264 25.1x 37.1x
1080p-h265 26.4x 36.5x
4k-h264 5.5x 7.1x
4k-h265 5.5x 6.5x
this is on an old CPU (i7-6700K) and a somewhat recent GPU (RTX 2060) and with ffmpeg 6
- bdhcuidbebe 3y agoYou are using cuda for some reason? cuda is for general gpu computing, not the same as using the dedicated hardware enc/dec engines. See ffmpeg docs for the hw decoding name, like nvdec iirc for nvidia cards.
- fisf 3y agoI am pretty sure that does not activate the hardware encoder. https://trac.ffmpeg.org/wiki/HWAccelIntro https://trac.ffmpeg.org/wiki/HWAccelIntro
- jasonjmcghee 3y agoI barely know what I'm talking about, but in my experience to use software I had to explicitly enable it with "-allow_sw" but this may have only been necessary due to videotoolbox
- akvadrako 3y agoCuda is not a normal hardware decoding API. Look for VA-API and VDPAU.