Feature Request: start/stop recording by http.
YiguiDing opened this issue · 2 comments
YiguiDing commented
Describe the feature
Description
Can we add an http interface to control the recording of the stream? To control the recording status of multiple streams.
for example:
http://localhost:9997/v3/recordings/{streamName}?state=start
http://localhost:9997/v3/recordings/{streamName}?state=stop
If record:yes
is configured in mediamtx.yml
, it seems that it will cause multiple streams to be recorded at the same time
yelodevopsi commented
Duplicate #3293
This can be done setting record:yes
on the specific camera-path:
E.g through using the PATCH API:
https://bluenviron.github.io/mediamtx/#operation/configPathsPatch
paths:
CAM-01:
source: rtsp://....
record: yes
aler9 commented
Hello,
If record:yes is configured in mediamtx.yml, it seems that it will cause multiple streams to be recorded at the same time
Yes, this is a current limitation, there are two ways to go:
- create a configuration for each specific path, as @yelodevopsi suggested
- otherwise, the ability to control recordings for each specific path, associated to a single, global configuration ("all_others") is being tracked here: #3718