frigate-hass-integration: Cannot play media, but can browse the folder and open snapshot
Hello, installed Frigate through Docker and everything seems to work.
version: "3.8"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable-amd64
shm_size: "64mb" # update for your cameras based on calculation above
devices:
# - /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
- /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
# - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config/frigate.yml:/config/config.yml:ro
- /media/footage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "xyz"
Frigate is available at 192.168.1.2:5000
Configured the HA integration and looks everything good

I see the media (clips, recording etc) through HA



When try to play clips/recordings, I get error (Snapshot/png loads fine)

This is the details of the error from browser
Request URL: http://192.168.1.3:8123/api/frigate/frigate/vod/event/1645108206.040023-wqz43m/init-v1.mp4?authSig=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhZWI5M2ZhMGM4NmE0NGI0YTg0MDFhMTIyOGJjN2FjZCIsInBhdGgiOiIvYXBpL2ZyaWdhdGUvZnJpZ2F0ZS92b2QvZXZlbnQvMTY0NTEwODIwNi4wNDAwMjMtd3F6NDNtL2luZGV4Lm0zdTgiLCJpYXQiOjE2NDUxMTExNjEsImV4cCI6MTY0NTE5NzU2MX0.5caBTa-nsCVdnZmcQDFlaZZdlDN6Yhi-fL_DuM55sag
Request Method: GET
Status Code: 404 Not Found
Remote Address: 192.168.1.3:8123
Referrer Policy: strict-origin-when-cross-origin
Content-Length: 14
Content-Type: text/plain; charset=utf-8
Date: Thu, 17 Feb 2022 15:19:57 GMT
Server: Python/3.9 aiohttp/3.8.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cache-Control: max-age=0
Connection: keep-alive
Host: 192.168.1.3:8123
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4880.0 Safari/537.36
This is same with Safari/Firefox/Chrome.
I see frigate repeats in the url, (http://192.168.1.3:8123/api/frigate/frigate/vod) is it normal??
i see a similar issue at https://github.com/blakeblackshear/frigate/issues/1830 and https://github.com/blakeblackshear/frigate/issues/1534 . I am not sure mine is same as I don’t have synology. This is the permission I see in the docker container
$ ls -l media/
total 4
drwxr-xr-x 5 root root 4096 Feb 17 09:59 footage
bsr@automation /media/footage/recordings/2022-02/17/00/coop_back
$ ls -l
total 1374468
-rw-r--r-- 1 root root 3963466 Feb 17 00:00 00.09.mp4
-rw-r--r-- 1 root root 3875609 Feb 17 00:00 00.19.mp4
Please let me know any other info needed. I tried everything today so should be latest versions.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (6 by maintainers)
FYI, I don’t think anyone is expecting this to ever happen.
@dermotduffy Something looked off here and I realized that the endpoint is mp4/m4s. The view is expecting .ts files.