[mythtv-users] Long delays with remote occasionally

lj larry at foxgulch.com
Sun Mar 29 16:41:07 UTC 2009


On Fri, 2009-03-27 at 13:14 -0700, Josh Mastronarde wrote:
> 2009/3/27 Allen Edwards <allen.p.edwards at gmail.com>:
> >
> >
> > On Fri, Mar 27, 2009 at 9:54 AM, Josh Mastronarde <jmastron at gmail.com>
> > wrote:
> >>
> >> On Fri, Mar 27, 2009 at 8:24 AM, Richard Shaw <hobbes1069 at gmail.com>
> >> wrote:
> >> > 2009/3/27 Allen Edwards <allen.p.edwards at gmail.com>:
> >> >> Has anyone made progress on this remote/ keyboard delay-lag problem?
> >> >>  It may
> >> >> be my imagination but it is happening several times per program lately.
> >> >>  It
> >> >> is very irritating.  It is particurally bad on American Idol where I am
> >> >> skipping a commercial 30 seconds at a time and the program is still
> >> >> being
> >> >> recorded while I am watching.  I have also seen it when navigating the
> >> >> recorded programs menu.
> >> >> Can anyone help?
> >> >> Allen
> >> >
> >> > I've had very little time to trouble shoot it but in my situation it
> >> > mostly seems to happen on certain recordings. I have a Athlon X2
> >> > 2.7GHz (Kuma AM2+ CPU) w/ 2GB memory (1066MHz) and 8400GS running
> >> > 0.21-fixes (no additional patches) and Using Slim profile.
> >> >
> >> > Regular HD content works fine, frontend stays relatively responsive. X
> >> > eats 7-14% CPU on top and mythfrontend runs 40-80%.
> >> >
> >> > SD content that has been scaled up to HD seems to cause me grief. CPU
> >> > wise the tables are turned and X eats 85-97% CPU on one core and
> >> > mythfrontend is eating 7-14%. But even though only one core is maxed
> >> > out and the other is not the remote (and keyboard) will not respond
> >> > for up to 30 seconds (rarely more) but will stay responsive for a
> >> > short duration (as long as I continue to press buttons).
> >> >
> >> > Richard
> >>
> >> For me, I had apparently 2 different causes, at different times:
> >>
> >> 1)  When I had only PVR150 mpeg2 content, I had to add:
> >>
> >>        Option      "UseEvents" "True"
> >>
> >> to /etc/X11/xorg.conf for my Nvidia 6200 card.  That made it go away
> >> the first time.
> >>
> >> 2)  Now that I have mixed PVR150 and HDHomerun recordings, the problem
> >> came back along with some other problems, like the files not always
> >> playing.  I root caused those to an issue with the file type detection
> >> in the FFMPEG library that's part of Myth -- mpeg TS vs mpeg PS --
> >> appeared to sometimes play with the wrong decoder, but not quite
> >> right.  Once I patched to fix that, the remote lag hasn't reappeared
> >> either.  As soon as I get a chance, I'm going to file a ticket to see
> >> if my patch can get put in 0.21-fixes (trunk seems to have already
> >> synced with the latest ffmpeg library with the better probe
> >> procedure).  If you compile yourself and want to try what I did, email
> >> me and I'll send you the patch file.  It's a fix to the "mpegps_probe"
> >> procedure in libs/libavformat/mpeg.c
> >>
> >> Josh
> >> _______________________________________________
> >> mythtv-users mailing list
> >> mythtv-users at mythtv.org
> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
> > Thanks for the update.  I have UseEvents True in my setup so that isn't it.
> >  The other solution is of interest but I don't compile my own.  I  have 8.04
> > LTS with fixes.  I hate to change things because it always breaks stuff.
> >  However, I would like to get this problem fixed.  Is there a way to do some
> > limited patch of some files and install  your fix?  If not, I would be very
> > interested to know when it is in the fixes as that would definitely be worth
> > taking the chance on updating the system.  Without a fix to this problem, I
> > am sticking with the "if it ain't broke don't fix it" philosophy.
> > Allen
> >
> 
> To see if this even might be the issue, try:
> 
> 1)  mythfrontend -v important,libav > log
> 2)  View an HDHomerun recording
> 3)  grep "Input #" log
> 
> For a PVR-150 recording, I get:
>   2009-03-27 12:57:06.708 Input #0, mpeg, from '/video/1003_20090326220000.mpg':
> 
> But for an HDHomerun recording, I now get (post-fix):
>   2009-03-27 12:56:41.795 Input #0, mpegts, from
> '/video/2031_20090326213100.mpg':
> 
> Note the "mpeg" vs "mpegts".  What do you get (report all matching
> lines; it appears to re-probe in some instances, which may be what
> leaves things hanging and causing lirc delays).
> 
> Josh
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Hi Josh and list,

I tried 1)  mythfrontend -v important,libav > log   and followed up by
viewing an HD ATSC recording during which I experienced one remote ir
button press delay.   The recording was made using one of my ATSC tuner
cards.  Here's the output of 3)  grep "Input #" log on the HD recording:

2009-03-29 10:20:17.845 Input #0, mpeg, from
'/var/lib/mythtv/recordings/2182_20090329070000.mpg':
2009-03-29 10:20:19.380 Input #0, mpeg, from
'/var/lib/mythtv/recordings/2182_20090329070000.mpg':
2009-03-29 10:20:22.576 Input #0, mpegts, from
'/var/lib/mythtv/recordings/1131_20090329070000.mpg':
2009-03-29 10:20:23.334 Input #0, mpegts, from
'/var/lib/mythtv/recordings/1081_20090329070000.mpg':
2009-03-29 10:20:26.159 Input #0, mpegts, from
'/var/lib/mythtv/recordings/1081_20090328220000.mpg':
2009-03-29 10:20:28.240 Input #0, mpegts, from
'myth://192.168.1.106:6543/1111_20090328040000.mpg':
2009-03-29 10:20:28.662 Input #0, mpegts, from
'/var/lib/mythtv/recordings/1131_20090327223500.mpg':
2009-03-29 10:20:29.412 Input #0, mpegts, from
'/var/lib/mythtv/recordings/1131_20090327223500.mpg':
2009-03-29 10:22:01.574 Input #0, mpegts, from
'/var/lib/mythtv/recordings/1131_20090327223500.mpg':
2009-03-29 10:22:02.130 Input #0, mpegts, from
'/var/lib/mythtv/recordings/1131_20090327223500.mpg':
2009-03-29 10:22:03.123 Input #0, mpegts, from
'/var/lib/mythtv/recordings/1131_20090327223500.mpg':

When I watch a recording made using my s-video input to the WinTV
HVR-1600 mpeg encoder,  3)  grep "Input #" log  shows:
2009-03-29 10:34:43.701 Input #0, mpeg, from
'/var/lib/mythtv/recordings/2182_20090329070000.mpg':
2009-03-29 10:34:44.809 Input #0, mpeg, from
'/var/lib/mythtv/recordings/2182_20090329070000.mpg':
2009-03-29 10:34:49.903 Input #0, mpeg, from
'/var/lib/mythtv/recordings/2182_20090329070000.mpg':
2009-03-29 10:36:41.766 Input #0, mpeg, from
'/var/lib/mythtv/recordings/2182_20090329070000.mpg':
2009-03-29 10:36:42.303 Input #0, mpeg, from
'/var/lib/mythtv/recordings/2182_20090329070000.mpg':
2009-03-29 10:36:43.332 Input #0, mpeg, from
'/var/lib/mythtv/recordings/2182_20090329070000.mpg':

Interestingly during this last recording,  I also experienced the ir
remote button press delay buildup and unwind.

Hope this helps unravel this mess.  With this bug,  mythtv for me is
severely degraded.

Larry




More information about the mythtv-users mailing list