Use MediaCodec for H264 streaming

后端 未结 3 1353
情深已故
情深已故 2021-02-06 06:47

I\'m currently trying to use Android as a Skype endpoint. At this stage, I need to encode video into H.264 (since it\'s the only format supported by Skype) and encapsulate it wi

3条回答
  •  感情败类
    2021-02-06 07:35

    What you plan is definetly feasible. You can register a Camera.PreviewCallback which takes the picture data and puts it into the MediaCodec. You read the output and send it as RTP. In general it's easy, but there are various pitfalls as undocumented color spaces and different MediaCodec behaviour on different devices, but it's definetly possible.

提交回复
热议问题