Socket
Socket
Sign inDemoInstall

ip-cam-sim

Package Overview
Dependencies
4
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ip-cam-sim

Simulates rtsp capable ip cam through ffmpeg


Version published
Weekly downloads
5
increased by25%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 04 Aug 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc