Lesson #35

Started by
8 comments, last by orlay 16 years ago
I am wondering about the lesson 35 on the Avi player. Can the Avi player play all sizes of AVI files, or only certain sizes? I tried a 700 mb avi file (sounds crazy I know, but I just wanted to give it a shot), then, an access violation appeared at the pdata. The glSwapBuffer(window.hDC) also gave an error. What is the problem, if the first question evalutes to the former option?
Advertisement
Just a hunch: Maybe the code expects a plain old AVI and your's uses some special codec?
Hello
I migrate recently to Linux and I am trying to play NeHe's examples, but =
I can not with the example: Playing AVI Files In OpenGL=20
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=3D35
The mistake is in the class to read the files .avi, please where I can =
obtain it or what can I do ???
The problem ist that in this Lesson Jeff made use of windows-only code. He used some windows multimedia library and there is no lib for linux which you can use the same way.

Uhm is this link the one to the linux code for lesson 35 found on the NeHe site?
I just tried it and you need several libs for that:
Make sure you have libavifile-dev installed, you need avifile-win32 or something like that, which makes you able to use windows codecs, and then you need the dlls which can be found in the w32codec package. (they were all in my Ubuntu Repositories..)

But this version you have then for linx wont compile for windows..
this are my errorsssssssss

abd@guillex:~/Desktop/Descargas/lesson35_linux$ make
g++ -g -O2 -Wall -I./ -I/usr/local/include -lglut -lGL -lGLU -laviplay lesson35.cpp -o lesson35
In file included from lesson35.cpp:21:
./GL/glut.h:63:1: warning: "APIENTRY" redefined
In file included from lesson35.cpp:19:
/usr/include/GL/gl.h:104:1: warning: this is the location of the previous definition
lesson35.cpp:25:29: error: avifile/avifile.h: No existe el fichero o el directorio
lesson35.cpp:26:29: error: avifile/version.h: No existe el fichero o el directorio
lesson35.cpp:31:31: error: avifile/default.h: No existe el fichero o el directorio
lesson35.cpp:34:27: error: avifile/image.h: No existe el fichero o el directoriolesson35.cpp:35:32: error: avifile/StreamInfo.h: No existe el fichero o el directorio
lesson35.cpp:70: error: ‘avm’ has not been declared
lesson35.cpp:70: error: expected constructor, destructor, or type conversion before ‘*’ token
lesson35.cpp:71: error: ‘avm’ has not been declared
lesson35.cpp:71: error: expected constructor, destructor, or type conversion before ‘*’ token
lesson35.cpp:72: error: expected constructor, destructor, or type conversion before ‘*’ token
lesson35.cpp:73: error: expected constructor, destructor, or type conversion before ‘*’ token
lesson35.cpp: In function ‘int main(int, char**)’:
lesson35.cpp:110: error: ‘avifile’ was not declared in this scope
lesson35.cpp:110: error: ‘avm’ has not been declared
lesson35.cpp:112: error: ‘avifile’ was not declared in this scope
lesson35.cpp:112: error: ‘avm’ has not been declared
lesson35.cpp:114: error: ‘avifile’ was not declared in this scope
lesson35.cpp:115: error: ‘avistream’ was not declared in this scope
lesson35.cpp:115: error: ‘avm’ has not been declared
lesson35.cpp:119: error: ‘avistream’ was not declared in this scope
lesson35.cpp:120: error: ‘streaminfo’ was not declared in this scope
lesson35.cpp: In function ‘void timer_func(int)’:
lesson35.cpp:268: error: ‘image’ was not declared in this scope
lesson35.cpp:268: error: ‘avistream’ was not declared in this scope
lesson35.cpp: In function ‘void keyboard_func(unsigned char, int, int)’:
lesson35.cpp:343: error: ‘avistream’ was not declared in this scope
make: *** [all] Error 1
You still need to install libavifile-dev
Thank you, already I could.....
but, was necessary to install w32codecs_20061022-0.0_i386.deb
What can I do to sound, remember for Linux ???
I need to translate this for Linux:

file:///home/abd/Desktop/Descargas/fichier.aspx.html

This topic is closed to new replies.

Advertisement