i have been a long time user of Domoticz, but one thing still doesnt seem to get implemented: the aspect ratio of the cams...
I know I can manualy edit the aspect ratio in the .js files, but everytime Domoticz gets updated, I have to do it again...
A simple option in the configuration screen, to set the aspect ratio of the ip cams would be easy to implemend not?
besides that, almost all ip camera's use: 16/9 aspect ratio instead of 3/4, now when I click on an Ip cam on my dashboard, I get an ugly stretched Camera image...
Is there any way, to resolve this, or do I just have to accept the fact that it is never going to be implemented ?
iP Cams aspect ratio
Moderators: leecollings, remb0
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: iP Cams aspect ratio
Maybe create a feature request issue on Github describing what you want.
Should it be a default for all cameras or per camera?
Where do you propose these setting(s) should be? Maybe create a ‘screenshot’.
Where do you make the change(s), and which changes, now in the UI?
Should it be a default for all cameras or per camera?
Where do you propose these setting(s) should be? Maybe create a ‘screenshot’.
Where do you make the change(s), and which changes, now in the UI?
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 2
- Joined: Sunday 17 October 2021 15:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: iP Cams aspect ratio
It doesn't matter if it is per camera or for all cameras, a selection switch 3/4 or 16/9 at the camera settings screen (edit camera) would be perfect...
Now, I have to ssh into the Domoticz installation, go to the: /www/js/domoticz.js file and edit the ShowCameraLiveStream function:
and change: 4 / 3 to 16 / 9, every time domoticz gets updated...
but I will try to ask for a feature request on Github, maybe they will look into it...
Now, I have to ssh into the Domoticz installation, go to the: /www/js/domoticz.js file and edit the ShowCameraLiveStream function:
Code: Select all
function ShowCameraLiveStream(Name, camIdx) {
$.count = 0;
$.camfeed = "camsnapshot.jpg?idx=" + camIdx;
$('#dialog-camera-live #camfeed').attr("src", "images/camera_default.png");
//$('#dialog-camera-live #camfeed').attr("src", FeedURL);
var windowWidth = $(window).width() - 20;
var windowHeight = $(window).height() - 150;
var AspectSource = 4 / 3;
var height = windowHeight;
var width = Math.round(height * AspectSource) & ~1;
if (width > windowWidth) {
width = windowWidth;
height = Math.round(width / AspectSource) & ~1;
}
but I will try to ask for a feature request on Github, maybe they will look into it...
- Xenomes
- Posts: 416
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: iP Cams aspect ratio
Thanks for the tip! is a good feature for a next release!Lars77 wrote: ↑Wednesday 20 October 2021 20:25 It doesn't matter if it is per camera or for all cameras, a selection switch 3/4 or 16/9 at the camera settings screen (edit camera) would be perfect...
Now, I have to ssh into the Domoticz installation, go to the: /www/js/domoticz.js file and edit the ShowCameraLiveStream function:
and change: 4 / 3 to 16 / 9, every time domoticz gets updated...Code: Select all
var AspectSource = 4 / 3;
but I will try to ask for a feature request on Github, maybe they will look into it...
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
- waltervl
- Posts: 5903
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: iP Cams aspect ratio
For reference: Is implemented in Beta 14183 (februari 2022)
https://github.com/domoticz/domoticz/issues/5155
https://github.com/domoticz/domoticz/issues/5155
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest