Video playing to fast in xbmc

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
BLKMGK Offline
Member+
Posts: 1,634
Joined: Jul 2006
Reputation: 3
Location: USA Virginia
Post: #11
FWIW you can still use the build script with these mods. build.sh NOUPDATE and it will do all the work for you. I do this for some mods I'm forced to make right now, works fine. In fact if that file isn't updated it may not even get overwritten.

Ubuntu 10.10, MCE USB receiver, ASROCK 330 (ION), DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoding Added DiNovo Mini KBRD w/track
find quote
xmltok Offline
Member
Posts: 63
Joined: Feb 2008
Reputation: 0
Post: #12
Coca Cola Zero Wrote:I was running into the fast video/no sound in recent builds including newest svn, but the following changes fix it for me:

edit xbmc/cores/dvdplayer/ALSADirectSound.cpp

comment out lines 82 & 83, so it looks like this:

//if (device.Find("AES0=6") < 0)
// device += ":AES0=6";


recompile (go back to XBMC dir, type make), run XBMC, set sound devices in settings both to 'default'.

There is no guarantee that following my steps will fix your issue because there are tons of things that can go wrong with audio in Linux and "video too fast, no sound" seems to simply be the common side-effect one sees in XBMC when the audio is set up wrong and the player is using an invalid audio device setting.

I don't know enough about Linux audio to know what adding :AES0=6 to any passthru device name is supposed to do, but my system (Ubuntu 7.10, X-Mystique/CMI8738 soundcard) certainly doesn't like it.

Excellent! Commenting out those lines and changing my setting to default fixed it!Big Grin
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,777
Joined: Mar 2004
Reputation: 2
Post: #13
i had forgot to commit the fix. please svn update and try again. i have a feeling that those options are only applicable when device is set to the iec958 alsa device.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
(This post was last modified: 2008-02-24 15:30 by elupus.)
find quote
xmltok Offline
Member
Posts: 63
Joined: Feb 2008
Reputation: 0
Post: #14
I removed my changes and updated. It's doing the same thing as before. Want any debug info?
find quote
gateway69 Offline
Senior Member
Posts: 137
Joined: Mar 2007
Reputation: 0
Post: #15
anyone found a fix or why this all of the sudden started to happen?

-------------
I Bare It All -Personal Blog
find quote
snappz Offline
Happy User
Posts: 302
Joined: Oct 2003
Reputation: 0
Location: Perth, Australia
Post: #16
I was having this problem under 7.10, but my sound card was not recognized at all. I installed linux-backports-modules and my sound card worked and my video played normal speed.
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,777
Joined: Mar 2004
Reputation: 2
Post: #17
i've now changed it to only apply those parameters to iec958 if that is the device string. so if you use some custom device string it won't apply them. thou then you have to make sure it's a proper device string :/

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Coca Cola Zero Offline
Junior Member
Posts: 13
Joined: Feb 2008
Reputation: 0
Post: #18
It would be nice to have an option to tell XBMC not to mess with the audio device string you enter, either in the UI or as an env variable.

FWIW, when I was troubleshooting my setup, I tried mplayer and some other of the big Linux media players and they all worked fine with my setup. I dunno if they just have good code for picking a reasonable default or if they pull the information out of the gnome sound applet settings or what, but it might be worth looking at them to see what they do and ape it in XBMC.

Random aside: Hey, look, it's Gateway! Get JackRippr, DrDel, oldman and a few others in here and we can have a #Amiga! reunion.
find quote
xmltok Offline
Member
Posts: 63
Joined: Feb 2008
Reputation: 0
Post: #19
new code works with my digital output set at default
find quote
virgink Offline
Junior Member
Posts: 20
Joined: Apr 2005
Reputation: 0
Post: #20
Check out my posts on http://forum.xbmc.org/showthread.php?tid=30876&page=3 and see if that helps. Specifically you may want to add the following lines before running XboxMediaCenter.
I get the same behavior (no audio and fast playback without the following lines)

export SDL_AUDIODRIVER=ALSA
export XBMC_AUDIODEV=spdif
export XBMC_HOME=/home/ajay/XBMC/BUILD
./XboxMediaCenter -fs -q
find quote