clipbucket-v5 icon indicating copy to clipboard operation
clipbucket-v5 copied to clipboard

how use ffmpeg by Gpu geforce GTX

Open saman-magnus opened this issue 3 years ago • 4 comments

hello i try Million way's to find a way for encoding video file ffmpeg but i can't find any , i search at google but nothing, another problem ffmpeg use to much cpu power , what can i do any idea ???

  • i use geforce GTX 1070 ti and geforce GTX 960 turbo cpuhard

saman-magnus avatar Jan 20 '22 13:01 saman-magnus

Hello @saman-magnus,

I've also spend time looking for GPU conversion... and it require to recompile FFMpeg with a specific argument (nv-codec-hearders)

Check this : https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/

After finalising HLS conversion, I'll have a huge conversion process to do and I'll probably look further into this option to massively improve conversion time (Here with RTX3080 / GTX1080) If things go well, I'll make a tuto / script to automate ffmpeg compilation

Best regards, MacWarrior.

MacWarrior avatar Jan 20 '22 13:01 MacWarrior

this GeForce Gtx 960 Turbo Gpu and i waiting for ur job bro cmd

saman-magnus avatar Jan 20 '22 15:01 saman-magnus

hello MacWarrior i find a way to fix cpu usage and use GPU for Encode ffmpeg, i was install_ https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/ on GeForce GTX 960 T after that i change video encode from H264 to H264_nvenc and finally i see this one : cpu lov so its much faster and low cpu usage :+1: what do you think ?

saman-magnus avatar Jan 23 '22 06:01 saman-magnus

hello MacWarrior i find a way to fix cpu usage and use GPU for Encode ffmpeg, i was install_ https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/ on GeForce GTX 960 T after that i change video encode from H264 to H264_nvenc and finally i see this one : cpu lov so its much faster and low cpu usage 👍 what do you think ?

Yes. You just change libx264 to h264_nvenc for GPU in command at ffmpeg.class.php. Speed will be 15x to 27x for GPU 10GB-12GB

anhthoai avatar Mar 31 '22 07:03 anhthoai