We have a couple cameras that we have mounted at 90 degrees, as that provides the best coverage. The flexibility of this program allows you to easily create rotated 9:16 windows, and it would be great to be able to turn the video feeds in that window.
I was able to do it, and it is working surprisingly well, showing 5 camera feeds, 2 of them rotated 90 degrees, on a compute module 3. I don't do a camera carousel, but even if I did I would rather see those cameras rotate 90 and squashed than left sideways.
I edited the script at /bin/displaycameras and added the following right after the two calls for omxplayer in the script:
--orientation "${window_orientations[$x]}"
And then I just added a window_orientations() section to /etc/displaycameras/layout.conf.default
Here is my layout. Its a little strange with the 9:16 windows so large, but for me they are the most important cameras to see, so I like it.
#####################
# Windows positions #
#####################
window_positions=(
#Left_Side_480x1080
"0 0 639 1079" \
#Right_Side_480x1080
"1280 0 1919 1079" \
#Middle_Top 640x360
"640 0 1279 359" \
#Middle_Center_640x360
"640 360 1279 719" \
#Middle_Bottom_640x360
"640 720 1279 1079"
)
#######################
# Window Orientations #
#######################
window_orientations=(90 90 0 0 0)
################
# Camera Names #
################
camera_names=(WEST_ST NORTH_ST SHOP TRUCKS GARAGE)
# Make sure to account for each camera above in the list of feeds below.
################
# Camera Feeds #
################
camera_feeds=(
#WEST_ST
"rtsp://#.#.#.#" \
#NORTH_ST
"rtsp://#.#.#.#" \
#SHOP
"rtsp://#.#.#.#" \
#TRUCKS
"rtsp://#.#.#.#" \
#GARAGE
"rtsp://#.#.#.#" \
)
# Are we rotating cameras through the window matrix? (default false if not set here)
# rotate="true"
OMXplayer is still the best option for RTSP multiviewers on the pi. I tried VLC mosaics, but the performance is terrible. I had to download the latest version of Buster , update it, change password, apt install omxplayer, and then install displaycameras.
We have a couple cameras that we have mounted at 90 degrees, as that provides the best coverage. The flexibility of this program allows you to easily create rotated 9:16 windows, and it would be great to be able to turn the video feeds in that window.
I was able to do it, and it is working surprisingly well, showing 5 camera feeds, 2 of them rotated 90 degrees, on a compute module 3. I don't do a camera carousel, but even if I did I would rather see those cameras rotate 90 and squashed than left sideways.
I edited the script at /bin/displaycameras and added the following right after the two calls for omxplayer in the script:
--orientation "${window_orientations[$x]}"
And then I just added a window_orientations() section to /etc/displaycameras/layout.conf.default
Here is my layout. Its a little strange with the 9:16 windows so large, but for me they are the most important cameras to see, so I like it.
OMXplayer is still the best option for RTSP multiviewers on the pi. I tried VLC mosaics, but the performance is terrible. I had to download the latest version of Buster , update it, change password, apt install omxplayer, and then install displaycameras.