How xingchennnnn/fh8862-multi-cam works
FH8862 Multi-Channel Video Surveillance is a four-camera system with separate video and device-control paths. The video path runs from board-side capture and H.264 encoding through RTSP, a MediaMTX relay, and browser WebRTC playback; the control path routes browser HTTP requests through Node.js to each board’s TCP command server. README-described features are retained, but some unsampled subsystem wiring is shown only where documented.
Main entry points: control_server.c TCP command server · index.html Video wall and controls · server.js HTTP control API · rtsp_live555.cpp RTSP server
Components 16
Board video
- IMX415 sensor
src/sensor.c - ISP processing
src/isp.c - VPSS and VENC
src/main.c - H.264 frame queues
src/frame_queue.cpp - Live H.264 source
src/h264_live_source.cpp - RTSP sessions
src/h264_subsession.cpp - RTSP server
src/rtsp_live555.cpp
Board control
- TCP command server
src/control_server.c - OSD, masks, recording
src/main.c - Sensor and device controls
src/sensor.c
Relay services
- MediaMTX relay
web/mediamtx.yml - HTTP control API
web/server.js
Browser interface
- Video wall and controls
web/index.html - WebRTC playback
web/js/webrtc-player.js - Browser recording
web/js/webrtc-player.js
Other components
- Operator
Connections 16
- IMX415 sensor → ISP processing: supplies images
README.md - ISP processing → VPSS and VENC: feeds processing
README.md - VPSS and VENC → H.264 frame queues: queues encoded frames
README.md - H.264 frame queues → Live H.264 source: provides frames
src/h264_live_source.cpp - RTSP sessions → Live H.264 source: creates source
src/h264_subsession.cpp - RTSP server → RTSP sessions: serves streams
README.md - Operator → Video wall and controls: views and controls
README.md - Video wall and controls → WebRTC playback: hosts playback
README.md - WebRTC playback → MediaMTX relay: requests WebRTC
README.md - RTSP server → MediaMTX relay: publishes RTSP
README.md - Operator → HTTP control API: sends control requests
README.md - Video wall and controls → HTTP control API: calls API
README.md - HTTP control API → TCP command server: forwards TCP commands
README.md - TCP command server → OSD, masks, recording: dispatches commands
src/control_server.c - TCP command server → Sensor and device controls: sets sensor parameters
src/control_server.c - Operator → Browser recording: records playback
README.md