I have an AMD GPU (R7 370) and trying to change resolution of videos using GPU. While using h264 codec which utilizes CPU it can change resolution of videos however when i try using h264_amf encoder to utilize GPU instead of CPU it crashes and gives "SubmitInput() failed with error 29" and "Error submitting video frame to the encoder" errors. Screenshot is as below.
(https://i.stack.imgur.com/qBDOk.png)
The ffmpeg query used for this process is as below.
ffmpeg -i "input.mp4" -vcodec h264_amf -vf scale=5800x2900 -crf 28 "output.mp4"
input video resolution is 71683584 and if i change scale to 19201080 it runs perfectly. This problem only appears on high resolutions
I tried using other codecs but other codecs doesn't work on AMD GPU's at all. I will be glad if someone helps me to solve this issue