mpv
mpv copied to clipboard
WebSocket (wss) media streaming support
Expected behavior of the wanted feature
Greek Channel Mega TV uses websocket (wss) for its live streaming, AV1 video/AAC audio https://www.megatv.com/live/
It would be helpful if mpv could play directly the wss URL from the player e.g.
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
like it does for segmented mpd and m3u streams. Python code to save the video to file was provided here by larley
Alternative behavior of the wanted feature
No response
Log File
No response
Sample Files
No response
Are you sure it's over wss? That's weird, never seen that before.
Are you sure it's over wss? That's weird, never seen that before.
Yes, it loads a placeholder 1 second mp4 file as a decoy first and then transmits over wss, you can see how the data are sent on the python code linked above
Thanks for the explanation.
Why would they want to do this? Because it seems very inefficient since it cannot cache anything over a wss.
This sounds very peculiar. Either way it's probably a job for ffmpeg to implement. However I wouldn't blame them for rejecting it.