# com.ant-automation.rtsp-video-streaming.server

> Wraps native platform APIs for performing H.264 encoding and RTP streaming.

Latest version **0.1.3** (published 2022-01-19) · 0 weekly downloads

## Install

```sh
npm install com.ant-automation.rtsp-video-streaming.server
pnpm add com.ant-automation.rtsp-video-streaming.server
yarn add com.ant-automation.rtsp-video-streaming.server
bun add com.ant-automation.rtsp-video-streaming.server
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2022-01-19 |
| First published | 2022-01-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 267.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexander Ezharjan |
| Maintainers | ant-auto |
| Keywords | unity, media, video, streaming, live, h.264, rtp, rtsp |

## Links

- npm: https://www.npmjs.com/package/com.ant-automation.rtsp-video-streaming.server
- npm.io page: https://npm.io/package/com.ant-automation.rtsp-video-streaming.server

## Dependencies (1)

- [com.unity.collections](https://npm.io/package/com.unity.collections.md) 0.9.0-preview.6

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2022-01-19
- 0.1.2 — 2022-01-17

## README

# Unity Video Streaming Server Package #

Alexander Ezharjan  
9th Sep, 2020  

[github repository](https://github.com/Ezharjan/UnityVideoStreamingPackage)

## Utilization

1. Add new Texture2D in assets whit the size equal to camera resolution (example 1920 x 1080)
2. In Camera Gameobject set Target Texture to the new texture
3. In Camera Gameobject add VideoStreamingServerComponent
4. Set SourceTexture to the same camera target texture
5. Set Port to an unused port

## Streaming client

In a streaming client (example VLC Media Player) set open network streaming URL to ```rtsp://ip:port```

## Build Settings

To build an Unity application add the RGBToNV12 shader to included shaders:

1. Select menu ```Edit``` > ```Project Settings...```
2. Select ```Graphics``` tab
3. In ```Always Included Shaders``` section add new element: Video/RGBToNV12

The shader is located in tha ```Packages > VideoStreming Server > Shaders```

## RunTime Prerequisites

The H264Encoder.dll plugin must be compiled in VS 2015 x64 Release.   
The H264Encode has the following dependencies:  

In Windows OS:  
* ole32.dll          (Windows OS)
* KERNEL32.dll        (Windows OS)
* MFPlat.DLL         (Windows OS)

[Visual C++ Redistributable for Visual Studio 2015](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/)
* MSVCP140.dll       
* VCRUNTIME140.dll   

[Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/)
* api-ms-win-crt-runtime-l1-1-0.dll
* api-ms-win-crt-heap-l1-1-0.dll

### Tools

#### DUMPBIN
To check the dependencies use the Tool Command Prompt for VS 2019   
```
> dumpbin /DEPENDENTS H264Encoder.dll
Microsoft (R) COFF/PE Dumper Version 14.29.30138.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file H264Encoder.dll

File Type: DLL

  Image has the following dependencies:

    ole32.dll
    MSVCP140.dll
    MFPlat.DLL
    VCRUNTIME140.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-heap-l1-1-0.dll
    KERNEL32.dll

  Summary

        1000 .data
        1000 .pdata
        2000 .rdata
        1000 .reloc
        1000 .rsrc
        3000 .text
```

#### Dependency Walker
Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules.   
No intalation is needed.
https://www.dependencywalker.com/

---
_Source: https://npm.io/package/com.ant-automation.rtsp-video-streaming.server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
