[Solved] Error creating ogg_video texture!

yzt

28-04-2010 09:29:18

I'm trying to use this plugin, but I'm failing to make it work so far.
I am using Ogre 1.6, and have compiled Ogre and this plugin myself (for Ogre Theora plugin, I have used the "branches/monolithic" source code from the SVN.) The sample video files in the plugin source distro (e.g. "konqi.ogg") are being played fine. However, when I substitute my own OGG video file in the material, I get this error message "Error creating ogg_video texture!" in the Ogre log file. To be more precise:
Creating ogg_video texture on material: SimpleTheoraVideo
video file: konqi.ogg
Vorbis Headers: 0 Theora Headers : 3
Vorbis Headers: 0 Theora Headers : 3
Creating ogg_video texture on material: SimpleTheoraVideo01
video file: test_small.ogg
Error creating ogg_video texture!

I have created this video file from an AVI source using ffmpeg2theora using these switches:
--videobitrate 1000 --audiobitrate 128 --two-pass --soft-target
VLC plays the video nicely.
Just to be sure, here's the material I'm using:
material SimpleTheoraVideo01
{
technique
{
pass
{
texture_unit
{
texture_source ogg_video
{
filename test_small.ogg
precache 16
play_mode play
}
}
}
}
}

Do I need to do something more? Am I missing something? Since I am using this as a plugin, I don't see how exactly I can put a breakpoint in the code.
Any help or suggestion or pointers would be welcome.

Kreso

28-04-2010 09:34:12

the monolithic branch is there for compatibility with older users. The best course of action would be to use the latest svn trunk revision. You'll need the Theora Playback Library, (libtheoraplayer.sf.net) which is a backend for this plugin, it has been forked from the monolithic branch to expand the userbase to non-ogre users as well.

so, compile the backend library, and use that to compile ogrevideo, it should work. the demo_simple in ogrevideo should work that is, others need to be ported to the new codebase.

yzt

28-04-2010 09:35:50

Thanks for the extremely quick reply! I'll try that and get back to you.

yzt

01-05-2010 16:35:30

OK. I upgraded to all SVN trunks (libtheoraplayer and the OgreVideo plugin) and it seems to be working fine. Thanks!

Kreso

01-05-2010 16:47:36

cool, glad to hear :)