Actual Time Of "nativegettimestamp" In "surfacetexture"
I'm writing a video processing app and need to know the actual time of each frame. The app works fine at first when I used elapsedRealtime To compute the time offset: long timeOffs
Solution 1:
MediaCodec doesn't invent the timestamps. The buffers that MediaCodec return only contain the same values for presentationTimeUs
as you pass in the presentationTimeUs
parameter to queueInputBuffer
, or when using Surface
input, is set on the input surface using eglPresentationTimeANDROID
.
So you need to check with whichever piece of code that actually produces the timestamps to know what time reference they use.
Post a Comment for "Actual Time Of "nativegettimestamp" In "surfacetexture""