Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找到了一个可以使用 ffmpeg 流式传输 rtmp 协议的库,然后我使用 --enable-librtmp 编译了 ffmpeg。但下一步会是什么?我找不到任何使用此功能的示例?
现在您可以通过抽象 ffmpeg 接口打开 rtmp URL:
AVFormatContext *s = NULL; int ret = avformat_open_input(&s, "rtmp://server[:port][/app][/playpath][ keyword=value]...", NULL, NULL);