Problem compiling FFmpeg with libx264 on Centos 5
I would like to install on my box FFMPEG with libx264 support. First of all I've tried yum install ffmpeg, but it occurs that it downloads a version from 2007 (?) and without libx264. Than I've tried this: www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl" target="_blank">http://209.85.129.132/search?q=cache:VUDW1IucuPsJ:www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl And everything goes ok till last ./configure: ./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-libfaad --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay And in this moment I do "make" and get: -bash-3.2# make gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libswscale/swscale.o libswscale/swscale.c libswscale/swscale.c: In function 'sws_format_name': libswscale/swscale.c:460: error: 'PIX_FMT_VDPAU_H264' undeclared (first use in this function) libswscale/swscale.c:460: error: (Each undeclared identifier is reported only once libswscale/swscale.c:460: error: for each function it appears in.) libswscale/swscale.c:462: error: 'PIX_FMT_VDPAU_MPEG1' undeclared (first use in this function) libswscale/swscale.c:464: error: 'PIX_FMT_VDPAU_MPEG2' undeclared (first use in this function) libswscale/swscale.c:466: error: 'PIX_FMT_VDPAU_WMV3' undeclared (first use in this function) libswscale/swscale.c:468: error: 'PIX_FMT_VDPAU_VC1' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2yuvXinC': libswscale/swscale.c:507: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2packedXinC': libswscale/swscale.c:1001: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1001: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2rgbXinC_full': libswscale/swscale.c:1019: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) In file included from libswscale/swscale.c:1172: libswscale/swscale_template.c: In function 'yuv2yuvX_MMX2': libswscale/swscale_template.c:915: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2yuv1_MMX2': libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packedX_MMX2': libswscale/swscale_template.c:1041: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed2_MMX2': libswscale/swscale_template.c:1230: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1361: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed1_MMX2': libswscale/swscale_template.c:1389: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1606: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'hScale_MMX2': libswscale/swscale_template.c:2177: warning: initialization discards qualifiers from pointer target type libswscale/swscale_template.c: In function 'swScale_MMX2': libswscale/swscale_template.c:2749: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:2878: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2879: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2884: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2885: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2891: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2892: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2901: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2907: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2915: warning: cast from pointer to integer of different size libswscale/swscale.c: In function 'getSwsFunc': libswscale/swscale.c:1771: warning: unused variable 'flags' libswscale/swscale.c: In function 'sws_getContext': libswscale/swscale.c:2796: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_freeContext': libswscale/swscale.c:3357: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_getCachedContext': libswscale/swscale.c:3409: warning: assignment discards qualifiers from pointer target type make: *** [libswscale/swscale.o] Error 1 And as you can see I get a lots of errors. Tried to install it for 5 day now, reading a lot of info on the internet, but nothing helps. How to make this work?? Ps. FFmpeg is great, I find this tool very usefull.
With those configure options, you will need to install development packages for the following libraries: libfaad libxvid libx264 libmp3lame libfaac Reconfigure the source and build it again after installing them. -lee On Wed, Apr 8, 2009 at 6:40 PM, bear007 <bear007 at poczta.onet.pl> wrote:
I would like to install on my box FFMPEG with libx264 support.
First of all I've tried yum install ffmpeg, but it occurs that it downloads a version from 2007 (?) and without libx264.
Than I've tried this:
www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl" target="_blank">http://209.85.129.132/search?q=cache:VUDW1IucuPsJ:www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl
And everything goes ok till last ./configure:
./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-libfaad --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay
And in this moment I do "make" and get:
-bash-3.2# make gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libswscale/swscale.o libswscale/swscale.c libswscale/swscale.c: In function 'sws_format_name': libswscale/swscale.c:460: error: 'PIX_FMT_VDPAU_H264' undeclared (first use in this function) libswscale/swscale.c:460: error: (Each undeclared identifier is reported only once libswscale/swscale.c:460: error: for each function it appears in.) libswscale/swscale.c:462: error: 'PIX_FMT_VDPAU_MPEG1' undeclared (first use in this function) libswscale/swscale.c:464: error: 'PIX_FMT_VDPAU_MPEG2' undeclared (first use in this function) libswscale/swscale.c:466: error: 'PIX_FMT_VDPAU_WMV3' undeclared (first use in this function) libswscale/swscale.c:468: error: 'PIX_FMT_VDPAU_VC1' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2yuvXinC': libswscale/swscale.c:507: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2packedXinC': libswscale/swscale.c:1001: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1001: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2rgbXinC_full': libswscale/swscale.c:1019: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) In file included from libswscale/swscale.c:1172: libswscale/swscale_template.c: In function 'yuv2yuvX_MMX2': libswscale/swscale_template.c:915: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2yuv1_MMX2': libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packedX_MMX2': libswscale/swscale_template.c:1041: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed2_MMX2': libswscale/swscale_template.c:1230: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1361: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed1_MMX2': libswscale/swscale_template.c:1389: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1606: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'hScale_MMX2': libswscale/swscale_template.c:2177: warning: initialization discards qualifiers from pointer target type libswscale/swscale_template.c: In function 'swScale_MMX2': libswscale/swscale_template.c:2749: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:2878: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2879: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2884: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2885: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2891: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2892: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2901: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2907: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2915: warning: cast from pointer to integer of different size libswscale/swscale.c: In function 'getSwsFunc': libswscale/swscale.c:1771: warning: unused variable 'flags' libswscale/swscale.c: In function 'sws_getContext': libswscale/swscale.c:2796: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_freeContext': libswscale/swscale.c:3357: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_getCachedContext': libswscale/swscale.c:3409: warning: assignment discards qualifiers from pointer target type make: *** [libswscale/swscale.o] Error 1
And as you can see I get a lots of errors. Tried to install it for 5 day now, reading a lot of info on the internet, but nothing helps.
How to make this work??
Ps. FFmpeg is great, I find this tool very usefull. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
This tutorial mentioned pointed out to install: a52dec: faac faad2: xvidcore: libx264: lame yasm: Can faad2 be in place of libfaad you mentioned? Can xvidcore be in place of libxvid, and lame in place of libmp3lame and faac in place of libfaac or are these things something else and I should install them separetly than these listed in the tutorial? kind regards ----- Original Message ----- From: "Lee Azzarello" <lee at dropio.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Thursday, April 09, 2009 6:35 PM Subject: Re: [FFmpeg-user] Problem compiling FFmpeg with libx264 on Centos 5
With those configure options, you will need to install development packages for the following libraries:
libfaad libxvid libx264 libmp3lame libfaac
Reconfigure the source and build it again after installing them.
-lee
On Wed, Apr 8, 2009 at 6:40 PM, bear007 <bear007 at poczta.onet.pl> wrote:
I would like to install on my box FFMPEG with libx264 support.
First of all I've tried yum install ffmpeg, but it occurs that it downloads a version from 2007 (?) and without libx264.
Than I've tried this:
www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl" target="_blank">http://209.85.129.132/search?q=cache:VUDW1IucuPsJ:www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl
And everything goes ok till last ./configure:
./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-libfaad --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay
And in this moment I do "make" and get:
-bash-3.2# make gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libswscale/swscale.o libswscale/swscale.c libswscale/swscale.c: In function 'sws_format_name': libswscale/swscale.c:460: error: 'PIX_FMT_VDPAU_H264' undeclared (first use in this function) libswscale/swscale.c:460: error: (Each undeclared identifier is reported only once libswscale/swscale.c:460: error: for each function it appears in.) libswscale/swscale.c:462: error: 'PIX_FMT_VDPAU_MPEG1' undeclared (first use in this function) libswscale/swscale.c:464: error: 'PIX_FMT_VDPAU_MPEG2' undeclared (first use in this function) libswscale/swscale.c:466: error: 'PIX_FMT_VDPAU_WMV3' undeclared (first use in this function) libswscale/swscale.c:468: error: 'PIX_FMT_VDPAU_VC1' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2yuvXinC': libswscale/swscale.c:507: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2packedXinC': libswscale/swscale.c:1001: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1001: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2rgbXinC_full': libswscale/swscale.c:1019: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) In file included from libswscale/swscale.c:1172: libswscale/swscale_template.c: In function 'yuv2yuvX_MMX2': libswscale/swscale_template.c:915: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2yuv1_MMX2': libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packedX_MMX2': libswscale/swscale_template.c:1041: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed2_MMX2': libswscale/swscale_template.c:1230: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1361: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed1_MMX2': libswscale/swscale_template.c:1389: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1606: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'hScale_MMX2': libswscale/swscale_template.c:2177: warning: initialization discards qualifiers from pointer target type libswscale/swscale_template.c: In function 'swScale_MMX2': libswscale/swscale_template.c:2749: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:2878: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2879: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2884: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2885: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2891: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2892: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2901: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2907: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2915: warning: cast from pointer to integer of different size libswscale/swscale.c: In function 'getSwsFunc': libswscale/swscale.c:1771: warning: unused variable 'flags' libswscale/swscale.c: In function 'sws_getContext': libswscale/swscale.c:2796: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_freeContext': libswscale/swscale.c:3357: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_getCachedContext': libswscale/swscale.c:3409: warning: assignment discards qualifiers from pointer target type make: *** [libswscale/swscale.o] Error 1
And as you can see I get a lots of errors. Tried to install it for 5 day now, reading a lot of info on the internet, but nothing helps.
How to make this work??
Ps. FFmpeg is great, I find this tool very usefull. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
This all depends on your distribution. For example, I use Debian so I have to install all of these librarie's *-dev packages. You can substitute your distro's naming conventions. For example, liblame will be the same thing as libmp3lame. -lee On Thu, Apr 9, 2009 at 1:15 PM, bear007 <bear007 at poczta.onet.pl> wrote:
This tutorial mentioned pointed out to install:
a52dec: faac faad2: xvidcore: libx264: lame yasm:
Can faad2 be in place of libfaad you mentioned? Can xvidcore be in place of libxvid, and lame in place of libmp3lame and faac in place of libfaac or are these things something else and I should install them separetly than these listed in the tutorial?
kind regards
----- Original Message ----- From: "Lee Azzarello" <lee at dropio.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Thursday, April 09, 2009 6:35 PM Subject: Re: [FFmpeg-user] Problem compiling FFmpeg with libx264 on Centos 5
With those configure options, you will need to install development packages for the following libraries:
libfaad libxvid libx264 libmp3lame libfaac
Reconfigure the source and build it again after installing them.
-lee
On Wed, Apr 8, 2009 at 6:40 PM, bear007 <bear007 at poczta.onet.pl> wrote:
I would like to install on my box FFMPEG with libx264 support.
First of all I've tried yum install ffmpeg, but it occurs that it downloads a version from 2007 (?) and without libx264.
Than I've tried this:
www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl" target="_blank">http://209.85.129.132/search?q=cache:VUDW1IucuPsJ:www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl
And everything goes ok till last ./configure:
./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc ?--enable-libfaad --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid ?--enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver ?--disable-ffplay
And in this moment I do "make" and get:
-bash-3.2# make gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE ?-I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" ?-fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch ?-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign ?-Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libswscale/swscale.o libswscale/swscale.c libswscale/swscale.c: In function 'sws_format_name': libswscale/swscale.c:460: error: 'PIX_FMT_VDPAU_H264' undeclared (first use in this function) libswscale/swscale.c:460: error: (Each undeclared identifier is reported only once libswscale/swscale.c:460: error: for each function it appears in.) libswscale/swscale.c:462: error: 'PIX_FMT_VDPAU_MPEG1' undeclared (first use in this function) libswscale/swscale.c:464: error: 'PIX_FMT_VDPAU_MPEG2' undeclared (first use in this function) libswscale/swscale.c:466: error: 'PIX_FMT_VDPAU_WMV3' undeclared (first use in this function) libswscale/swscale.c:468: error: 'PIX_FMT_VDPAU_VC1' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2yuvXinC': libswscale/swscale.c:507: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2packedXinC': libswscale/swscale.c:1001: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1001: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2rgbXinC_full': libswscale/swscale.c:1019: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) In file included from libswscale/swscale.c:1172: libswscale/swscale_template.c: In function 'yuv2yuvX_MMX2': libswscale/swscale_template.c:915: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2yuv1_MMX2': libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packedX_MMX2': libswscale/swscale_template.c:1041: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed2_MMX2': libswscale/swscale_template.c:1230: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1361: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed1_MMX2': libswscale/swscale_template.c:1389: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1606: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'hScale_MMX2': libswscale/swscale_template.c:2177: warning: initialization discards qualifiers from pointer target type libswscale/swscale_template.c: In function 'swScale_MMX2': libswscale/swscale_template.c:2749: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:2878: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2879: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2884: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2885: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2891: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2892: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2901: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2907: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2915: warning: cast from pointer to integer of different size libswscale/swscale.c: In function 'getSwsFunc': libswscale/swscale.c:1771: warning: unused variable 'flags' libswscale/swscale.c: In function 'sws_getContext': libswscale/swscale.c:2796: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_freeContext': libswscale/swscale.c:3357: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_getCachedContext': libswscale/swscale.c:3409: warning: assignment discards qualifiers from pointer target type make: *** [libswscale/swscale.o] Error 1
And as you can see I get a lots of errors. Tried to install it for 5 day now, reading a lot of info on the internet, but nothing helps.
How to make this work??
Ps. FFmpeg is great, I find this tool very usefull. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Ok, so I have ----- Original Message ----- From: "Lee Azzarello" <lee at dropio.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Thursday, April 09, 2009 10:55 PM Subject: Re: [FFmpeg-user] Problem compiling FFmpeg with libx264 on Centos 5 This all depends on your distribution. For example, I use Debian so I have to install all of these librarie's *-dev packages. You can substitute your distro's naming conventions. For example, liblame will be the same thing as libmp3lame. -lee On Thu, Apr 9, 2009 at 1:15 PM, bear007 <bear007 at poczta.onet.pl> wrote:
This tutorial mentioned pointed out to install:
a52dec: faac faad2: xvidcore: libx264: lame yasm:
Can faad2 be in place of libfaad you mentioned? Can xvidcore be in place of libxvid, and lame in place of libmp3lame and faac in place of libfaac or are these things something else and I should install them separetly than these listed in the tutorial?
kind regards
----- Original Message ----- From: "Lee Azzarello" <lee at dropio.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Thursday, April 09, 2009 6:35 PM Subject: Re: [FFmpeg-user] Problem compiling FFmpeg with libx264 on Centos 5
With those configure options, you will need to install development packages for the following libraries:
libfaad libxvid libx264 libmp3lame libfaac
Reconfigure the source and build it again after installing them.
-lee
On Wed, Apr 8, 2009 at 6:40 PM, bear007 <bear007 at poczta.onet.pl> wrote:
I would like to install on my box FFMPEG with libx264 support.
First of all I've tried yum install ffmpeg, but it occurs that it downloads a version from 2007 (?) and without libx264.
Than I've tried this:
www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl" target="_blank">http://209.85.129.132/search?q=cache:VUDW1IucuPsJ:www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl
And everything goes ok till last ./configure:
./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-libfaad --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay
And in this moment I do "make" and get:
-bash-3.2# make gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libswscale/swscale.o libswscale/swscale.c libswscale/swscale.c: In function 'sws_format_name': libswscale/swscale.c:460: error: 'PIX_FMT_VDPAU_H264' undeclared (first use in this function) libswscale/swscale.c:460: error: (Each undeclared identifier is reported only once libswscale/swscale.c:460: error: for each function it appears in.) libswscale/swscale.c:462: error: 'PIX_FMT_VDPAU_MPEG1' undeclared (first use in this function) libswscale/swscale.c:464: error: 'PIX_FMT_VDPAU_MPEG2' undeclared (first use in this function) libswscale/swscale.c:466: error: 'PIX_FMT_VDPAU_WMV3' undeclared (first use in this function) libswscale/swscale.c:468: error: 'PIX_FMT_VDPAU_VC1' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2yuvXinC': libswscale/swscale.c:507: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2packedXinC': libswscale/swscale.c:1001: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1001: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2rgbXinC_full': libswscale/swscale.c:1019: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) In file included from libswscale/swscale.c:1172: libswscale/swscale_template.c: In function 'yuv2yuvX_MMX2': libswscale/swscale_template.c:915: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2yuv1_MMX2': libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packedX_MMX2': libswscale/swscale_template.c:1041: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed2_MMX2': libswscale/swscale_template.c:1230: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1361: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed1_MMX2': libswscale/swscale_template.c:1389: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1606: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'hScale_MMX2': libswscale/swscale_template.c:2177: warning: initialization discards qualifiers from pointer target type libswscale/swscale_template.c: In function 'swScale_MMX2': libswscale/swscale_template.c:2749: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:2878: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2879: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2884: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2885: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2891: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2892: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2901: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2907: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2915: warning: cast from pointer to integer of different size libswscale/swscale.c: In function 'getSwsFunc': libswscale/swscale.c:1771: warning: unused variable 'flags' libswscale/swscale.c: In function 'sws_getContext': libswscale/swscale.c:2796: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_freeContext': libswscale/swscale.c:3357: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_getCachedContext': libswscale/swscale.c:3409: warning: assignment discards qualifiers from pointer target type make: *** [libswscale/swscale.o] Error 1
And as you can see I get a lots of errors. Tried to install it for 5 day now, reading a lot of info on the internet, but nothing helps.
How to make this work??
Ps. FFmpeg is great, I find this tool very usefull. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Sorry for last empty message. I've checked these libraries and have all installed like it was said in this tutorial i gave link to. But still I have the same problem and the same error. ----- Original Message ----- From: "Lee Azzarello" <lee at dropio.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Thursday, April 09, 2009 10:55 PM Subject: Re: [FFmpeg-user] Problem compiling FFmpeg with libx264 on Centos 5 This all depends on your distribution. For example, I use Debian so I have to install all of these librarie's *-dev packages. You can substitute your distro's naming conventions. For example, liblame will be the same thing as libmp3lame. -lee On Thu, Apr 9, 2009 at 1:15 PM, bear007 <bear007 at poczta.onet.pl> wrote:
This tutorial mentioned pointed out to install:
a52dec: faac faad2: xvidcore: libx264: lame yasm:
Can faad2 be in place of libfaad you mentioned? Can xvidcore be in place of libxvid, and lame in place of libmp3lame and faac in place of libfaac or are these things something else and I should install them separetly than these listed in the tutorial?
kind regards
----- Original Message ----- From: "Lee Azzarello" <lee at dropio.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Thursday, April 09, 2009 6:35 PM Subject: Re: [FFmpeg-user] Problem compiling FFmpeg with libx264 on Centos 5
With those configure options, you will need to install development packages for the following libraries:
libfaad libxvid libx264 libmp3lame libfaac
Reconfigure the source and build it again after installing them.
-lee
On Wed, Apr 8, 2009 at 6:40 PM, bear007 <bear007 at poczta.onet.pl> wrote:
I would like to install on my box FFMPEG with libx264 support.
First of all I've tried yum install ffmpeg, but it occurs that it downloads a version from 2007 (?) and without libx264.
Than I've tried this:
www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl" target="_blank">http://209.85.129.132/search?q=cache:VUDW1IucuPsJ:www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl
And everything goes ok till last ./configure:
./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-libfaad --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay
And in this moment I do "make" and get:
-bash-3.2# make gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libswscale/swscale.o libswscale/swscale.c libswscale/swscale.c: In function 'sws_format_name': libswscale/swscale.c:460: error: 'PIX_FMT_VDPAU_H264' undeclared (first use in this function) libswscale/swscale.c:460: error: (Each undeclared identifier is reported only once libswscale/swscale.c:460: error: for each function it appears in.) libswscale/swscale.c:462: error: 'PIX_FMT_VDPAU_MPEG1' undeclared (first use in this function) libswscale/swscale.c:464: error: 'PIX_FMT_VDPAU_MPEG2' undeclared (first use in this function) libswscale/swscale.c:466: error: 'PIX_FMT_VDPAU_WMV3' undeclared (first use in this function) libswscale/swscale.c:468: error: 'PIX_FMT_VDPAU_VC1' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2yuvXinC': libswscale/swscale.c:507: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2packedXinC': libswscale/swscale.c:1001: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1001: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2rgbXinC_full': libswscale/swscale.c:1019: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) In file included from libswscale/swscale.c:1172: libswscale/swscale_template.c: In function 'yuv2yuvX_MMX2': libswscale/swscale_template.c:915: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2yuv1_MMX2': libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packedX_MMX2': libswscale/swscale_template.c:1041: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed2_MMX2': libswscale/swscale_template.c:1230: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1361: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed1_MMX2': libswscale/swscale_template.c:1389: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1606: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'hScale_MMX2': libswscale/swscale_template.c:2177: warning: initialization discards qualifiers from pointer target type libswscale/swscale_template.c: In function 'swScale_MMX2': libswscale/swscale_template.c:2749: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:2878: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2879: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2884: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2885: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2891: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2892: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2901: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2907: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2915: warning: cast from pointer to integer of different size libswscale/swscale.c: In function 'getSwsFunc': libswscale/swscale.c:1771: warning: unused variable 'flags' libswscale/swscale.c: In function 'sws_getContext': libswscale/swscale.c:2796: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_freeContext': libswscale/swscale.c:3357: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_getCachedContext': libswscale/swscale.c:3409: warning: assignment discards qualifiers from pointer target type make: *** [libswscale/swscale.o] Error 1
And as you can see I get a lots of errors. Tried to install it for 5 day now, reading a lot of info on the internet, but nothing helps.
How to make this work??
Ps. FFmpeg is great, I find this tool very usefull. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Now i have error: libavcodec/libx264.c:256: error: 'struct <anonymous>' has no member named 'psz_rc_eq' I dont know what to do... ----- Original Message ----- From: "Lee Azzarello" <lee at dropio.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Thursday, April 09, 2009 10:55 PM Subject: Re: [FFmpeg-user] Problem compiling FFmpeg with libx264 on Centos 5 This all depends on your distribution. For example, I use Debian so I have to install all of these librarie's *-dev packages. You can substitute your distro's naming conventions. For example, liblame will be the same thing as libmp3lame. -lee On Thu, Apr 9, 2009 at 1:15 PM, bear007 <bear007 at poczta.onet.pl> wrote:
This tutorial mentioned pointed out to install:
a52dec: faac faad2: xvidcore: libx264: lame yasm:
Can faad2 be in place of libfaad you mentioned? Can xvidcore be in place of libxvid, and lame in place of libmp3lame and faac in place of libfaac or are these things something else and I should install them separetly than these listed in the tutorial?
kind regards
----- Original Message ----- From: "Lee Azzarello" <lee at dropio.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Thursday, April 09, 2009 6:35 PM Subject: Re: [FFmpeg-user] Problem compiling FFmpeg with libx264 on Centos 5
With those configure options, you will need to install development packages for the following libraries:
libfaad libxvid libx264 libmp3lame libfaac
Reconfigure the source and build it again after installing them.
-lee
On Wed, Apr 8, 2009 at 6:40 PM, bear007 <bear007 at poczta.onet.pl> wrote:
I would like to install on my box FFMPEG with libx264 support.
First of all I've tried yum install ffmpeg, but it occurs that it downloads a version from 2007 (?) and without libx264.
Than I've tried this:
www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl" target="_blank">http://209.85.129.132/search?q=cache:VUDW1IucuPsJ:www.php-oa.com/2009/02/02/centos-5-ffmpeg.html+http://www.php-oa.com/2009/02/02/centos-5-ffmpeg.html&cd=1&hl=pl&ct=clnk&gl=pl
And everything goes ok till last ./configure:
./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-libfaad --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay
And in this moment I do "make" and get:
-bash-3.2# make gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libswscale/swscale.o libswscale/swscale.c libswscale/swscale.c: In function 'sws_format_name': libswscale/swscale.c:460: error: 'PIX_FMT_VDPAU_H264' undeclared (first use in this function) libswscale/swscale.c:460: error: (Each undeclared identifier is reported only once libswscale/swscale.c:460: error: for each function it appears in.) libswscale/swscale.c:462: error: 'PIX_FMT_VDPAU_MPEG1' undeclared (first use in this function) libswscale/swscale.c:464: error: 'PIX_FMT_VDPAU_MPEG2' undeclared (first use in this function) libswscale/swscale.c:466: error: 'PIX_FMT_VDPAU_WMV3' undeclared (first use in this function) libswscale/swscale.c:468: error: 'PIX_FMT_VDPAU_VC1' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2yuvXinC': libswscale/swscale.c:507: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2packedXinC': libswscale/swscale.c:1001: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1001: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'yuv2rgbXinC_full': libswscale/swscale.c:1019: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) In file included from libswscale/swscale.c:1172: libswscale/swscale_template.c: In function 'yuv2yuvX_MMX2': libswscale/swscale_template.c:915: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2yuv1_MMX2': libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type libswscale/swscale_template.c:1020: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packedX_MMX2': libswscale/swscale_template.c:1041: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed2_MMX2': libswscale/swscale_template.c:1230: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules libswscale/swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:1361: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'yuv2packed1_MMX2': libswscale/swscale_template.c:1389: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:1606: error: 'CONFIG_SMALL' undeclared (first use in this function) libswscale/swscale_template.c: In function 'hScale_MMX2': libswscale/swscale_template.c:2177: warning: initialization discards qualifiers from pointer target type libswscale/swscale_template.c: In function 'swScale_MMX2': libswscale/swscale_template.c:2749: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale_template.c:2878: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2879: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2884: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2885: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2891: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2892: warning: assignment discards qualifiers from pointer target type libswscale/swscale_template.c:2901: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2907: warning: cast from pointer to integer of different size libswscale/swscale_template.c:2915: warning: cast from pointer to integer of different size libswscale/swscale.c: In function 'getSwsFunc': libswscale/swscale.c:1771: warning: unused variable 'flags' libswscale/swscale.c: In function 'sws_getContext': libswscale/swscale.c:2796: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_freeContext': libswscale/swscale.c:3357: error: 'CONFIG_SWSCALE_ALPHA' undeclared (first use in this function) libswscale/swscale.c: In function 'sws_getCachedContext': libswscale/swscale.c:3409: warning: assignment discards qualifiers from pointer target type make: *** [libswscale/swscale.o] Error 1
And as you can see I get a lots of errors. Tried to install it for 5 day now, reading a lot of info on the internet, but nothing helps.
How to make this work??
Ps. FFmpeg is great, I find this tool very usefull. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
On Thu, Apr 9, 2009 at 4:34 PM, bear007 <bear007 at poczta.onet.pl> wrote:
Now i have error:
libavcodec/libx264.c:256: error: 'struct <anonymous>' has no member named 'psz_rc_eq'
Stop using a year-old ffmpeg source tree? Dark Shikari
Hello, I've removed ffmpeg folder and downloaded ffmpeg from svn and did everything once again and now it works. Thank you very very much! bear ----- Original Message ----- From: "Jason Garrett-Glaser" <darkshikari at gmail.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Friday, April 10, 2009 1:59 AM Subject: Re: [FFmpeg-user] Re Re: Problem compiling FFmpeg with libx264 onCentos 5
On Thu, Apr 9, 2009 at 4:34 PM, bear007 <bear007 at poczta.onet.pl> wrote:
Now i have error:
libavcodec/libx264.c:256: error: 'struct <anonymous>' has no member named 'psz_rc_eq'
Stop using a year-old ffmpeg source tree?
Dark Shikari _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Looks like you need to build libx264 from source. I've stabilized on ffmpeg 0.5 compiled with x264 git commit b8808bf0a35b83c2fac05e07a504ad164c931960 -lee On Fri, Apr 10, 2009 at 7:17 AM, bear007 <bear007 at poczta.onet.pl> wrote:
Hello,
I've removed ffmpeg folder and downloaded ffmpeg from svn and did everything once again and now it works.
Thank you very very much!
bear
----- Original Message ----- From: "Jason Garrett-Glaser" <darkshikari at gmail.com> To: "FFmpeg user questions and RTFMs" <ffmpeg-user at mplayerhq.hu> Sent: Friday, April 10, 2009 1:59 AM Subject: Re: [FFmpeg-user] Re Re: Problem compiling FFmpeg with libx264 onCentos 5
On Thu, Apr 9, 2009 at 4:34 PM, bear007 <bear007 at poczta.onet.pl> wrote:
Now i have error:
libavcodec/libx264.c:256: error: 'struct <anonymous>' has no member named 'psz_rc_eq'
Stop using a year-old ffmpeg source tree?
Dark Shikari _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
participants (3)
-
bear007@poczta.onet.pl -
darkshikari@gmail.com -
lee@dropio.com