Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg not finding vcodec h264

Tags:

ffmpeg

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?

like image 459
buzz Avatar asked Jul 05 '11 12:07

buzz


1 Answers

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.

like image 62
Rose Perrone Avatar answered Sep 27 '22 21:09

Rose Perrone