[Config Support]: Can u rescale the camera preview in the console?
See original GitHub issueDescribe the problem you are having
Hi there,
I’ve looked for this in the docs and cant find it. Most of my cameras are either 1080p or 2k, and what Im noticing is in that when I preview the camera in the frigate ui (especially recordings) , the image is too big. Ideally it should be scaled to fit the browser window.
is there a config for this affecting only the frigate UI?
Here is an example of what i get
thank you!
Version
0.11.0 Beta 3 , but also other versions
Frigate config file
mqtt:
host: 192.168.0.204
ui:
use_experimental: True
detectors:
cpu1:
type: cpu
birdseye:
enabled: true
cameras:
pantilt:
ffmpeg:
inputs:
- path: rtsp://xxxx:yyyy@192.168.0.28/live0
roles:
- rtmp
- detect
- clips
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
snapshots:
enabled: true
timestamp: false
bounding_box: true
retain:
default: 10
motion:
mask:
- 1920,712,1920,0,0,0,0,750,505,632,698,625,773,716,1409,724,1400,635
record:
enabled: True
retain:
days: 10
events:
retain:
default: 10
frontroom:
ffmpeg:
inputs:
- path: rtsp://xxxxx:yyyyy@192.168.0.31:554/live0
roles:
- rtmp
- detect
- clips
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
snapshots:
enabled: true
timestamp: false
bounding_box: true
retain:
default: 10
motion:
mask:
- 584,531,1549,503,1552,592,1865,594,1920,576,1920,480,1920,0,569,0,563,95,570,168,576,250
record:
enabled: True
retain:
days: 10
events:
retain:
default: 10
doorbell:
ffmpeg:
inputs:
- path: rtsp://xxxxx:yyyyy@192.168.0.55/Streaming/Channels/101
roles:
- clips
- record
- detect
- rtmp
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
# rtmp:
# enabled: false
detect:
width: 1536
height: 1536
fps: 5
objects:
track:
- person
snapshots:
enabled: true
timestamp: false
bounding_box: true
retain:
default: 10
motion:
mask:
- 1536,1102,1536,0,0,0,0,1118
record:
enabled: True
retain:
days: 10
events:
retain:
default: 10
Relevant log output
n/a
Frigate stats
No response
Operating system
Debian
Install method
Docker Compose
Coral version
CPU (no coral)
Any other information that may be helpful
No response
Issue Analytics
- State:
- Created a year ago
- Comments:11
Top Results From Across the Web
Configuration options | Android Developers
You can choose to allow CameraX to set image resolution based on a combination of the device capabilities, device's supported hardware level, use...
Read more >UWP Camera preview size issue - Stack Overflow
It seems that you need to set the DisplayInformation. ... This will change preferred orientation of the app and it makes the preview...
Read more >How to programmatically control Preview size of Android ...
We configure the preview size right after Camera Manager is instantiated and SurfaceTexture , where the preview gets rendered, is ready.
Read more >camera-preview - npm
takePicture(options, successCallback, [errorCallback]) ... Take the picture. If width and height are not specified or are 0 it will use the ...
Read more >Take photos and control camera settings - Chrome Developers
Image Capture is an API to control camera settings and take photos. ... You can try out this code from the DevTools console....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is the one I had in mind https://github.com/blakeblackshear/frigate/issues/3287
This is still an issue, adding comment so not to mark this as stale