Ffmpeg does not find vcodec h264

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?

+5
source share
4 answers

Few things:

  • Run the command ffmpeg -codecsto view the codecs supported by your ffmpeg build.
  • h264 mp3 , . H.264, ffmpeg, x264, x264, libx264 , # 1. Mp3- - libmp3lame.
  • ffmpeg, , ffmpeg. ffmpeg -codecs, , .
+12

x264 run ./configure ffmpeg, :

--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.

+2

Be sure to enable the 'h264' encoder when configuring FFmpeg. The h264 encodings fall under the GPL.

0
source

All Articles