I am writing an Android app where I plan to encode several images in to a live h.264 video stream that can be replayed on any browser. I am using the MediaCodec API for encoding and then MediaMuxer to write it to a file as per the example here http://bigflake.com/mediacodec/.
What I am stuck with is that how to tell the encoder/muxer to encode it such that it can be progressively played back. From the examples only when the encoder/muxer.stop()/encoder/muxer.release() call is made, then the video file gets the right meta headers, etc..
Thanks
MediaMuxerclass really wants to write a .mp4 file to disk. It's not suited to streaming. If what you're after is live-streaming an edited video feed from your app to a host browser, you need to sort out network video streaming protocols. But I'm not convinced I fully understand what you're after. - fadden