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

Object of type 'AVFormatContext' has no attribute 'data_offset' with python setup build #4

Open
serapissobek opened this issue May 31, 2016 · 0 comments

Comments

@serapissobek
Copy link

I get this error {Object of type 'AVFormatContext' has no attribute 'data_offset'} after : python setup.py build


pyffmpeg.pyx:4564:43: Invalid types for '==' (AVMediaType, CodecType)

Error compiling Cython file:

...
ret = av_seek_frame(self.FormatCtx,-1,byte, AVSEEK_FLAG_BACKWARD|AVSEEK
_FLAG_BYTE)#|AVSEEK_FLAG_ANY)
if ret < 0:
raise IOError("Unable to seek: %d" % (ret,))
if (self.io_context!=NULL):
# used to have & here
avio_seek(self.FormatCtx.pb, self.FormatCtx.data_offset, SEEK_SET)

^

pyffmpeg.pyx:4738:55: Object of type 'AVFormatContext' has no attribute 'data_offset'
building 'pyffmpeg' extension
creating build
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe /c /nolo
go /Ox /W3 /GL /DNDEBUG /MD -IC:\Anaconda3\lib\site-packages\numpy\core\include
-IC:\ffmpeg-win64-static\include -IC:\Anaconda3\include -IC:\Anaconda3\include -
I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"C:\Program
Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" -I"C:\Program Files
(x86)\Windows Kits\10\include\10.0.10240.0\ucrt" -I"C:\Program Files (x86)\Windo
ws Kits\NETFXSDK\4.6.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\in
clude\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Pro
gram Files (x86)\Windows Kits\8.1\include\winrt" /Tcpyffmpeg.c /Fobuild\temp.wi
n-amd64-3.5\Release\pyffmpeg.obj -static-libgcc
Found executable C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd6
4\cl.exe
cl : Command line warning D9002 : ignoring unknown option '-static-libgcc'
pyffmpeg.c
pyffmpeg.c(1): fatal error C1189: #error: Do not use this file, it is the resul
t of a failed Cython compilation.
error: Command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64
\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Anaconda3\lib\site-packages\num
py\core\include -IC:\ffmpeg-win64-static\include -IC:\Anaconda3\include -IC:\Ana
conda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE
" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" -I"C
:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" -I"C:\Program F
iles (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" -I"C:\Program Files (x86)\Win
dows Kits\8.1\include\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\includ
e\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcpyffmpeg.c
/Fobuild\temp.win-amd64-3.5\Release\pyffmpeg.obj -static-libgcc" failed with exi
t status 2

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

1 participant