转载一下网友的博文: http://sipsimpleclient.org/projects/sipsimpleclient/wiki/WIPVideo
但是在编译过程中有个问题:
解决如下:
将
pjproject-2.2.1/pjmedia/src/pjmedia/ffmpeg_util.c
pjproject-2.2.1/pjmedia/src/pjmedia/ffmpeg_util.h
这两个目录中的所有 enum CodecID 类型 替换为ffmpeg 中的 enum AVCodecID 类型就行了 编译成功。。。。
WIPVideo
Notes while video is a work in progress. Repository: http://devel.ag-projects.com/cgi-bin/darcsweb.cgi?r=saul/python-sipsimple-video;a=summary
Dependencies
The following dependencies are required to build PJSIP with video support (including H264)
- SDL 2
- ffmpeg (libavformat, libswscale, libavcodec, libavutil)
- libx264
Versions I have tried:
- SDL (2.0.0-7655)
- ffmpeg (2.0 release)
- libx264 (snapshot-20130806-2245-stable)
Patches
If the above versions are used, PJSIP needs to be patched with the attached patch (avcodec.diff) or it won't compile. This does not occur when compiling it against the latest library versions on Debian unstable. No longer needed.