Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5288

Camera board • Re: rpicam-vid --save-pts NOT working

$
0
0
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.
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... :)
Agreed, it should be documented here:
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)
It should be stated that timestamps are in .mp4 stored with each frame.

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%)
Figure_1.png

Statistics: Posted by HermannSW — Tue Jan 30, 2024 8:08 am



Viewing all articles
Browse latest Browse all 5288

Trending Articles