[Apple TV] SMB & Dharma: delay opening ISO's, stalling subtitle searches.
#1
SMB support for AppleTV and ISO's has always been sketchy, but somewhere during the Camelot -> Dharma transition, it has changed for the worse.

Opening ISO's for the first time over SMB always took around 30 seconds, but now it has suddenly become 5 minutes+.

From the debug log:
Code:
09:40:35 T:51878400 M:  8744960    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00039505
09:42:10 T:51878400 M:  8892416    INFO:   msg: libdvdread: Elapsed time 95
09:42:10 T:51878400 M:  8892416    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00048717
09:43:25 T:51878400 M:  8888320    INFO:   msg: libdvdread: Elapsed time 75
09:43:25 T:51878400 M:  8888320    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0031bad8
09:45:04 T:51878400 M:  8892416    INFO:   msg: libdvdread: Elapsed time 99
09:45:04 T:51878400 M:  8892416    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00362ce7
09:45:57 T:51878400 M:  8540160    INFO:   msg: libdvdread: Elapsed time 53
09:45:57 T:51878400 M:  8540160    INFO:   msg: libdvdread: Found 3 VTS's
09:45:57 T:51878400 M:  8540160    INFO:   msg: libdvdread: Elapsed time 322
(full debug log).

It takes 322 seconds to get the encryption keys, during that time XBMC is unresponsive. As I rip my DVD's with no encryption (who doesn't), they are always 00:00:00:00, and this process could have been skipped.

An existing ticket #9074 already covers this (and even mentions a solution, not implemented yet though), but the delay has now changed for the worse, upto the point that it's really annoying: 20 seconds is easy to ignore, 5 minutes isn't...


The recent changes also impacts the XBMC Subtitles script, as we now have to disable the hash-search on smb:// paths. I'm btw. only assuming that this is all due to the same change(s).


Maybe it's just me, but looking at various posts it looks like more people are suffering from this. I set the NAS resolve in /etc/hosts, played around with the network buffers etc., to no avail.

Are more ppl experiencing this, or am I overlooking something? Would be nice to have this resolved before Dharma is released, or atleast have confirmation that I need to rethink the SMB strategy.
Reply
#2
you are on r35068 and elupus made changes that should have fixed the issue you are having.

try that and see if it's fixed.
Reply
#3
Ah, thanks! Just installed SSHCS's latest nightly (r35256) and this indeed seems to fix it.

Difference is like day and night, from debug.log for same ISO:

Code:
14:14:23 T:51958272 M:  9252864   DEBUG: libdvdread: This can take a _long_ time, please be patient
14:14:23 T:51958272 M:  9252864    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00039505
14:14:26 T:51958272 M:  8863744    INFO:   msg: libdvdread: Elapsed time 3
14:14:26 T:51958272 M:  8863744    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00048717
14:14:27 T:51958272 M:  8859648    INFO:   msg: libdvdread: Elapsed time 1
14:14:27 T:51958272 M:  8859648    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0031bad8
14:14:28 T:51958272 M:  8855552    INFO:   msg: libdvdread: Elapsed time 1
14:14:28 T:51958272 M:  8855552    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00362ce7
14:14:29 T:51958272 M:  8851456    INFO:   msg: libdvdread: Elapsed time 1
14:14:29 T:51958272 M:  8851456    INFO:   msg: libdvdread: Found 3 VTS's
14:14:29 T:51958272 M:  8851456    INFO:   msg: libdvdread: Elapsed time 6

Down from 322 to 6 seconds, so, works for me Wink
Reply
#4
And just updated to Dharma RC1, and back to where it was:

Code:
10:08:04 T:51891712 M:  3375104    INFO:   msg: libdvdread: Elapsed time 77
10:08:04 T:51891712 M:  3371008    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000316
10:09:30 T:51891712 M:  3637248    INFO:   msg: libdvdread: Elapsed time 86
10:09:30 T:51891712 M:  3637248    INFO:   msg: libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00000d22
10:09:51 T:51891712 M:  3633152    INFO:   msg: libdvdread: Elapsed time 21

Must be something else then, I'll keep checking...
Reply

Logout Mark Read Team Forum Stats Members Help
[Apple TV] SMB & Dharma: delay opening ISO's, stalling subtitle searches.0