[PR #2251] [MERGED] add support for AMD AMF hardware encoding on Windows & Linux #9049

Closed
opened 2026-02-07 05:55:13 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/2251
Author: @nyanmisaka
Created: 1/10/2020
Status: Merged
Merged: 1/16/2020
Merged by: @dkanada

Base: masterHead: master


📝 Commits (4)

  • e95239e add support for AMD h264_amf & hevc_amf
  • 08c4d37 add support for AMF hardware encoding on Linux.
  • 8868ff2 remove useless comment
  • 2c10891 turn on indentation.

📊 Changes

2 files changed (+5 additions, -16 deletions)

View changed files

📝 MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs (+2 -15)
📝 MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs (+3 -1)

📄 Description

Changes

  1. Add support for AMD AMF hardware encoding on Windows and Linux which can reduce cpu usage instead of using default libx264 in ffmpeg.
  2. h264_amf is now supported on linux with 'amdgpu-pro' installed and '--enable-amf' when compiling ffmpeg.
  3. Using vaapi decode and h264_amf encode on linux platform can avoid some weird transcoding errors in h264_vaapi with amd gpu.

It works like this on windows now.
ffmpeg h264_amf on linux encoding succeed logs

Fixes
issue #1420


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/2251 **Author:** [@nyanmisaka](https://github.com/nyanmisaka) **Created:** 1/10/2020 **Status:** ✅ Merged **Merged:** 1/16/2020 **Merged by:** [@dkanada](https://github.com/dkanada) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`e95239e`](https://github.com/jellyfin/jellyfin/commit/e95239e28132b4d6486ee9272d20ec5ada46b66c) add support for AMD h264_amf & hevc_amf - [`08c4d37`](https://github.com/jellyfin/jellyfin/commit/08c4d3797fd2bb54936d4cba1b71de915432ebd1) add support for AMF hardware encoding on Linux. - [`8868ff2`](https://github.com/jellyfin/jellyfin/commit/8868ff2ffa7d50d19779e5e8c1f661ece9fd0321) remove useless comment - [`2c10891`](https://github.com/jellyfin/jellyfin/commit/2c10891b66bf5963d2bfca34b704607a3bc0de85) turn on indentation. ### 📊 Changes **2 files changed** (+5 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs` (+2 -15) 📝 `MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs` (+3 -1) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** 1) Add support for AMD AMF hardware encoding on Windows and Linux which can reduce cpu usage instead of using default libx264 in ffmpeg. 2) h264_amf is [now supported on linux](https://github.com/GPUOpen-LibrariesAndSDKs/AMF/issues/4#issuecomment-572301302) with ['amdgpu-pro'](https://amdgpu-install.readthedocs.io/en/latest/) installed and '--enable-amf' when compiling [ffmpeg](https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/f8ad2ddd7a51df5d6e768ba2a6f65ee64b94e29b). 3) Using vaapi decode and h264_amf encode on linux platform can avoid some weird transcoding [errors in h264_vaapi with amd gpu](https://github.com/jellyfin/jellyfin/issues/1527). It works like [this](https://imgur.com/Q3GrwkS) on windows now. ffmpeg h264_amf on linux encoding succeed [logs](https://raw.githubusercontent.com/nyanmisaka/notepad/master/ffmpeg_h264_amf_on_linux_log?token=ADSCUQFAXHGMECH37SDK6EC6ERPD6) **Fixes** issue #1420 <!-- Describe your changes here in 1-5 sentences. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 05:55:13 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9049