SvenVD / rpisurv

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

don't want to rearranges. #85

Closed dreamonhigh closed 5 years ago

dreamonhigh commented 5 years ago

Hello

very nice project. this config is very sensitive ;) had a lot of problems. but now it works. using 2.0beta but one little thing I want to ask you.

using 2 cams. but don't want only 2 colums. because pictures are to much streched. don't looks nice. so I thought 2col,2row might be better. tried to config this. so I did a dummy entry like url: "rtsp://". it arranges correct. but after about 10-30sec. it auto arrange and I see 2cams strechted again.

It would be super, if I could set two pictures on the positions that aren't be used.

tried to use: → disable_probing_for_all_streams=True but I think its a syntax fault "=" should be a ":". it didn't change a thing.

probe_timeout: 9999 → neither

any idea? Thank you very much. good work.

burt-macklin1 commented 5 years ago

Have you tried to disable stretching?

On Thu, Jan 3, 2019, 5:18 AM dreamonhigh <notifications@github.com wrote:

Hello

very nice project. this config is very sensitive ;) had a lot of problems. but now it works. using 2.0beta but one little thing I want to ask you.

using 2 cams. but don't want only 2 colums. because pictures are to much streched. don't looks nice. so I thought 2col,2row might be better. tried to config this. so I did a dummy entry like url: "rtsp://". it arranges correct. but after about 10-30sec. it auto arrange and I see 2cams strechted again.

It would be super, if I could set two pictures on the positions that aren't be used.

tried to use: → disable_probing_for_all_streams=True but I think its a syntax fault "=" should be a ":". it didn't change a thing.

probe_timeout: 9999 → neither

any idea? Thank you very much. good work.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SvenVD/rpisurv/issues/85, or mute the thread https://github.com/notifications/unsubscribe-auth/AqbPEqY0NoQi8EuwAZD7gam0Ioy0ZfCoks5u_ecMgaJpZM4Zn7FL .

dreamonhigh commented 5 years ago

stretching was already disabled! I only can enable it. enabling means stretched to 3+1. after 10-30sec it jumps back to in 2picture mode .. would like to have 2colum,2rows but only 2 cam. maybe auto arrange is possible to disable?

SvenVD commented 5 years ago

Hi, there are multiple workaround to somewhat achieve what your are asking

  1. Recommended solution:

Note: autostretch only stretches to include unused pixel in row/horizontally, so this setting does not affect your vertical stretching

  1. Not recommended: a screen with 2 real streams, one or two dummy streams and disable_probing_for_all_streams=True Note: autostretch only stretches to include unused pixel in row/horizontally, so this setting does not affect your vertical stretching Note2: This options disables autohealing, which you would want to keep enabled
SvenVD commented 5 years ago

Btw, for surveillance, the philosophy of rpisurv is to use all pixels available on the screen by default even if this causes stretching. Because the more screen estate is used to more easy is to notice movement on the screen.

dreamonhigh commented 5 years ago

thanks for your help

half the vertikal size works. but so I have blank screen on the lower half of the screen. I would like to put some kind of picture on it. Like you do by saying "Connecting.." It would be great to put some text or better png on it. using 3cams this works fine, cause you added a placeholder.png. here I can put some nice Information on it. but I have only 2cam and it auto arrange to 2cam only.

therefore my added dummy url. now having three cams and placeholder showings my modified placeholder.png

your right 2cam mode is stupid to use. but to use it as information indicator (png) of what the cams are showing it makes sense. in my case.

maybe you can modify your programm to add a dummy cam that only scales a png/jpg in that position? by using 2cams it makes sense.

dont you think? anyway it works. had this smearing problem, too. added a lot of rtsp_over_tcp: true below every url.

SvenVD commented 5 years ago

Hi, Great it works.

What you are asking is a new feature which looks a lot like this feature

It is on the todo list. It is not scheduled to do in the near future, but I am always open for a pull request.

dreamonhigh commented 5 years ago

This feature is much more ambitious ;) mine is only a still image adding on positions that are not connected or dummy. no updating would be required.

So if I could switch this auto arrange thing off, that happens after loosing a camera in about 15sec. I would be a very lucky man ;)

not recommend, I understood: disable_probing_for_all_streams: True I only want to stop this auto arrange thing. don't know how.

imagine using 3cams and one connection get lost, auto arrage makes it to a 2pic view. I think its better to show two placeholder in 4 pic view instead of switching in 2 pic view with half of screen blank or stretched.

SvenVD commented 5 years ago

mine is only a still image adding on positions that are not connected or dummy. no updating would be required.

Updating would indeed be an extra for that feature (this would use rpisurv probes though). However I still want a generic solution based on the url you provide. Rpisurv should automatically do the correct thing for a local or remote url.

imagine using 3cams and one connection get lost, auto arrage makes it to a 2pic view That is rpisurv algorithm default behavior. I for example have cameras that switch on timed based in the evening, I don't want empty spaces all day for those cameras that are down. The correct solution for rpisurv would be for the user to add to custom placeholder URL, but see first point

A workaround for the time being to show something custom on the bottom row would be to change https://github.com/SvenVD/rpisurv/blob/v2.0_branch/surveillance/images/blank.png image. With the fixed_height solution enabled.

SvenVD commented 5 years ago

New features 2.1.0 ( Currently only available on latest branch: https://github.com/SvenVD/rpisurv/tree/v2_latest. Will be merged to master once it has been tested enough)

It is now possible to show an image instead of a camerastream. The image is fetched from a choosen remote url. On top of that this remote url is watched for changes If the image is changed on the remote site, rpisurv will detect this and will also fetch the new image and update it on screen. The polling frequency is controlled by advanced: interval_check_status config option in /etc/rpisurv.conf. The "image stream" follows the same health checks as a normal camera stream. This means if the specified image is unavailable it will not be shown on-screen by default (you can override this). This feature has been requested on link.