fix event recording audio selection

fix-timelapse-in-addstorage
Moe 2023-01-07 18:29:02 -08:00
parent 6a8f9d77be
commit 9f68578c5f
1 changed files with 3 additions and 3 deletions

View File

@ -710,11 +710,11 @@ module.exports = (s,config,lang) => {
}
if(audioCodec === 'auto'){
if(e.type === 'mjpeg' || e.type === 'jpeg' || e.type === 'socket'){
videoCodec = `no`
audioCodec = `no`
}else if(e.type === 'h264' || e.type === 'hls' || e.type === 'mp4'){
videoCodec = 'copy'
audioCodec = 'copy'
}else{
videoCodec = 'aac'
audioCodec = 'aac'
}
}
if(videoCodec !== 'copy'){