Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jordanbs opened this issue Oct 25, 2011 · 14 comments
Open

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

jordanbs opened this issue Oct 25, 2011 · 14 comments

Comments

@jordanbs
Copy link

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
@baali
Copy link

baali commented Feb 28, 2012

Not working for me either,
Ubuntu 10.10
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 15 2011 23:17:21 with gcc 4.4.5
configuration: --enable-shared
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
ffmpeg 0.9
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0

and same log as above when I try to do
$ python setup.py build

@yuvadm
Copy link

yuvadm commented Mar 16, 2012

+1 on Mac OS X.

~/ffmpeg $ git checkout 35d7d6f
~/ffmpeg $ ./configure
~/ffmpeg $ make
# double check versions
~/ffmpeg $ ./ffmpeg
FFmpeg version git-35d7d6f, Copyright (c) 2000-2011 the FFmpeg developers
  built on Mar 16 2012 15:08:45 with gcc 4.2.1 (Apple Inc. build 5664)
  configuration: 
  libavutil    50. 39. 0 / 50. 39. 0
  libavcodec   52.113. 2 / 52.113. 2
  libavformat  52.102. 0 / 52.102. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 12. 0 /  0. 12. 0
# set ffmpeg path in setup.py
~/pyffmpeg $ python setup.py install
# FAIL (same traceback as above)

@deobrat
Copy link

deobrat commented Jun 6, 2012

Any updates on this?

@yuvadm
Copy link

yuvadm commented Jun 6, 2012

This issue was a showstopper for me on one of my projects, and for now I'm completely avoiding using pyffmpeg because of that.

I really do want to see this resolved, though.

@iwuvjhdva
Copy link

It also doesn't work with latest cython.

@mhaller
Copy link
Owner

mhaller commented Sep 20, 2012

Thx for the feedback, I planned to integrate the other GitHub changes, but unfortunately I have other projects with a higher priority although pyffmpeg is still on my ToDo list ... so pushing is a good thing ;)

Am 20.09.2012 um 16:36 schrieb iwuvjhdva:

It also doesn't work with latest cython.


Reply to this email directly or view it on GitHub.

@iwuvjhdva
Copy link

Great. Thank you for reply and advance thanks for the library :-)

On Fri, Sep 21, 2012 at 12:49 AM, Martin Haller [email protected]:

Thx for the feedback, I planned to integrate the other GitHub changes, but
unfortunately I have other projects with a higher priority although
pyffmpeg is still on my ToDo list ... so pushing is a good thing ;)

Am 20.09.2012 um 16:36 schrieb iwuvjhdva:

It also doesn't work with latest cython.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-8745031.

Kind regards,
Konstantin Alexandrov

http://illuzia.net

@rloechner
Copy link

I too would love to see this updated. I am running into the same problem as above.

@schulmar
Copy link

schulmar commented Nov 2, 2012

Me too, it is very annoying that there are so many problems that seem to be solved easily. Also there are some forks that tried to solve them but are not up to date too.

@mhaller
Copy link
Owner

mhaller commented Nov 7, 2012

Is on a longer todo list ...

Am 02.11.2012 um 20:36 schrieb schulze:

Me too, it is very annoying that there are so many problems that seem to be solved easily. Also there are some forks that tried to solve them but are not up to date too.


Reply to this email directly or view it on GitHub.

@jacksonofalltrades
Copy link

Any updates on this? Perhaps an ETA on the fix?

@mhaller
Copy link
Owner

mhaller commented Apr 9, 2015

Just to let you know I started working again on pyffmpeg. Contributions are highly appreciated!

@qingyuanluofeng
Copy link

Hello . I use this pyffmpeg and install it on windows 64 bit operating system,but it reported the errors al follows:
Remember: Edit at first ffmpegpath within setup.py
Traceback (most recent call last):
File "setup.py", line 84, in
incdir = incdir + list(nd.get_numpy_include_dirs())
TypeError: cannot concatenate 'str' and 'list' objects
Could you tell me how to slove this problem.
Thanks.

@lobobabysaurus
Copy link

Any update on when this will be up to date with pyffmpeg?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests