Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: bad audio playback while playing movie  (Read 2692 times)

sal

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
    • View Profile
bad audio playback while playing movie
« on: August 31, 2007, 06:21:34 PM »

I'm planning to use theora and managed to compile the latest version of it from ogre3d addons. After some tweeks I managed to have CEGUI_TheoraDemo running (using CEGUI 0.5 and Ogre3D 1.4.3)... video plays ok but the audio plays quite strange: some "pops", distorted noises all along the playback. I've played the ogg file through VLC and audio goes fine: no noise on it!

I'm using ffmpeg2theora with default options.... and tried out with small (3mb) mpeg1 files. I've tried FMod and OpenAl but none played audio stream nicely...

Is there any advice to get audio OK on ogg video files?
  - Video source type restriction - is there a type that works better?
  - Is there other conversion utility?
  - Is there a size that is know to play ok?

Thanks in advance...
Logged
__________________________________________
"This... is... SPARTAAAA!"
SAL

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: bad audio playback while playing movie
« Reply #1 on: September 07, 2007, 08:08:12 AM »

I can't say for sure what the issue is. Maybe you should try release mode, perhaps it will run more smoothly. Besides that, if the bit rate of audio/video is too high, the libtheora decoder will choke... I think VLC uses a more optimized port of the decoder so can handle it much better.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: bad audio playback while playing movie
« Reply #2 on: September 07, 2007, 08:12:04 AM »

I should say that libTheora has nothing to do with the audio, but it can stall the decoding since I only used one thread for both streams. Perhaps you should try the latest Theora lib, I know it has MMX enabled by default, probably some other useful things. I think that will require newer libOgg and libVorbis... Hopefully that doesn't mean any code changes for theora video plugin.
Logged

juliusctw

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
Re: bad audio playback while playing movie
« Reply #3 on: October 08, 2007, 08:17:02 AM »

i have exactly the same problem, did you ever figure out what the problem was?

what is the release mode?
« Last Edit: October 08, 2007, 08:22:33 AM by juliusctw »
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: bad audio playback while playing movie
« Reply #4 on: October 11, 2007, 06:17:20 PM »

I've heard no news on this post. Perhaps simply a debug issue?
Logged

Ice

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Re: bad audio playback while playing movie
« Reply #5 on: March 01, 2008, 07:29:15 AM »

Plugin works just fine for me
Logged