On Fri, Sep 12, 2008 at 9:01 PM, Timothy D. Lenz tlenz@vorgon.com wrote:
----- Original Message ----- From: Todd Luliak To: vdr@linuxtv.org Sent: Friday, September 12, 2008 7:42 AM Subject: [vdr] Help building xine-lib-1.2 --with-external-ffmpeg I've been running around in circles trying to get xine-lib-1.2 built with external ffmpeg. I currently use 1.2 with CoreAVC and would like to explore the h.264 improvements in ffmpeg trunk. I am suspecting my ffmpeg configuration/build/installation, but don't know what's wrong.. -fvisibility=hidden -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -MT ffmpeg_decoder.lo -MD -MP -MF .deps/ffmpeg_decoder.Tpo -c ffmpeg_decoder.c -fPIC -DPIC -o .libs/ffmpeg_decoder.o mv -f .deps/ffmpeg_decoder.Tpo .deps/ffmpeg_decoder.Plo/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -I../../../lib -I../../../lib -I/usr/local/include -I/usr/local/include -I../../../src/dxr3 -D_FILE_OFFSET_BITS=64 -DNDEBUG -D_REENTRANT -DXINE_COMPILE -O3 -ffast-math -fexpensive-optimizations -mtune=athlon -fvisibility=hidden -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -MT ff_audio_decoder.lo -MD -MP -MF .deps/ff_audio_decoder.Tpo -c -o ff_audio_decoder.lo ff_audio_decoder.c gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -I../../../lib -I../../../lib -I/usr/local/include -I/usr/local/include -I../../../src/dxr3 -D_FILE_OFFSET_BITS=64 -DNDEBUG -D_REENTRANT -DXINE_COMPILE -O3 -ffast-math -fexpensive-optimizations -mtune=athlon -fvisibility=hidden -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -MT ff_audio_decoder.lo -MD -MP -MF .deps/ff_audio_decoder.Tpo -c ff_audio_decoder.c -fPIC -DPIC -o .libs/ff_audio_decoder.o
ff_audio_decoder.c: In function 'ff_audio_decode_data': ff_audio_decoder.c:272: error: 'AVCodecContext' has no member named 'bits_per_sample' ff_audio_decoder.c:325: error: implicit declaration of function 'avcodec_decode_audio' ff_audio_decoder.c:330: error: 'AVCodecContext' has no member named 'bits_per_sample' make[4]: *** [ff_audio_decoder.lo] Error 1 make[4]: Leaving directory `/usr/local/src/newtest/xine-lib-1.2/src/combined/ffmpeg' make[3]: *** [all] Error 2 make[3]: Leaving directory `/usr/local/src/newtest/xine-lib-1.2/src/combined/ffmpeg' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/newtest/xine-lib-1.2/src/combined' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/newtest/xine-lib-1.2/src' make: *** [all-recursive] Error 1
xine-lib compiles fine without the external ffmpeg flag, and xine-lib-1.1.14 compiles with or without external ffmpeg using the same configure options. I have tried adding CCPFLAGS directives like: CPPFLAGS="-I/usr/local/include/libavcodec -I/usr/local/include/libavdevice -I/usr/local/include/libavformat -I/usr/local/include/libavutil -I/usr/local/include/libpostproc" ./autogen.sh --prefix=/usr/local --disable-dxr3 --enable-shared --with-external-ffmpeg and the result is the same Your help is GREATLY appreciated as I have tried everything I know and everything I found in searches over the last three days. I'm stumped. -Todd
I am trying to do the same thing, only I need directfb, dfb++ and df_xine because I have a matrox 450. I am currently using Nexus out, so havn't got xine working yet. I think you need --with-external-ffmpeg=soft as the flag now but not sure.
I can't get directfb-extras (which contains df_xine) to build. looks like it's because I'm runing 64bit.
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
I am trying to do this to, and i get today ffmpeg snapshoot and today xine-lib snapshoot and xine-lib cant be compiled here to. As i got some answer on #ffmpeg quote " there was an api change, if xine-lib hasn't been updated yet then it wont compile with current ffmpeg...". And i informed also _ds_ on #xine and he will look whats wrong. I think he already found something quote: [19:53:52] [@_ds_] Hmm. API change in which library? ABI change too? [19:54:28] • @_ds_ decides to look at the sonames [19:55:27] [@_ds_] ... aha, libavcodec.so.52 [19:58:55] • @_ds_ updates & recompiles
So i think we need all to wait till new patch is submitted to xine-lib1.2 to get it working with latest snapshoot of ffmpeg, or to get ffmpeg snapshoot with revision before API was changed.