mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
Improve docs on exports API endpoints (#14224)
* Add (optional) export name to the create-export API endpoint docs * Add the exports list endpoint to the docs
This commit is contained in:
parent
2a15b95f18
commit
f86957e5e1
@ -411,17 +411,37 @@ HTTP Live Streaming Video on Demand URL for the specified event. Can be viewed i
|
||||
|
||||
HTTP Live Streaming Video on Demand URL for the camera with the specified time range. Can be viewed in an application like VLC.
|
||||
|
||||
### `GET /api/exports`
|
||||
|
||||
Fetch a list of all export recordings
|
||||
|
||||
Sample response:
|
||||
```json
|
||||
[
|
||||
{
|
||||
"camera": "doorbell",
|
||||
"date": 12800057,
|
||||
"id": "doorbell_pjis54",
|
||||
"in_progress": false,
|
||||
"name": "2024-10-04 fox visit",
|
||||
"thumb_path": "/media/frigate/clips/export/doorbell_pjis54.webp",
|
||||
"video_path": "/media/frigate/exports/doorbell_pjis54.mp4"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### `POST /api/export/<camera>/start/<start-timestamp>/end/<end-timestamp>`
|
||||
|
||||
Export recordings from `start-timestamp` to `end-timestamp` for `camera` as a single mp4 file. These recordings will be exported to the `/media/frigate/exports` folder.
|
||||
|
||||
It is also possible to export this recording as a time-lapse.
|
||||
It is also possible to export this recording as a time-lapse using the "playback" key in the json body, or specify a custom export filename, using the "name" key.
|
||||
|
||||
**Optional Body:**
|
||||
|
||||
```json
|
||||
{
|
||||
"playback": "realtime" // playback factor: realtime or timelapse_25x
|
||||
"playback": "realtime", // playback factor: realtime or timelapse_25x
|
||||
"name": "custom export name" // override the default export filename with a custom name
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user