Opened 10 years ago

Closed 9 years ago

#9437 closed Bug Report (Fixed)

dvd iso playback with storage groups (long loading time)

Reported by: kloana@… Owned by: stuartm
Priority: minor Milestone: 0.25
Component: MythTV - Video Playback Version: 0.24-fixes
Severity: medium Keywords: iso playback loading
Cc: Ticket locked: no



with mythtv version 0.24 + fixes from 12.12.2010 on frontend and backend the iso playback starting time is 30sec. up to one minute. All dvd's are unecryted and stored in storage groups. When i brows the videos everything is ok, but when i start to play a video, this takes up to one minute till the first picture is displayed. After that all the dvd playback is working like a charm.

attached you can find the mythfrontend -l logfile. In this log i started to play "Over the hedge - iso DVD" at appr. 13:03:05. First picture came up on 13:03:21 saying "playback starting". And the first DVD-picture came up on 13:03:49. During this time i can see on my Cisco switch traffic which is going up to 60MBit's per second.

Network between frontend and backend is 100MBit full duplex.

If you need additional logs, please contact me.

regards Herbert

Attachments (2)

mythfrontend.log (13.7 KB) - added by kloana@… 10 years ago.
9437_remote_dvd_speedup_v1.diff (1.4 KB) - added by cpinkham 9 years ago.

Download all attachments as: .zip

Change History (14)

Changed 10 years ago by kloana@…

Attachment: mythfrontend.log added

comment:1 Changed 10 years ago by robertm

Resolution: Invalid
Status: newclosed

This is a known limitation of ISO/Video_TS/BDMV over Storage Groups when many small files are present.

comment:2 Changed 10 years ago by stuartm

Owner: changed from Janne Grunau to stuartm

A known bug is still a bug.

comment:3 Changed 10 years ago by stuartm

Resolution: Invalid
Status: closednew

comment:4 Changed 10 years ago by robertm

Resolution: Invalid
Status: newclosed

And yet it's not a bug, it's a known limitation.

comment:5 Changed 10 years ago by robertm

Resolution: Invalid
Status: closednew

Stuart would like to address this one, reopening.

comment:6 Changed 10 years ago by robertm

Status: newassigned

comment:7 Changed 10 years ago by kloana@…

Which small files? There is only one Iso with all the data inside! I only have one iso,... Where are the small files?

regards Herbert

comment:8 Changed 10 years ago by robertm

The ISO if full of tiny IFO, VOB, etc. files. It may appear to be one file to you, but it's a disc image, not a single file.

comment:9 in reply to:  8 Changed 10 years ago by kloana@…

and this appear for each dvd's? Maybe you have a solution, which i can use, to have working iso's. I don't know which but maybe you have one, or do i have to live with that in iso rip's and internal player?

regards Herbert

comment:10 Changed 10 years ago by markk

ref #9854

Changed 9 years ago by cpinkham

comment:11 Changed 9 years ago by cpinkham

I've attached a patch 9437_remote_dvd_speedup_v1.diff that has significantly improved my remote DVD playback startup speed.

The first part of the patch tries to fix an issue where an immediate read after an optimized backwards seek is locked waiting for more data to be read from the backend even though the required data is actually already inside the ringbuffer. Adding this fix cut my remote DVD startup times by 30% or more.

The second part of the patch is only applicable to VIDEO_TS and BDMV directories. This patch tightens the restrictions for using a remote file optimization. In the current code, we use a RemoteFile? object for remote files less than 50KiB in size. In testing, I noticed that the DVD nav code often seeked backwards in the same file and reread the same data. When using a RemoteFile?, we do not have the benefit of a local data cache, so these backwards seeks require re-reading the data from the backend. The patch changes this filesize threshold to 512 bytes so that we use a RingBuffer? (and it's built in cache) for files >= 512 bytes in size. This part of the patch also improved playback startup speed for me for VIDEO_TS and BDMV directories.

The second part of the patch is a trivial change and should not have any negative effects. The first part of the patch regarding optimized backwards seeks has been tested, but is not installed on my production systems currently. Daniel wants to look at this part of the patch further before this could be rolled into master, but I wanted to provide a copy in this ticket so that others could test it if they want to do so.

comment:12 Changed 9 years ago by markk

Milestone: unknown0.25
Resolution: Fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.