Closed GoogleCodeExporter closed 8 years ago
Hmmm
you normally have a very standard build environement are you sure that
libavcodec-dev libavformat-dev and libswscale-dev are correctly installed ?
And can you confirm there was no missing file error before the warnings
thanks for letting me know.
Original comment by bertrand...@gmail.com
on 18 Jul 2010 at 3:00
Salut Bertrand,
I suppose I was confused by this:
<http://github.com/tranx/pyffmpeg/blob/master/howto-build.txt>, so I only had
libswscale-dev installed, not the rest. Thanks for the fast reply and apologies
for my confusion !
thanks, kind regards,
Joost.
Original comment by li...@lumen.nu
on 18 Jul 2010 at 3:37
Ok I will have a look at the "how-to-build" file to make it less confusing for
unix users.
Original comment by bertrand...@gmail.com
on 19 Jul 2010 at 3:07
Hello, I am having the same problem. I'm sorry if this is not the place to
report it.
pyffmpeg-2.0, under ubuntu 10.04 32bit, cython 0.12.1, python 2.6.5
libavcodec-dev libavformat-dev and libswscale-dev are installed.
What am I missing?
python setup.py build command shows the following ouput:
running build
running build_ext
building 'pyffmpeg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC
compile options: '-I/usr/local/ffmpeg/include -I/usr/include/ffmpeg -I./include
-I/usr/lib/python2.6/dist-packages/numpy/core/include -I/usr/include/python2.6
-c'
gcc: pyffmpeg.c
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_duration’:
pyffmpeg.c:2423: warning: integer constant is too large for ‘long’ type
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_init’:
pyffmpeg.c:3026: warning: ‘avcodec_open’ is deprecated (declared at
/usr/local/include/libavcodec/avcodec.h:4073)
pyffmpeg.c:3057: error: ‘struct AVCodecContext’ has no member named
‘hurry_up’
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track__reopencodec’:
pyffmpeg.c:4282: warning: ‘avcodec_open’ is deprecated (declared at
/usr/local/include/libavcodec/avcodec.h:4073)
pyffmpeg.c: In function
‘__pyx_f_8pyffmpeg_18AudioPacketDecoder_audio_decode_frame’:
pyffmpeg.c:4757: warning: implicit declaration of function
‘avcodec_decode_audio2’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10AudioTrack_process_packet’:
pyffmpeg.c:6173: warning: cast to pointer from integer of different size
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack_process_packet’:
pyffmpeg.c:8234: warning: implicit declaration of function
‘avcodec_decode_video’
pyffmpeg.c: In function
‘__pyx_pf_8pyffmpeg_10VideoTrack__internal_get_current_frame’:
pyffmpeg.c:8622: warning: cast to pointer from integer of different size
pyffmpeg.c: In function
‘__pyx_pf_8pyffmpeg_10VideoTrack__get_current_frame_without_copy’:
pyffmpeg.c:8791: warning: cast to pointer from integer of different size
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_set_hurry’:
pyffmpeg.c:9883: error: ‘struct AVCodecContext’ has no member named
‘hurry_up’
pyffmpeg.c:9922: error: ‘struct AVCodecContext’ has no member named
‘hurry_up’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_to’:
pyffmpeg.c:10091: warning: passing argument 2 of ‘sws_scale’ from
incompatible pointer type
/usr/local/include/libswscale/swscale.h:238: note: expected ‘const uint8_t *
const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_withbuf’:
pyffmpeg.c:10271: warning: passing argument 2 of ‘sws_scale’ from
incompatible pointer type
/usr/local/include/libswscale/swscale.h:238: note: expected ‘const uint8_t *
const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_dump’:
pyffmpeg.c:11314: warning: ‘dump_format’ is deprecated (declared at
/usr/local/include/libavformat/avformat.h:1897)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_open’:
pyffmpeg.c:11524: warning: implicit declaration of function ‘guess_format’
pyffmpeg.c:11524: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:11619: warning: ‘url_fopen’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c:11679: warning: ‘url_setbufsize’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:324)
pyffmpeg.c:11765: warning: ‘get_buffer’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:278)
pyffmpeg.c:11789: warning: ‘url_fseek’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:318)
pyffmpeg.c:11799: warning: ‘url_fclose’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:317)
pyffmpeg.c:11808: warning: ‘url_fopen’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c:11930: warning: ‘av_open_input_stream’ is deprecated (declared
at /usr/local/include/libavformat/avformat.h:1412)
pyffmpeg.c:12011: warning: ‘url_fopen’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c: In function
‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open_write’:
pyffmpeg.c:12139: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:12188: warning: ‘url_fopen’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open’:
pyffmpeg.c:12335: warning: ‘av_find_stream_info’ is deprecated (declared at
/usr/local/include/libavformat/avformat.h:1476)
pyffmpeg.c:12704: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this
function)
pyffmpeg.c:12704: error: (Each undeclared identifier is reported only once
pyffmpeg.c:12704: error: for each function it appears in.)
pyffmpeg.c:12880: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this
function)
pyffmpeg.c: In function
‘__pyx_pf_8pyffmpeg_12FFMpegReader_process_current_packet’:
pyffmpeg.c:14106: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this
function)
pyffmpeg.c:14154: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this
function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_seek_bytes’:
pyffmpeg.c:16034: warning: ‘url_fseek’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:318)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_duration’:
pyffmpeg.c:16724: warning: integer constant is too large for ‘long’ type
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:20000: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this
function)
pyffmpeg.c:20017: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this
function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_duration’:
pyffmpeg.c:2423: warning: integer constant is too large for ‘long’ type
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_init’:
pyffmpeg.c:3026: warning: ‘avcodec_open’ is deprecated (declared at
/usr/local/include/libavcodec/avcodec.h:4073)
pyffmpeg.c:3057: error: ‘struct AVCodecContext’ has no member named
‘hurry_up’
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track__reopencodec’:
pyffmpeg.c:4282: warning: ‘avcodec_open’ is deprecated (declared at
/usr/local/include/libavcodec/avcodec.h:4073)
pyffmpeg.c: In function
‘__pyx_f_8pyffmpeg_18AudioPacketDecoder_audio_decode_frame’:
pyffmpeg.c:4757: warning: implicit declaration of function
‘avcodec_decode_audio2’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10AudioTrack_process_packet’:
pyffmpeg.c:6173: warning: cast to pointer from integer of different size
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack_process_packet’:
pyffmpeg.c:8234: warning: implicit declaration of function
‘avcodec_decode_video’
pyffmpeg.c: In function
‘__pyx_pf_8pyffmpeg_10VideoTrack__internal_get_current_frame’:
pyffmpeg.c:8622: warning: cast to pointer from integer of different size
pyffmpeg.c: In function
‘__pyx_pf_8pyffmpeg_10VideoTrack__get_current_frame_without_copy’:
pyffmpeg.c:8791: warning: cast to pointer from integer of different size
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_set_hurry’:
pyffmpeg.c:9883: error: ‘struct AVCodecContext’ has no member named
‘hurry_up’
pyffmpeg.c:9922: error: ‘struct AVCodecContext’ has no member named
‘hurry_up’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_to’:
pyffmpeg.c:10091: warning: passing argument 2 of ‘sws_scale’ from
incompatible pointer type
/usr/local/include/libswscale/swscale.h:238: note: expected ‘const uint8_t *
const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_withbuf’:
pyffmpeg.c:10271: warning: passing argument 2 of ‘sws_scale’ from
incompatible pointer type
/usr/local/include/libswscale/swscale.h:238: note: expected ‘const uint8_t *
const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_dump’:
pyffmpeg.c:11314: warning: ‘dump_format’ is deprecated (declared at
/usr/local/include/libavformat/avformat.h:1897)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_open’:
pyffmpeg.c:11524: warning: implicit declaration of function ‘guess_format’
pyffmpeg.c:11524: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:11619: warning: ‘url_fopen’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c:11679: warning: ‘url_setbufsize’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:324)
pyffmpeg.c:11765: warning: ‘get_buffer’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:278)
pyffmpeg.c:11789: warning: ‘url_fseek’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:318)
pyffmpeg.c:11799: warning: ‘url_fclose’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:317)
pyffmpeg.c:11808: warning: ‘url_fopen’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c:11930: warning: ‘av_open_input_stream’ is deprecated (declared
at /usr/local/include/libavformat/avformat.h:1412)
pyffmpeg.c:12011: warning: ‘url_fopen’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c: In function
‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open_write’:
pyffmpeg.c:12139: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:12188: warning: ‘url_fopen’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open’:
pyffmpeg.c:12335: warning: ‘av_find_stream_info’ is deprecated (declared at
/usr/local/include/libavformat/avformat.h:1476)
pyffmpeg.c:12704: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this
function)
pyffmpeg.c:12704: error: (Each undeclared identifier is reported only once
pyffmpeg.c:12704: error: for each function it appears in.)
pyffmpeg.c:12880: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this
function)
pyffmpeg.c: In function
‘__pyx_pf_8pyffmpeg_12FFMpegReader_process_current_packet’:
pyffmpeg.c:14106: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this
function)
pyffmpeg.c:14154: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this
function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_seek_bytes’:
pyffmpeg.c:16034: warning: ‘url_fseek’ is deprecated (declared at
/usr/local/include/libavformat/avio.h:318)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_duration’:
pyffmpeg.c:16724: warning: integer constant is too large for ‘long’ type
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:20000: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this
function)
pyffmpeg.c:20017: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this
function)
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/local/ffmpeg/include -I/usr/include/ffmpeg
-I./include -I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/python2.6 -c pyffmpeg.c -o build/temp.linux-i686-2.6/pyffmpeg.o"
failed with exit status 1
Original comment by pamela.r...@gmail.com
on 11 Dec 2011 at 6:29
Original issue reported on code.google.com by
li...@lumen.nu
on 18 Jul 2010 at 2:19