一个使用FFMPEG API实现的从RTSP取流并且推送到RTMP的简单例子。实际上也可以用于不同媒体封装格式之间的转化(例如avi->flv)。有任何问题欢迎在Issues里提问。
A simple example shows how to use ffmpeg api pull RTSP stream and pubish RTMP stream. Actually, it can be used for convert format without coder (just like -vcodec copy -acodec copy
command). If you have any questions please open new issues.
mkdir build && cd build && cmake .. && make