MPEG4 and H.264 video format

This is a discussion on MPEG4 and H.264 video format within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hi, I want to read header of MPEG4 and H.264 videos, (no decoding) , in fact I just want their ...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    146

    MPEG4 and H.264 video format

    Hi,

    I want to read header of MPEG4 and H.264 videos, (no decoding) , in fact I just want their start codes...but I don't seem to find them on net...can anybody help?

    -Edesign

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    146
    Nope...I had a look at them... Basically I want a detailed header kind of stuff. bytes and their meanings....but can't find anywhere..

    Thanks for trying..

    Edesign

  4. #4
    and the hat of copycat stevesmithx's Avatar
    Join Date
    Sep 2007
    Posts
    498
    Not everything that can be counted counts, and not everything that counts can be counted
    - Albert Einstein.


    No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
    - Herbert Mayer

  5. #5
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Maybe you should go into a little more detail on what you're looking for. MPEG4 start codes are anything that starts with 0x00 0x00 0x01. H.264 may or may not have start codes. If it does, then they will also start with 0x00 0x00 0x01.

  6. #6
    Registered User
    Join Date
    Feb 2008
    Posts
    146
    Basically my task was to check incoming data stream and set the status which stream is that.. mpeg4 or H.264...

  7. #7
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,602
    I believe this kind of thing is more commonly stored inside the containers, so you should probably specify what kind of container you're looking to use?
    Not 100% sure, but there are raw H264 streams out there, so it's certainly possible to the, if there is one.
    I'd recommend mkv as a container format, btw.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Registered User
    Join Date
    Feb 2008
    Posts
    146
    You are right, they are contained in some container.. but my task is not to bother abt container format...

    My part comes into picture ater the video is moved out of container, so it's now a video stream compressed either in MPEG4 or H.264 ... Well checking a few files reveal that for MPEG4 it is 00 00 01 BX... and for H264 it is 00 00 01 mostly...

    Btw, Thanks all for help..

    Edesign

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating Video Encoder/Decoder Question
    By chiefmonkey in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 11:02 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21