rescale on the fly
Posted: Tue Feb 09, 2010 8:28 am
Here is a quick and easy script to change the video scale. It is ideal for usage with the montage view. I have a 30" monitor and a 19" monitor connected, so depending on what I am doing in my workspace, I may want all 8 camera's or a couple cameras displayed on either of the monitors. There is a vast difference in available display space on each monitor, so it is handy to be able to change the display resolution size quickly depending on which display and how many cameras in the montage etc.
Here is the bash script:
The script would be invoked as:
script.sh mysqluser mysqlpassword scale(between like 100 - 400) depending on your screen size,
then launch montage
run the script, right click in montage, click refresh (or equiv)
Here is the bash script:
Code: Select all
#!/bin/bash
echo "
select Name,DefaultScale from Monitors order by Name\G
update Monitors set DefaultScale = $3;
select Name,DefaultScale from Monitors order by Name\G
"
| mysql -u$1 -p$2 -Dzm
The script would be invoked as:
script.sh mysqluser mysqlpassword scale(between like 100 - 400) depending on your screen size,
then launch montage
run the script, right click in montage, click refresh (or equiv)