New command line option "-hd0" for storing BCRM header only once pays.
My favorite mode 640x128 stretched maximal framerate was 605fps.
Now I tested with "-hd0" and reached 665fps for same 640x128 stretched!
This is 8s recording:
Code: Select all
$ rm /dev/shm/out*raw
$ raspiraw -md 7 -t 8000 -ts -hd0 -h 64 -v 65 -l 10000 --vinc 3D --fps 660 -r "380A,0040;3802,78;3806,0603" -sr 1 -o /dev/shm/out.%04d.raw 2>/dev/null
Using i2C device /dev/i2c-0
$ ls -l /dev/shm/out*raw | wc --lines
5317
$
Analysis shows that only 6 frame skips happen during the 8s phase!
Mean frame delta is 1503us ± 5us, corresponding to 1,000,000/1503 = 665.3fps:
Code: Select all
$ cat /dev/shm/out.-001.raw | cut -f1 -d, | sort -n | uniq -c
1
22 1498
251 1499
312 1500
274 1501
1061 1502
2388 1503
277 1504
282 1505
309 1506
132 1507
5 3005
1 3006
$
Here are the frame skips:
Code: Select all
$ grep ^3 /dev/shm/out.-001.raw
3005,2,27911765057
3005,84,27911889785
3006,1089,27913401545
3005,1691,27914307698
3005,1823,27914507563
3005,2292,27915213852
$
So we got frames 2292-5315 without frame skips.
I created animated .gif from 65 frames (2635-2699) worth less than 0.1s real time, playing with 19fps or 35 times slower than real:
I still have no explanation why it seems my fast moving finger is transparent:
Here is the same scene taken with "raspistill -w 640 -h 480 -o test.jpg" initially for calibration:
I used Lego pieces of many colors to see what effect the 665fps framerate has on colors.
As can be seen the video is very pale/colorless compared to the raspistill image.
It seems that 1.503ms is not enough time to sum up light.
For this framesize time has come to play with other raspiraw settings and see the effects on frames captured
P.S:
Stepped back to 640x240 stretched video (same scene, again lighted with smartphone flash, no moving finger):
Code: Select all
$ raspiraw -md 7 -t 8000 -ts -hd0 -h 120 -v 121 -l 10000 --vinc 3D --fps 360 -r "380A,0078;3802,78;3806,063B" -sr 1 -o /dev/shm/out.%04d.raw 2>/dev/null
No frame skip in 8s, played with 10fps 36 times slower than real.
Mean frame delta is 2773us ± 4us, corresponding to 1,000,000/2773 = 360.6fps:
P.P.S:
Ouch!
Had that before, same command line with just "-vinc 1F" instead of "-vinc 3D", and the colors come back!
No frame skip in 8s, played with 10fps 36 times slower than real.
Mean frame delta is 2773us ± 3us, corresponding to 1,000,000/2773 = 360.6fps:
