> V4L2 puts sequence numbers and timestamps on all frames captured. > Don't know about audio APIs. The audio API's let you query the transfer counters, so you have a cycling 32bit view. Unfortunately not all sound hardware will even tell you about missed stuff, and the clocks can be somewhat inaccurate