Mediacodec encoder with input surface on Snapdragon

I've seen in this thread that presentation time has to be set for some encoders. I am using input surface when encoding with mediacodec, but it doesn't work with Snapdragon devices. My question is do we also need to set this presentation timestamp when using an input surface ? If so how to simply set a timestamp to the input surface ?

Thanks a lot for any help.


Assuming your input surface is being rendered with GLES, you would use eglPresentationTimeANDROID().

See Grafika for examples (eg "Record GL app" activity).

链接地址: http://www.djcxy.com/p/92538.html

上一篇: 带视频流的Android视觉人脸检测

下一篇: 具有Snapdragon输入表面的Mediacodec编码器