我如何编译FFMPEG中给出的示例程序.我无法编译,因为我收到错误,因为CODEC_TYPE_VIDEO未声明.任何人都可以建议我如何编译程序.我正在使用ubuntu 11.
这是第一个例子:
$ gcc -o tutorial01 tutorial01.c -lavutil -lavformat -lavcodec -lz
Run Code Online (Sandbox Code Playgroud)
这是我得到的输出:
tutorial01.c: In function ‘main’: tutorial01.c:77:3: warning: ‘dump_format’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1462)
tutorial01.c:82:51: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
tutorial01.c:82:51: note: each undeclared identifier is reported only once for each function it appears in
Run Code Online (Sandbox Code Playgroud)
版本信息:
ffmpeg version git-N-30430-ga52f598, Copyright (c) 2000-2011 the FFmpeg developers
built on May 31 2011 14:21:08 with gcc 4.5.2
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 …Run Code Online (Sandbox Code Playgroud)