LinHES Forums
http://forums.linhes.org/

Playing Audio CD in MythMusic causes buffer underrun
http://forums.linhes.org/viewtopic.php?f=2&t=20287
Page 1 of 2

Author:  entourage [ Thu Sep 10, 2009 8:36 pm ]
Post subject:  Playing Audio CD in MythMusic causes buffer underrun

I just wanted to listed to a CD the other day but when I went to put it in and play it, it's good for 15-20 seconds and then I have a 3-4 second pause. It doesn't matter what disc I have in, it happens on all of them.

I checked the mythfrontend.log and here's a bit of what I'm seeing:
Code:
2009-09-10 22:15:28.777 WriteAudio: buffer underrun
2009-09-10 22:15:28.784 WriteAudio: buffer underrun
2009-09-10 22:15:50.975 WriteAudio: buffer underrun
2009-09-10 22:15:55.169 WriteAudio: buffer underrun
2009-09-10 22:15:55.174 WriteAudio: buffer underrun
2009-09-10 22:15:55.180 WriteAudio: buffer underrun
2009-09-10 22:15:55.187 WriteAudio: buffer underrun
2009-09-10 22:15:55.194 WriteAudio: buffer underrun
2009-09-10 22:16:12.321 WriteAudio: buffer underrun
2009-09-10 22:16:16.503 WriteAudio: buffer underrun
2009-09-10 22:16:16.510 WriteAudio: buffer underrun
2009-09-10 22:16:16.517 WriteAudio: buffer underrun
2009-09-10 22:16:16.524 WriteAudio: buffer underrun
2009-09-10 22:16:16.530 WriteAudio: buffer underrun
2009-09-10 22:16:16.537 WriteAudio: buffer underrun
2009-09-10 22:16:33.333 WriteAudio: buffer underrun
2009-09-10 22:16:37.504 WriteAudio: buffer underrun
2009-09-10 22:16:37.510 WriteAudio: buffer underrun
2009-09-10 22:16:37.517 WriteAudio: buffer underrun


If I rip the CD to the drive, it plays perfectly. I can watch DVD's without problems so I know the drive is otherwise fine.

I'm running R6 on an AMD X2 2.6Ghz, 2GB RAM, 320GB sata HDD, CD-rw/DVD-rw sata optical drive

Suggestions?

Author:  manicmike [ Sun Sep 13, 2009 5:40 pm ]
Post subject:  Re: Playing Audio CD in MythMusic causes buffer underrun

It'll be one of two possibilities:
1. Drive is faulty.
2. IDE drive dma problem

Try playing a DVD to test it (assuming you're playing CDs on a DVD drive). If DVDs will play properly and you have an IDE drive I'd go back to the old IDE problem (something to do with dma being on) and Google it for the solution.

Mike

Author:  entourage [ Sat Sep 19, 2009 1:49 pm ]
Post subject: 

Since it's SATA, I doubt it's the IDE DMA issue. And I can play DVD's all day long with no stuttering whatsoever.

Aren't there 2 lenses in these drives? If so, could it be that the CD lense is bad? Is there another player that I could try instead?

Author:  manicmike [ Sun Sep 20, 2009 7:31 pm ]
Post subject: 

entourage wrote:
Since it's SATA, I doubt it's the IDE DMA issue. And I can play DVD's all day long with no stuttering whatsoever.

Aren't there 2 lenses in these drives? If so, could it be that the CD lense is bad? Is there another player that I could try instead?


You will have to look up your drive's specs for that (you still haven't told us a lot of detail about the hardware you're asking about).

What program is playing the audio? Is it mplayer or mythfrontend?

Mike

EDIT: I don't think it's a lense. It rips the CD OK, so the problem is probably the software that is trying to play it.

Author:  entourage [ Mon Sep 21, 2009 6:22 am ]
Post subject: 

The drive is a LITE-ON 2MB Cache SATA 20X DVD±R DVD Burner.

I'm using MythMusic to attempt to play the CD. I believe that it's mythfrontend? Is there a way to manually launch mplayer to attempt to load the disc and play it?

Author:  manicmike [ Mon Sep 21, 2009 2:45 pm ]
Post subject: 

entourage wrote:
Is there a way to manually launch mplayer to attempt to load the disc and play it?


From mplayer's man page:

Code:
mplayer [cdda|cddb]://track[-endtrack][:speed][/device] [options]


So try

Code:
mplayer cdda://1


Also Googling "play audio cd with mplayer" has this as the first result http://lists.mplayerhq.hu/pipermail/mplayer-users/2006-July/061418.html

Mike

Author:  entourage [ Tue Sep 22, 2009 6:51 am ]
Post subject: 

Unfortunately this yielded the same result.

Without a video to show you what it's doing, I'll try to describe it as best as I can.

The CD spins up, drive light comes on and then goes off. The CD starts playing and is fine until the drive light comes on again. Then the CD spins up again, drive light comes on and the whole time it's on, there's no audio. Then when the drive light goes off, the music resumes.

To me it looks like it buffers the disc, plays out that buffer for 15-20 seconds, then has to re-buffer again. (and then repeat for the whole CD)

Hope that makes sense?!!?

Author:  manicmike [ Fri Sep 25, 2009 6:26 am ]
Post subject: 

Your optical drive's laser is not tracking the disc. New hardware is required, I should think. If it's like all the Lite-On drives I've used (admittedly all were IDE) it'd be a pretty noisy unit anyway. Pioneer and Asus are very quiet, the latter has proven to be slightly more reliable in my experience.

Mike

Author:  entourage [ Fri Sep 25, 2009 6:59 am ]
Post subject: 

Thanks for the help. I'm going to try one more thing a co-worker suggested about checking the SATA mode in the BIOS (if it even has options) and then if that doesn't work, I'm going to get another DVD drive (IDE of course)

Thanks again!

Oh and if I find if something does help the situation, I'll certainly post back.

Author:  manicmike [ Sat Sep 26, 2009 2:30 am ]
Post subject: 

entourage wrote:
(IDE of course)


No, don't! You must have misunderstood me. SATA is better. I was just saying that amongst IDE drives, the LITE-ON was noisiest.

I would replace it with an ASUS or Pioneer SATA drive.

Mike

Author:  entourage [ Sat Sep 26, 2009 7:36 am ]
Post subject: 

gotcha. Thanks!

Author:  entourage [ Sat Sep 26, 2009 11:12 am ]
Post subject: 

Update - using your mplayer example, I launched xine from the terminal and I am currently playing a CD without stutter or buffer underrun.

Same CD, Same DVD/CD player...so why does xine work but not mplayer or the internal player?

Now, I'm off to research how to set xine as my default CD player.

Author:  manicmike [ Sat Sep 26, 2009 11:42 pm ]
Post subject: 

entourage wrote:
Update - using your mplayer example, I launched xine from the terminal and I am currently playing a CD without stutter or buffer underrun.


Interesting. Perhaps xine has a larger buffer. If you can get your hands on a new drive try it out: It could still be that the drive is on its way out.

Keep us posted and good luck!

Mike

Author:  krizze [ Sun Oct 11, 2009 5:17 pm ]
Post subject: 

I also have this incredibly annoying problem.

I think MythTV handles CD-playback in some totally wrong way. CD plays fine in every other program I have tried, but is totally useless in MythTV - stopping to buffer every few seconds, instead of just playing the CD.. Also spins up every time I change the track, taking 3-4 seconds to change a track.

Really big WAF-kill for me (yes, I could rip it all to disk, but that's not the issue here).

Author:  krizze [ Sun Oct 11, 2009 5:56 pm ]
Post subject: 

Got a little carried away there - mplayer is choppy too. XBMC works like a charm, though - but I want to use Myth :/

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/