Skip to content

pyffmpeg doesn't compile with newer versions of ffmpeg #1

@jordanbs

Description

@jordanbs

On Ubuntu 11.10, pyffmpeg doesn't compile with the version of ffmpeg in the repos. This is probably also the case with any recent build of ffmpeg.

ffmpeg version info:

ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav developers
  built on Oct  2 2011 15:13:26 with gcc 4.6.1
  configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  5. 0 / 53.  5. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0

build log:

$ python setup.py build
Remember: Edit at first ffmpegpath within setup.py
running build
running build_ext
skipping 'pyffmpeg.c' Cython extension (up-to-date)
building 'pyffmpeg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC

compile options: '-I/opt/codecs/include -I/usr/include -I./include -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c'
gcc: pyffmpeg.c
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_13AFFMpegReader_2open’:
pyffmpeg.c:3557:13: warning: variable ‘__pyx_v_track_selector’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_5init’:
pyffmpeg.c:4553:65: error: ‘struct AVCodecContext’ has no member named ‘hurry_up’
pyffmpeg.c:4178:13: warning: variable ‘__pyx_v_observer’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_9_reopencodec’:
pyffmpeg.c:5559:7: warning: variable ‘__pyx_v_ret’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_init’:
pyffmpeg.c:8193:7: warning: variable ‘__pyx_v_i’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__read_current_ref_index’:
pyffmpeg.c:9694:7: warning: variable ‘__pyx_v_xydirection’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c:9688:7: warning: variable ‘__pyx_v_mv_stride’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_10_get_current_frame_without_copy’:
pyffmpeg.c:10481:7: warning: variable ‘__pyx_v_numBytes’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c:10480:19: warning: variable ‘__pyx_v_pFrameRes’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_18set_hurry’:
pyffmpeg.c:11628:81: error: ‘struct AVCodecContext’ has no member named ‘hurry_up’
pyffmpeg.c:11667:81: error: ‘struct AVCodecContext’ has no member named ‘hurry_up’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_to’:
pyffmpeg.c:11826:3: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [enabled by default]
/usr/include/libswscale/swscale.h:233:5: note: expected ‘const uint8_t * const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c:11697:26: warning: variable ‘__pyx_v_pCodecCtx’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_withbuf’:
pyffmpeg.c:11996:3: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [enabled by default]
/usr/include/libswscale/swscale.h:233:5: note: expected ‘const uint8_t * const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c:11885:26: warning: variable ‘__pyx_v_pCodecCtx’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_4open’:
pyffmpeg.c:13275:3: error: unknown type name ‘FF_INTERNAL_MEM_TYPE’
pyffmpeg.c:13583:7: warning: ‘url_setbufsize’ is deprecated (declared at /usr/include/libavformat/avio.h:286) [-Wdeprecated-declarations]
pyffmpeg.c:13648:57: error: ‘FF_INTERNAL_MEM_TYPE’ undeclared (first use in this function)
pyffmpeg.c:13648:57: note: each undeclared identifier is reported only once for each function it appears in
pyffmpeg.c:13825:5: warning: ‘av_open_input_stream’ is deprecated (declared at /usr/include/libavformat/avformat.h:1032) [-Wdeprecated-declarations]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_6__finalize_open’:
pyffmpeg.c:14584:32: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
pyffmpeg.c:14760:32: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_8process_current_packet’:
pyffmpeg.c:15945:56: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
pyffmpeg.c:15989:56: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
pyffmpeg.c:15862:7: warning: variable ‘__pyx_v_processed’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_11VideoStream_6GetCurrentFrame’:
pyffmpeg.c:19141:13: warning: variable ‘__pyx_v_fno’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_11VideoStream_7GetNextFrame’:
pyffmpeg.c:19237:13: warning: variable ‘__pyx_v_fno’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:22575:30: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
pyffmpeg.c:22592:30: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_13AFFMpegReader_2open’:
pyffmpeg.c:3557:13: warning: variable ‘__pyx_v_track_selector’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_5init’:
pyffmpeg.c:4553:65: error: ‘struct AVCodecContext’ has no member named ‘hurry_up’
pyffmpeg.c:4178:13: warning: variable ‘__pyx_v_observer’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_9_reopencodec’:
pyffmpeg.c:5559:7: warning: variable ‘__pyx_v_ret’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_init’:
pyffmpeg.c:8193:7: warning: variable ‘__pyx_v_i’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__read_current_ref_index’:
pyffmpeg.c:9694:7: warning: variable ‘__pyx_v_xydirection’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c:9688:7: warning: variable ‘__pyx_v_mv_stride’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_10_get_current_frame_without_copy’:
pyffmpeg.c:10481:7: warning: variable ‘__pyx_v_numBytes’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c:10480:19: warning: variable ‘__pyx_v_pFrameRes’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_18set_hurry’:
pyffmpeg.c:11628:81: error: ‘struct AVCodecContext’ has no member named ‘hurry_up’
pyffmpeg.c:11667:81: error: ‘struct AVCodecContext’ has no member named ‘hurry_up’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_to’:
pyffmpeg.c:11826:3: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [enabled by default]
/usr/include/libswscale/swscale.h:233:5: note: expected ‘const uint8_t * const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c:11697:26: warning: variable ‘__pyx_v_pCodecCtx’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_withbuf’:
pyffmpeg.c:11996:3: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [enabled by default]
/usr/include/libswscale/swscale.h:233:5: note: expected ‘const uint8_t * const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c:11885:26: warning: variable ‘__pyx_v_pCodecCtx’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_4open’:
pyffmpeg.c:13275:3: error: unknown type name ‘FF_INTERNAL_MEM_TYPE’
pyffmpeg.c:13583:7: warning: ‘url_setbufsize’ is deprecated (declared at /usr/include/libavformat/avio.h:286) [-Wdeprecated-declarations]
pyffmpeg.c:13648:57: error: ‘FF_INTERNAL_MEM_TYPE’ undeclared (first use in this function)
pyffmpeg.c:13648:57: note: each undeclared identifier is reported only once for each function it appears in
pyffmpeg.c:13825:5: warning: ‘av_open_input_stream’ is deprecated (declared at /usr/include/libavformat/avformat.h:1032) [-Wdeprecated-declarations]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_6__finalize_open’:
pyffmpeg.c:14584:32: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
pyffmpeg.c:14760:32: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_8process_current_packet’:
pyffmpeg.c:15945:56: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
pyffmpeg.c:15989:56: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
pyffmpeg.c:15862:7: warning: variable ‘__pyx_v_processed’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_11VideoStream_6GetCurrentFrame’:
pyffmpeg.c:19141:13: warning: variable ‘__pyx_v_fno’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_11VideoStream_7GetNextFrame’:
pyffmpeg.c:19237:13: warning: variable ‘__pyx_v_fno’ set but not used [-Wunused-but-set-variable]
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:22575:30: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
pyffmpeg.c:22592:30: 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/opt/codecs/include -I/usr/include -I./include -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c pyffmpeg.c -o build/temp.linux-x86_64-2.7/pyffmpeg.o" failed with exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions