patrol-onvif-ptz-gamepad
Blue112 2024-12-17 12:17:15 +01:00
parent 8b40f7f38a
commit 9e5af057a8
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ module.exports = (s,config,lang) => {
}
const temporaryImageFile = streamDir + s.gid(5) + '.jpg'
const ffmpegCmd = splitForFFMPEG(`-y -loglevel warning -re ${inputOptions.join(' ')} -i "${url}" ${outputOptions.join(' ')} -f mjpeg -an -frames:v 1 "${temporaryImageFile}"`)
const snapProcess = spawn(onfig.ffmpegDir, ffmpegCmd, {detached: true})
const snapProcess = spawn(config.ffmpegDir, ffmpegCmd, {detached: true})
snapProcess.stderr.on('data',function(data){
// s.debugLog(data.toString())
})