Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Other programming languages • Two RTSP Web Cams - One bash script or two?

$
0
0
I currently have two Pi4Bs each of which is connected to a USB web cam. Since the USB seems a bit flakey, I'm thinking of replacing the USB cameras with a couple of RTSP capable cameras.

At the moment each Pi grabs an image once every two minutes, processes and badges the image and uploads it to a web host. Once every 24 hours the Pies assemble the previous day's images into a time-lapse video which is also uploaded to the web host. Here's a sample:

Cha Am Ocean Video

I have tested using ffmpeg to grab images from an RTSP stream and find that it works well and is reliable.

My plan is to replace the two Pies (running Buster) with a single Pi4 running Bookworm.

I'm trying to decide if I should combine the code for each camera into a single bash script or separate the code into two separate scripts. If two scripts, should I run them simultaneously or one after the other?

Any thoughts?

Statistics: Posted by Ratsima — Mon Nov 03, 2025 11:55 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles