Hi,
I have a couple of these Foscams with 1280x960 resolution and the Domoticz live view window is by the looks of it designed (at least by default) for 1280x720 (well, 16/9 aspect ratio in general). Is there any easy way to change it to see an undistorted image? I can change the image settings in the cam but then of course it cuts out part of the available image which I'd like to try to avoid
Aspect ratio for the live view?
Moderator: leecollings
-
- Posts: 17
- Joined: Sunday 23 October 2016 11:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Aspect ratio for the live view?
Sorry for digging out this old post, but I just got my cams working and have the same problem.
My cams are all at 640x480px and the popup view is too wide, so the picture looks ugly.
I didn't found the right place in the code. Inspecting the css with firefox, it shows this for the picture (and says it's inline-code):
Where does this come from? Is it possible to change this?
My cams are all at 640x480px and the popup view is too wide, so the picture looks ugly.
I didn't found the right place in the code. Inspecting the css with firefox, it shows this for the picture (and says it's inline-code):
Code: Select all
Element {
border: 1px solid rgb(30, 40, 50);
width: 599px;
height: 338px;
}
-
- Posts: 3
- Joined: Thursday 13 February 2020 14:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Aspect ratio for the live view?
Same problem for me... I have a XIAOMI Xiaofang with DAFANG hacks, set to 1280x720 that looks ugly in 4:3...
Is it possible to change the view ratio to 16:9?
Is it possible to change the view ratio to 16:9?
-
- Posts: 3
- Joined: Tuesday 21 July 2020 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Torelló
- Contact:
Re: Aspect ratio for the live view?
search in the file domoticz.js
-------------------------------------------------
original line:
var AspectSource = 4 / 3;
modified line:
var AspectSource = 16 / 9;
--------------------------------------------------
or another desired aspect ratio.
By modifying this variable it is possible to see the cameras without deformations.
-------------------------------------------------
original line:
var AspectSource = 4 / 3;
modified line:
var AspectSource = 16 / 9;
--------------------------------------------------
or another desired aspect ratio.
By modifying this variable it is possible to see the cameras without deformations.
Who is online
Users browsing this forum: No registered users and 1 guest