- \n
- Remove the old file ffmpeg jar \n
sudo rm /usr/local/antmedia/plugins/ffmpeg-7.1-1.5.11-linux-x86_64.jar \n
- \n
- Login the webpanel and go to the advanced settings of application that you use such as
live' and change
encoderNamefrom empty to
libx264` \n
\"encoderName\": \"libx264\",\n
- \n
- Click the save button and do not forget to add some adaptive bitrates \n
After publishing the stream, you should see the following logs which means libx264 is working for you
\n[vert.x-worker-thread-24] INFO i.a.e.adaptive.video.H264Encoder - Video codec opened. .... codecName: libx264 for stream: stream1\n
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`