问题
I am making a app which supports video calls and I am looking for a tutorial/doc explaining the structure of the h.264 codec. I want to be able to package the stream, wrap it in datagrams, send and unpack on the receiving side.
Any suggestions/reading materials?
回答1:
What do you mean by structure? If you are talking about the bitstream syntax, you can download the H.264 standard for free. There are also many books/papers about H.264 such as the one by Iain Richardson.
If you are more interested in the network transport of H.264 over IP, why don't you use the RTP standard and associated payload format?
回答2:
Here is very basic principles of H.264
If you are writing an application for network cameras, RTP is what you are looking for. And If you are implementing it in C++, there is ffmpeg library would choose.
回答3:
Have a look at x264 which is an existing implementation of the codec. You might even want to consider using that codec rather than implementing AVC from scratch.
来源:https://stackoverflow.com/questions/7795054/h-264-codec-explained