Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 x 3 Layout Issue #75

Closed
the-real-rob opened this issue Aug 20, 2020 · 8 comments
Closed

3 x 3 Layout Issue #75

the-real-rob opened this issue Aug 20, 2020 · 8 comments

Comments

@the-real-rob
Copy link

I have opened the layout file for 1920x1080 screen size and edited it with the 9 cameras. I have also tested each RSTP stream in VLC.

The issue Im having is that only 4 cameras on the 9x9 grid are showing up, namely, grid slot 2,3,4,5. The remaining blocks are empty.

I copied the code from the 9x9 layout file into the default layout file.

Is this correct and what are the best methods to follow with regards to using other layouts (i.e. 9x9 / 3x2 etc)

@Anonymousdog
Copy link
Owner

Anonymousdog commented Aug 24, 2020 via email

@the-real-rob
Copy link
Author

the-real-rob commented Aug 24, 2020

Here is the content from the file - appreciate your assistance! I have simply removed the rtsp links, otherwise the file is the same as what I am currently using.

# This is the camera feed/windows layout configuration file for the
# displaycameras service.  It ONLY configures the layout and feeds for
# the cameras; the rest of the configuration is in displaycameras.conf.
# See the comments in that file for notes on configuring the below.

# Window names

# 3x3 640x360 on-screen 
windows=(upper_left upper_middle upper_right center_left center_middle center_right lower_left lower_middle lower_right)
# Make sure to account for each window above in the list below.

# Windows positions

window_positions=(
#First Row
#upper_left
# 640x360
"0 0 639 359" \
#upper_middle
"640 0 1279 359" \
#upper_right
"1280 0 1920 359" \

#Second Row (missing all but the far right window because large_left is double size
#center_left
# 640x360
"0 360 639 719" \
#center_middle
"640 360 1279 719" \
#center_right
"1280 360 1920 719" \

#Third Row
#lower_left
# 640x360
"0 720 639 1079" \
#lower_middle
"640 720 1279 1079" \
#lower_right
"1280 720 1919 1079" \

)

# Camera Names

camera_names=(Driveway FrontGarden1 FrontGarden2 Alleyway Fountain Pool UpPavement DownPavement DrivewayExterior)
#camera_names=(NE SE South SW West Vestibule NE2 SE2 South2 SW2 West2 Vest2)
# Make sure to account for each camera above in the list of feeds below.

# Camera Feeds

camera_feeds=( \
# Low-Res
#Driveway
"rtsp://xxxx” \
#FontGarden1
"rtsp://xxxx" \
#FrontGarden2
"rtsp://xxxx" \
#Alleyway
"rtsp://xxxx" \
#Fountain
"rtsp://xxxx" \
#Pool
"rtsp://xxxx" \
#UpPavement
"rtsp://xxxx" \
#DownPavement
"rtsp://xxxx" \
#DrivewayExterior
"rtsp://xxxx" \
)

# Are we rotating cameras through the window matrix? (default false if not set here)
rotate="false"

@Anonymousdog
Copy link
Owner

Anonymousdog commented Aug 25, 2020 via email

@the-real-rob
Copy link
Author

The individual cameras are full HD 1920x1080. I will dive into the readme.md file and follow the steps. Apologies for the delay in getting back to you.

@Anonymousdog
Copy link
Owner

Anonymousdog commented Aug 26, 2020 via email

@Brickabrak
Copy link

Brickabrak commented Aug 26, 2020

I agree with Anonymousdog. In my testing, I can fit at best 2 x 1080p streams on a 1080p monitor along with 2 low res streams (640x360).
You could maybe get 4x 1080p streams on a 4k monitor, but compressing the stream is very taxing to the GPU of the pi. You'll never get 9 full HD streams to be displayed on a monitor.

You could have the other streams off-screen and rotate them on.

@the-real-rob
Copy link
Author

the-real-rob commented Aug 26, 2020

I have been successfully using the default layout which is a 2x2 layout and the cameras have been performing great, no issues at all. I have only recently tried to increase the grid to 3x3 and thats where the issue arises where only 4 out of the 9 cameras in the 3x3 grid appear. the other 5 camera grid blocks are empty.

Im assuming the cameras adjust their output resolution on the raspberry pi when the grid size differs.

@Brickabrak
Copy link

I'm glad you're able to get so many HD videos playing. The blank videos are (from my experience) places where there was no more GPU RAM available, so they can't be displayed.
The cameras don't know the window size that was given, so won't adjust based on that. From my testing cameras will lower the quality and bitrate to respond to a limited bandwidth, but never the resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants