Opened 14 years ago

Closed 13 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)

mythdvd.patch (388 bytes) - added by skamithi@… 14 years ago.
prevents internal mythdvd from reading a bookmark setting when starting.
dvd_seeking3.patch (15.3 KB) - added by skamithi@… 14 years ago.
patch to improve ff/rew using internal dvd player.
decoderbase.cpp.patch (487 bytes) - added by skamithi@… 13 years ago.
potential fix for problem with svn

Download all attachments as: .zip

Change History (18)

comment:1 Changed 14 years ago by anonymous

Summary: Internal DVD player works only 20% of the timeInternal DVD player works only 10% of the time

comment:2 Changed 14 years ago by kstuard (comcast.net)

Try this:

If you are running ALSA and KDE make sure you turn off the sound KDS sound server.

comment:3 Changed 14 years ago by anonymous

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 14 years ago by danielk

Owner: changed from Isaac Richards to jdonavan

It looks like NVP::DiscardFrame?(VideoFrame?*) needs to be called on some frames...

Changed 14 years ago by skamithi@…

Attachment: mythdvd.patch added

prevents internal mythdvd from reading a bookmark setting when starting.

comment:5 Changed 14 years ago by skamithi@…

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 14 years ago by anonymous

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 14 years ago by skamithi@…

posted patch is a workaround til seeking through a dvd using the internal dvd player is fixed.

comment:8 Changed 14 years ago by skamithi@…

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 14 years ago by skamithi@…

Attachment: dvd_seeking3.patch added

patch to improve ff/rew using internal dvd player.

comment:9 Changed 13 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [8172]) Close #511 by applying patch (improves seeking with the internal DVD player).

comment:10 Changed 13 years ago by anonymous

Resolution: fixed
Status: closedreopened

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 13 years ago by skamithi@…

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;

Changed 13 years ago by skamithi@…

Attachment: decoderbase.cpp.patch added

potential fix for problem with svn

comment:12 Changed 13 years ago by skamithi@…

opps, sorry should have previewed the posting before submitting it.

comment:13 Changed 13 years ago by anonymous

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 13 years ago by anonymous

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 13 years ago by Isaac Richards

Resolution: fixed
Status: reopenedclosed

(In [8531]) Close #511 by applying patch. (internal dvd player playback issues)

Note: See TracTickets for help on using tickets.