Talia.Y
Posts: 3
Joined: Mon Dec 30, 2019 3:43 pm

Livestreaming @ 2560x 1440 (30 frame/s @1440p)

Mon Dec 30, 2019 3:49 pm

I'm trying to set a few IP cameras for my students to observe the life cycle and behaviour of insects from their home. The idea behind this is so that they can access the live streaming anytime as the insects are kept in my house.

As this is not a school-funded project, I'm using my own pocket money and time to build this project for the children; hence, any advice to save me time and money would be greatly appreciated.

I'm getting Raspberry Pi 4 and Raspberry Pi Camera Module V2 for this project.

Because some of the insects are really tiny, I would require high-resolution live streaming for the children to see clearly.

Here are some doubts to clear before I go ahead with the purchase:

1. Can I configure these two pieces of hardware to livestream at 2560x 1440 (QHD) and 3840x2160 (4K) @ 30 frames/s?

2. One of the setups would require monitoring a 800mm by 600mm tank. The camera will be secured 500mm above the tank to observe the insects (worms) inside. Given the area of coverage and height of the camera, would the Raspberry Pi camera do the job?

Thank you in advance!
Last edited by Talia.Y on Tue Dec 31, 2019 4:04 am, edited 1 time in total.

User avatar
HermannSW
Posts: 1898
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Livestreaming @ 2560x 1440 (30 frame/s @1440p)

Mon Dec 30, 2019 10:23 pm

Talia.Y wrote:
Mon Dec 30, 2019 3:49 pm
1. Can I configure these two pieces of hardware to livestream at 2560x 1440 (QHD) and 3840x2160 (4K) @ 30 frames/s?
No, v2 camera can capture [email protected], not 30fps.
The best resolution you can capture with v2 camera @30fps is 1640x1232:
https://www.raspberrypi.org/documentati ... /camera.md
2. One of the setups would require monitoring a 800mm by 600mm tank. The camera will be secured 500mm above the tank to observe the insects (worms) inside. Given the area of coverage and height of the camera, would the Raspberry Pi camera do the job?
@gordon77 showed how to use fov calculator for v2 camera:
https://www.raspberrypi.org/forums/view ... 4#p1574241

The same 2.3mm focal length he calculated there allows for your 800x600 at 500 distance.

You can add a M12 lens mount to v2 camera in order to use M12 mount lenses:
https://www.raspberrypi.org/forums/view ... 7#p1279957

If you use v2 camera as is (focal length 3.04mm) you will have to place camera 660.87mm above the scene to cover 800x600, just change both values and recompute in the tool:
https://www.raspberrypi.org/documentati ... /README.md
Attachments
800x600.fov.png
800x600.fov.png (61.58 KiB) Viewed 404 times
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

Talia.Y
Posts: 3
Joined: Mon Dec 30, 2019 3:43 pm

Re: Livestreaming @ 2560x 1440 (30 frame/s @1440p)

Tue Dec 31, 2019 4:03 am

Dear Hermann, thank you for your generous sharing, I've gained much from your advice. Further to your point - No, v2 camera can capture 3280x 2464 @ 15fps, not 30fps - am I correct to say that I'd have no problem to stream video live over the internet at [email protected]?

User avatar
HermannSW
Posts: 1898
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Livestreaming @ 2560x 1440 (30 frame/s @1440p)

Tue Dec 31, 2019 7:19 am

Hi,

here comes the next drawback.
While you can capture [email protected], the GPU/h264 does not allow to .h264 compress it.
Limitation for .h264 compression is 1920 in both directions.
So you can capture 8MP, but would have to scale down to 2MP for .h264 encoding.

There is a way out to get 8MP frames, but only with 6fps framerate:
https://www.raspberrypi.org/forums/view ... 2#p1585782
Capturing 8MP JPG frames would allow to present an 6fps MJPEG stream, at the cost o reducing from 30fps to 6fps.

The GPU can .h264 compress 1640x1232 (3280x2464 with 2x2 binning), and that resolution would allow for 40fps!
https://www.raspberrypi.org/documentati ... /camera.md
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

Talia.Y
Posts: 3
Joined: Mon Dec 30, 2019 3:43 pm

Re: Livestreaming @ 2560x 1440 (30 frame/s @1440p)

Fri Jan 03, 2020 3:32 am

Dear Hermann, Happy New Year!

You mentioned about GPU/H.264. Is this found on a piece of hardware on Raspberry Pi 4 or is it a software limitation?

User avatar
HermannSW
Posts: 1898
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Livestreaming @ 2560x 1440 (30 frame/s @1440p)

Fri Jan 03, 2020 9:05 am

Hardware limitation of Pi Graphics Processing Unit:
https://en.wikipedia.org/wiki/Graphics_processing_unit
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

Return to “Camera board”