Hi,

Based on bug 803414 and bug 842243, I'm studying how to enable H264/AAC MP4 for 
MediaRecorder[1] on B2G. Following is my thought:

1. Reuse GonkRecorder
2. Build a new path including MP4 muxer and encode wrapper to codec like OMX.

Option 1 should be the easy way because b2g18 uses it for a while and it 
fulfils requirements. The drawback is: it uses a lot of Android stuff; IMHO it 
could be a bad idea to spread these stuffs in gecko.

Option 2 requires a lot of work. To write a MP4 muxer from scratch or use a 
open source muxer? If we go with this option, I plan to use a MPL library 
mp4v2[2] as MP4 muxer.
On B2G we also need to write an IOMX bridge to HW codec, it will include some 
Android headers but it'd be able to encapsulate under TrackEncoder.

Any guideline or suggestion would be appreciated.

Thanks,
Alfredo

[1] https://wiki.mozilla.org/TPEPlatform/MediaRecorder
[2] https://code.google.com/p/mp4v2/
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to