• Advertisement
Sign in to follow this  

AVIStreamOpenFromFile : error opening file

This topic is 4852 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I have tested Nehe's Lesson 35 on my laptop and it works. Then I replaced his AVI file Face2.avi by an AVI file of mine and simply run the program again. I get the following error: "Failed to open AVI Stream" In other words, the following line code failed: if (AVIStreamOpenFromFile(&pavi, szFile, streamtypeVIDEO, 0, OF_READ, NULL) !=0) {...} However, I did not change anything else! I simply replaced the AVI file. Windows Media player plays the file well by the way. My AVI file was generated by Windows Movie Maker (captured from a DV camera). Windows Media player says that the video codec is: DV Video Decoder and the audio codec is: WMplug Also, the frame size is different from Nehe's (he has 160x120 and I have 720x480). Is that the source of the problem? Anyone can help? Thanks a lot in advance! - Olivier

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement