# ip-cam-sim

> Simulates rtsp capable ip cam through ffmpeg

Latest version **1.4.3** (published 2015-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install ip-cam-sim
pnpm add ip-cam-sim
yarn add ip-cam-sim
bun add ip-cam-sim
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.3 |
| Published | 2015-08-04 |
| First published | 2015-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jae Yang |
| Maintainers | dchem |
| Keywords | ip, cam, ffmpeg, rtsp |

## Links

- npm: https://www.npmjs.com/package/ip-cam-sim
- Repository: https://gitlord.com/r/~dchem/ip-cam-sim
- Homepage: https://gitlord.com/summary/~dchem%2Fip-cam-sim.git
- Issues: https://gitlord.com/tickets/~dchem%2Fip-cam-sim.git?status=new&status=open
- npm.io page: https://npm.io/package/ip-cam-sim

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^1.4.0
- [random-image-generator](https://npm.io/package/random-image-generator.md) ^1.0.2

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.4.3 (latest) — 2015-08-04
- 1.4.2 — 2015-08-04
- 1.4.1 — 2015-08-04
- 1.4.0 — 2015-08-04
- 1.3.0 — 2015-08-03
- 1.2.1 — 2015-07-31
- 1.2.0 — 2015-07-28
- 1.1.1 — 2015-07-20
- 1.1.0 — 2015-07-20
- 1.0.0 — 2015-07-20

## README

# ip-cam-sim
Simulates rtsp capable ip cam through ffmpeg

## Dependencies
Should have ffmpeg installed in your machine

## Usage
```js
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.

---
_Source: https://npm.io/package/ip-cam-sim · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
