【问题标题】:In libav "rtmp://url live=1" is not working as in FFmpeg在 libav 中“rtmp://url live=1”不像在 FFmpeg 中那样工作
【发布时间】:2014-04-07 13:40:14
【问题描述】:

我正在尝试播放通过 Red5 服务器流式传输的实时 rtmp 流。 使用的命令是
ffmpeg -i "rtmp://IP/live/1234 live=1" -f flv rtmp://IP/live/1234_56
上述实时流式传输命令适用于 Window OS 上的 ffmpeg。但无法流式传输以下命令在 libav 上运行实时 rtmp 视频,Ubuntu 操作系统使用 avconv 工具。

avconv -i "rtmp://IP/live/1234 live=1" -f flv rtmp://IP/live/1234_56

即使我使用 *rtmp_live* AVOption 来播放直播流或替换 live=1 参数,如下所示-
avconv -i "rtmp://IP/live/1234 rtmp_live" -f flv rtmp ://IP/live/1234_56

但是这个命令不起作用。请告诉我如何通过 avconv 工具使用 rtmp_live 或 live=1

提前致谢。

【问题讨论】:

  • 你为什么不直接使用ffmpeg(FFmpeg 的那个,而不是 libav 的那个假的)?您可以download a Linux build of ffmpeg 或按照步骤操作guide to compile ffmpeg
  • FFmpeg 在 Ubuntu 12.4 及以上版本中被弃用。因此,我正在尝试使用 libav。
  • FFmpeg 是一个项目的名称。它没有被弃用。 ffmpeg 是 FFmpeg 和名为 libav 的 fork 提供的命令行工具的名称。来自 libav 的假 ffmpeg 已被弃用。是的,这令人困惑,但这是 libav 的意图。他们选择已经使用的名称是 FFmpeg(cli 工具、库,甚至是历史上指代整个 FFmpeg 库集合的“libav”这个词)。见Who can tell me the difference and relation between ffmpeg, libav, and avconv?

标签: ffmpeg libavcodec avconv


【解决方案1】:

你试过了吗

ffmpeg -i "rtmp://IP/live/1234?live=1" -f flv rtmp://IP/live/1234_56

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-01-30
    • 2015-02-07
    • 2015-05-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-09
    相关资源
    最近更新 更多