Streaming MedicCodec encoder output using libstreaming

422 views Asked by At

I have successfully compiled the camera streaming example from libstreaming to a Wowza. https://github.com/fyhertz/libstreaming

I have been googling and still have not found any example on how I can stream my own output from MediaCodec instead. My scenario is that I am rendering images in OpenGL and then I encode them into a H.264 stream using MedicCodec encoder. Now, how do I pipe the encoded bytes to libstreaming?

Thanks for reading. Libstreaming looks so promising for what I need to do.

Huj

1

There are 1 answers

9
Wolfram Hofmeister On

From my understanding, libstreaming does not fully support MediaCodecs as input yet. If a simple (video only) RTP stream is enough for you, you may just modify the H264Packetizer, RtpSocket and SenderReport classes. The MediaCodec outputs raw NAL units which you only need to feed into the packetizer and send via the RtpSocket.