Closed GoogleCodeExporter closed 9 years ago
i had to do the same changes on debian
and also, new ffmpeg code changes some of the mode defines, you have to change
some
RGBA32 -> RGB32 for it to compile
Original comment by pahappo@gmail.com
on 14 Aug 2009 at 1:09
Both comments were very helpful. For me, I didn't need to modify the include
directories, likely, this is a distro-specific thing. (I'm using Gentoo.)
Things I did:
1) Rename pyffmpeg-read-only to pyffmpeg
2) Replace PIX_FMT_RGBA32 with PIX_FMT_RGB32
3) cd to stable
4) python setup.py build
5) It will build, but with these warnings:
running build
running build_ext
building 'pyffmpeg' extension
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/libavcodec/
-I/usr/include/libavformat -I/usr/include/libavutil -I/usr/include/libswscale
-I/usr/include/python2.6 -c pyffmpeg.c -o build/temp.linux-x86_64-2.6/pyffmpeg.o
pyffmpeg.c: In function
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream_ConvertToRGBA’:
pyffmpeg.c:554: warning: ‘sws_getContext’ is deprecated (declared at
/usr/include/libswscale/swscale.h:191)
pyffmpeg.c:575: warning: passing argument 2 of ‘sws_scale’ from
incompatible pointer type
pyffmpeg.c: In function
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream_ConvertToRGB24’:
pyffmpeg.c:644: warning: ‘sws_getContext’ is deprecated (declared at
/usr/include/libswscale/swscale.h:191)
pyffmpeg.c:665: warning: passing argument 2 of ‘sws_scale’ from
incompatible pointer type
pyffmpeg.c: In function
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream___next_frame’:
pyffmpeg.c:946: warning: ‘avcodec_decode_video’ is deprecated (declared at
/usr/include/libavcodec/avcodec.h:3586)
pyffmpeg.c: In function
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream_build_index_full’:
pyffmpeg.c:1181: warning: passing argument 1 of ‘url_feof’ from
incompatible pointer type
pyffmpeg.c:1238: warning: ‘avcodec_decode_video’ is deprecated (declared at
/usr/include/libavcodec/avcodec.h:3586)
pyffmpeg.c: In function
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream_build_index_fast’:
pyffmpeg.c:1471: warning: passing argument 1 of ‘url_feof’ from
incompatible pointer type
creating build/lib.linux-x86_64-2.6
x86_64-pc-linux-gnu-gcc -pthread -shared build/temp.linux-x86_64-2.6/pyffmpeg.o
-L/usr/lib64 -lz -lbz2 -lavformat -lavcodec -lswscale -lavutil -lpython2.6 -o
build/lib.linux-x86_64-2.6/pyffmpeg.so
These are fairly serious warnings, and should be looked into. I'm using Gentoo
Linux. Output of various useful bits:
$ uname -a
Linux nyx 2.6.36-gentoo-r5 #1 SMP Tue Dec 21 22:50:37 EST 2010 x86_64 Intel(R)
Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux
$ gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror --enable-secureplt
--enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp
--enable-java-awt=gtk --enable-languages=c,c++,java,treelang,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5'
Thread model: posix
gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5)
Using Gentoo's ffmpeg, media-video/ffmpeg-0.6_p25767
Original comment by deathana...@gmail.com
on 11 Mar 2011 at 11:55
Original comment by martin.h...@gmail.com
on 17 Mar 2011 at 11:36
Original issue reported on code.google.com by
m...@irisa.fr
on 13 Aug 2009 at 2:09