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.71k stars 1.48k forks source link

HTTP API endpoint to get source/proxy stream media tracks information #1726

Open VitalyVaryvdin opened 1 year ago

VitalyVaryvdin commented 1 year ago

Describe the feature

Hi!

I'd like to be able to get media tracks information like codec, resolution, bit rate, etc Wasn't able to easily find out whether it's possible to get this information or not. Can you point me in right direction?

aler9 commented 1 year ago

Hello, the API already provides basic track informations (tracks and their codec) with the /v2/paths/list endpoint:

{
  "pageCount": 0,
  "items": [
    {
      "name": "mypath",
      "tracks": [
        "h264", "mpeg4-audio"
      ],
    }
  ]
}

Additional properties depend on the specific codec, it may be a future enhancement to provide such additional properties.

ddeodeok commented 6 months ago

Hello, I hope this message finds you well. I'm currently exploring the RTSP server's capabilities and would like to know if there are specific API endpoints for initiating and stopping video playback. Could you kindly provide information or documentation on the relevant endpoints or methods for starting and stopping video playback sessions?

Your assistance is greatly appreciated. Thank you