Hi all, I'm having a problem when playing movies using the arts sound server. Sound lags behind, sometimes up to two seconds. This started on a clean install of SuSE 8.1 Pro. I remedied it by setting the priority/cpu-usage in KDE's control center under sound system, to "high cpu-usage" or low latency (can't remember the exact terms). This worked fine for a while. Then I upgraded KDE to 3.1 (using the rpms from kde.org). Now the problem is back, but only after a while. I can't set the latency any lower. Playing the movies back with the -ao alsa9 (using mplayer) fixes this. What's wrong with arts? I notice the same problem when I run my vanilla kernel with the kernel's own sound driver (creative ensoniq card). Any help appreciated Thanks Hans == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
On Mon, 21 Apr 2003 14:30:07 +0200
"H du Plooy"
I'm having a problem when playing movies using the arts sound server. Sound lags behind, sometimes up to two seconds.
Did you enable realtime priority for aRtsd?
What's wrong with arts? I notice the same problem when I run my vanilla kernel with the kernel's own sound driver (creative ensoniq card).
Since you are running a vanilla kernel, I suggest this patchset for multimedia: http://members.optusnet.com.au/ckolivas/kernel/ Charles -- A Linux machine! because a 486 is a terrible thing to waste! (By jjs@wintermute.ucr.edu, Joe Sloan)
On Mon, 21 Apr 2003 08:45:07 -0400
Charles Philip Chan
On Mon, 21 Apr 2003 14:30:07 +0200 "H du Plooy"
wrote: I'm having a problem when playing movies using the arts sound server. Sound lags behind, sometimes up to two seconds.
Did you enable realtime priority for aRtsd?
Did so.
What's wrong with arts? I notice the same problem when I run my vanilla kernel with the kernel's own sound driver (creative ensoniq card).
Since you are running a vanilla kernel, I suggest this patchset for multimedia:
Thanks, will do so. For the record, I usually use k_athon (on an AthonXP 1800+ 256mb RAM, nVidia TNT2 16Mb), so performance shouldn't be a problem. I just tried the vanilla kernel to see if it fixes the problem, and it didn't. But it's not a kernel or a sound driver problem. Playback using oss or alsa works fine. It seems to be with arts. Any ideas? Thanks Hans
Charles
-- A Linux machine! because a 486 is a terrible thing to waste! (By jjs@wintermute.ucr.edu, Joe Sloan)
== Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
On Mon, 21 Apr 2003 15:22:02 +0200
"H du Plooy"
Did so.
First off are you sure it is enabled? Check with aRts Control Tool.
run my vanilla kernel with the kernel's own sound driver (creative ensoniq card).
Are you sure your aRtsd is set to output through ALSA and not the kernel driver? Charles -- Why use Windows, since there is a door? (By fachat@galileo.rhein-neckar.de, Andre Fachat)
First off are you sure it is enabled? Check with aRts Control Tool. What? Arts? Yes, defnitely - xmms is playing through it permanently.
run my vanilla kernel with the kernel's own sound driver (creative ensoniq card).
Are you sure your aRtsd is set to output through ALSA and not the kernel driver?
Ok, maybe I should split this up in two: 1.a) SuSE's stock athlon kernel 2.4.19 with the alsa module for my card loaded (I checked, made sure no other sound drivers are loaded). Arts is running, xmms works through it, mplayer -ao arts plays through it. sound lags. 1.b) SuSE kernel with alsa module loaded, same as above. arts is running, but I use mplayer -ao alsa9 instead. sound doesn't lag. 2.a) 2.4.19 vanilla kernel. Arts is running, xmms and mplayer -ao arts work through it. sound lags. 2.b) 2.4.19 vanilla kernel, mplayer -ao alsa9 - sound doesn't lag. My common sense tells me that arts delays the sound, regardles of what kernel or sound driver. I double checked this by disabling the soundblaster and enabling the onboard sound (via686 or something like that). Both kernels, same results. I've already set arts latency as low as I can, with some effect, but nowhere near enough. Any other ideas? Thanks again Hans == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
On Wednesday 23 April 2003 17:02, H du Plooy wrote:
My common sense tells me that arts delays the sound, regardles of what kernel or sound driver. I double checked
Try to increase the cache sizes (you'll find this setting in Control Center -> Sound & Multimedia -> Sound System). -- -- Verdi March --
On Wed, 23 Apr 2003 17:27:01 +0800
Verdi March
Try to increase the cache sizes (you'll find this setting in Control Center -> Sound & Multimedia -> Sound System).
He did that already and aRtsd is also running with realtime priority, yet the sound still lags. I am stumped. Charles -- I did this 'cause Linux gives me a woody. It doesn't generate revenue. (Dave '-ddt->` Taylor, announcing DOOM for Linux)
On Wed, 23 Apr 2003 11:02:20 +0200
"H du Plooy"
I've already set arts latency as low as I can, with some effect, but nowhere near enough. Any other ideas?
I am stumped. I haven't seen the sound lagging that badly. Is your card a multi-channelled card? If it is there is no reason for you to use aRtsd. The only reason why I am using it for my SB Live! is to resample to 48kHz, since the routine on that card is known to be subpar. Charles -- Your job is being a professor and researcher: That's one hell of a good excuse for some of the brain-damages of minix. (Linus Torvalds to Andrew Tanenbaum)
I am stumped. I haven't seen the sound lagging that badly. Is your card a multi-channelled card? If it is there is no reason for you to use aRtsd. The only reason why I am using it for my SB Live! is to resample to 48kHz, since the routine on that card is known to be subpar.
Charles
Uhm, the reason why I'd like to use artsd is because multiple apps can use the soundcard at once. Is that what you mean by multi-channelled? Then my card is not. Some sound apps take forever to release the sound driver, don't ask me why, but's it's very annoying. Then I have to wait a couple of seconds, sometimes up to 30, before I can get a movie playing with sound. This is rediculous, I know. I don't know if the kde 3.x version of arts maybe has an issue with my card. At first I thought that my card must be at the end of its life (unlikely), because the motherboards onboard sound don't seem to have the same problem. Not as badly, anyway. But the onboard sound is crappy compared to the Soundblaster, and it doesn't offer enough audio inputs for my purposes. I think I'll compile arts from source and see if it helps. Thanks Hans == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
On Thu, 24 Apr 2003 09:40:17 +0200
"H du Plooy"
Uhm, the reason why I'd like to use artsd is because multiple apps can use the soundcard at once. Is that what you mean by multi-channelled?
Yes, for example the SB Live! is multi-channelled- it can play more then one sound at a time.
I think I'll compile arts from source and see if it helps.
Yes, try that using the opts for your CPU. For example: -o3 -march=athlon -m3dnow -ffast-math Also, I just notice something peculiar in your first post:
I remedied it by setting the priority/cpu-usage in KDE's control center under sound system, to "high cpu-usage" or low latency (can't remember the exact terms).
You should go the other way around- low CPU usage which increase the buffer size. The sound and video will be slower to start, but the sync should be better, since the buffer is bigger. This is the same trick media players use to stream online video on a slow link. Charles -- "If you want to travel around the world and be invited to speak at a lot of different places, just write a Unix operating system." (By Linus Torvalds)
participants (3)
-
Charles Philip Chan
-
H du Plooy
-
Verdi March