• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to get the original timestamp from MediaRecorder

tdteach

Lurker
Jun 6, 2017
1
0
I want to know the original time stamp of every frame in a mp4 video that is captured by my device. However, in the mp4 file, the embedded time stamp is the delay referring to the first frame.

Essentially, what I want to get is the time stamp filled in the CaptureResult while triggering the CameraCaptureSession.CaptureCallback. The puzzle in front of me is that I don't know which frame is the first frame after mMediaRecorder.start().

Could you help me with that?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones