Jump to content
  • Advertisement
Sign in to follow this  

AVIStreamOpenFromFile : error opening file

This topic is 4975 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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!