【发布时间】:2014-05-28 23:51:27
【问题描述】:
我已经使用 FFmpeg 的 C 库打开了一个实时 RTMP 流,我需要以编程方式寻找到流的最后。这是在流暂停了不确定的时间之后。我能得到的最接近的是:
av_seek_frame(pFormatCtx, -1, pFormatCtx->duration, 0);
avcodec_flush_buffers(pCodecCtx);
但直播的持续时间为 0。有什么想法吗?
【问题讨论】:
标签: c ffmpeg rtmp live-streaming libavformat