【发布时间】: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
【问题讨论】: