Skip to content

Commit

Permalink
Update camera configs for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aksun1 committed Oct 26, 2024
1 parent ac2dc73 commit 4f5f77b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions camera/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ services:
command: >
-i /dev/video0
-vf "vflip,hflip"
-profile:v baseline -pix_fmt yuvj420p -level:v 4.1 -preset ultrafast
-profile:v baseline -pix_fmt yuv420p -level:v 4.1 -preset ultrafast
-c:v libx264
-x264-params keyint=20:min-keyint=20
-http_persistent 0
-g 10
-g 60
-sc_threshold 0
-f hls
-b:v 2000k
-s 1920x1080
-r 30
-an
-hls_init_time 0
-hls_time 1
-hls_segment_type fmp4
-hls_time 3
-hls_segment_type mpegts
-hls_list_size 5
-hls_delete_threshold 1
-hls_flags delete_segments
Expand Down Expand Up @@ -47,3 +48,4 @@ services:
- "443:443"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile

3 changes: 2 additions & 1 deletion camera/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ http {
# Valid tokens cache duration is set by backend returning a properly set Cache-Control header
# Invalid tokens are shortly cached to protect backend but not flood Nginx cache
proxy_cache_valid 401 30s;
# Valid tokens are cached for 5 minutes so we can get the backend to re-validate them from time to time
# Valid tokens are cached for 30 seconds so we can get the backend to re-validate them from time to time
proxy_cache_valid 200 30s;

#proxy_set_header Host ........;
Expand All @@ -51,6 +51,7 @@ http {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
video/mp4 m4s;
text/html html;
}
}
Expand Down

0 comments on commit 4f5f77b

Please sign in to comment.