h.264 - How to create mp4 file from h264 encoded frames on android? -


i have h264 frames encoded android encoder. want create , write them 1 one mp4 file. please advise how on android in java. don't want use opencv or native code.

mp4-parser can't understand

navite mpeg4writer complicated use

wondering why such common , useful thing mp4 writer not camera not implemented in android

you may use mp4parser project. can mux h264 , aac in pure java it:

    h264trackimpl h264track = new h264trackimpl(new fileinputstream("raw.h264").getchannel());     movie m = new movie();     m.addtrack(h264track);      isofile out = new defaultmp4builder().build(m);     fileoutputstream fos = new fileoutputstream(new file("h264_output.mp4"));     out.getbox(fos.getchannel());     fos.close(); 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -