PDA

View Full Version : Video Audio Speed Issue


vslice24
2008-11-21, 19:36
Log file
http://pastebin.com/m2f38b442
ubuntu 8.10 i386
svn Build 16164

The problem im having is some of my anime, the audio and video are at a fast speed, so the audio sounds high pitched. i have checked other episodes in this series and some work fine will others don't. i have plasted the debug log for when i was playing a video that had the auio and video problem. I have read on some other threads that a sample should be posted. i would be glad to post a sample if someone could tell me how.

tslayer
2008-11-21, 19:50
Did you already try to remove pulseaudio? Check stickies.

vslice24
2008-11-21, 21:10
i thought that pulseaudio was a problem if you didn't have any sound. All of my sounds work and nothign freezes. xbmc crashes when i try to select a subtitle file though. but to remove pulseauidio i can just go to synamptic manger right?

"edit" tried removie pulseaudio and still have the same problem

sandos
2008-11-21, 23:42
I see fast audio with pulseaudio, plus crashes on exiting stopping etc.

vslice24
2008-11-22, 01:12
my xbmc doesn't crash when exiting or stopping a movie. that works fine for me. it only crashes when i try to load a subtile file. but the main problem here is that i have some anime videos where the audio and video speed is faster then nomral, resulting in a high pitch auidio

vslice24
2008-11-23, 21:23
Here is a link to an anime that i watch that is having the audio/videio problme. Vampire Knight Guilty subbed by Yuurisan-Subs http://www.yuurisan-subs.org/tracker4/torrents/%5BYuurisan-Subs%5D_Vampire_Knight_Guilty_-_05_%5BB733C328%5D.mp4.torrent

samalander
2008-11-23, 22:07
I've had the same problem watching some AVI files. Most everything works well but for some reason, certain files just seem to play at chipmunk speed (audio and video seem to play at double the speed).

Here is an example from an Open Source video podcast I watch sometimes (21MB):

http://blip.tv/file/get/Wftl-WFTLBytesForNov192008684.avi

And here is the log file from when I tried to play this file:

http://pastebin.ca/1265279

I'm running Ubuntu 8.04 up-to-date as of today with XBMC from the PPA

zyklopede
2008-11-24, 16:03
I've had this problem with many AVI videos too...i'm running Ubuntu Hardy with XBMC PPA.

topfs2
2008-11-24, 17:14
I've had the same problem watching some AVI files. Most everything works well but for some reason, certain files just seem to play at chipmunk speed (audio and video seem to play at double the speed).

Here is an example from an Open Source video podcast I watch sometimes (21MB):

http://blip.tv/file/get/Wftl-WFTLBytesForNov192008684.avi

And here is the log file from when I tried to play this file:

http://pastebin.ca/1265279

I'm running Ubuntu 8.04 up-to-date as of today with XBMC from the PPA

14:49:43 T:2861824912 M:2633814016 WARNING: CALSADirectSound::CALSADirectSound - requested samplerate (32000) not supported by hardware, using 44100 instead

Thats your problem, the audio seems to be in 32kHz which your hw doesnt support, so in generall we would need a ssrc in DVDPlayer here to coop with this, should be possible I guess.

Cheers,
Tobias.

samalander
2008-11-24, 17:37
Thats your problem, the audio seems to be in 32kHz which your hw doesnt support, so in generall we would need a ssrc in DVDPlayer here to coop with this, should be possible I guess.

Thanks for the info. I work in databases so video and sound are quite a bit out of my skill set, but is there any way that I could help?

vslice24
2008-11-25, 03:57
I know this wasn't a problem in svn build 15810 (Compiled: Oct 6 2008). Cuz I first noticed the problem when i was rewatching something that i know worked fine in this that build

miind
2008-11-25, 18:22
it looks like the player in xbmc works realy bad under linux. both this issue and the pulse audio issue on ubuntu. Anyone know if its possible to change and use mplayer insted of the built in thing? mplayer feels more like a rock-solid player.

tslayer
2008-11-25, 18:24
Player works fantastic for me under linux. Without more details and logs, we can't help.

miind
2008-11-25, 19:04
I will try to provoke a good log. :)

baqtor
2008-11-26, 18:40
Here is my log. Using Ubuntu 8.10
Video is accelerated, even if I kill pulseaudio.

http://dl.getdropbox.com/u/344595/sergio-xbmc.log

Hope it helps you. XBMC is a killer app and it should work perfectly as soon as possible. Keep up the good work and thanks!

tslayer
2008-11-26, 18:51
Your ALSA does not look to be setup properly either.

So, your sound setup in Ubuntu seems to be broken.

How did you kill pulseaudio?

How is alsa setup? Do you have a .asoundrc in your home directory? Did you change your device in XBMC Settings?

baqtor
2008-11-26, 20:55
Your ALSA does not look to be setup properly either.

So, your sound setup in Ubuntu seems to be broken.

How did you kill pulseaudio?

How is alsa setup? Do you have a .asoundrc in your home directory? Did you change your device in XBMC Settings?

I killed pulseaudio using pulseaudio -k and also "kill pulse*" (i think)

I dont know what you mean by my alsa setup, but I think everything is allright, also, there is no .asoundrc in my home directory and my sound device on XBMC is set on "default".

tslayer
2008-11-26, 21:02
Does audio work properly in ubuntu itself when pulseaudio is removed?

elupus
2008-11-26, 22:04
Well the first log in this thread has an totally invalid device set as standard audio device:"iec958"... it should be "default" or some other mixer device.

So fix that to start with.

baqtor
2008-11-26, 22:20
in Settings-System:

Audio Output Device : Default
Passtrough output device: IEC958 (this option is greyed, so I cant change it)

also, and I think it is a known bug in Ubuntu, removing Pulseaudio wont let me log in my session

tslayer
2008-11-26, 22:53
Odd that you have iec958. It should be default as Elupus mentioned. Go look in your userdata directory and modify the XML files in there and change to default.

elupus
2008-11-26, 23:18
baqtor:
You seem to be missing your asound.conf in the system dir. It fails to load our additional configs.

Scratch that. Read the log wrong.

topfs2
2008-11-29, 16:39
I´ve added PulseAudio to both DVDPlayer and PAPlayer in SVN so it would be good for you that have big problems with this even if you kill pulseaudio to try and use SVN instead. And not kill PulseAudio aswell ;)

Cheers,
Tobias.

vslice24
2008-11-30, 23:48
So i found a way to fix the high speed audio problem for me.
Audio Output Device : default (all lower case)
Passtrough output device: iec958 (all lower case)
This fixed the problem for me. hope this helps

miind
2008-12-01, 07:58
Topfs2, how long release cylcles is there from CVS to a "stable" release? I guess running CVS on a production system could be a bit unstable!?

tslayer
2008-12-01, 08:13
It's SVN. And the next stable is next year. I say you give SVN a try. You can always go back if you don't like it right?

Bram1nat0r
2008-12-01, 13:56
Hi,

I experienced simular problems.

Before my .xbmc/userdata/guisettings.xml for audio were :

<audiooutput>
<ac3passthrough>true</ac3passthrough>
<audiodevice>iec958</audiodevice>
<dtspassthrough>true</dtspassthrough>
<mode>1</mode>
<passthroughdevice>iec958</passthroughdevice>
</audiooutput>

Changing it to (see below) resulted in NO audio.
Probably some issue with my alsa setup.

<audiooutput>
<ac3passthrough>true</ac3passthrough>
<audiodevice>default</audiodevice>
<dtspassthrough>true</dtspassthrough>
<mode>1</mode>
<passthroughdevice>iec958</passthroughdevice>
</audiooutput>

The following works perfect for me :

<audiooutput>
<ac3passthrough>true</ac3passthrough>
<audiodevice>plug:iec958</audiodevice>
<dtspassthrough>true</dtspassthrough>
<mode>1</mode>
<passthroughdevice>iec958</passthroughdevice>
</audiooutput>

Hope this helps someone

mvdaat
2009-03-06, 23:33
plug:iec958

also works for me!
many thanks

Briam
2009-07-19, 11:04
Hi
I got the exact same problem as mentioned here: http://xbmc.org/forum/showthread.php?t=40813

I'm running ubuntu 9.04 jaunty desktop x86 on my Zotac ion htpc. I installed XBMC yesterday using PPA (Don't know exact revision as i'm not at home atm, but latest as of 2009-06-19)

I'm afraid i can't use the same solution as the thread suggests. I followed the "HOW-TO make a minimal install of Ubuntu on Acer Revo ION in under 25 minutes" to get sound over hdmi working. If i change the settings to what the above thread says the video plays at normal speed but without sound as i don't have anything i can plug into the minijack.


It's only some video files. please refer to the thread i linked to. They seem to know exactly what's wrong.

thx

topfs2
2009-07-19, 17:24
Hi
I got the exact same problem as mentioned here: http://xbmc.org/forum/showthread.php?t=40813

I'm running ubuntu 9.04 jaunty desktop x86 on my Zotac ion htpc. I installed XBMC yesterday using PPA (Don't know exact revision as i'm not at home atm, but latest as of 2009-06-19)

I'm afraid i can't use the same solution as the thread suggests. I followed the "HOW-TO make a minimal install of Ubuntu on Acer Revo ION in under 25 minutes" to get sound over hdmi working. If i change the settings to what the above thread says the video plays at normal speed but without sound as i don't have anything i can plug into the minijack.


It's only some video files. please refer to the thread i linked to. They seem to know exactly what's wrong.

thx

I merged you into this thread as the solution should work for you aswell,
You need to do plug:hdmi though.

Cheers,
Tobias

Briam
2009-07-19, 17:28
I pretty sure i had already tried that. But it works now!

thanks for the help.

phenry3305
2009-08-25, 02:48
I am having this same problem. I get video but no sound. I'm using a Live install to the hard drive with hdmi. I changed the audio output device to plug:hdmi and still no audio but now I get a message that says "failed to initialize audio device. Check your audio settings."