fyhertz / libstreaming-examples

Some examples of how to use libstreaming
283 stars 231 forks source link

Using encoded bytes from MediaCodec directly instead of Camera (Android) #29

Open hujanais opened 8 years ago

hujanais commented 8 years ago

Hi there,

Step 1. I have an application that is rendering a scene using OpenGL. I then use MediaCodec to encode with H.264 and save the output to an MP4 file. All that works great.

Step 2. I created a Wowza cloud account and managed to streamed the camera output from my tablet to the web. All that works great.

Step 3. Now, I want to combine step 1 and 2. Instead of using the camera, I want to just pipe the data directly from the encoded H.264 data from the mediacodec. This is where I am stuck. I looked everywhere for a solution but cannot find a clue. Thanks for reading. This is such a great library! Huj