[FFmpeg-user] ffmpeg Unknown encoder 'libx264' error

Ned Haskin feanor2112 at covad.net
Mon Aug 5 03:27:50 CEST 2013


Hi, I compiled x264-0.135, lame-3.99.5 & ffmpeg-2 on debian-7.1. No errors, lots of
warnings on ffmpeg's make, but no errors. I used --enable-shared on all 3. I used these pages as reference. 

https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20libx264 

https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20FFmpeg%20with%20mp3%2C%20aac%2B%20and%20x264 

See below for my ./configure for ffmpeg, I added a bunch of --enables- all were part of the deb compile. 
That I thought, I may need in the future. 

I get an error on trying to encode Unknown encoder 'libx264' 

ned337 at vid:~/video-final/bicycle$ ffmpeg -f concat -i bike02-2012.txt -acodec libfaac -ab 384k -ar 44100 -vcodec libx264 -s 720x480 -r 29.48 -aspect 4:3 -profile:v high444 -b:v 700 bike020212.mp4
ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 29 2013 13:49:23 with gcc 4.7 (Debian 4.7.2-5)
  configuration: 
  libavutil      52. 40.100 / 52. 40.100
  libavcodec     55. 19.100 / 55. 19.100
  libavformat    55. 12.102 / 55. 12.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 81.103 /  3. 81.103
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.103 /  0. 17.103
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2fad700] Stream #1: not enough frames to estimate rate; consider increasing probesize
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2fad700] Could not find codec parameters for stream 1 (Audio: mp3 (.mp3 / 0x33706D2E), 44100 Hz, 2 channels, s16p, 223 kb/s): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[concat @ 0x2fa4aa0] Stream #1: not enough frames to estimate rate; consider increasing probesize
[concat @ 0x2fa4aa0] Estimating duration from bitrate, this may be inaccurate
[concat @ 0x2fa4aa0] Could not find codec parameters for stream 1 (Audio: mp3 (.mp3 / 0x33706D2E), 44100 Hz, 2 channels, s16p, 223 kb/s): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, concat, from 'bike02-2012.txt':
  Duration: N/A, start: 0.000000, bitrate: 244739 kb/s
    Stream #0:0: Video: rawvideo (raw  / 0x20776172), rgb24, 720x480, 244515 kb/s, 29.48 fps, 29.48 tbr, 29509 tbn, 29509 tbc
    Stream #0:1: Audio: mp3 (.mp3 / 0x33706D2E), 44100 Hz, stereo, s16p, 223 kb/s
Unknown encoder 'libx264'
ned337 at vid:~/video-final/bicycle$ 

So after confirming that make install actually put libx264 in /usr/local/lib/ 

ned337 at vid:~/x264-0135$ gksu make install
install -d /usr/local/bin
install x264 /usr/local/bin
install -d /usr/local/include
install -d /usr/local/lib
install -d /usr/local/lib/pkgconfig
install -m 644 ./x264.h /usr/local/include
install -m 644 x264_config.h /usr/local/include
install -m 644 x264.pc /usr/local/lib/pkgconfig
ln -f -s libx264.so.135 /usr/local/lib/libx264.so
install -m 755 libx264.so.135 /usr/local/lib
install -m 644 libx264.a /usr/local/lib
ranlib /usr/local/lib/libx264.a

I tried encoding to xvid that didn't work either. Same error just
libxvid unknown. Yes libxvid-dev is installed. Encoding to mjpeg works
with pcm audio. But, not with libmp3lame, libtwolame or libfaac. Yes
their -dev files are installed. 

This is my ffmpeg ./configure which ran without warnings or errors. 


ned337 at vid:~/ffmpeg$ make clean
ned337 at vid:~/ffmpeg$ ./configure --enable-libdc1394 --prefix=/usr
--extra-cflags='-Wall -g ' --enable-gpl --enable-shared --enable-nonfree
--enable-libx264  --enable-encoder=libx264 --enable-libmp3lame
--enable-libvorbis --enable-libtwolame --enable-libv4l2
--enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc
--enable-x11grab --enable-libtheora --disable-stripping
--enable-avfilter --enable-libfreetype --enable-opencl --enable-version3
--enable-libopenjpeg --disable-altivec --disable-armv5te --disable-armv6
--disable-vis 

# skipped some stuff

Enabled encoders:
a64multi		libopenjpeg		pgm
a64multi5		libtheora		pgmyuv
aac			libtwolame		png
ac3			libvorbis		ppm
ac3_fixed		libx264			prores
adpcm_adx		libx264rgb		prores_aw
adpcm_g722		libxvid			prores_ks
adpcm_g726		ljpeg			qtrle
adpcm_ima_qt		mjpeg			r10k
adpcm_ima_wav		movtext			r210

# skipped some stuff

License: nonfree and unredistributable
Creating config.mak, config.h, and doc/config.texi...
libavutil/avconfig.h is unchanged
ned337 at vid:~/ffmpeg$ 

No errors or warnings on ./configure 

ned337 at vid:~/ffmpeg$ gksu make
CC	libavdevice/alldevices.o
CC	libavdevice/alsa-audio-common.o
CC	libavdevice/alsa-audio-dec.o
CC	libavdevice/alsa-audio-enc.o
CC	libavdevice/avdevice.o
CC	libavdevice/dv1394.o
CC	libavdevice/fbdev.o
CC	libavdevice/lavfi.o
CC	libavdevice/libdc1394.o
CC	libavdevice/oss_audio.o
CC	libavdevice/sdl.o
CC	libavdevice/timefilter.o
CC	libavdevice/v4l2-common.o
CC	libavdevice/v4l2.o
libavdevice/v4l2.c: In function ‘mmap_read_frame’:
libavdevice/v4l2.c:554:9: warning: ‘destruct’ is deprecated (declared
at ./libavcodec/avcodec.h:1076) [-Wdeprecated-declarations]
CC	libavdevice/v4l2enc.o
CC	libavdevice/x11grab.o
AR	libavdevice/libavdevice.a

# skipped lots of stuff 

LD	ffmpeg_g
CP	ffmpeg
STRIP	ffmpeg
skipping strip ffmpeg
CC	ffplay.o
LD	ffplay_g
CP	ffplay
STRIP	ffplay
skipping strip ffplay
CC	ffprobe.o
LD	ffprobe_g
CP	ffprobe
STRIP	ffprobe
skipping strip ffprobe
CC	ffserver.o
LD	ffserver_g
CP	ffserver
STRIP	ffserver
skipping strip ffserver
ned337 at vid:~/ffmpeg$


If you want all of the cl output, I have it.


ned337 at vid:~/ffmpeg$ gksu make install
INSTALL	libavdevice/libavdevice.a
INSTALL	libavdevice/libavdevice.so
STRIP	install-libavdevice-shared
skipping strip /usr/lib/libavdevice.so.55.3.100
INSTALL	libavfilter/libavfilter.a
INSTALL	libavfilter/libavfilter.so
STRIP	install-libavfilter-shared
skipping strip /usr/lib/libavfilter.so.3.81.103
INSTALL	libavformat/libavformat.a
INSTALL	libavformat/libavformat.so
STRIP	install-libavformat-shared
skipping strip /usr/lib/libavformat.so.55.12.102
INSTALL	libavcodec/libavcodec.a
INSTALL	libavcodec/libavcodec.so
STRIP	install-libavcodec-shared
skipping strip /usr/lib/libavcodec.so.55.19.100
INSTALL	libpostproc/libpostproc.a
INSTALL	libpostproc/libpostproc.so
STRIP	install-libpostproc-shared
skipping strip /usr/lib/libpostproc.so.52.3.100
INSTALL	libswresample/libswresample.a
INSTALL	libswresample/libswresample.so
STRIP	install-libswresample-shared
skipping strip /usr/lib/libswresample.so.0.17.103
INSTALL	libswscale/libswscale.a
INSTALL	libswscale/libswscale.so
STRIP	install-libswscale-shared
skipping strip /usr/lib/libswscale.so.2.4.100
INSTALL	libavutil/libavutil.a
INSTALL	libavutil/libavutil.so
STRIP	install-libavutil-shared
skipping strip /usr/lib/libavutil.so.52.40.100
INSTALL	doc/ffmpeg.1
INSTALL	doc/ffplay.1
INSTALL	doc/ffprobe.1
INSTALL	doc/ffserver.1
INSTALL	doc/ffmpeg-all.1
INSTALL	doc/ffplay-all.1
INSTALL	doc/ffprobe-all.1
INSTALL	doc/ffserver-all.1
INSTALL	doc/ffmpeg-utils.1
INSTALL	doc/ffmpeg-scaler.1
INSTALL	doc/ffmpeg-resampler.1
INSTALL	doc/ffmpeg-codecs.1
INSTALL	doc/ffmpeg-bitstream-filters.1
INSTALL	doc/ffmpeg-formats.1
INSTALL	doc/ffmpeg-protocols.1
INSTALL	doc/ffmpeg-devices.1
INSTALL	doc/ffmpeg-filters.1
INSTALL	doc/libavutil.3
INSTALL	doc/libswscale.3
INSTALL	doc/libswresample.3
INSTALL	doc/libavcodec.3
INSTALL	doc/libavformat.3
INSTALL	doc/libavdevice.3
INSTALL	doc/libavfilter.3
INSTALL	doc/ffmpeg.1
INSTALL	doc/ffplay.1
INSTALL	doc/ffprobe.1
INSTALL	doc/ffserver.1
INSTALL	doc/ffmpeg-all.1
INSTALL	doc/ffplay-all.1
INSTALL	doc/ffprobe-all.1
INSTALL	doc/ffserver-all.1
INSTALL	doc/ffmpeg-utils.1
INSTALL	doc/ffmpeg-scaler.1
INSTALL	doc/ffmpeg-resampler.1
INSTALL	doc/ffmpeg-codecs.1
INSTALL	doc/ffmpeg-bitstream-filters.1
INSTALL	doc/ffmpeg-formats.1
INSTALL	doc/ffmpeg-protocols.1
INSTALL	doc/ffmpeg-devices.1
INSTALL	doc/ffmpeg-filters.1
INSTALL	doc/libavutil.3
INSTALL	doc/libswscale.3
INSTALL	doc/libswresample.3
INSTALL	doc/libavcodec.3
INSTALL	doc/libavformat.3
INSTALL	doc/libavdevice.3
INSTALL	doc/libavfilter.3
INSTALL	install-progs-yes
INSTALL	ffmpeg
INSTALL	ffplay
INSTALL	ffprobe
INSTALL	ffserver
INSTALL	presets/libvpx-1080p50_60.ffpreset
INSTALL	presets/libvpx-1080p.ffpreset
INSTALL	presets/libvpx-360p.ffpreset
INSTALL	presets/libvpx-720p50_60.ffpreset
INSTALL	presets/libvpx-720p.ffpreset
INSTALL	presets/libx264-ipod320.ffpreset
INSTALL	presets/libx264-ipod640.ffpreset
INSTALL	doc/ffprobe.xsd
INSTALL	doc/examples/decoding_encoding.c
INSTALL	doc/examples/demuxing.c
INSTALL	doc/examples/filtering_audio.c
INSTALL	doc/examples/filtering_video.c
INSTALL	doc/examples/metadata.c
INSTALL	doc/examples/muxing.c
INSTALL	doc/examples/resampling_audio.c
INSTALL	doc/examples/scaling_video.c
INSTALL	doc/examples/Makefile
INSTALL	doc/examples/README
INSTALL	presets/libvpx-1080p50_60.ffpreset
INSTALL	presets/libvpx-1080p.ffpreset
INSTALL	presets/libvpx-360p.ffpreset
INSTALL	presets/libvpx-720p50_60.ffpreset
INSTALL	presets/libvpx-720p.ffpreset
INSTALL	presets/libx264-ipod320.ffpreset
INSTALL	presets/libx264-ipod640.ffpreset
INSTALL	doc/ffprobe.xsd
INSTALL	doc/examples/decoding_encoding.c
INSTALL	doc/examples/demuxing.c
INSTALL	doc/examples/filtering_audio.c
INSTALL	doc/examples/filtering_video.c
INSTALL	doc/examples/metadata.c
INSTALL	doc/examples/muxing.c
INSTALL	doc/examples/resampling_audio.c
INSTALL	doc/examples/scaling_video.c
INSTALL	doc/examples/Makefile
INSTALL	doc/examples/README
INSTALL	libavdevice/avdevice.h
INSTALL	libavdevice/version.h
INSTALL	libavdevice/libavdevice.pc
INSTALL	libavfilter/asrc_abuffer.h
INSTALL	libavfilter/avcodec.h
INSTALL	libavfilter/avfilter.h
INSTALL	libavfilter/avfiltergraph.h
INSTALL	libavfilter/buffersink.h
INSTALL	libavfilter/buffersrc.h
INSTALL	libavfilter/version.h
INSTALL	libavfilter/libavfilter.pc
INSTALL	libavformat/avformat.h
INSTALL	libavformat/avio.h
INSTALL	libavformat/version.h
INSTALL	libavformat/libavformat.pc
INSTALL	libavcodec/avcodec.h
INSTALL	libavcodec/avfft.h
INSTALL	libavcodec/dxva2.h
INSTALL	libavcodec/old_codec_ids.h
INSTALL	libavcodec/vaapi.h
INSTALL	libavcodec/vda.h
INSTALL	libavcodec/vdpau.h
INSTALL	libavcodec/version.h
INSTALL	libavcodec/xvmc.h
INSTALL	libavcodec/libavcodec.pc
INSTALL	libpostproc/postprocess.h
INSTALL	libpostproc/version.h
INSTALL	libpostproc/libpostproc.pc
INSTALL	libswresample/swresample.h
INSTALL	libswresample/version.h
INSTALL	libswresample/libswresample.pc
INSTALL	libswscale/swscale.h
INSTALL	libswscale/version.h
INSTALL	libswscale/libswscale.pc
INSTALL	libavutil/adler32.h
INSTALL	libavutil/aes.h
INSTALL	libavutil/attributes.h
INSTALL	libavutil/audio_fifo.h
INSTALL	libavutil/audioconvert.h
INSTALL	libavutil/avassert.h
INSTALL	libavutil/avstring.h
INSTALL	libavutil/avutil.h
INSTALL	libavutil/base64.h
INSTALL	libavutil/blowfish.h
INSTALL	libavutil/bprint.h
INSTALL	libavutil/bswap.h
INSTALL	libavutil/buffer.h
INSTALL	libavutil/channel_layout.h
INSTALL	libavutil/common.h
INSTALL	libavutil/cpu.h
INSTALL	libavutil/crc.h
INSTALL	libavutil/error.h
INSTALL	libavutil/eval.h
INSTALL	libavutil/fifo.h
INSTALL	libavutil/file.h
INSTALL	libavutil/frame.h
INSTALL	libavutil/hmac.h
INSTALL	libavutil/imgutils.h
INSTALL	libavutil/intfloat.h
INSTALL	libavutil/intfloat_readwrite.h
INSTALL	libavutil/intreadwrite.h
INSTALL	libavutil/lfg.h
INSTALL	libavutil/log.h
INSTALL	libavutil/mathematics.h
INSTALL	libavutil/md5.h
INSTALL	libavutil/mem.h
INSTALL	libavutil/murmur3.h
INSTALL	libavutil/dict.h
INSTALL	libavutil/old_pix_fmts.h
INSTALL	libavutil/opt.h
INSTALL	libavutil/parseutils.h
INSTALL	libavutil/pixdesc.h
INSTALL	libavutil/pixfmt.h
INSTALL	libavutil/random_seed.h
INSTALL	libavutil/rational.h
INSTALL	libavutil/ripemd.h
INSTALL	libavutil/samplefmt.h
INSTALL	libavutil/sha.h
INSTALL	libavutil/sha512.h
INSTALL	libavutil/time.h
INSTALL	libavutil/timecode.h
INSTALL	libavutil/timestamp.h
INSTALL	libavutil/version.h
INSTALL	libavutil/xtea.h
INSTALL	libavutil/lzo.h
INSTALL	libavutil/opencl.h
INSTALL	libavutil/avconfig.h
INSTALL	libavutil/libavutil.pc
ned337 at vid:~/ffmpeg$ 

Thanks in Advance, 
Ned 



More information about the ffmpeg-user mailing list