Archive Playback
Viewing archived footage in standard web players requires HLS. RUSEON Core achieves this without storing duplicate files by transmuxing fMP4 to MPEG-TS on the fly.
Indexing and Transmuxing
When a request is made, the archive module scans the moof (Movie Fragment) and mdat (Media Data) boxes within the fMP4 file. It calculates the byte offsets for each fragment, mapping them to standard HLS segments.
As the client requests a segment, RUSEON Core extracts the NALUs from the fMP4 file and wraps them in MPEG-TS dynamically.
API Endpoints
- Playlist:
GET /hls/:id/archive.m3u8?file= - Segment:
GET /hls/:id/segment.ts?file=&seq=
INFO
The file query parameter typically specifies the relative path or identifier of the fMP4 file being requested.