Git Product home page Git Product logo

Comments (5)

tedtms avatar tedtms commented on July 28, 2024

Hey @8v-piper, this may help your use case. I asked @Anonymousdog on a previous ticket if manual rotation was possible, and his solution was to run the command /usr/bin/displaycameras rotate which would automatically switch the feeds. If you configure one of the feeds off-screen, this should work.

Then, if you configure your GPIO button to just issue that command, it should rotate the feed for you.

Hope that helps!
Ted

from displaycameras.

8v-piper avatar 8v-piper commented on July 28, 2024

HI @tedtms

Thanks will give it a try i have read up on that ticket and will configure it to send command when it goes high and another one when it goes low again to restore the previous view.

Thanks will update tomorrow after I have tested the solution.

from displaycameras.

8v-piper avatar 8v-piper commented on July 28, 2024

Good Day @tedtms

I have tried your solution and it does work to rotate.

Unfortunately there is a but, when I rotate the screen it brings the camera it should rotate to in full screen and displays it in the 2x2 matrix.
Then every time you do the command again it just moves it through to another position in the 2x2 matrix until its off screen again.

here is my layout config file settings

Window names

2x2 screen with 1 off-screen windows

windows=(upper_left upper_right lower_left lower_right off_screen)

Make sure to account for each window above in the list below.

Windows positions

window_positions=(
#First Row
#upper_left

512x384

"0 0 511 383"
#upper_right

512x384

"512 0 1023 383" \

#Second Row (missing all but the far right window because large_left is double size
#lower_left

512x384

"0 384 511 767"
#lower_right

512x384

"512 384 1023 767" \

#off-screen

Full Screen

"1024 0 2047 767"
)

Camera Names

camera_names=(NE SE South SW West)

Make sure to account for each camera above in the list of feeds below.

Camera Feeds

camera_feeds=( \

Mid-Res if your RPi can handle the load

"rtsp://xxx.xxx.xxx.xxx/yyyyy_1" \

Low-Res otherwise

"rtsp://xxx.xxx.xxx.xxx/yyyyy_2" \

#NE
"rtsp://10.0.0.3/axis-media/media.amp?videocodec=h264&resolution=800x600&fps=25&videokeyframeinterval=25&compression=30"
#SE
"rtsp://10.0.0.5/axis-media/media.amp?videocodec=h264&resolution=800x600&fps=25&videokeyframeinterval=25&compression=30"
#South
"rtsp://10.0.0.2/axis-media/media.amp?videocodec=h264&resolution=800x600&fps=25&videokeyframeinterval=25&compression=30"
#SW
"rtsp://10.0.0.7/axis-media/media.amp?videocodec=h264&resolution=800x600&fps=25&videokeyframeinterval=25&compression=30"
#West
"rtsp://10.0.0.5/axis-media/media.amp?videocodec=h264&resolution=800x600&fps=25&videokeyframeinterval=25&compression=30"
#Vestibule
)

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

rotate="false"

Am I doing something obviously wrong?
any help is appreciated

from displaycameras.

Anonymousdog avatar Anonymousdog commented on July 28, 2024

from displaycameras.

8v-piper avatar 8v-piper commented on July 28, 2024

Thank you appreciated I am checking out RpiSurv now.

from displaycameras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.