com.ant-automation.rtsp-video-streaming.server
v0.1.3
Published
Wraps native platform APIs for performing H.264 encoding and RTP streaming.
Downloads
2
Maintainers
Readme
Unity Video Streaming Server Package
Alexander Ezharjan
9th Sep, 2020
Utilization
- Add new Texture2D in assets whit the size equal to camera resolution (example 1920 x 1080)
- In Camera Gameobject set Target Texture to the new texture
- In Camera Gameobject add VideoStreamingServerComponent
- Set SourceTexture to the same camera target texture
- 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:
- Select menu
Edit
>Project Settings...
- Select
Graphics
tab - 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
- MSVCP140.dll
- VCRUNTIME140.dll
- 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/