error: ‘x264_bit_depth’ undeclared (first use in this function)

When installing ffmpeg, i get error

This is due to incompatability with ffmpeg and x264.

What you can do is try another version of x264. You will be able to download older version of x264 from

On 2018-08-14, it failed with latest stable snapshot. So i tried 14 days old stable snapshot

This worked with ffmpeg.

Solution here is to try latet version first, if it did not work, try older version, say try 1 month old version, if that did not work, go back 2 months, see if that works.

Now install ffmpeg with