【问题标题】:Input command for real time video streaming with ffmpeg使用 ffmpeg 进行实时视频流的输入命令
【发布时间】:2017-12-30 19:55:23
【问题描述】:

我的实时应用程序每帧将图像渲染为一个字节[],我想使用 ffmpeg 将其馈送到 RTP 视频流中。但是,我发现的教程/文档要么引用硬盘驱动器中的 device or application (-i video="Some device") 要么引用 files。是否可以将帧数据从代码发送到 ffmpeg 流?

【问题讨论】:

  • 是的,谷歌搜索 AVIOContext。

标签: video ffmpeg stream real-time rtp


【解决方案1】:

您可以使用管道将帧传输到 ffmpeg。只需将 -i somefile 替换为 -i - 即可告诉 ffmpeg 从管道中读取。

【讨论】:

猜你喜欢
  • 2010-11-17
  • 2017-02-24
  • 1970-01-01
  • 2010-09-18
  • 1970-01-01
  • 2020-12-05
  • 2011-09-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多