How to create AVI file from a h264 elementary stream

Discussion in 'Amateur Video Production' started by mahnaz.x, Aug 2, 2006.

  1. mahnaz.x

    mahnaz.x Guest

    Hi

    I posted the following in comp.os.ms-windows.programmer.tools.mfc a
    while ago and didn't get any response. I don't know where is an
    appropriate place to ask this question. If this is not the right place
    please let me know where to go.

    With many thanks,
    Mani

    Here is my post:

    I am new to this and not sure if this is the right forum for my
    question, so please let me know if I should post it somewhere else. I
    have h264 coded elementary stream that I want to convert into an AVI
    file (so that I can play it with one of the existing h264 decoders for
    Media Player). I have looked at the AVI functions in MFC but couldn't
    find a way to do what I need. Can anyone help me?
     
    mahnaz.x, Aug 2, 2006
    #1
    1. Advertisements

  2. mahnaz.x

    RS Guest

    I spent a good deal of time futzing about with an h264/avc MOV file a
    while back to use it in Vegas, and I ended up getting the results I
    needed with Total Video Converter converting it to lossless avi. Big fat
    file, but what cha gonna do?
     
    RS, Aug 2, 2006
    #2
    1. Advertisements

  3. mahnaz.x

    Ken Maltby Guest


    If you use GraphEdit you can use the multiplexer that is provided
    with a number of MPEG4 encoding packages. Given that you (OP)
    only mention AVI for h264 I would guess you aren't really talking
    about AVC/H264 and are working with ISO/H264.

    If you are going to be doing a lot of this you might consider:
    http://www.elecard.com/products/products-pc/consumer/xmuxer-pro/

    Luck;
    Ken
     
    Ken Maltby, Aug 3, 2006
    #3
  4. mahnaz.x

    mahnaz.x Guest

    Thanks for the responses. I did download Total Video Converter, but as
    I suspected it cannot read my file. I now realize that what I need
    probably cannot be found in any existing software.

    The video streams that I want to convert to AVI is an elementary stream
    produced by a home made encoder. I thought that if I can package it
    with an AVI "wrapper" of some sort, then it should be readable by the
    existing decoders. I have written a program that takes the elementary
    stream, adds the AVI header stuff to it, and writes it into a file. The
    problem is that it so far it doesn't work! I am wondering whether my
    program is buggy or what I want to do is not reasonable. So the basic
    question is can I take an already existing elementary stream (which is
    not any of the formats that the usual converters accept) and turn it
    into an AVI file? If it's possible, then I'd work on finding what's
    wrong with my program, otherwise I might as well give up!

    Thanks again
    Mani
     
    mahnaz.x, Aug 5, 2006
    #4
  5. mahnaz.x

    Ken Maltby Guest

    It can be done with the Elecard Xmuxer-Pro, did you try the
    demo? You can use the DirectShow filters it works from, in
    "GraphEdit" if you want to work out a functional program. Or
    use the XML support in some versions of GraphEdit to load
    a graph you have made. ( Just change the input and output
    files in the XML file)

    Your program is not needed, there are DSH filters to do all that.

    Why must it be AVI, by the way? You should know that there
    are at least a dozen flavors of H264, and in two basic formats,
    the ISO formats for AVI and the AVC formats for MP4.

    If you have a recent (X800 or later) ATI video card, (or even
    if not, you can use the DSH Filters), you can try the AvivoXCode
    1.02 program (Google Avivo XCode). If you can get that working
    at a good quality, it is very, very fast. But even if you don't try that
    the filters it is made up of, provide a number of good functions to a
    Graph you can build in GraphEdit. (Including a Muxer) Oh, and
    it's free.

    Luck;
    Ken
     
    Ken Maltby, Aug 6, 2006
    #5
  6. mahnaz.x

    mahnaz.x Guest

    Thanks a lot for all the info. I have a lot to learn and try out! The
    problem is that I'm not an expert in this field, but have inherited a
    project that requires managing these video streams. The reason I want
    AVI is that I want to be able to play the streams with one of the
    standard downloadable codecs for mediaplayer, and it seems like AVI is
    the way to do it (for ISO).

    Thanks again. Any more tips and tricks to make it easier for me to
    convert these streams to some standard format are greatly appreciated.
    I'll read them in a week when I come back from a trip!

    Mani
     
    mahnaz.x, Aug 7, 2006
    #6
  7. mahnaz.x

    RS Guest


    The phrase 'produced by a home made encoder' could have something to do
    with it. The home made encoder may have gone off the beaten path and you
    may need the home made codec in order to edit and or convert the file.
     
    RS, Aug 7, 2006
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.