Installation Problem (from PyPI)
Created by: w495
Install Av from PyPI
[w495@w495yb ffmpeg-1.2.2]$ sudo pip install av
Downloading/unpacking av
Running setup.py egg_info for package av
Installing collected packages: av
Running setup.py install for av
Error compiling Cython file:
------------------------------------------------------------
...
from cpython.buffer cimport PyObject_CheckBuffer, PyObject_GetBuffer, PyBUF_SIMPLE, PyBuffer_Release
from fractions import Fraction
cimport libav as lib
^
------------------------------------------------------------
av/utils.pyx:7:8: 'libav.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
else:
raise AVError(-res, c_buffer)
return res
cdef dict avdict_to_dict(lib.AVDictionary *input):
^
------------------------------------------------------------
av/utils.pyx:35:25: 'AVDictionary' is not a type identifier
<snip lots of the same>
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/av/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4KCe0x-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/av
Storing complete log in /root/.pip/pip.log
About Environment
About System
[w495@w495yb PyAV]$ uname -a
Linux w495yb 3.14.27-100.fc19.x86_64 #1 SMP Wed Dec 17 19:36:34 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[w495@w495yb PyAV]$
About FFmpeg
[w495@w495yb ffmpeg-1.2.2]$ which ffmpeg
/usr/local/bin/ffmpeg
[w495@w495yb ffmpeg-1.2.2]$ ffmpeg -version
ffmpeg version 1.2.2
built on May 17 2015 00:00:54 with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-7)
configuration: --disable-static --enable-shared --disable-doc
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
[w495@w495yb ffmpeg-1.2.2]$ ls -1 /usr/local/lib/libav*
/usr/local/lib/libavcodec.a
/usr/local/lib/libavcodec.so
/usr/local/lib/libavcodec.so.54
/usr/local/lib/libavcodec.so.54.92.100
/usr/local/lib/libavcodec.so.56
/usr/local/lib/libavcodec.so.56.26.100
/usr/local/lib/libavdevice.a
/usr/local/lib/libavdevice.so
/usr/local/lib/libavdevice.so.54
/usr/local/lib/libavdevice.so.54.3.103
/usr/local/lib/libavdevice.so.56
/usr/local/lib/libavdevice.so.56.4.100
/usr/local/lib/libavfilter.a
/usr/local/lib/libavfilter.so
/usr/local/lib/libavfilter.so.3
/usr/local/lib/libavfilter.so.3.42.103
/usr/local/lib/libavfilter.so.5
/usr/local/lib/libavfilter.so.5.11.102
/usr/local/lib/libavformat.a
/usr/local/lib/libavformat.so
/usr/local/lib/libavformat.so.54
/usr/local/lib/libavformat.so.54.63.104
/usr/local/lib/libavformat.so.56
/usr/local/lib/libavformat.so.56.25.101
/usr/local/lib/libavutil.a
/usr/local/lib/libavutil.so
/usr/local/lib/libavutil.so.52
/usr/local/lib/libavutil.so.52.18.100
/usr/local/lib/libavutil.so.54
/usr/local/lib/libavutil.so.54.20.100
What I should do to install it?