node-red-contrib-hik-media-buffer 1.1.102 → 1.1.104
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 +2 -2
- package/package.json +1 -1
package/hik-media-buffer.js
CHANGED
|
@@ -110,7 +110,7 @@ module.exports = function(RED) {
|
|
|
110
110
|
const minutes = pad(timeGoBack.getUTCMinutes());
|
|
111
111
|
const seconds = pad(timeGoBack.getUTCSeconds());
|
|
112
112
|
|
|
113
|
-
const rtspTimestamp = `${year}${month}${day}
|
|
113
|
+
const rtspTimestamp = `${year}${month}${day}T${hours}${minutes}${seconds}Z`;
|
|
114
114
|
|
|
115
115
|
node.status({fill:"yellow", shape:"dot", text:`Estrazione media Cam ${channelID}...`});
|
|
116
116
|
|
|
@@ -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) => {
|