Closed adminabcomtech closed 2 years ago
That function is used when downloading a clip for an event from the UI, so it should work. It does store a file in /tmp, so if the file is too large, it could break something. What are you trying to use that endpoint for?
Thanks for your answer, i'm trying to do something like this in home assistant
my test call is for a clip of 2 min.
i'll check the download link in application
Edit : Where in the application did you use this end point? endpoint i can find are like this one, with event_id and this one are working. /api/events/\<event-id>/clip.mp4?download=true
I would try using the VOD endpoints instead. That won't require assembling a mp4 in cache and should work better.
Hi,
I've time to make a bit more test,
and there's something goes wrong when creating index.m3u8 on endpoint
/vod/{camera}/start/{timestamp}/end/{timestamp}/index.m3u8
i use this python command to create url :
print (f"http://10.1.24.127:5000/vod/rvx_ip30_irwl_w/start/{time.time()- 360}/end/{time.time()}/index.m3u8")
So i should have a clip of 5 minutes. But more i wait to get index.m3u8, the shortest it is.
Here's result when i use same url with same timestamp at different time.
> ls -al index*
-rw-r--r-- 1 belese belese 1113 4 nov 10:15 index.m3u8
-rw-r--r-- 1 belese belese 968 4 nov 10:16 'index (1).m3u8'
-rw-r--r-- 1 belese belese 794 4 nov 10:17 'index (2).m3u8'
-rw-r--r-- 1 belese belese 220 4 nov 10:20 'index (3).m3u8'
You can find all index file in attachement index.zip
Ps: I also updated the Frigate Addon to DEBUG 0.9.4-26AE608
Johan
Ok, i haven't no retain in records, seem it's now ok. I'll close it, and sorry for disturbance
Describe the problem you are having
Hello,
i'm trying to get a mp4 clip from timestamp with http APi. this api endpoint is not documented, but it is implemented in that file http.py
Here's my call
http://my-ip:5000/api/mast/start/1633672800/end/1633672920/clip.mp4
and the FFmpg error :
I've record in media path for that period.
Can we use that api point?
Any though about this error?
Kr,
Johan
Version
0.9.1-800F33E
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
HassOS
Install method
HassOS Addon
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
redvision RVX_IPNC
Any other information that may be helpful
No response