LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-09-2007, 09:47 PM   #1
violagirl23
Member
 
Registered: Aug 2007
Location: Michigan
Distribution: Gentoo, Arch
Posts: 33

Rep: Reputation: 15
Audio CD lags systematically with MPlayer?


I have an old computer from '99, so when I started MPlayer and my audio CD kept lagging, I assumed it didn't have enough memory. But I closed X and everything except MPlayer, and it did the same thing. It lags every one or two seconds, exactly on the *.6 second mark. This is very deliberate. For example, the second track on the CD lags at 0.6 s, 1.6 s, 2.6 s, 4.6s, 6,6s, 7.6s, and so on. What could be causing this? I have played mp3s with MPlayer and they have run flawlessly.
If some background would help, I run Gentoo Linux.
Also, if this would affect it, this is information about my personal MPlayer (what it says while playing the CD):


MPlayer dev-SVN-rUNKNOWN-4.1.1 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Family: 6, Model: 5, Stepping: 2)
MMX supported but disabled
CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions:

Playing cdda://1.
Found audio CD with 12 tracks.

Track 1
rawaudio file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

Does anyone have any idea what could be causing this? The lag is just so deliberate that it is making me so very curious!
 
Old 09-09-2007, 10:32 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
CD-ROM drives from that time may not handle DAE (Digital Audio Extraction) well or not at all. On some setups ALSA has higher latency, so try using OSS as the audio output device.

Post the output of /sbin/hdparm -v of the optical drive. Also post the output of cat /proc/cpuinfo.

You should re-install mplayer with at least mmx support.
 
Old 09-11-2007, 02:32 PM   #3
violagirl23
Member
 
Registered: Aug 2007
Location: Michigan
Distribution: Gentoo, Arch
Posts: 33

Original Poster
Rep: Reputation: 15
MPlayer has been recompiled with MMX support, and still the problem persists. Here is the ouput of cat /proc/cpuinfo:
Quote:
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 5
model name : Pentium II (Deschutes)
stepping : 2
cpu MHz : 398.294
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
bogomips : 796.97
clflush size : 32
And here is the output of /sbin/hdparm -v:
Quote:
/sbin/hdparm -v /dev/cdrw1

/dev/cdrw1:
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device
I'll look into OSS but whether that is the problem or not... I have no idea. Isn't it deprecated, though?
 
Old 09-11-2007, 04:38 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Yes, OSS modules are being deprecated. In some ALSA modules (drivers), the ALSA layer has a little higher latency than its OSS layer. The OSS layer is more direct, so it should have low latency.

If you re-compile mplayer to include mmx and custom-cfags in the USE options, it should be faster. I suggest use -Os and -mtune pentium2 as the cflag.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mplayer audio error endfx Linux - Software 6 06-25-2005 10:14 PM
Audio in Mplayer mickeyboa Fedora 0 11-13-2004 09:11 AM
No Audio when trying new Mplayer breakerfall Linux - Software 2 08-25-2004 07:58 PM
Mplayer Audio Help dmiller23462 Linux - Software 6 08-11-2004 05:21 AM
No audio with MPlayer christer Linux - Software 6 10-04-2003 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration