I am in the process of writing an application (in C/C++) to read an
MPEG2 file, and then to stream the video over the network (the end
goal being to stream data from a live source and compressing it on the
fly).
I need to know the exact format of MPEG2 files, are they just written
as streams or are file headers included? Any details would be greatly
received as would any source code if anyone has any to share.
Many thanks
The ITU allows you to download three standards a year for free.
This is a great deal.
You want to go to http://www.itu.int/ITU-T/
and search for H.262 (video) and H.222.0 (systems).
After registration you can download these for free.
I personally paid ISO $150ish for their equivalent of H.262,
before I discovered the ITU deal.