bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.01k stars 1.42k forks source link

HTTP FLV Server for play video in flv.js player in web app #1460

Open usama-liaqat opened 1 year ago

usama-liaqat commented 1 year ago

Describe the feature

Description can you add http-flv server in rtsp-simple-server to to play flv in web app. this will be great feature. you can see the implementation in nginx http flv module.

IgelsT commented 1 year ago

Can you, please, show example, how to use it?

hu-xd commented 1 year ago

the usage: after a path 'test1' is added to the config, clients can access the video with urls like this: http://{host}:{port}/test1/live.flv and the responsed would be valid flv video file and can be played with flv.js

aler9 commented 1 year ago

Out of curiosity, what's the advantage of using FLV with respect to HLS?

IgelsT commented 1 year ago

I try http://camera.local:8888/test1/5ce1a843f99ba334.flv, it is redirecting to http://camera.local:8888/test1/5ce1a843f99ba334.flv/ and answered 404 page not found. In mediamtx.yml paths: test1: source: publisher

FLV because, i already have webapp that works with another media server, but their problem with external authorisation

hu-xd commented 1 year ago

Out of curiosity, what's the advantage of using FLV with respect to HLS?

mostly compatibility with existing apps/systems

usama-liaqat commented 1 year ago

it is flv over the HTTP or WebSocket. it is capatible with the browsers like WebRTC, Hls and Dash, it has low latency then HLS or Dash