Need Help - Theora "File not found
by Nicolai Dutka · in Torque Game Builder · 04/11/2008 (9:23 pm) · 4 replies
I have a guiTheoraCtrl and am trying to get it to play a video file. I had NO problems getting this to work in TGE 1.5.2. I am now using TGB 1.7 and I keep getting an error.
Code I've tried:
No matter what I do, I get the same error in console:
TheoraTexture::setFile - Theora file '~/data/videos/1pexit.ogg' not found.
I don't understand how this is even possible! The files are RIGHT THERE!!
Code I've tried:
menuVideo.setFile("~/data/videos/1pexit.ogg");
menuVideo.setFile("~/game/data/videos/1pexit.ogg");
menuVideo.setFile("./videos/1pexit.ogg");No matter what I do, I get the same error in console:
TheoraTexture::setFile - Theora file '~/data/videos/1pexit.ogg' not found.
I don't understand how this is even possible! The files are RIGHT THERE!!
#2
04/11/2008 (9:44 pm)
If you use relative paths, you need to use expandFilename()menuVideo.setFile(expandFilename("~/data/videos/1pexit.ogg"));
menuVideo.setFile(expandFilename("~/game/data/videos/1pexit.ogg"));
menuVideo.setFile(expandFilename("./videos/1pexit.ogg"));
#3
Thanks for the tip. Searched high and lo and did not find it. Finally settled for the full path c:/....
This is exactly what I was searching form.
Video is very choppy though and the GUI gets sluggish.
Cheers.
06/16/2009 (8:09 pm)
NicolaiThanks for the tip. Searched high and lo and did not find it. Finally settled for the full path c:/....
This is exactly what I was searching form.
Video is very choppy though and the GUI gets sluggish.
Cheers.
#4
06/16/2009 (8:25 pm)
Yeah, it took me a while to get the videos to play back decent. I believe I rendered my videos out in 3ds Max using the Divx encoder with the "Home Video" preset (prolly around 640x480 resolution), then I played around with the OGG converter until I got the files as small as possible while retaining as much quality as I could. The end result was actually pretty good, it just took me a good 8 hours of messing with settings to get something that worked.
Torque 3D Owner Nicolai Dutka
menuVideo.setFile("game/data/videos/1pexit.ogg");