MediaSampleInfo::device_frame_number Property

If available, then this contains the frame number the device assigned this frame.
Syntax:
uint64_t device_frame_number;
Remarks:

The number is device and protocol specific so may wrap and may not contain certain values. E.g. Gigabit Ethernet cameras have a framenumber in the range of [1;65535] and wrap from 65535 to 1. E.g. UVC cameras only have a frame id of 0 or 1.

This may be 0 when the driver does not support this feature.

<< MediaSampleInfo