Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream during recording #57

Open
Lillifee opened this issue Jun 12, 2023 · 3 comments
Open

Stream during recording #57

Lillifee opened this issue Jun 12, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Lillifee
Copy link
Owner

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.

@Lillifee Lillifee added the enhancement New feature or request label Jun 12, 2023
@james-dmu
Copy link

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

@Lillifee
Copy link
Owner Author

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?

@james-dmu
Copy link

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants