A
A
alex14782019-04-29 16:36:00
linux
alex1478, 2019-04-29 16:36:00

How to save video stream transmitted via websockets?

There is a video player on the site https://teddyfood.com/en/animals/Tikhon , I want to figure out how to save the video stream that it shows. If you look through the developer console, you can see that a websocket connection is being established with wss://sr20.ipeye.ru/ws/flv/live?name=As8KlaROArix7OBtFy5MLeXeSXSPa6 , some binary data is being transmitted inside the stream, I assume that these are video fragments. I want to save this stream and try to set ffmpeg on it. But I can't figure out how this binary stream can be saved.
Tried via websocat , but it fails with an error:

websocat "wss://sr20.ipeye.ru/ws/flv/live?name=As8KlaROArix7OBtFy5MLeXeSXSPa6" -b
websocat: WebSocketError: WebSocket response error
websocat: error running

What other options are there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VoidVolker, 2019-05-01
@VoidVolker

  1. Open video player code
  2. study it
  3. Make changes to the code to save the video

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question