[英]grabbing hevc h265 stream using ffmpeg
当我尝试使用 rtsp 协议从 ip 摄像头抓取 h265 编码视频时遇到问题。 我想从相机中保存 stream,我使用https://github.com/sahilchaddha/node-rtsp-recorder/
来执行此操作。 几乎所有功能都完美运行,但 output 视频有绿色条,我不知道为什么。
这些是我的参数
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
}
和结果图像
尝试使用ffmpeg -rtsp_transport tcp -i [...]
默认情况下 ffmpeg 使用 udp 作为 rtsp_transport。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.