【问题标题】:grabbing hevc h265 stream using ffmpeg使用 ffmpeg 抓取 hevc h265 流
【发布时间】:2021-08-26 15:54:30
【问题描述】:

当我尝试使用 rtsp 协议从 ip camera 抓取 h265 编码的视频时遇到问题。 我想保存来自相机的流,我使用https://github.com/sahilchaddha/node-rtsp-recorder/ 来执行此操作。几乎所有工作都完美,但输出视频有绿条,我不知道为什么。

这些是我的参数

ChildProcess {
  _events: [Object: null prototype] {},
  _eventsCount: 0,
  _maxListeners: undefined,
  _closesNeeded: 1,
  _closesGot: 0,
  connected: false,
  signalCode: null,
  exitCode: null,
  killed: false,
  spawnfile: 'ffmpeg',
  _handle: Process {
    onexit: [Function],
    pid: 96408,
    [Symbol(owner_symbol)]: [Circular]
  },
  spawnargs: [
    'ffmpeg',
    '-i',
    'rtsp://[...]',
    '-vcodec',
    'copy',
    'videos/cam1/Aug-26th-21/video/2021-8-26-5-51-13.mp4'
  ],
  pid: 96408,
  stdin: null,
  stdout: null,
  stderr: null,
  stdio: [ null, null, null ],
  [Symbol(kCapture)]: false
}

和结果 image

【问题讨论】:

    标签: node.js ffmpeg hevc h.265


    【解决方案1】:

    尝试使用ffmpeg -rtsp_transport tcp -i [...]

    默认情况下,ffmpeg 使用 udp 作为 rtsp_transport。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-02-27
      • 1970-01-01
      • 1970-01-01
      • 2018-07-08
      • 1970-01-01
      • 2017-02-27
      • 2015-10-10
      相关资源
      最近更新 更多