I need to develop a small module, that can read and write h.264 packets to a container file. So far I have understood, typically h.264 encoded packets are stored in a mp4 file.
My question is, can h.264 encoded packets be stored in other file containers like in ogg file or in mkv file or in webm file.
If yes, how do I convert a mp4 file to an ogg file or mkv file or webm file, keeping same h.264 encoded packets in file.
XYZ Format Specifications PDF
where you replaceXYZ
with your required format, likeMP4
orFLV
etc. This will help you understand how each format is structured and where the H.264 bytes should be placed. – VC.One