Gathering detailed insights and metrics for nv-node-rtsp-recorder
Gathering detailed insights and metrics for nv-node-rtsp-recorder
npm install nv-node-rtsp-recorder
Typescript
Module System
Node Version
NPM Version
67.1
Supply Chain
91.9
Quality
82.6
Maintenance
100
Vulnerability
98.2
License
JavaScript (100%)
Total Downloads
7,139
Last Day
7
Last Week
32
Last Month
202
Last Year
3,159
66 Stars
11 Commits
27 Forks
6 Watching
1 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
1.6.9
Package Id
nv-node-rtsp-recorder@1.6.9
Unpacked Size
36.17 kB
Size
24.95 kB
File Count
13
NPM Version
10.2.4
Node Version
21.5.0
Publised On
20 Apr 2024
Cumulative downloads
Total Downloads
Last day
600%
7
Compared to previous day
Last week
128.6%
32
Compared to previous week
Last month
329.8%
202
Compared to previous month
Last year
-20.6%
3,159
Compared to previous year
5
3
RTSP Stream Recorder.
Records RTSP Audio/Visual Streams to local disk using ffmpeg
1 $ npm install --save node-rtsp-recorder
1 const Recorder = require('node-rtsp-recorder').Recorder
2
3 var rec = new Recorder({
4 url: 'rtsp://192.168.1.12:8554/unicast',
5 timeLimit: 60, // time in seconds for each segmented video file
6 folder: '/Users/sahilchaddha/Sahil/Projects/Github/node-rtsp-recorder/videos',
7 name: 'cam1',
8 })
9 // Starts Recording
10 rec.startRecording();
11
12 setTimeout(() => {
13 console.log('Stopping Recording')
14 rec.stopRecording()
15 rec = null
16 }, 300000)
If your camera generates empty .mp4 files when recording, you might need to update its audio codec by passing in one usable by your camera (e.g.,
aac
) in the Recorder's constructor. For example:
1 var rec = new Recorder({
2 url: 'rtsp://192.168.1.12:8554/unicast',
3 timeLimit: 60, // time in seconds for each segmented video file
4 folder: '/Users/sahilchaddha/Sahil/Projects/Github/node-rtsp-recorder/videos',
5 name: 'cam1',
6 audioCodec: 'aac'
7 })
1 const Recorder = require('node-rtsp-recorder').Recorder
2
3 var rec = new Recorder({
4 url: 'rtsp://192.168.1.12:8554/unicast',
5 timeLimit: 60, // time in seconds for each segmented video file
6 folder: '/Users/sahilchaddha/Sahil/Projects/Github/node-rtsp-recorder/videos',
7 name: 'cam1',
8 type: 'audio',
9 })
10
11 rec.startRecording();
12
13 setTimeout(() => {
14 console.log('Stopping Recording')
15 rec.stopRecording()
16 rec = null
17 }, 125000)
1 const Recorder = require('node-rtsp-recorder').Recorder
2
3 var rec = new Recorder({
4 url: 'rtsp://192.168.1.12:8554/unicast',
5 folder: '/Users/sahilchaddha/Sahil/Projects/Github/node-rtsp-recorder/videos',
6 name: 'cam1',
7 type: 'image',
8 })
9
10 rec.captureImage(() => {
11 console.log('Image Captured')
12 })
1 const FileHandler = require('../src/helpers/fileHandler') 2 const fh = new FileHandler() 3 // RETURNS DIRECTORY SIZE 4 fh.getDirectorySize('/Users/sahilchaddha/Sahil/Projects/Github/node-rtsp-recorder/videos/', (err, value) => { 5 if (err) { 6 console.log('Error Occured') 7 console.log(err) 8 return true 9 } 10 console.log('Folder Size is ' + value) 11 }) 12 // REMOVES ALL MEDIA FILES 13 fh.removeDirectory('/Users/sahilchaddha/Sahil/Projects/Github/node-rtsp-recorder/videos/*', () => { 14 console.log('Done') 15 })
1 const Recorder = require('node-rtsp-recorder').Recorder
2
3 var rec = new Recorder({
4 url: 'rtsp://192.168.1.12:8554/unicast',
5 timeLimit: 60, // time in seconds for each segmented video file
6 folder: '/Users/sahilchaddha/Sahil/Projects/Github/node-rtsp-recorder/videos',
7 name: 'cam1',
8 directoryPathFormat: 'MMM-D-YYYY',
9 fileNameFormat: 'M-D-h-mm-ss',
10 })
11 // Default directoryPathFormat : MMM-Do-YY
12 // Default fileNameFormat : YYYY-M-D-h-mm-ss
13 // Refer to https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/ for custom formats.
14 // Starts Recording
15 rec.startRecording();
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 1/10 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More