Lillifee / raspiCam

RaspiCam, a simple web application to stream, take pictures or record videos from your raspberry pi camera.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stream during recording

Lillifee opened this issue · comments

Keep the stream active during recording.
Feature request from disucussion #40

Currently, libcamera-vid only supports a single stream at a time. This stream is recorded to a file during recordings and streamed live with different settings on the website. However, if we attempt to preview a 1080p video with a high bitrate, it will cause delays and lags in the live stream. Consequently, it becomes quite challenging to simultaneously record a high-quality video and stream it. In my opinion, the most viable solution would be to save the high-quality video to a file, compress it using ffmpeg, and then stream the compressed version on the website. However, implementing this solution may require significant refactoring since raspicam does not currently utilize ffmpeg.

commented

It's all good, I thought there was probably a reason it wasn't a feature already. I've been experimenting with using libcamera-vid to stream the video and pick it up in VLC Player to watch and save it there as well but with varying success. I think it's something more up with VLC Player than Libcamera though in this case.

Note: I was doing this outside of your software rather than with the link to the h264 stream in raspiCam.

Either way I've been using your software to capture videos of the bats that are over our garden in the summer months using my infrared camera so thank you for your work. The above would be a great addition but still the software you've created works really well as it is.

If you'd like to see one of the videos it's here: https://www.youtube.com/watch?v=UU91VGH9uDE

hmm... would be nice to have a little bit more control over libcamera...
Hope i find a little bit time in the next week to test ffmpeg...

That's fascinating! :)
Can the PIR sensor detect those distant bats? They seem to be quite far away, don't they?

commented

I haven't actually tried the PIR with them so I am not sure but I suspect it won't pick them up as their bodies are only around 3-5cm long. For these videos I am just manually recording for a bit and then picking out the best bits. :)