i am a newbie to ffmpeg and am using it on Windows. I tried to convert an avi file using the H.264 vcodec (h264). Got this error: Unknown encoder 'h264'. The 'Unknown encoder' error also showed up for mp3 for -acodec usage.
Can anyone please help me out with this?
Install x264
and add run ./configure
in ffmpeg's directory, using these flags:
--enable-gpl
--enable-shared
--enable-libx264
--extra-cflags="-I/path/to/include"
--extra-ldflags="-L/path/to/lib"
where -I/path/to/include
is likely -I/usr/local/include
and -L/path/to/lib
is likely -L/usr/local/lib
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With