I'm trying to encode video from webcam on Debian Wheezy with ffmpeg. And it works fine with any video codec but libx264. When i use libx264 all i get is:
Code: Select all
ffmpeg -y -f video4linux2 -s 320x240 -r 1 -i /dev/video0 -r 1 -vcodec libx264 -s 320x240 -b:v 50K -f mp4 /tmp/test.mp4
ffmpeg version git-2012-06-21-9e63c30 Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 24 2012 02:22:41 with gcc 4.6.3
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-nonfree --enable-version3 --enable-librtmp
libavutil 51. 59.100 / 51. 59.100
libavcodec 54. 29.100 / 54. 29.100
libavformat 54. 10.100 / 54. 10.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 82.100 / 2. 82.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[video4linux2,v4l2 @ 0x12a4510] The driver changed the time per frame from 1/1 to 1/5
[video4linux2,v4l2 @ 0x12a4510] Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 227240.304332, bitrate: 6144 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 6144 kb/s, 5 tbr, 1000k tbn, 5 tbc
[buffer @ 0x12aaf70] w:320 h:240 pixfmt:yuyv422 tb:1/1 fr:1/1 sar:0/1 sws_param:flags=2
[ffmpeg_buffersink @ 0x12a02c0] No opaque field provided
[buffer @ 0x12aaf70] TB:1.000000
[scale @ 0x12a08d0] w:320 h:240 fmt:yuyv422 sar:0/1 -> w:320 h:240 fmt:yuv422p sar:0/1 flags:0x4
Illegal instruction
As i understand it happens beacuse of absense of NEON, so i tried to recompile
libx264 with --disable-asm then ffmpeg, but result is the same.
So appearently there missing something else. But what?