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
10.74k stars 1.4k forks source link

Seperate Record Settings #3269

Closed pankajsaini1987 closed 2 months ago

pankajsaini1987 commented 2 months ago

Describe the feature

Description Right now there is only option either we can start recording or stop recording for all added devices and same settings for all like record duration, record format etc. it will be better if we can control recording on/off for individual device and can be control by api, we can call api for start or stop recordings, and if possible related settings like duration, format etc.

thank you for understanding

aler9 commented 2 months ago

Hello, you can already tune settings for individual devices by adding them to the path section, under the key that corresponds to each device:

paths:
  my_device_1:
    source: rtsp://my-source
    record: yes
    recordFormat: mpegts

  my_device_2:
    source: rtsp://my-source
    record: no

  my_published_path:
    source: publisher
    record: yes
aler9 commented 2 months ago

... and the API already allows to control these individual settings. Check the config/paths/patch endpoint.