Earlier edits rewrote these files with LF endings, which made the diff
show every line as changed. Content is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
- Move reusable MediaMtx code (logger, codecs, stream, httpp, recorder,
webrtc server) to lib/data/media/mtx; add ServerConf, MediaPath/
PathProvider and H264Feeder. Standalone Projects/MediaMtx builds against it.
- kernelModuleEmbedVideo hosts a WHEP server (:8889/stream_<node>/whep)
and one MediaPath per camera stream with fMP4 segment recording.
- streamHandler feeds each path either with camera H264 passthrough
(videoAVLIBSource / videoLive555AVLibSource forward encoded NALs) or
with re-encoded processed frames incl. overlays (streamLiveEncoder),
selected by module_eve.live_mode (optional columns, defaults apply).
- kernelHelperMediaMTX: external mediamtx.service is stopped, segment
indexing of the scratch folder is kept.
- live555 watch variable type deduced so old and new live555 build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
Field log: the PTZ re-init now keeps the camera and its stream (15:36),
but at 16:02:30 "Video Stalled" restarted the live555 stream, which cut
the recording. streamHandler::validate() (module factory, every ~5 s)
restarted the stream as soon as one validation saw no new frame, i.e.
after a single gap of ~5 s. That is normal now and then for a camera on
a mobile link.
- The stream is restarted after STREAM_STALL_CHECKS (3) validations in a
row without a new frame (~15 s): "Video Stalled (no frame for N s) -
restarting the stream". Shorter gaps are logged ("Video: no new frame
for N s (k/3)", "Video: frames again after N s").
- m_nValidatorFrameCounter is initialised (it was not).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16