I am new to ffmpeg and use it on Windows. I tried to convert avi file using vcodec H.264 (h264). Got this error: Unknown encoder 'h264'. The error "Unknown encoder" also appeared for MP3 to use -acodec.
Can anyone help me with this?
Few things:
ffmpeg -codecs
h264
mp3
x264
libx264
libmp3lame
x264 run ./configure ffmpeg, :
./configure
--enable-gpl --enable-shared --enable-libx264 --extra-cflags="-I/path/to/include" --extra-ldflags="-L/path/to/lib"
-I/path/to/include -I/usr/local/include -L/path/to/lib -L/usr/local/lib.
-I/path/to/include
-I/usr/local/include
-L/path/to/lib
-L/usr/local/lib
Be sure to enable the 'h264' encoder when configuring FFmpeg. The h264 encodings fall under the GPL.
Information on creating ffmpeg using libx264:
https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20FFmpeg%20with%20libx264%20(x264,%20H.264)