Hi all ,I downloaded the latest ffmpeg source code and successfully installed it on Ubuntu
But I failed to compile a simple demo.
Here are the error messages ,just to name a few:
error: unknown type name 'AVFrame'
error: 'NULL' undeclared (first use in this function)
error: request for member 'streams' in something not a structure or union
error: 'AVMEDIA_TYPE_VIDEO' undeclared (first use in this function)
error: expected expression before ')' token
Can you help me solve this problem?
Here are some additional info
ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers built on May 7 2013 14:10:58 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) configuration: --enable-gpl --prefix=/usr --enable-libx264 --enable-pthreads
And this is the actuall CODE
This is created in Qt and the Qt pro file.
QT -= gui
TEMPLATE = app SOURCES += \ ../tutorial01.c
LIBS += -L/-lavcodec -lavformat -lswscale -lavutil