CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Posts
    11

    Playing avi file from memory using MMIO

    Hi all

    I'm trying to play an avi file from memory using MMIO. Noticed the following Microsoft article: http://support.microsoft.com/kb/q155360/

    Followed the instructions in the article above, but when I try to play the avi file from memory an error message is returned saying that the file can not be played on the selected MCI unit, file can be damaged or incorrect. (My own translation, unfortunately I'm running it on a non-english XP).

    If I remove the plus sign from the MCI open command and try to open an ordinary avi file it works as expected. I don't get any error messages when I install or uninstall my custom MMIO procedure. Also tried to move around the plus sign and write fake names but that generated other error messages so I think the "file" is found. But maybe bails out when reading the header?

    Microsoft has published an article with MMIO issues on Win95 here:
    http://support.microsoft.com/kb/155703
    but I don't use AdwInfo[2] in my custom procedure (if not used internally in some way?). And I'm not running on Win95 either...

    One thing I can think of is that the FOURCC code on the AVI in memory still is set to 'A' 'V' 'I' ' ' so I tried to change it to the same values as my custom procedure uses at pos 8-11 within the AVI, but that didn't help either. At least I guess that was the FOURCC code....

    Do anyone have any ideas what to do?

  2. #2
    Join Date
    Jan 2005
    Posts
    11

    Re: Playing avi file from memory using MMIO

    I tried to change the FOURCC description code and the FOURCC used code for the AVI in memory with a program dedicated for that task but that didn't help. After some further investigation I notice that my custom procedure is called with a number of opens, reads and closes, so it seems to work for a while before it bails out, but I'm not sure how to proceed...

  3. #3
    Join Date
    Jan 2005
    Posts
    11

    Re: Playing avi file from memory using MMIO

    This is now solved, found a typo in my implementation of the code, seems to work now!

  4. #4
    Join Date
    Jun 2007
    Posts
    4

    Re: Playing avi file from memory using MMIO

    Quote Originally Posted by anders2
    This is now solved, found a typo in my implementation of the code, seems to work now!
    Is that possible to get a sample code of this ?

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