Anonymousdog / displaycameras

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

Manual Feed Switching #40

Closed tedtms closed 4 years ago

tedtms commented 4 years ago

Hello,

Excellent project, thank you so much for this! I'm running an rpi4 attached to a TV with the intent of switching it back and forth between a live camera feed and an encoded RTSP stream from a presentation computer running PowerPoint. So far, the feeds work great!

However, in my use case, I have a specific need to switch from one feed to another manually. The feed should take up the whole display, and rotation isn't really an option for me as I only need it to switch once, and the time isn't predictable.

Is there a way (or could there be a way) to make displaycameras choose another feed when prompted? So far, I'm considering the quick & dirty solution of having two layout.conf files (1 and 2 for example) and using a script to ssh into the pi, rename the files, restart the service to load the renamed file, then exit. Obviously that's not an ideal solution though.

Thanks! Ted

Anonymousdog commented 4 years ago

Not sure this meets your needs, but you can do this out of the box.

Configure for both feeds (with one off screen) and no rotation.

When arbitrary time arrives for the switch, '/usr/bin/displaycameras rotate' run as root will do the job. Same command switches it back.

Thanks, Andy

On Sun, Feb 16, 2020 at 2:04 PM tedtms notifications@github.com wrote:

Hello,

Excellent project, thank you so much for this! I'm running an rpi4 attached to a TV with the intent of switching it back and forth between a live camera feed and an encoded RTSP stream from a presentation computer running PowerPoint. So far, the feeds work great!

However, in my use case, I have a specific need to switch from one feed to another manually. The feed should take up the whole display, and rotation isn't really an option for me as I only need it to switch once, and the time isn't predictable.

Is there a way (or could there be a way) to make displaycameras choose another feed when prompted? So far, I'm considering the quick & dirty solution of having two layout.conf files (1 and 2 for example) and using a script to ssh into the pi, rename the files, restart the service to load the renamed file, then exit. Obviously that's not an ideal solution though.

Thanks! Ted

— 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/40?email_source=notifications&email_token=AHIYIKNBYCG46XZ3X2UPYUTRDGE37A5CNFSM4KWFYZ3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IN3X6KQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKKFEYR7JGSDU5T25UTRDGE37ANCNFSM4KWFYZ3A .

tedtms commented 4 years ago

Andy,

Awesome, thank you! That's exactly what I needed.

Cheers! Ted