Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ip-cam-sim

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-cam-sim

Simulates rtsp capable ip cam through ffmpeg

  • 1.4.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

ip-cam-sim

Simulates rtsp capable ip cam through ffmpeg

Dependencies

Should have ffmpeg installed in your machine

Usage

var options = {
  imagePath: null,           // path to a static image to serve on loop
  camHost: 'localhost:80',   // the rtsp server address
  number: 2,                 // number of cameras to spawn
  moreFlags: 
    ['-force_key_frames',    // other FFMPEG flags to pass
     'expr:gte(t,n_forced)'] //   new string element each time there is
                             //   a space in the argument
};
var camSpawner = require('ip-cam-sim');
camSpawner( options, function (err) {
});

Spawns number of number of rtsp cameras that will connect to a localhost:80 rtsp-rtmp server. Instead of null one can provide a jpg or png image path.

Default behavior for not providing the image path is that it will generate 20 random images that are 800x600 big, which then will be used as basis for 20 fps stream.

Keywords

FAQs

Package last updated on 04 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc