Opened 17 months ago

Last modified 16 months ago

#11573 new enhancement

WebSocket (ws/wss) protocol support

Reported by: Hackerpcs Owned by:
Priority: minor Component: avformat
Version: unspecified Keywords: websocket
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: yes

Description

Greek Channel Mega TV uses websocket (wss) for its live streaming, AV1 video/AAC audio
https://www.megatv.com/live/

eg

wss://ume3-edge-01.cdn.vindral.com/subscribe?channelId=alteregomedia_megatv1_ci_6cc490c7-e5c6-486b-acf0-9bb9c20fa670&sessionId=ece2f6d2-b264-48c6-a3fe-2a0f3265b8df&clientId=36e4a9f8-8f57-40c0-92f4-0eadc9caaed2&audio.bitRate=128000&audio.codec=aac&video.width=1280&video.height=720&video.bitRate=2200000&video.codec=av1&burstMs=2000

It loads a placeholder 1 second mp4 file as a decoy first and then transmits over wss.

larley here
https://forum.videohelp.com/threads/417910-MegaTV-Greece-Unknown-wss-streaming-protocol#post2771070
has implented python code that does record the stream

Change History (2)

comment:1 by Timo R., 17 months ago

FFmpeg is very unlikely to add support for proprietary protocols that stream over WebSocket I'm afraid.

comment:2 by MasterQuestionable, 17 months ago

Analyzed by developer: set
Cc: MasterQuestionable added
Component: ffmpegavformat
Keywords: websocket added
Summary: WebSocket (wss) streaming supportWebSocket (ws/wss) protocol support

͏    WebSocket is probably not proprietary protocol.
͏    As some inaccurate but rough analogy:
͏    Regard it as some fancy variant of HTTP.

͏    Using `curl` to download the stream should work.
͏    And then FFmpeg shall be able to process the media.

͏    `yt-dlp` seems already doing alike:
͏    https://github.com/yt-dlp/yt-dlp/pull/12848

Last edited 16 months ago by MasterQuestionable (previous) (diff)
Note: See TracTickets for help on using tickets.