Anonymousdog / displaycameras

System for displaying RTSP feeds from IP cameras on the Raspberry Pi
Apache License 2.0
565 stars 112 forks source link

3 x 3 Layout Issue #75

Closed the-real-rob closed 2 years ago

the-real-rob commented 4 years ago

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 commented 3 years ago

Please post a redacted version of your current layout file.

Andy

On Thu, Aug 20, 2020, 7:46 AM the-real-rob notifications@github.com wrote:

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)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/75, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKMNZ7J6KKA7WNESPPDSBUEJLANCNFSM4QF6VTDA .

the-real-rob commented 3 years ago

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 commented 3 years ago

Are the sources higher resolution than 640 x 360? What were the results of performing the debugging steps in the README.MD file?

Thanks

On Mon, Aug 24, 2020, 3:00 PM the-real-rob notifications@github.com wrote:

Here is the content from the file - appreciate your assistance! I have simply removed the rasp 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"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/75#issuecomment-679307096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKKAEBUBGVJYTVLH7VTSCK2EVANCNFSM4QF6VTDA .

the-real-rob commented 3 years ago

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 commented 3 years ago

You'll never squeeze 9 full HD feeds onto a single display. They need to be the same or smaller resolution as their display windows.

Thanks

On Wed, Aug 26, 2020, 3:20 AM the-real-rob notifications@github.com wrote:

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/75#issuecomment-680706517, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKNL2BOHPVH7PVZAGGLSCSZUJANCNFSM4QF6VTDA .

Brickabrak commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.