How to use x264 encoder on AMS on version 2.5.1 and above? #5087
-
How can I configure AMS to use the x264 encoder on version 2.5.1 and above? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
AMS uses the libopenh264 encoder by default starting with v2.5.1. Prior to v2.5.1, the default encoder was libx264. Please follow the steps below to utilise the x264 encoder in subsequent versions.
|
Beta Was this translation helpful? Give feedback.
-
Here is a script to convert libopenh264 to libx264
|
Beta Was this translation helpful? Give feedback.
-
Let me update the answer with the Ant Media Server v2.14.0
After publishing the stream, you should see the following logs which means libx264 is working for you
|
Beta Was this translation helpful? Give feedback.
Let me update the answer with the Ant Media Server v2.14.0
Download the ffmpeg-7.1-1.5.11-linux-x86_64-gpl.jar from Maven Repository or ask help to get the latest version from support team
Copy the jar file to your to
/usr/local/antmedia/plugins
folder, and grant the antmedia user access to the file.live' and change
encoderNamefrom empty to
libx264`