Enable AMD gpu for FFmpeg?
2 hours ago, Electronics Wizardy said:shoudl be decoder=dxva2(ithink, try it)
You use "-hwaccel yourdecoderhere" or "-hwaccel auto" nowadays.
2 hours ago, Electronics Wizardy said:x264 encoding
x264 is the specific software for encoding, H.264 is the codec; x264 outputs H.264. Not the same thing, you can't output x264.
3 hours ago, huyuc0ng said:I think h264_amf works with amd gpu?
Yes, it is. You'd use it as follows:
ffmpeg -hwaccel auto -i video.mp4 -c:v h264_amf output\%05d.jpg
Do notice that I added "-hwaccel auto" there since that speeds up the decoding-process as well. It helps to use H/W-accel for both decoding and encoding.
EDIT: Forgot to mention that you can check all the various h264_amd - specific settings with:
ffmpeg -h encoder=h264_amf
EDIT2: I am more awake now and actually read what the OP wrote. You can't output JPG-files with a H.264-encoder, so h264_amf isn't useful in this scenario in the first place.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now