Skip to content
\n
    \n
  • Remove the old file ffmpeg jar
  • \n
\n
sudo rm /usr/local/antmedia/plugins/ffmpeg-7.1-1.5.11-linux-x86_64.jar \n
\n
    \n
  • Login the webpanel and go to the advanced settings of application that you use such as live' and change encoderNamefrom empty tolibx264`
  • \n
\n
 \"encoderName\": \"libx264\",\n
\n
    \n
  • Click the save button and do not forget to add some adaptive bitrates
  • \n
\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
","upvoteCount":1,"url":"https://github.com/orgs/ant-media/discussions/5087#discussioncomment-13246468"}}}

How to use x264 encoder on AMS on version 2.5.1 and above? #5087

Answered by mekya
Mohit-3196 asked this question in FAQs
Discussion options

You must be logged in to vote

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.

sudo chown -R antmedia:antmedia /usr/local/antmedia/plugins
  • Remove the old file ffmpeg jar
sudo rm /usr/local/antmedia/plugins/ffmpeg-7.1-1.5.11-linux-x86_64.jar 
  • Login the webpanel and go to the advanced settings of application that you use such as live' and change encoderNamefrom empty tolibx264`
 "encoderName": "libx264",
  • Click the save button and do not forget to add some ad…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@muratugureminoglu
Comment options

@mekya
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mekya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants