ffmpegでxvidを使いたい。
はじめまして。
一通り「Home > Mac OS X > Mac OS X v10.4 - Tiger > Mac OS X Technologies > UNIX」など読ませて頂いて、"ffmpeg"や"xvid"をキーワードに検索してみましたが、類似の話題を見つけられなかったので書き込ませていただきます。
ffmpegを使用してxvid形式で動画をエンコードしたいのですが、ffmpegのコンパイル時に、(ffmpeg_src_dir)$ ./configure --enable-xvid --enable-gplと指定してmakeするとこけてしまします。
--libdirオプションで/usr/local/libや/usr/lib,/sw/libを指定してみたのですが、make時のエラーメッセージは変わらずです。
xvidcoreは、Fink版とhttp://www.xvid.org/から頂いてきたxvidcore-1.1.0.tar.gzをオプション無指定でコンパイルしたものが入っています。
なお、ffmpegはオプションなしで(xvid無効)コンパイル、使用はできています。
また、他のオプションを指定してコンパイルもできましたので、xvidとの問題であると考えていますが、それ以上切り分けられずにいます。
もしなにか情報お持ちの方がおられればお教え願います。
#ffmpegxなどの存在も知っていますが、シェルスクリプトでTV録画したmpeg2ファイルなどを自動処理したいため、CUIにこだわっています。
$ uname -a
Darwin iBook-G4.local 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan 3 18:22:10 PST 2006; root:xnu-792.6.56.obj〜1/RELEASE_PPC Power Macintosh powerpc
$ /usr/local/bin/ffmpeg -version
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
configuration:
libavcodec version: 51.1.0
libavformat version: 50.0.0
built on Jan 28 2006 20:31:29, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
ffmpeg CVS
libavcodec 3342592
libavformat 3276800
./configure --enable-xvid --enable-gpl
install prefix /usr/local
source path /usr/src/ffmpeg
C compiler cc
make make
CPU powerpc (generic)
big-endian yes
inttypes.h yes
broken inttypes.h no
AltiVec enabled yes
gprof enabled no
zlib enabled yes
lzo enabled no
libgsm enabled no
mp3lame enabled no
libogg enabled no
Vorbis enabled no
Theora enabled no
FAAD enabled no
faadbin enabled no
FAAC enabled no
XviD enabled yes
x264 enabled no
a52 support no
a52 dlopened no
DTS support no
pp support no
debug symbols yes
strip symbols yes
optimize yes
shared no
video hooking yes
SDL support no
Imlib2 support no
FreeType support yes
Sun medialib support no
pthreads support no
AMR-NB float support no
AMR-NB fixed support no
AMR-WB float support no
AMR-WB IF2 support no
network support yes
IPv6 support no
License: GPL
Creating config.mak and config.h...
$ make
make -C libavutil all
cc -O3 -g -Wall -Wno-switch -no-cpp-precomp -pipe -fomit-frame-pointer -force_cpusubtype_ALL -Wno-sign-compare -faltivec -mdynamic-no-pic -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mathematics.o mathematics.c
In file included from mathematics.c:24:
common.h:579: error: static declaration of ‘lrintf’ follows non-static declaration
make[1]: *** [mathematics.o] Error 1
make: *** [lib] Error 2
$ ls -al /usr/lib | grep xvid
lrwxr-xr-x 1 root wheel 31 Jan 28 19:38 libxvidcore.so -> /sw/lib/libxvidcore.4.0.0.dylib
$ ls -al /usr/local/lib | grep xvid
-rw-r--r-- 1 root wheel 520512 Jan 28 19:58 libxvidcore.4.dylib
-rw-r--r-- 1 root wheel 639384 Jan 28 19:58 libxvidcore.a
-rw-r--r-- 1 root wheel 502828 Jan 22 01:23 libxvidcore.so.4
$ ls -al /sw/lib | grep xvid
-rwxr-xr-x 1 root admin 356736 May 25 2005 libxvidcore.4.0.0.dylib
lrwxr-xr-x 1 root admin 31 Jan 28 19:17 libxvidcore.4.dylib -> /sw/lib/libxvidcore.4.0.0.dylib
-rwxr-xr-x 1 root admin 463784 May 25 2005 libxvidcore.a
lrwxr-xr-x 1 root admin 27 Jan 28 20:21 libxvidcore.dylib -> /sw/lib/libxvidcore.4.dylib
lrwxr-xr-x 1 root admin 31 Jan 28 19:37 libxvidcore.so -> /sw/lib/libxvidcore.4.0.0.dylib