Last night was the first time I was able to capture with 200fps without frame skips. But in that video there was a scene without change.
Another recording at 200fps was interesting, 200fps with frame skips in recording, but outside of generated .avi video. AND with timeoverlay buffer-time that gives millisecond resolution timestamps to the frames!
Code: Select all
$ raspivid -md 7 -w 640 -h 480 -t 17000 -fps 200 -pts t.pts -o - | gst-launch-1.0 -v fdsrc ! video/x-h264,width=640,height=480,framerate=200/1 ! h264parse ! avdec_h264 ! timeoverlay time-mode="buffer-time" ! avimux ! filesink location=t.avi
This command is problematic a bit, since I increased raspivid recoding time to 17s and only get a 3s of .avi video out, but it generated the video nicely illustrating the 0.005s delta time between successive frames:
Next frame:
Next frame:
v4l2src is capping framerate at 90fps and is no option for 180fps/200fps videos.
In the evening I will try rpicamsrc:
https://github.com/thaytan/gst-rpicamsrc
I
talked to Jan and he said that he took the maximal framerates from Raspberry at the time he did that work years ago.
So I verified that rpicamsrc is currently capping at 90fps as well, but since I had to build it myself, it should be possible to increase maximal framerate to 200fps for v2 camera mode 7 in order to match @6by9's raspivid changes with latest 2018-03-13-raspbian Stretch.
Here is analysis of timestamps generated by raspivid showing that even slightly more than 200fps were generated (less than 5000μs frame delta time).
This is for the run without any frame skips:
Code: Select all
pi@raspberrypi3Bplus:~/gst-rpicamsrc $ ../ptsanalyze t.pts 0
creating tstamps.csv
634 frames were captured at 200fps
frame delta time[us] distribution
1 4978
1 4980
6 4982
11 4983
91 4984
264 4985
199 4986
45 4987
9 4988
1 4989
1 4990
1 4991
1 4993
after skip frame indices (middle column)
This is for the video shown above with frame skips:
Code: Select all
pi@raspberrypi3Bplus:~/gst-rpicamsrc $ ../ptsanalyze t.pts 0
creating tstamps.csv
614 frames were captured at 200fps
frame delta time[us] distribution
1 4979
4 4982
8 4983
57 4984
267 4985
184 4986
21 4987
4 4988
2 4989
1 4991
3 9969
10 9970
27 9971
5 9972
9 14956
1 19940
2 19941
2 19942
1 24926
1 39882
1 1146621
after skip frame indices (middle column)