Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Ogg file encoding  (Read 1887 times)

Obliviere

  • Guest
Ogg file encoding
« on: December 09, 2005, 03:15:26 PM »

Hi there,

I was wondering how the Cheer.ogg file was originally encoded (that is, if you yourself used the ffmpeg2theora tool to convert it).  The reason I ask is that I've been having problems running movies with the Theora plugin, depending on how it was originally encoded.

With XViD avi's, the movie skips frames and plays through really quickly (eg. a 90second movie playing about 8-10 frames and ending in a few seconds), just like the problem that I described before.  Of course, this time, I checked to make sure that THEORA_SUPPORT_FLOAT was included as a preprocessor directive, but the problem still persists.  wmv's will crash part way through the use of the ffmpeg2theora tool, and so only part of it will play.  The part that is converted to ogg before the crash plays perfectly, however.

Both of these problems showed up when using the CEGUI example of yours, as well as my local code (basically the same as the CEGUI example, though).  Both movies play correctly using your C# Wrecked Games video player, as well as the VLC media player.  Any ideas what might be causing this?

Also was wondering how the Cheer.ogg was done, since it runs fine in my app and in the CEGUI example.  Thanks for any thoughts or input!
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Ogg file encoding
« Reply #1 on: December 09, 2005, 03:40:56 PM »

Yeah, I encoded it using ffmpeg2theora. I do not have the original mpeg anymore.. though, that can be found online.. I forget the link, but it was an archive site. Anyway, I used a video quality settings of 6 (which can be viewed using the c# players info button and tree view). The audio (though I am not sure) is probably 2 or 3 setting. Resolution is 352x240. And several other files I have are all similiar (though, in color) and have good results.

If you can post the video you have, I could take a look at it. But, if my C# player and VLC play it nicely, then this is some probablem with my c++ plugin.
Logged

Obliviere

  • Guest
Ogg file encoding
« Reply #2 on: December 15, 2005, 01:07:45 PM »

Finally found out what it was.  Any movie that didn't have audio played with the anomaly in it.  After disabling the MovieLogic::playMovie function call that enables audio, those movies that were previously playing incorrectly played fine.  I guess it's something that doesn't handle having no audio track properly?
Logged

Obliviere

  • Guest
Ogg file encoding
« Reply #3 on: December 15, 2005, 01:09:59 PM »

Hmm, reading back on some of your other posts, I guess that you were already implying that; just didn't realize that's what you meant by "not syncing up correctly".  Thought you meant that one was a few seconds ahead/behind, kind of thing.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Ogg file encoding
« Reply #4 on: December 15, 2005, 01:31:40 PM »

I found that using OpenAL audio system in the CEGUI demo somehow plays videos with no audio stream better.. I have no idea why as I haven't looked into it besides noticing that. I am sure it is a bug in the plugin, and I wlcome any patches :)
Logged