contact@aqptech.vn
OPEN VIDEO INFRASTRUCTURE · v8.1.0

连接任意摄像机,
将视频分发至任意应用。

HTML5STREAM 将摄像机、NVR 和 VMS 与 Web、移动端、AI、IoT 及 SCADA 应用连接起来,并提供低延迟直播、录像、回放、PTZ 和集成 API。

HTML5STREAM — 连接任意摄像机, 将视频分发至任意应用。
LIVE MEDIAONE STREAM · EVERY SCREEN
ONVIFRTSPWebRTCTURNAV1HTML5
当前版本v8.1.0
<400 msWebRTC 延迟目标*
10+输入 / 输出协议
3Linux 安装包格式
ONE MEDIA CORE

面向所有视频系统的开放流媒体层

从接入、协议转换和录像到浏览器播放,HTML5STREAM 将核心媒体能力整合为一个可通过 API 嵌入的服务。

01

Multi-vendor sources

Ingest ONVIF Profile T/G cameras, RTSP, RTMP, SRT, RTP/GB28181, NVR/VMS systems, and MP4 files.

02

Unified media processing

Demux, mux, relay, protocol conversion, snapshots, and recording in a high-performance C++ media core.

03

Native HTML5 playback

Deliver video to Chrome, Edge, Safari, and Firefox through WebRTC, WebSocket, HLS, HTTP-FLV, or fMP4.

04

API-first integration

REST APIs, webhooks, and a C API embed streaming into VMS, SOC, video wall, GIS/eMap, or custom applications.

05

Flexible deployment

Run on an edge gateway, an on-premise server, or a centralized multi-site cluster.

06

Video-AI ready

Enable the optional CUDA/TensorRT pipeline for object detection while keeping AI outside the default streaming core.

PROGRAMMABLE ARCHITECTURE

一个媒体核心,统一调度所有视频源

下方代码化架构图展示从设备接入、媒体处理到浏览器及业务系统的完整路径,并在各种屏幕上保持清晰。

01 · 视频源
ONVIF CAMERAProfile T / G
RTSP · RTMPIP camera / encoder
NVR · VMSSDK / uplink
SRT · RTPWAN / GB28181
02 · 媒体核心
HTML5STREAMHIGH-PERFORMANCE VIDEO PLATFORM
Protocol ingestRelay & transcodeRecord & snapshotREST · Webhook · C API
ON-PREMISEEDGEHYBRID
03 · 应用
WEB BROWSERWebRTC / WebSocket
MOBILE & WEB APPHLS / fMP4 / HTTP-FLV
VIDEO WALLMulti-stream rendering
VMS · SOC · GISSecure API integration
OPTIONAL AI RAIL · CUDA / TENSORRT / YOLOTENSORRTCUDAGPU
原生 HTML5 分发视频链路加密浏览器 GPU 解码边缘录像与抓图

*低于 400 ms 是 WebRTC 的设计目标;实际结果取决于编码、网络、NAT/TURN 和客户端硬件。

WEBRTC NETWORKING & HARDWARE CODEC

通过 TURN 穿越 NAT,以 AV1 优化带宽

这两项能力解决不同层面的问题:TURN 在直连失败时保障 WebRTC 路径;PCIe 硬件在 H5S 分发视频前完成编码转换。

01 · WEBRTC TURN RELAY

将内网 WebRTC 安全发布到互联网

H5S coordinates signaling and can relay media through TURN. The browser still prefers a direct path; media is routed through H5S only when NAT or firewall policy prevents that connection.

CAMERA / VIDEO SOURCERTSP · ONVIF · H.265 / H.264
H5S WEBRTC SERVER192.168.100.123 · PRIVATE LAN
SIGNALING SERVERExchanges SDP, ICE candidates, and session setup information between the web client and H5S.TURN RELAYRelays media when both endpoints cannot establish a direct WebRTC transport path.
Preferred pathICE / P2P
Fallback pathTURN :3478
WEB BROWSERInternet / remote client
NAT / FIREWALL47.1.1.123
SIGNALING SERVER

Exchanges SDP, ICE candidates, and session setup information between the web client and H5S.

TURN RELAY

Relays media when both endpoints cannot establish a direct WebRTC transport path.

IP 与端口映射参考
内部网络192.168.100.123公共互联网47.1.1.123
Public access URLshttp://47.1.1.123:9080https://47.1.1.123:9443
Internal serverPublic IP / portExpected purpose
192.168.100.123:808047.1.1.123:9080HTTP / WebRTC signaling
192.168.100.123:844347.1.1.123:9443HTTPS / WSS signaling
192.168.100.123:347847.1.1.123:3478TURN relay
TURN 带宽随并发观看人数增长

When relay is active, every viewing session traverses H5S. Size Internet capacity, NIC throughput, and data-centre egress for the aggregate concurrent bitrate.

TURN relays data; it does not transcode codecs automatically. Protocol overhead and operational headroom are not included in this example.
2 Mbps × 100 viewers ≈ 200 Mbps outbound
02 · HARDWARE AV1 TRANSCODING

在 WebRTC 分发前将 H.265 转换为 AV1

An H.265 source is routed through a dedicated PCIe card. Hardware converts it to AV1, after which H5S distributes the AV1 stream to web clients.

01H.265 CAMERAInput video source
02PCIe TRANSCODERHardware H.265 → AV1
03H5S / WebRTCSignaling & distribution
04AV1 BROWSEREndpoint decoding
HARDWARE TRANSCODING<8 ms厂商公布的转码延迟
Lower target bitrate at comparable qualityOffload processing from the CPU to PCIe hardwareSupport large-scale WebRTC delivery patterns

The endpoint device and browser must decode AV1. Validate latency, quality, and channel density with the exact card, driver, and codec profile planned for deployment.

END-TO-END PIPELINE

两项能力可组合为同一条视频链路

H.265 camera → PCIe AV1 transcoder → H5S WebRTC Server → direct connection or TURN relay → AV1-capable browser.

H.265PCIe / AV1H5S / WebRTCDIRECT / TURNBROWSER
生产环境建议

Prefer HTTPS/WSS signaling and TURN over TLS when the network requires it. TCP port forwarding alone may be insufficient: design ICE/TURN, UDP/TCP fallback, TLS certificates, firewall policy, and public-IP advertisement together.

DEPLOY WHERE VIDEO LIVES

三种典型部署模式

可从摄像机附近的单个网关起步,并扩展为多站点媒体核心,无需更改集成接口。

01

EDGE GATEWAY

Ingest and convert close to cameras to reduce WAN bandwidth and preserve local viewing.

02

CENTRAL PLATFORM

Centralize streams, recording, and access control across sites or existing VMS deployments.

03

AI-READY NODE

Add NVIDIA GPUs and TensorRT when the use case requires real-time inference close to the video source.

INSTALLATION GUIDE

安装 HTML5STREAM v8.1.0

选择适用于 x86_64 Linux 服务器的软件包。以下命令直接从项目官方 GitHub Release 下载。

GitHub Release v8.1.0
开始之前
x86_64 Linux with sudo accessNetwork routes to cameras and viewing clientsOnly the required ports opened for your architectureAn NVIDIA GPU only when the AI pipeline is enabled
01

校验下载文件

SHA256
curl -LO https://github.com/AQ-VISION/html5stream/releases/download/v8.1.0/SHA256SUMS
sha256sum -c SHA256SUMS --ignore-missing
02

选择安装包

DEB · Ubuntu / Debian
curl -LO https://github.com/AQ-VISION/html5stream/releases/download/v8.1.0/html5stream_8.1.0_amd64.deb
sudo apt install ./html5stream_8.1.0_amd64.deb
sudo systemctl enable --now html5stream
RPM · RHEL / Rocky / AlmaLinux
curl -LO https://github.com/AQ-VISION/html5stream/releases/download/v8.1.0/html5stream-8.1.0-1.x86_64.rpm
sudo dnf install ./html5stream-8.1.0-1.x86_64.rpm
sudo systemctl enable --now html5stream
TGZ · Portable / no system service
curl -LO https://github.com/AQ-VISION/html5stream/releases/download/v8.1.0/html5stream-8.1.0-Linux-x86_64.tar.gz
tar -xzf html5stream-8.1.0-Linux-x86_64.tar.gz
./usr/bin/html5stream-mediaserver
03

配置并启动

System packages run the html5stream service. The default configuration is /usr/libexec/html5stream/config.ini; back it up before changing ports, TLS certificates, or recording policy.

CONFIG/usr/libexec/html5stream/config.ini
检查服务
sudo systemctl status html5stream
sudo journalctl -u html5stream -f
curl -I http://127.0.0.1:8080/
04

打开管理控制台

Once the service is healthy, open the embedded admin console below. Replace SERVER_IP with the server IP or hostname.

ADMIN CONSOLEhttp://SERVER_IP:8080/admin/
05

网络端口参考

Open only enabled services. For public Internet access, place HTTP APIs behind a TLS reverse proxy and constrain media ports with a firewall.

8080TCP

HTTP console / API

8443TCP

HTTPS console / API

8554TCP

RTSP

1935TCP

RTMP

3000–3001TCP

WebRTC signaling

8000TCP / UDP

WebRTC media

3478TCP / UDP

ICE / TURN

9000UDP

SRT

10000TCP / UDP

RTP proxy

06

从源码构建

Use CMake for a minimal Release build. ENABLE_AI remains off by default so the streaming core stays lightweight.

CMAKE · RELEASE
git clone --recursive https://github.com/AQ-VISION/html5stream.git
cd html5stream
cmake -S . -B build \
  -DCMAKE_BUILD_TYPE=Release \
  -DENABLE_WEBRTC=ON \
  -DENABLE_API=ON \
  -DENABLE_AI=OFF \
  -DENABLE_TESTS=OFF
cmake --build build -j"$(nproc)"
可选 AI 流水线

The YOLO build script requires FFmpeg development libraries, CUDA, TensorRT, and CoreAI access. Enable it only on a prepared GPU node.

./scripts/build_yolov12.sh
FIRST STREAM

将第一个摄像机画面发布到网页

完成安装后,按照四个步骤接入。生产部署前请规范化摄像机 URL 与凭据。

01

Register a source

Add an RTSP URL or ONVIF device through the REST API or admin console.

02

Validate ingest

Confirm codec, connection status, and media-server logs before enabling recording.

03

Choose delivery

Prefer WebRTC for low latency; use HLS or fMP4 when compatibility and caching matter more.

04

Embed the stream

Use the playback URL and APIs in a VMS, dashboard, GIS/eMap, or custom web app.

OPERATIONS NOTES

生产环境的四项检查

01

WebRTC through NAT

Set the correct public IP and TURN service for off-site clients; validate UDP and TCP fallback.

02

Browser codec support

H.264 has broad support. H.265 playback depends on browser, operating system, and decoding hardware.

03

ONVIF across VLANs

Multicast discovery may not cross VLANs; add devices by static IP and permit the required inter-VLAN traffic.

04

Service observability

Track the systemd journal, recording capacity, connections, and bandwidth before increasing camera density.

HTML5STREAM FAQ

部署前常见问题

面向工程团队、系统集成商及评估 HTML5STREAM 视频媒体服务器与视频数据平面的企业。

01What is HTML5STREAM?

A Media Server platform that connects, normalizes, and delivers video from IP cameras, NVRs, recorders, and VMS platforms to Web, Mobile, and third-party software.

02What problem does it solve?

It provides the Camera/NVR → HTML5STREAM → Web, Mobile, AI, IoT, or SCADA layer so teams do not have to build a media server, WebRTC gateway, recording, and playback stack from scratch.

03Is HTML5STREAM a VMS?

It provides live view, recording, playback, snapshots, PTZ, stream management, and APIs, but is best positioned as the Video Media Server or Video Data Plane behind a broader VMS or business application.

04Can cameras be viewed directly in a browser?

Yes. WebRTC serves low-latency viewing while HLS is useful for stable distribution and larger audiences, without browser plugins.

05Which video sources are supported?

IP cameras, NVR/DVR, bodycam, DriveCam/MDVR, encoders, RTSP/RTMP streams, video files, ONVIF devices, and selected third-party VMS platforms, subject to protocol and codec compatibility.

06Which protocols are supported?

Depending on version and configuration: RTSP, RTMP, ONVIF, WebRTC, HLS, HTTP/HTTPS, WebSocket, REST API, and MQTT for selected event flows.

07Which codecs are supported?

Common formats include H.264, H.265/HEVC, AAC, and G.711. Suitable hardware or software can add AV1 and other transcoding targets.

08Is transcoding always required?

No. Streams can be relayed or repackaged when endpoints support the source codec. Transcoding is used for compatibility, lower bitrate/resolution, multiple profiles, or codec normalization.

09Does HTML5STREAM support WebRTC?

Yes, for operations centres, traffic, bodycam, industrial monitoring, PTZ, fleet tracking, and AI-event verification. TURN provides a fallback through restrictive NAT or firewalls.

10What does a TURN Server do?

TURN relays WebRTC media when a direct path cannot be established. Server bandwidth must be sized for camera bitrate and concurrent viewers.

11Are recording and playback supported?

Yes: continuous, scheduled, or event recording; time search; Web playback; clip export; snapshots; and links to AI events.

12Can HTML5STREAM work with AI?

Yes. HTML5STREAM manages video while an AI Engine produces events such as people, vehicles, intrusion, smoke/fire, PPE, counting, plates, congestion, or abnormal behaviour.

13Can it integrate with SCADA?

Yes, without replacing SCADA. Operational data comes from PLCs and gateways while HTML5STREAM supplies live video, snapshots, and playback around alarms.

14Can it integrate with existing software?

Yes: VMS, ERP, SCADA, BMS, access control, parking, traffic, logistics, fleet, IoT, and command-centre applications.

15Is there a developer API?

APIs can manage cameras and streams, live URLs, snapshots, PTZ, recording, search/playback, server health, and events. Exact scope depends on version and licence.

16Can it run on-premise?

Yes, including factories, offices, data centres, substations, buildings, warehouses, and command centres with video retained inside customer infrastructure.

17Can it run in the cloud?

Yes. A common design is branch cameras → local Media Node → Cloud Control Platform → Web/Mobile, with site upload and cloud egress assessed first.

18Does it support multiple sites?

Yes. Deploy a Media Node per site or centralize streams. Distributed nodes reduce WAN usage, retain local video, and preserve operation during Internet loss.

19Does it support bodycams and vehicle cameras?

Yes, when devices expose compatible streams or APIs, enabling live view, event recording, GPS linkage, maps, SOS video, route playback, and evidence export.

20Can it operate as a Video Gateway?

Yes. It normalizes Camera/NVR/VMS inputs into WebRTC, HLS, RTSP, snapshot, playback, and API outputs.

21Can many users watch concurrently?

Yes, within the limits of CPU/GPU, NIC, bandwidth, bitrate, resolution, codec, transcoding, TURN, and active stream count. Validate with load testing.

22Is a GPU required?

Not for every deployment. GPUs or accelerator cards help with H.265-to-H.264/AV1 conversion, resize, multiple profiles, dense camera workloads, and AI. Relay/remux is lighter.

23Can it fully replace an NVR?

It depends. HTML5STREAM offers recording and playback, while dedicated NVRs remain useful for simple standalone storage and same-vendor integration. HTML5STREAM is stronger for software integration.

24Who is HTML5STREAM for?

System integrators, VMS developers, AI-camera and IoT vendors, SCADA/BMS teams, traffic and logistics providers, fleet operators, factories, and video-OEM builders.

25Can the interface be white-labelled?

Yes. A custom Web/Mobile interface can use HTML5STREAM behind the scenes with branded UI, permissions, reports, workflows, and AI/IoT integrations.

26How is HTML5STREAM licensed?

Licensing may reflect camera count, Media Nodes, software edition, recording, transcoding, OEM terms, and deployment scale.

27What information is needed for sizing?

Camera count and models, codecs, resolution/bitrate, concurrent viewers, retention, Web/Mobile/API needs, deployment model, transcoding, and AI/SCADA/BMS integrations.

28How is it different from consumer livestreaming?

Livestreaming distributes one programme to an audience. HTML5STREAM focuses on many independent surveillance streams, low latency, PTZ, recording, playback, permissions, APIs, AI events, NVR/VMS, and business integration.

基于 HTML5STREAM 构建

需要符合现有系统的视频架构?

AQP Tech 可协助容量规划、网络流设计、VMS/NVR 集成、NAT 环境下的 WebRTC,以及面向场景的视频 AI。

解决方案咨询

从您的运营问题开始

请分享数据源、业务流程和优先目标。AQP Tech 将协助确定合适的应用场景与 AIIoT 架构。

请留下信息,我们的团队将尽快与您联系。