Thanks for providing a consistent and up-to-date view of pi cameras and their performance at high frame rate. I had followed this on the Raspberry Pi forums but with many changes over the years it seemed very difficult to get a coherent understanding. Old, obsolete or incorrect posts remain and Google or forum searches point you in the wrong direction.
You could get even higher frame rates by interlacing separate cameras in between the shutter of each snapshot. And the separate cameras can share one image by using mirrors to reflect the picture to both at the same time.
thanks for the breakdown on your eBay buys here. I was looking to find just the camera with no additional PCB as I needed to do everything on the same board and was having a time finding something in the price range that didn't come with the PCB break-out.
since it appears hes using a older original raspberry pi with 512mb of ram, i assume now in 2022/23 the pi 4 exists with up to 8gb that means the camera should be able to record longer due to the amount of ram being significantly larger and much faster. pretty crazy for cheap hobby project cameras never designed for this purpose
there is a new camera module with c mount. Can you make a for dummies version of this video. I need a super slow motion camera (1000 fps or more) and the cheapest options are over 1000 USD and I would like to use raspberry but the process seems incredibly hard
I'd love to get back to working on this project, but I've been busy with a few other things lately. Actually, I just googled the new camera you talked about, and that looks pretty sweet. That adjustable lens is exactly what's needed to produce even better quality video.
@@RobertElderSoftware im pretty sure if this could be automated a little through an app in raspberry it would be a huge hit for a lot of people. The fact that it has .tiff images that could potentially be high bitrate h264 means that a lot of people who need slow motion cams would build this just to see. For my work for example i need a slow motion camera but constantly copy pasting code to get it would be very time consuming i guess. If it was simpler id order that new cam module immediately
Yeah, I started working on a piece of software to make the process easier: github.com/RobertElderSoftware/PatientTurtle Although at the moment, this software is probably more complicated for someone else to use this than it is to do the process manually as I documented it. I can think of lots of improvements that could be made, but it's all takes time. Hopefully someone is inspired enough by these videos to actually make it happen.
Does it record the set height from the top of the frame to the bottom, or from the bottom up? I am having trouble finding what is in the small slow motion frame as I am doing it completely over ssh. Thank you.
It's been a while since I worked on this project, but checking the raspiraw docs, there is a 'top' and 'vflip' parameter that you can play with that might help you out: github.com/Hermann-SW/fork-raspiraw Yes, I recall that it was very challenging to actually get what I wanted in the frame.
I haven't looked into it yet, but reading the posts that HermannSW posts on the RaspberryPi Forums is where I'd start researching: www.raspberrypi.org/forums/viewtopic.php?t=278195
Sir, can you try same setup with new Raspberry pi HQ camera? The sensor and lens option for the module is very good for slow motion as well as sensor support 4K 60fps. Unfortunately, default softwares can't capture 4k video. May be customized tool can help in that recording. If this is possible, we can make a 4k 60fps point and shoot manual camera with slow motion.
I'm working on a different project right now, but you can check out the work that these two people have done: github.com/6by9 github.com/Hermann-SW They are a lot more active and up to date in terms of the latest Raspberry Pi Cameras. If you check out their repos, they at least have some support for RPI4 and if there's any already-complete work for the new 4k camera, they might have it there.
Raspberry Pi 3 model B. Not sure about Pi zero since I haven't tried, but I wouldn't be surprised if it worked. Here is a document about connecting cameras to the pi zero: www.raspberrypi.org/blog/zero-grows-camera-connector/
Hi Robert Thanks for the making the informative video. I am using a USB camera See3CAM_CU20(only supports UYVY Format) with raspberry pi 4. I am able to live stream the video but its frame rate is below 10. The motion.conf file is programmed for frame rate of 30. I tested the camera in full light and by connecting it to USB 3.0 port of raspberry pi 4. Can you please suggest any ways to improve the frame rate? Thanks
Hi, Manjot, good to hear from you! I'm not familiar with the See3CAM_CU20 or the 'motion.conf' file, so I can't speak much to those. The best way to start debugging this problem is probably to start by isolating where the bottleneck is. In video capture and transfer the frame rate decrease can come from a number of places: The camera capabilities itself, the h.264 encoding hardware in the Pi itself, the drivers (this page about motion.conf: motion-project.github.io/motion_config.html talks about Video4linux which is probably the driver you're using). If you're transmitting the captured video over a network, the network latency can cause either frames to drop, or give you an ever increasing delay depending on what protocol you're using to transmit the video frames. I would start by doing simple tests with something like the 'raspivid' command or ffmpeg to try and determine if the drivers/hardware are capable of the frame rate you want. If you can get a short video with the frame rate you want from those commands, then the bottleneck is somewhere upstream (possibly in another piece of software, or somewhere through the network). - Robert
Oh, something I forgot to mention is that with ffmpeg you can specify a frame rate, and if I'm not mistaken any frame rate you provide to ffmpeg is a directive for how to interpret the video stream *not* an instruction to *provide* that video frame rate. I think that caught me off guard a few times. with raspivid the frame rate you specify is actually sent as an instruction to the camera or driver and will affect the video you get, instead of just setting how it's interpreted.
Thanks for providing a consistent and up-to-date view of pi cameras and their performance at high frame rate. I had followed this on the Raspberry Pi forums but with many changes over the years it seemed very difficult to get a coherent understanding. Old, obsolete or incorrect posts remain and Google or forum searches point you in the wrong direction.
You could get even higher frame rates by interlacing separate cameras in between the shutter of each snapshot. And the separate cameras can share one image by using mirrors to reflect the picture to both at the same time.
They used a similar technique to film the first atomic tests:
th-cam.com/video/vluzeaVvpU0/w-d-xo.html
thanks for the breakdown on your eBay buys here. I was looking to find just the camera with no additional PCB as I needed to do everything on the same board and was having a time finding something in the price range that didn't come with the PCB break-out.
Would be interesting to see some highspeed playback on a DLP projector using rasberry pi.
Darn I'd like to know how many FPS the new HQ cam can put out at common resolutions like 720 or 480. Glad to have seen this, thanks.
Awesome video! Very informative! Thank you so much!
Glad it was helpful!
since it appears hes using a older original raspberry pi with 512mb of ram, i assume now in 2022/23 the pi 4 exists with up to 8gb that means the camera should be able to record longer due to the amount of ram being significantly larger and much faster. pretty crazy for cheap hobby project cameras never designed for this purpose
there is a new camera module with c mount. Can you make a for dummies version of this video. I need a super slow motion camera (1000 fps or more) and the cheapest options are over 1000 USD and I would like to use raspberry but the process seems incredibly hard
I'd love to get back to working on this project, but I've been busy with a few other things lately. Actually, I just googled the new camera you talked about, and that looks pretty sweet. That adjustable lens is exactly what's needed to produce even better quality video.
@@RobertElderSoftware im pretty sure if this could be automated a little through an app in raspberry it would be a huge hit for a lot of people. The fact that it has .tiff images that could potentially be high bitrate h264 means that a lot of people who need slow motion cams would build this just to see. For my work for example i need a slow motion camera but constantly copy pasting code to get it would be very time consuming i guess. If it was simpler id order that new cam module immediately
Yes please. Please do that. I want to build a raspberry pi camera that can give expensive cameras a run for their money
Yeah, I started working on a piece of software to make the process easier:
github.com/RobertElderSoftware/PatientTurtle
Although at the moment, this software is probably more complicated for someone else to use this than it is to do the process manually as I documented it. I can think of lots of improvements that could be made, but it's all takes time. Hopefully someone is inspired enough by these videos to actually make it happen.
nikon 1 j1 is about $50 and does 1200fps but the resolution is crap
Hi. Would you mind guiding me on how adjust the resolution ? I would like to capture images at 250 fps with higher resolution.
Does it record the set height from the top of the frame to the bottom, or from the bottom up? I am having trouble finding what is in the small slow motion frame as I am doing it completely over ssh. Thank you.
It's been a while since I worked on this project, but checking the raspiraw docs, there is a 'top' and 'vflip' parameter that you can play with that might help you out:
github.com/Hermann-SW/fork-raspiraw
Yes, I recall that it was very challenging to actually get what I wanted in the frame.
@@RobertElderSoftware Thank so much! Also for making this project available for us.
any updated on the new HQ camera module? can it do similar/better results?
I haven't looked into it yet, but reading the posts that HermannSW posts on the RaspberryPi Forums is where I'd start researching:
www.raspberrypi.org/forums/viewtopic.php?t=278195
@@RobertElderSoftware agh, but thanks for the link ! looks like no dice on that one for now at least
Sir, can you try same setup with new Raspberry pi HQ camera? The sensor and lens option for the module is very good for slow motion as well as sensor support 4K 60fps. Unfortunately, default softwares can't capture 4k video. May be customized tool can help in that recording. If this is possible, we can make a 4k 60fps point and shoot manual camera with slow motion.
I'm working on a different project right now, but you can check out the work that these two people have done:
github.com/6by9
github.com/Hermann-SW
They are a lot more active and up to date in terms of the latest Raspberry Pi Cameras. If you check out their repos, they at least have some support for RPI4 and if there's any already-complete work for the new 4k camera, they might have it there.
sir which raspberry pi youre used for this
can i get same result from raspberry pi zero ????
please reply me
Raspberry Pi 3 model B. Not sure about Pi zero since I haven't tried, but I wouldn't be surprised if it worked. Here is a document about connecting cameras to the pi zero: www.raspberrypi.org/blog/zero-grows-camera-connector/
Has anyone tried this with the new v3 camera?
Hi Robert
Thanks for the making the informative video.
I am using a USB camera See3CAM_CU20(only supports UYVY Format) with raspberry pi 4. I am able to live stream the video but its frame rate is below 10. The motion.conf file is programmed for frame rate of 30. I tested the camera in full light and by connecting it to USB 3.0 port of raspberry pi 4. Can you please suggest any ways to improve the frame rate?
Thanks
Hi, Manjot, good to hear from you! I'm not familiar with the See3CAM_CU20 or the 'motion.conf' file, so I can't speak much to those. The best way to start debugging this problem is probably to start by isolating where the bottleneck is. In video capture and transfer the frame rate decrease can come from a number of places: The camera capabilities itself, the h.264 encoding hardware in the Pi itself, the drivers (this page about motion.conf: motion-project.github.io/motion_config.html talks about Video4linux which is probably the driver you're using). If you're transmitting the captured video over a network, the network latency can cause either frames to drop, or give you an ever increasing delay depending on what protocol you're using to transmit the video frames. I would start by doing simple tests with something like the 'raspivid' command or ffmpeg to try and determine if the drivers/hardware are capable of the frame rate you want. If you can get a short video with the frame rate you want from those commands, then the bottleneck is somewhere upstream (possibly in another piece of software, or somewhere through the network).
- Robert
@@RobertElderSoftware Thanks Prof for giving valuable information. I will do the debugging starting from the hardware drivers.
Oh, something I forgot to mention is that with ffmpeg you can specify a frame rate, and if I'm not mistaken any frame rate you provide to ffmpeg is a directive for how to interpret the video stream *not* an instruction to *provide* that video frame rate. I think that caught me off guard a few times. with raspivid the frame rate you specify is actually sent as an instruction to the camera or driver and will affect the video you get, instead of just setting how it's interpreted.
How about the pi 4 4g coud get longer filming
It probably would, but I haven't had time to test it out yet.
3d print a wrench
I don't have a 3d printer unfortunately :(