CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: H264 into AVI

  1. #1
    Join Date
    Dec 2009
    Posts
    3

    H264 into AVI

    Hi,

    I have been using the MainConcept SDK to create .h264 files and I need to mux them into an .avi file container.

    I've looked through the msdn docs on how to use the AVIFile Win32 API to create the .avi files.

    The problem is it's not very descriptive about how to use the API to do what I want to do. I've made avi's from bitmaps using code that I found online, but I cant seem to puzzle out how to wrap the 'avi container around my pre-existing .h264 file (if thats how you do it???)

    There's not much point in including my code since at this stage it's not doing anything, I'm trying to figure out WHAT to do but I assume it's something like:

    call AVIFileOpen to start the file
    call AVIFileCreateStream with a AVISTREAMINFO object
    call AVIMakeCompressedStream using mmioFOURCC ('H','2','6','4') in the AVICOMPRESSOPTIONS object
    call AVIStreamSetFormat? I think?
    then do I start calling AVIStreamWrite to add the frames from the .h264 file?

    if I'm write then that leaves me with the problem of reading frames from the .h264 file.

    or, is there a way to simply add the .avi headers (or whatever is required) to the .h264 file so that it is 'contained' by the avi?


    can someone please point me in the right direction? Is there an online tutorial or example that I cant find? (I've looked but had trouble wading through it all, nobody seems to be doing what I need)

    I apologize in advance for my lack of knowledge in this area, I'm probably making newbie mistakes all over the place

    thanks very much for any help!
    Cheers,
    Eddie

  2. #2
    Join Date
    Sep 2009
    Posts
    19

    Re: H264 into AVI

    Are you doing school projetc, you have done soooo far and it seems unable to get back anymore. Go On, when I head it for something, I always want to completely eliminate/unearth it not words and words of misuses and cough up (my professor's words) excuses

    Please xip you r project then upload for everyone to copy and comment
    The color blending is an indication of the underlying prostitution system.

  3. #3
    Join Date
    Dec 2009
    Posts
    3

    Re: H264 into AVI

    Hi, thanks for your reply


    As I mentioned I dont have any proper code to upload, just a basic outline of what I'm thinking of doing, and that is just taken from looking at other peoples code. I've already placed the function calls I think I (might?) have to use above.

    So what I'm looking for (as it says above) is some direction about how to encode my .h264 file into an .avi container. Is it possible to do it using the AVIFile interface? Am I on the right track or completely going the wrong way? Could anyone suggest any way to go about doing this?

    Thanks a lot,
    Eddie

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured