Bug #2270

DVD Playback crash on NTFS

Added by Rob Koni over 6 years ago. Updated over 3 years ago.

Status:FixedStart date:10/11/2014
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Filesystem
Target version:4.8
Found in version:4.7.324 Platform:PS3

Description

I have an externa hard drive in plugged into the right socket of the PS3.
2 partitions, 1 FAT32 and 1 NTFS.

I have on the NTFS partition 6 dvd's with their VIDEO_TS folders.

Selected the first DVD. VERY VERY greenish image, lot's of artefacts, totally unwatchable.

When I press R1 multiple times, until the dvd menu comes. I select the first menu option (play all)

Showtime crashes then to XMB. Log is attached.

If you want I can upload a part of the VOB file.

showtime-0.log (57.2 KB) Rob Koni, 10/11/2014 08:31 PM

Familieknots.html Magnifier (5.51 KB) Rob Koni, 10/24/2014 01:53 AM

SHOWTIME.SELF.softwaredecoder (8.61 MB) Rob Koni, 01/02/2018 02:45 AM

Associated revisions

Revision 20932a00
Added by Andreas Smas over 6 years ago

Update libntfs to fix crash when opendir() on non-existing directory

Fixes #2270

Change included in version 4.7.407

History

#1 Updated by Leonid Protasov over 6 years ago

Can you please check it on 4.7.329?

#2 Updated by Rob Koni over 6 years ago

Leonid Protasov wrote:

Can you please check it on 4.7.329?

No improvement on 4.7.333.

Still increadibly green, artefacts and crash after R1 skip to menu and then X to start all scenes

#3 Updated by Leonid Protasov over 6 years ago

Can't reproduce on 4.7.333. Can you please attach the sample?

#4 Updated by Rob Koni over 6 years ago

Leonid Protasov wrote:

Can't reproduce on 4.7.333. Can you please attach the sample?

Sample VOB is here:

https://mega.co.nz/#!oEZWmZKC!UUP6KxcTCKZCTymzO1_zLU8OV_BdvGHGjTqGTWo9E68

#5 Updated by Leonid Protasov over 6 years ago

  • Subject changed from DVD Playback crash to DVD Playback crash (PS3 only)
  • Target version set to 4.8

Reproducible only on PS3 even if you just play the file locally.

#6 Updated by Andreas Smas over 6 years ago

The timecodes in this DVD is very broken. I'm not sure I think it's worth fixing.

#7 Updated by Rob Koni over 6 years ago

Andreas Öman wrote:

The timecodes in this DVD is very broken. I'm not sure I think it's worth fixing.

Do you need another VOB file from this DVD? All other dvd's from the same serie are the same. Green image with lot's of artefacts.

#8 Updated by Leonid Protasov over 6 years ago

Andreas Öman wrote:

The timecodes in this DVD is very broken. I'm not sure I think it's worth fixing.

Maybe you can do the same filtering you did on some HLS streams before. That works perfectly and is very cool feature.

#9 Updated by Andreas Smas over 6 years ago

The timecodes are not broken in the same way. These timestamps are much closer to each other but still seems broken so it's very hard to identify a "broken" one.

#10 Updated by Leonid Protasov over 6 years ago

Andreas Öman wrote:

The timecodes are not broken in the same way. These timestamps are much closer to each other but still seems broken so it's very hard to identify a "broken" one.

Interesting thing is that this problem is slecific to ps3 platform...

#11 Updated by Andreas Smas over 6 years ago

I think the problem is three fold.

1. Playback of DVD from NTFS drivers on PS3 seems to trig the actual crash.

2. There is a problem with picture artifacts. Probably because of some incompatibility between the encoded materia and the PS3 MPEG2 decoder.

3. The timecode issues are bad on all platforms and what's causing the AV desync

#12 Updated by Rob Koni over 6 years ago

Andreas Öman wrote:

I think the problem is three fold.

1. Playback of DVD from NTFS drivers on PS3 seems to trig the actual crash.

2. There is a problem with picture artifacts. Probably because of some incompatibility between the encoded materia and the PS3 MPEG2 decoder.

3. The timecode issues are bad on all platforms and what's causing the AV desync

Okay I tested now, copied the whole DVD from the NTFS partition to the FAT32 (same harddrive)

1. When placed on an FAT32 drive the dvd plays back very well. No more crash to XMB when I select the "start playback" in the menu.
2. Picture artifacts are still there. Very greenish image. When square is pressed, a lot of times it says "epoch mismatch". It does say dvd / mpeg 2 / ac3. Sound is fine.
3. Don't know how to test that.

#13 Updated by Rob Koni over 6 years ago

I tested this on 4.7.380.

#14 Updated by Rob Koni over 6 years ago

Rob Koni wrote:

I tested this on 4.7.380.

Here is an examination of one of the bigger VOB files from the same DVD.
This is done with Mediainfo.

#15 Updated by Andreas Smas over 6 years ago

  • Target version deleted (4.8)

Fixing this is too invasive for 4.8

#16 Updated by Rob Koni over 6 years ago

Andreas Öman wrote:

Fixing this is too invasive for 4.8

Can you try to fix the FAT32 vs NTFS issue? You were correct that the skipping issue is present on NTFS but not on FAT32 :-)

#17 Updated by Andreas Smas over 6 years ago

  • Subject changed from DVD Playback crash (PS3 only) to DVD Playback crash on NTFS
  • Category changed from DVD to Filesystem
  • Status changed from New to Accepted
  • Target version set to 4.8

I can try. The ntfs library I use is the worst piece of shit that I've ever seen. If I had more time I would rewrite it.

#18 Updated by Rob Koni over 6 years ago

Andreas Öman wrote:

I can try. The ntfs library I use is the worst piece of shit that I've ever seen. If I had more time I would rewrite it.

What I can do is burn the DVD onto a disc and try if the problem is also present when reading from a burned dvd.

#19 Updated by Andreas Smas over 6 years ago

  • Status changed from Accepted to Fixed
  • % Done changed from 0 to 100

#20 Updated by Rob Koni almost 4 years ago

I tested a very similar ISO and the problem is specific to the PS3.
On linux it plays fine, only the menus do not (black screen).

MXPlayer on Android plays the file in Software decoding mode.
VLC has black menus. Kodi 17.1 Krypton plays fine, sometimes you need to switch the hardware decoding off and on to see the menu's.

Strange thing is that the XMB video player plays the disc fine, when mounted via Webman. So it's definately going wrong somewhere in the decoder.

It's kinda strange that even Kodi has problems playing back the menus but not in software mode.

#21 Updated by Rob Koni almost 4 years ago

Tested this in the newest 5.0.487 with ISO9660 support.

#22 Updated by Rural Hunter almost 4 years ago

How is the log from the new version?

#23 Updated by Rob Koni over 3 years ago

Rural Hunter wrote:

How is the log from the new version?

It seems these kind of DVD's only play fine in the software decoded version of PS3. Since there was a Showtime.SELF which accidentally turned off hardware decoder it seems that the software decoder is working almostfine on these types of discs (in 5.0.494 software decoded).

I cannot give you a log for the physical discs since 5.0.494 has DVDNAV playback errors due to a regression since your commit. It might work for Linux but now it's broken for PS3's physical discs.

https://github.com/andoma/movian/pull/231

#24 Updated by Rob Koni over 3 years ago

Here is the software decoded .SELF (5.0.494) which plays back these dvd files much better than with hardware acceleration on.
Just remove the .softwaredecoder (rename to .self) and ignore the "unable to open cell decoder" message.
If we have a setting to turn off the PS3 hardware decoder the problem is partially fixed. In the ideal situation it would play fine on the hardware decoder as well.

Also available in: Atom PDF