Agreed, it should be documented here:Would be nice if this and other RPi5 differences were documented so we wouldn't all waste so much time trying to figure this out individually...The --save-pts option is not possible for h264 like that on the Pi 5. see the first couple of posts in this thread for details and a workaround.
https://www.raspberrypi.com/documentati ... rpicam-vid
It should be stated for Pi5 (or Pi using libav):
- timestamps are unavailable when recording .h264 (--save-pts does not work)
- recording .mkv gives timestamps with only millisecond precision
- recording .mp4 gives timestamps with microsecond precision (needed for high framerate videos)
And that this official tool allows to analyze (without and with matplotlib diagram):
https://github.com/raspberrypi/rpicam-a ... mestamp.py
Code:
pi@raspberrypi5:~ $ ~/venv/bin/python ~/rpicam-apps/utils/timestamp.py --plot test.mp4 Total: 4004 frames (4003 samples)Average: 2.489 ms / 401.785 fpsMinimum: 2.475 ms at frame 370Maximum: 2.503 ms at frame 369Outliers: 0 (100%) 0 (10.0%) 0 (1.0%) 81 (0.1%)
Statistics: Posted by HermannSW — Tue Jan 30, 2024 8:08 am