<p>If the codec lib isn't linked in your binary, you can get one which does from <a href="https://www.johnvansickle.com/ffmpeg/" rel="nofollow noreferrer">https://www.johnvansickle.com/ffmpeg/</a> (get a git build).</p>

CC BY-SA 3.0
2017-10-15T06:19:57.097Z
It seems that installing the libavcodec-extra package might also solve the OP's issue. (https://packages.ubuntu.com/xenial/libavcodec-extra)
audionuma
CC BY-SA 3.0
2017-06-17T04:40:55.253Z
2017-06-17T04:40:55.253Z
Gyan
<p>Compile x264 by yourself, then compile ffmpeg with option <code>--enable-libx264</code></p>

CC BY-SA 3.0
2017-10-15T15:16:42.707Z
2017-10-15T15:16:42.707Z
bukkojot
<p>I am running ffmpeg on ubuntu.</p>

<p>I tried to set the codec to libx264 but it was not recognised by ffmmpeg.</p>

<p>Is there a way too install that codec for use by ffmpeg?</p>

<ffmpeg><libx264>
libx264 for ffmpeg on linux
Scorb
# libx264 for ffmpeg on linux

(Asked by: username_0 on 2017-06-17)

I am running ffmpeg on ubuntu.

I tried to set the codec to libx264 but it was not recognised by ffmmpeg.

Is there a way too install that codec for use by ffmpeg?

**Tags:** ffmpeg, libx264


---

## 2 answers

### Answer by username_1 on 2017-06-17. Score: 0

If the codec lib isn't linked in your binary, you can get one which does from <https://www.johnvansickle.com/ffmpeg/> (get a git build).

> **Comments:**
> **username_2**: It seems that installing the libavcodec-extra package might also solve the OP's issue. (https://packages.ubuntu.com/xenial/libavcodec-extra)  

---

### Answer by username_3 on 2017-10-15. Score: 0

Compile x264 by yourself, then compile ffmpeg with option `--enable-libx264`


---

