-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
While upstreaming bcm2835-codec, Nicolas Dufresne noted that the timestamp in v4l2 is not necessarily an actual time value (in nsec). In fact, GStreamer actually uses a frame counter for this field. (see https://lore.kernel.org/linux-media/[email protected]/T/#m4521f17f9e75074ff3993df4a23c146c26f6e2a6 )
I don't know how the firmware handle the mmal(VCHI?) timestamp values, does it actually calculate something with these timestamps?
If it doesn't, it might be easy enough to get a fix in the firmware to not "interprete" these timestamp values, which would make the mmal code a lot simpler and could avoid potential issues (eg: GStreamer)
The code does state in comment that the mmal timestamps are usec, so if it does need usec timestamps and it needs this for a specific calculation, maybe we can add an extra field?