1
votes

how to run ffmpeg in ubuntu and in gpu. https://jcutrer.com/howto/ffmpeg-amd-nvidia-hardware-video-encoding-h264-h265

I am using the codes on this site. but gpu commands do not work. I'm not sure if my GPU driver is installed.

I write ffmpeg -i input.avi -c:v h264_amf output.mp4 when ,Unknown encoder 'h264_amf

1
"do not work" -- how do they not work? Please show the codes you use and the error messages or output problems you receive in return. If you suspect a driver issue, please give details about your graphics card and the driver you installed (with the command you used to install it).L. Scott Johnson
I write ffmpeg -i input.avi -c:v h264_amf output.mp4 when ,Unknown encoder 'h264_amf'Hakan Murat Aksüt
That's very important info: you should edit your question to include that info.L. Scott Johnson

1 Answers

2
votes

To use h264_amf, you have to build ffmpeg with support for that encoder using the

--build-amd-amf=y

flag. See the Windows build helpers project for more info.

On linux, use

ffmpeg -h encoder=h264_vaapi

instead. And see How to use GPU acceleration in FFmpeg with AMD Radeon? on askubuntu.