Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MP4 container writer in Java

Tags:

java

h.264

mp4

I would like to find a FREE MP4 (container) writer for Java. I do not need an encoder, only something which can write the correct atoms given their expected values. Bonus for such a library that also can write "valid" F4V.
I would prefer a pure Java solution rather than something using JNI or external executables.

like image 659
Paul Gregoire Avatar asked Sep 08 '10 00:09

Paul Gregoire


2 Answers

Even though my answer comes very late you could have a look into my MP4 Parser/Unparser at Github. You can parse MP4 files, modify them and write the result. You can even start from scratch creating boxes programatically and write your object representation to some sink.

like image 72
Sebastian Annies Avatar answered Sep 22 '22 05:09

Sebastian Annies


You can have a look at JCodec ( http://jcodec.org ). It contains an MP4 library and MP4 demuxer and muxer.

like image 41
Stanislav Vitvitskyy Avatar answered Sep 23 '22 05:09

Stanislav Vitvitskyy