Opened 19 years ago
Closed 18 years ago
#511 closed defect (fixed)
Internal DVD player works only 10% of the time
Reported by: | anonymous | Owned by: | jdonavan |
---|---|---|---|
Priority: | major | Milestone: | 0.19 |
Component: | mythdvd | Version: | head |
Severity: | high | Keywords: | |
Cc: | Ticket locked: | no |
Description
When I put in a DVD there is a one in ten chance that it will actually play. The rest of the time the screen goes black, I can no longer control the frontend (input is ignored) and the console is filled with the following which repeats over and over:
2005-10-22 20:20:14.209 GetNextFreeFrame?() served a busy frame O. Dropping. UUUUUUUUUUUUUUUUUUUUUUUUUUUUULU 2005-10-22 20:20:14.410 GetNextFreeFrame?() unable to lock frame 100 times. Discarding Frames. 2005-10-22 20:20:14.418 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.419 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.428 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.437 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.438 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.455 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.456 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.465 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.466 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.484 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.493 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.494 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.495 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.566 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.575 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.585 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.585 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.594 NVP::AddAudioData?():p1: Audio buffer overflow, audio data lost! 2005-10-22 20:20:14.602 GetNextFreeFrame?() served a busy frame N. Dropping. UUUUUUUUUUUUUUUUUUUUUUULUUUUUUU 2005-10-22 20:20:14.800 GetNextFreeFrame?() unable to lock frame 100 times. Discarding Frames.
Attachments (3)
Change History (18)
comment:1 Changed 19 years ago by
Summary: | Internal DVD player works only 20% of the time → Internal DVD player works only 10% of the time |
---|
comment:2 Changed 18 years ago by
comment:3 Changed 18 years ago by
The previous log excerpt was taken from a Knoppmyth distribution, upgraded to the latest SVN. The system doesn't have KDE installed and artsd - the 'KDE sound server' is not running.
The same problem occurs on two Mandriva 2006 machines. The machines are an Athlon TB 1.4Ghz, an Athlon 64 2800 and a Turion 64 MT-30 - all with Nvidia cards GF4 or higher and 512Mb+ Ram.
These machines have no problems with DVDs under any other software package (Xine, Mplayer etc). They are able to playback mpeg2 (DVB) recordings without issue.
comment:4 Changed 18 years ago by
Owner: | changed from Isaac Richards to jdonavan |
---|
It looks like NVP::DiscardFrame?(VideoFrame?*) needs to be called on some frames...
Changed 18 years ago by
Attachment: | mythdvd.patch added |
---|
prevents internal mythdvd from reading a bookmark setting when starting.
comment:5 Changed 18 years ago by
I have the same problem. After going through the debugs, I notice it fails when it loops through DoFastForward?() ( around line 2102 ) of NuppelPlayer?.cpp in StartPlaying?().
My fix is to prevent NuppelPlayer::OpenFile?() from getting a bookmark setting if the ringbuffer is for a DVD. Does the internal Mythdvd player support Bookmarks ??
comment:6 Changed 18 years ago by
The attached patch seems to have fixed the issue for me.
It has a revealed another problem - stuttering of playback for the first 2-4 seconds but this is not critical. Now all we need is menu support which is critical for those DVDs which have the menu as their primary track - thus preventing you from viewing the film.
comment:7 Changed 18 years ago by
posted patch is a workaround til seeking through a dvd using the internal dvd player is fixed.
comment:8 Changed 18 years ago by
patch to improve ff/rew for internal dvd player. Fixes original problem, so you don't need to prevent bookmarking a dvd. fast forwarding looks blurry on my pentiumM laptop with ATI 7500 graphics card. Don't know why. comments , feedback appreciated.
working on good bookmark support, position bar and menu support for this player. I like this player instead of xine.
Changed 18 years ago by
Attachment: | dvd_seeking3.patch added |
---|
patch to improve ff/rew using internal dvd player.
comment:9 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:10 Changed 18 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This problem or a very similar one, seems to have been reintroduced in current SVN.
I get logs full of "NVP: Prebuffer wait timed out 10 times."
comment:11 Changed 18 years ago by
I think this could be your issue. Found it while i was working on putting together the basic dvd menu support patch.It's in decoderbase.cpp. Posting patch with basic DVD menu support next week . I'll send an email to the dev alias once its ready for testing.
Also something else. Use the mythdvd.patch attached to this bug to prevent mythtv from finding a bookmark while playing a dvd. with it enabled, if a bookmark is set, the dvd menus don't show up.
i want to work on proper dvd bookmarking, just like the way iDVD for the MAC does it.
=================================================================== --- decoderbase.cpp (revision 8513) +++ decoderbase.cpp (working copy) @@ -157,7 +157,8 @@
{
VERBOSE(VB_PLAYBACK, QString("Position map filled from DB to: %1")
.arg((long int) m_positionMap[m_positionMap.size()-1].index));
- indexOffset = m_positionMap[0].index;
+ if (!ringBuffer->isDVD()) + indexOffset = m_positionMap[0].index;
}
return true;
comment:12 Changed 18 years ago by
opps, sorry should have previewed the posting before submitting it.
comment:13 Changed 18 years ago by
The decoderbase patch alone doesn't work - but I'll try it in conjunction with the first. It looked promising until I put in the second DVD ...
(P.S. I look forward to menu support!)
comment:14 Changed 18 years ago by
With both patches applied it worked every time - I tried 7 different DVDs, each one twice.
It was a slow to start each time. Play the same disc again and it starts much faster.
It also seems to re-read the audio when a new chapter starts. In every case this coincided with playback going into a permanent stutter.
comment:15 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Try this:
If you are running ALSA and KDE make sure you turn off the sound KDS sound server.