[mythtv-users] Video is behind audio, dropping frames to catch up (VDPAU, HD content)

Joseph Fry joe at thefrys.com
Mon Feb 25 22:34:18 UTC 2013


> I did some further investigating:
>
> I tried VPDAU Normal and Slim profiles with the same results.
>
> I tried without VDPAU, using only the CPU and 2xBob (CPU is beefy enough
> for that) with the same results.
>
> Now, it happened 2 times, that the hiccups occurred not only every 2-10
> minutes, but every few seconds and on both occasions, mythfrontend tried
> to contact mythlcdserver, which had crashed (see my other thread in
> mythtv-dev list about that crash)!
>
> So, if contacting mythlcdserver triggers the hiccup and the message
> about dropping frames in the log, it could be something strange inside
> mythfrontend and not necessarily with my hardware. And BTW, mplayer
> plays flawlessly on the same hardware.
>
> Anyone any suggestions on how to find the real problem? Could writing to
> the log (mythlogserver) be the problem? The log file is on an NFS share,
> because this is a PXE (diskless) frontend.
>

Because the duration between skips is so great, I don't think it's your
playback profile.  It could be any number of things inside or outside of
Mythtv.

Keep in mind that, because you are running a diskless frontend, any disk IO
on your frontend could impact playback.  Because you have no issues in
mplayer, I would look to other things besides just playback that mythtv may
be doing.  For example, mythtv may access the seek table in the database
during playback... if the database is busy updating EIT data or scheduling,
you may get a hiccup.

The fact that it seems to occur more at the ends of recordings, and because
it came up in another thread, makes me wonder about disk fragmentation.
 When starting a recording, a certain amount of disk space is preallocated
(not sure how much), and once that block is filled it will allocate another
block that may or may not be contiguous.  I believe it will typically it
will start writing an area with a lot of contiguous blocks free... then
once it runs out it starts to write in another location on the disk.
 Perhaps playback is ok when on the contiguous part of the file, but once
it has to start seeking your playback degrades?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130225/e29f0c04/attachment.html>


More information about the mythtv-users mailing list