В сообщении от Tuesday 23 October 2007 00:39:57 Francesco Romani написал(а): > On Tue, 2007-10-23 at 01:59 +0930, Shawn Haggett wrote: > > Francesco Romani wrote: > > > On 10/20/07, SIEGERSTEIN <[EMAIL PROTECTED]> wrote: > > >> hi! I can't capture or convert video with x264 encoder. > > > > > > Ack. I'll investigate ASAP, now I'm pretty busy. > > > In the meantime, using 1.1.0alpha4, please try using NMS modules (-y > > > x264,lame,avi -N h264,mp3) and report the results. > > > > > > Bests, > > > > Thanks for that. For me at least, the above works. > > Ok, nice to read. > > > Just as a bit more information, I'm using Gentoo (which means this was > > compiled on my machine), I'm not sure if the Gentoo package missed an > > option to a configure script or something though. > > Can you post the output of the command > $ ffmpeg -formats | grep 264 > ? >
My output: $ ffmpeg -formats | grep 264 FFmpeg version SVN-r10815, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/usr --enable-shared --enable-static --enable-gpl --enable-pthreads --enable-x11grab --enable-liba52 --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-march=prescott -mtune=prescott -pipe -O2 -ggdb libavutil version: 49.5.0 libavcodec version: 51.46.0 libavformat version: 51.15.0 built on Oct 20 2007 06:44:17, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.1) DE h264 raw H264 video format D V DT h264 EV libx264 Codec is supported. > > After digging through the code in CVS a little, it seems the problem is > > at the line in export_ffmpeg.c: > > /* -- get it -- */ > > lavc_venc_codec = avcodec_find_encoder_by_name(codec->name); > > if (!lavc_venc_codec) { > > tc_log_warn(MOD_NAME, "Could not find a FFMPEG codec for '%s'.", > > codec->name); > > return TC_EXPORT_ERROR; > > } > > > > avcodec_find_encoder_by_name can't find the codec. > > That usually means that codec was not enabled at ./configure() time > and/or not registered, but we register all avalaible libavcodec codecs > before to finding the encoder. > > > From poking around > > some more this seems to be defined in <ffmpeg/avcodec.h>. This leads me > > to wonder if it is a problem in transcode, a problem in ffmpeg or > > something to do with the way Gentoo has built things. > > I'm going to do some tests on my box, but since nobody has changed this > code in a while, I'm pretty confident that it will work (so, I'll bet > this issue is caused by a build/local problem). > > Bests,