1. 下载ffmpeg-checkout-2010-04-14, rtmpdump-2.2c; openssl-0.9.8k,
2. 编译过程注意看rtmpdump中的README文件,里边包括了如何编译openssl的过程,也可以在我的博客中寻中
3. 修改ffmpeg的configure文件:
第2621行: enabled librtmp && require librtmp librtmp/rtmp.h RTMP_Init -lrtmp
修改为:enabled librtmp && require librtmp librtmp/rtmp.h RTMP_Init -lrtmp -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32
否则会报错:librtmp not found
4. configure --enable-shared --disable-static --enable-memalign-hack --enable-gpl --enable-nonfree /
--enable-libx264 --enable-libfaac --enable-librtmp
5. make && make install
本文详细介绍了如何下载并编译ffmpeg、rtmpdump和openssl,特别关注了ffmpeg中librtmp模块的配置以及可能出现的librtmp未找到错误的解决方法。通过修改configure文件和正确编译参数,确保ffmpeg成功运行。

496

被折叠的 条评论
为什么被折叠?



