Mime-type of Android camera PreviewFormat

前端 未结 1 1345
时光说笑
时光说笑 2020-12-30 17:06

I\'d like to use MediaCodec to encode the data coming from the camera (reason: it\'s more low-level so hopefully faster than using MediaRecorder). Using Camera.PreviewCallBa

相关标签:
1条回答
  • 2020-12-30 17:16

    See example at https://gist.github.com/3990442. You should set MIME type of what you want to get out of encoder, i.e. "video/avc".

    0 讨论(0)
提交回复
热议问题