Debugging DVD playback: how to trace the problem?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
hrak Offline
Junior Member
Posts: 42
Joined: Oct 2007
Reputation: 0
Question  Debugging DVD playback: how to trace the problem?
Post: #1
I'm trying to gather some more useful debug info on the DVD playback problem described in http://forum.xbmc.org/showthread.php?tid=30955 but it is obvious with all the threading going on that a simple gdb session wont do.

What tools do you guys use to trace these kind of issues? Or rather, how can i (and maybe some more people) be of help to provide you with useful info apart from the CritSect log entries already mentioned in the topic?

Thanks for the great job you guys are doing!
find quote
einal Offline
Junior Member
Posts: 24
Joined: Oct 2007
Reputation: 0
Post: #2
I'm also interested in helping fix the bug in DVD playback. As it is I can play .ISO files made from DVD's but if I try to play a disc (Tenacious D in the Pick of Destiny) it shows the disc's menu and then overlays a window saying it's buffering. Nothing more happens and trying to cancel buffering doesn't work.

Pressing x gets me back to the main menu, but XBMC locks up if I try to play another video and kill -9 is the only solution.

The fact that DVD images play just fine from my SMB share but discs don't I guess we should be looking at file access code and restrict buffering when playing from DVD's?
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,799
Joined: Mar 2004
Reputation: 3
Post: #3
hrak: printf, and gdb is the only thing i use.

einal: have you posted a Debug Log somewhere?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
BLKMGK Offline
Donor
Posts: 1,740
Joined: Jul 2006
Reputation: 4
Location: USA Virginia
Post: #4
If I can provide anything to assist with the troubleshooting on this please let me know. It's repeatable on my system. I cannot run current builds at full resolution but I've got a directory I'm keeping up to date with the SVN and can run at reduced resolution for testing as needed. I have indeed posted a Pastebin log of the issue I'm seeing in that thread.

Openelec Gotham, MCE remote(s), Intel i3 NUC, DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoded with Handbrake to x.264. Yamaha receiver(s)
find quote
einal Offline
Junior Member
Posts: 24
Joined: Oct 2007
Reputation: 0
Post: #5
I think I've nailed the problem. It appears that discs (and .iso's) that start with a video (The Universal intro, FBI warning, video message from the director on those I tested) work for me. Even the menu works when the intro finishes.

The discs I tried that failed to play were the ones that jump straight to the menu. Some have a menu to select the language (for the copyright warning and such) others jump straight to the main menu. Those discs all hang on the buffering dialog. Sometimes I can see the menu underneath but the buffering dialog steals my focus and if I try to hit cancel it just hangs with 'canceling'. Only remedy is hitting 'x' and from the main menu quit xbmc since others videos fail to load after this.

I have the logs ready, but they're huge. Any "right way" to post them?

einar.
find quote
BLKMGK Offline
Donor
Posts: 1,740
Joined: Jul 2006
Reputation: 4
Location: USA Virginia
Post: #6
Use Pastebin to post them as URLs. It's dirt simple to use that service! Sadly it sounds like your issue and mine are different - mine will now play VOB\IFO rips - as little videos in the lower left corner vs full screen like it should. Doh!

Openelec Gotham, MCE remote(s), Intel i3 NUC, DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoded with Handbrake to x.264. Yamaha receiver(s)
find quote
einal Offline
Junior Member
Posts: 24
Joined: Oct 2007
Reputation: 0
Post: #7
Log when playing Wedding Crashers DVD (region 2, icelandic version. Doesn't work): http://pastebin.com/m569d7fd6

Sledge Hammer season 1, disc 1 (Works): http://pastebin.com/m6e55add0

einar.
find quote
einal Offline
Junior Member
Posts: 24
Joined: Oct 2007
Reputation: 0
Post: #8
I thought I'd share my recent experience with DVD playing on XBMC. I figured out a new option in the setup menus (new to me at least, don't know for how long it's been available), "Try to jump straight to main menu" or something like that.

After switching this option on almost all my dvd's now work flawlessly. The only disc so far to give me problems since turning the option on was Hannibal. Both discs got stuck with a buffering dialog. Looking at dmesg I saw a read error line repeating from /dev/scd0. This happens both on the feature disc and the extra disc. I suppose this could just be a faulty disc, but I kind of doubt both of them would have it. I'll try playing it on a stand-alone dvd player this week and I kind of hope it's just a faulty disc.

With DVD's working for me now, XBMC is really nearing the state of completeness on Linux. It does lock up occasionally and leaving it on for a couple of hours is usually followed by me having to restart the computer since memory leaks take their toll. I'll be trying to get useful logs for when this happens.

To all you XBMC developers I bow my head in admoration. It is truly a great piece of software.
find quote
BLKMGK Offline
Donor
Posts: 1,740
Joined: Jul 2006
Reputation: 4
Location: USA Virginia
Post: #9
Anyone trying to play IFO/VOB rips? ISO playback sounds nailed down. I still get perfect playback - in a tiny box on the lower right side of the interface - when I use the play button in the file view. When I select a movie in library view I get nothing but interface sounds go away as if it's playing until I hit the Stop button. When I've checked in the past the movie shows up in the Now Playing list....

Openelec Gotham, MCE remote(s), Intel i3 NUC, DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoded with Handbrake to x.264. Yamaha receiver(s)
find quote
einal Offline
Junior Member
Posts: 24
Joined: Oct 2007
Reputation: 0
Post: #10
BLKMGK - Unfortunately I can't help you with your problem, but I have submitted a patch to fix the problem where a buffering dialog takes over the DVD menu screen and makes it impossible to navigate the menu.

This only happens to me on discs that jump straight to a menu without any intro movie, but if I enable "Attempt to jump straight to main menu" it turns around and discs that have intro movies don't work.

I've submitted a patch [https://sourceforge.net/tracker/?func=de..._id=87054] to SourceForge that fixes it for me. Hopefully it will get committed to SVN.
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,799
Joined: Mar 2004
Reputation: 3
Post: #11
ifo/vob seem to fail for me when played over smb. not checked locally thou. will have a look at it later.

einal, thanx for that patch. had forgotten about that.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote