I'm trying to create an MP4 file with FFMPEG to play with a HTML5 video tag.
I found some sample codes that use libx264, but when I tried, FFMPEG gave me an "unknown encoder libx264" error.
I asked my host to install it on my server, and got the following reply:
After review from our L3 group I am informed that x264 is not supported with FFMPEG any longer. That was a library that went with FFMPEG-PHP that is not supported at all by anyone.
In order to get that to work with FFMPEG you would need to contact the developers of the FFMPEG software to get assistance with that as it is outside our scope of support.
I looked everywhere online, but can't seem to find an answer to this. If libx264 is not supported anymore, how is everyone else doing it? Still libx264 with an older FFMPEG version, or some other way?
x264 encoder is an optional lib in ffmpeg, so everyone else using FFMPEG to perform MP4/H264 video encoding use an ffmpeg version build with
--enable-libx264
.See below how to quickly check if your ffmpeg version support x264 encoding.