OGeek|极客世界-中国程序员成长平台

标题: ios - 如何在 ffmpeg 中使用 librtmp? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 23:56
标题: ios - 如何在 ffmpeg 中使用 librtmp?

我找到了一个可以使用 ffmpeg 流式传输 rtmp 协议(protocol)的库,然后我使用 --enable-librtmp 编译了 ffmpeg。但下一步会是什么?我找不到任何使用此功能的示例?



Best Answer-推荐答案


现在你可以通过抽象的ffmpeg接口(interface)打开rtmp URL:

AVFormatContext *s = NULL;
int ret = avformat_open_input(&s, "rtmp://server[:port][/app][/playpath][ keyword=value]...", NULL, NULL);

关于ios - 如何在 ffmpeg 中使用 librtmp?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13816644/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4