obsproject / obsproject/obs-studio
AMD hardware encoding encountered the error "amf_encode_tex: SubmitInput failed: AMF_FAIL"
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 76.4k
- Forks
- 10.2k
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 12
Description
Operating System Info
Windows 10
Other OS
No response
OBS Studio Version
Other
OBS Studio Version (Other)
OBS 30.2.2 (64-bit, windows)
OBS Studio Log URL
https://obsproject.com/logs/ig5PUj3JpKAccmnK
OBS Studio Crash Log URL
No response
Expected Behavior
The OBS can properly encode and stream the content.
Current Behavior
When I used OBS to stream video at a resolution of 2560x1600 to the ZLM streaming server via RTMP, an encoding error occurred. The error message was:
11:36:30.987: [texture-amf-h264: 'advanced_video_stream'] amf_encode_tex: SubmitInput failed: AMF_FAIL
Laptop configuration:
Resolution: 2560x1600;
Hardware graphics card model: AMD Radeon(TM) Vega 8 Graphics;
Note that when I changed the display resolution of my laptop to 1920x1080p (right-click on the desktop -> select Display Settings -> modify resolution), this problem did not occur and OBS could encode normally again. I'm not sure if this is because the graphics card only supports 1920x1080p and not 2560x1600.
Steps to Reproduce
Note: The following steps may not be applicable to every AMD graphics card. I only encountered this for the first time when the graphics card model was AMD Radeon(TM) Vega 8 Graphics;
- Open OBS, select Settings -> Live Streaming, add the streaming address, for example, my rtmp://192.168.1.117/live, tyy;
- Settings -> Output, select AMD H264 as the video encoder and disable re-scaling;
- Settings -> Video, select 2560x1600 as both the basic resolution and the output resolution;
- Apply and save;
- Then start the live streaming;
Then an encoding error will occur: amf_encode_tex: SubmitInput failed: AMF_FAIL
Anything else we should know?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked OBS log and the AMD H.264 encoder path indicated by amf_encode_tex: SubmitInput failed: AMF_FAIL. Reproduce the failure using AMD Radeon Vega 8 Graphics at 2560x1600, compare it with 1920x1080, and determine whether the encoder should handle or clearly report the unsupported configuration.
Written by the indexing model from the issue text.
Assessment
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100