[英]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.