SvenVD / rpisurv

Raspberry Pi surveillance
https://rpisurv.net
GNU General Public License v2.0
626 stars 101 forks source link

Garbled video at higher resolution #179

Closed turbo2ltr closed 1 week ago

turbo2ltr commented 1 year ago

I've been running three Unifi cameras on a 1080 monitor without issue for years. The streams I use were the "medium" streams (1280x720)

I upgraded to a larger 4K monitor so I went to change the stream to the "high" stream (2688x1512) and I get what you see in the top left.

20231120_214139

The main darker area looks like it "scrolls" up. Like every time the frame is drawn it's drawn one pixel off. The green part on the right side of the frame is a repeating pattern of random garbage.

Opening the same stream in VLC works fine.

- camera_streams:
         - url: "rtsp://10.0.0.1:7447/xxx"
           rtsp_over_tcp:  True
           freeform_advanced_vlc_options: " --rtsp-frame-buffer-size=1000000"
           force_coordinates: [0, 0, 1920,1080 ]

Any suggestions?

turbo2ltr commented 1 year ago

I changed the doorbell cam from Medium (960x720) to High (1600x1200) without issue.

SvenVD commented 12 months ago

did you fix it?

turbo2ltr commented 12 months ago

No I couldn't get it to work.

turbo2ltr commented 12 months ago

Actually I updated the UDMP and camera firmware since then, let me try again.

turbo2ltr commented 12 months ago

Yeah, no change. If anything its worse. Before, only the camera with the high res stream was affected. Now they are all garbled just setting one stream (top left) to high res. Though I suspect this just has to do with how memory was allocated this particular boot.
Changing pic for short video https://github.com/SvenVD/rpisurv/assets/10290656/8b6fecef-47f4-4d1f-9b92-1f44c17481e7

Heres the hi res stream playing in regular VLC image

russgmoore commented 12 months ago

I had similar issues and lockups till I set all of my secondary streams to 640x480 and used that secondary stream for rpiserv.

SvenVD commented 1 week ago

I had similar issues and lockups till I set all of my secondary streams to 640x480 and used that secondary stream for rpiserv.

This is the way for Rpisurv and raspberry pi hardware. For your information, https://opensurv.net enables you to use more powerful hardware.