Lesson #35
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?
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 ???
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..
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..
Member of the NeHe team | PhD Student at Heidelberg Collaboratory for Image Processing | ProCamera Developer
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
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
Member of the NeHe team | PhD Student at Heidelberg Collaboratory for Image Processing | ProCamera Developer
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement