2

I am trying to detect following information about the stream in Media Source Extensions

  • Audio/Video Bitrate
  • Bandwidth
  • IP address of the stream
  • Stream information like format

I have been reading the documentations but I could not find any direct references to these. Is it possible to extract these information?

Vishvesh
  • 512
  • 8
  • 21
  • are you trying to do it on the client or on the server? Audio/Video Bitrate, format sound easier to do on the server. IP address of the stream == IP of the client? – Guig Mar 11 '16 at 02:33

1 Answers1

3
  • Bandwidth: you have to infer it from the client, measuring how long it takes to download packets of known size (you can get the size from the headers as well) as do some simple math.
  • Audio/Video Bitrate & Stream information like format: sounds easier to get on the server and send this information, if that's possible for you.

IP: ie client IP? it's in the request header and there are a number of SO questions about it.

Community
  • 1
  • 1
Guig
  • 9,891
  • 7
  • 64
  • 126
  • My script would be on the client side. – Vishvesh Mar 11 '16 at 06:00
  • cool, so depending on your environment, you'll be able to access different utilities. What's your stack on? If you're on node, you can check out fluent-ffmpeg that wraps nicely ffmpeg and ffprobes – Guig Mar 17 '16 at 22:09