piwebcam / PiWebcam

Turn a Raspberry Pi into a fully-featured and dummy-proof webcam
https://piwebcam.github.io
52 stars 13 forks source link

Add rtsp support. (read full desc) #45

Open DevRanger opened 3 years ago

DevRanger commented 3 years ago

Hi, not sure if this is already integrated but rtsp would be great for people who want to live view the camera through apps like VLC but still have the functionality of the recording/motion/etc. features you have on the dashboard. Is this already a thing? Am i missing something? Mainly this would be great for internal network monitoring.

user2684 commented 3 years ago

Hi, Thanks for the sharing this idea. Definitely worth evaluating. I did test this approach a while ago but noticed the CPU utilization was HUGE and regardless if a client is connected to the RTSP stream or not, this is why I pushed this out at design time. But I'll keep this open for future investigation. Thanks!

DevRanger commented 3 years ago

so you already have motion installed, maybe add vlc in the build. in motion you just need to change a few things that shouldn't affect the current user experience. im currently working on trying to get it running based off this article, maybe give it a read! https://tutorials-raspberrypi.com/raspberry-pi-security-camera-livestream-setup/ NOTE: from what ive heard, doing a 1080p 30fps stream uses 7%-10% of cpu and very low ram usage. HMU on discord if you wanna work on this together and/or do some testing, would be glad to help! Dev_Ranger#0001

user2684 commented 3 years ago

Thanks for the advice, I'll keep this open as an enhancement request. Just a comment on the stats you are sharing above, at least in my tests with a raspi zero, cpu utilization were waaaaay higher, with 20-30% using 2fps and 1024x768 resolution, even without rtsp. But i guess with a raspi4 there could be a huge improvement