Skip to content

petrenkoVitaliy/local_video_stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local_video_stream

github actions

Local server for video streaming and conversion based on Actix and FFmpeg

API:

  • GET / - return root html

  • GET /chunk - Pipe: return video chunk pipe

  • GET /status - SSE - check video existence status and start converting if needed

  • PUT /source - update videos' source folder

Flow

/status request checks if requested video is in MP4 format or was already converted to MP4 and sends success response.
Otherwise, it starts conversion with FFmpeg in a separate process and sends SSE events to client with current conversion progress.

/chunk selects file source and range based on request meta and sends buffer to client.

FFmpeg handling

Handler and output parser - converter_service.rs

Releases

No releases published

Packages

No packages published