node-red-contrib-hik-media-buffer 1.1.102 → 1.1.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hik-media-buffer.js +1 -1
- package/package.json +1 -1
package/hik-media-buffer.js
CHANGED
|
@@ -135,7 +135,7 @@ module.exports = function(RED) {
|
|
|
135
135
|
node.warn(`[DEBUG RTSP] Mi collego all'archivio su traccia ${trackId} dall'orario: ${rtspTimestamp}`);
|
|
136
136
|
|
|
137
137
|
// --- 1. CATTURA VIDEO DIRECT (Registriamo 15 secondi di archivio) ---
|
|
138
|
-
const ffmpegRtspCmd = `ffmpeg -y -rtsp_transport tcp -i "${archiveRtspUrl}" -t 15 -c copy -movflags +faststart "${fixedPath}"`;
|
|
138
|
+
const ffmpegRtspCmd = `ffmpeg -y -rtsp_transport tcp -i "${archiveRtspUrl}" -t 15 -c:v copy -c:a aac -movflags +faststart "${fixedPath}"`;
|
|
139
139
|
|
|
140
140
|
await new Promise((resolve) => {
|
|
141
141
|
exec(ffmpegRtspCmd, { timeout: 25000 }, (err) => {
|