Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #10414: Bad Recordings - Choppy Playback

 

 

First page Previous page 1 2 Next page Last page  View All MythTV commits RSS feed   Index | Next | Previous | View Threaded


noreply at mythtv

Jul 21, 2012, 10:34 PM

Post #26 of 29 (119 views)
Permalink
Re: Ticket #10414: HDHomeRun: Bad Recordings [In reply to]

#10414: HDHomeRun: Bad Recordings
------------------------------------------------+--------------------------
Reporter: Billy Macdonald <billymacdonald@…> | Owner: danielk
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.26
Component: MythTV - Recording | Version: Master
Severity: medium | Head
Keywords: | Resolution:
| Ticket locked: 0
------------------------------------------------+--------------------------

Comment (by David Walker <David@…>):

I've compiled a new mythbackend with the 20120405 version of libhdhomerun
and ran it with net.core.rmem_max = 1048576. This improved things, but it
was only a compensation, as spartacus06 said. Mythbackend's log still
reported gaps in recorded programs.

While waiting for compiles, though, I did some packet traces with tcpdump
and noticed something pretty suspicious. While a recording is in
progress, there are long, uninterrupted strings of 1328-byte UDP packets,
as expected. A few seconds before the start of a recording gap, though,
the HDHomeRun Prime starts sending ARP requests for the MythTV server once
a second. The server responds to each of the ARP requests. After a few
seconds, the UDP stream stops, causing the recording gap. While the UDP
stream stops, the once-a-second ARP requests continue. I'll attach a
tcpdump output file (tcp.log.gz) showing this behavior; I've edited long
runs of the UDP packets out, as you will see in the file.

I could see that the ARP requests stopped eventually, and I had a hunch
that they stopped when the HDHomeRun Prime received a unicast packet from
the MythTV server, so I tried running

ping -q -n <HDHomeRun Prime address>

from the server to generate a once-a-second stream of unicast ping
packets. I scheduled several recordings, and no gaps! Then I reverted to
the Packman version of mythbackend and the standard default for
net.core.rmem_max (114688), but left the ping running. Still no
recordings gaps. The once-per-second ARP requests still occur, but the
pings seem to keep the UDP stream going.

So, I think the HDHomeRun Prime has an issue. It may be aggravated by
something that MythTV is doing, but it looks like a bug in the HDHomeRun
network code to me.

Is someone from SiliconDust following this? Is this known behavior?

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10414#comment:25>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 22, 2012, 6:08 AM

Post #27 of 29 (106 views)
Permalink
Re: Ticket #10414: HDHomeRun: Bad Recordings [In reply to]

#10414: HDHomeRun: Bad Recordings
------------------------------------------------+--------------------------
Reporter: Billy Macdonald <billymacdonald@…> | Owner: danielk
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.26
Component: MythTV - Recording | Version: Master
Severity: medium | Head
Keywords: | Resolution:
| Ticket locked: 0
------------------------------------------------+--------------------------

Comment (by Gary Buhrmaster <gary.buhrmaster@…>):

Replying to [comment:25 David Walker <David@…>]:
....
> So, I think the HDHomeRun Prime has an issue. It may be aggravated by
something that MythTV is doing, but it looks like a bug in the HDHomeRun
network code to me.

This would be a completely different issue/bug that the two others that
Danielk has addressed (excessive cpu usage (in general), and not keeping
up with the stream (the usleep fix)). Commingling issues/bugs make
tickets impossible to follow (or resolve).

There are numerous debugging recommendations that I can suggest for this
new issue, but those should be taken to the discussions lists, and this
ticket should be able to be resolved for the bug(s) it fixes.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10414#comment:26>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 23, 2012, 3:15 PM

Post #28 of 29 (101 views)
Permalink
Re: Ticket #10414: HDHomeRun: Bad Recordings [In reply to]

#10414: HDHomeRun: Bad Recordings
------------------------------------------------+--------------------------
Reporter: Billy Macdonald <billymacdonald@…> | Owner: danielk
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.26
Component: MythTV - Recording | Version: Master
Severity: medium | Head
Keywords: | Resolution:
| Ticket locked: 0
------------------------------------------------+--------------------------

Comment (by David Walker <David@…>):

My apologies, Gary; I had gotten focused on the issues that spartacus06
raised. I'll move my comments to SiliconDust, as the strange behavior is
in the HDHomeRun Prime, not MythTV.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10414#comment:27>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 25, 2012, 8:31 AM

Post #29 of 29 (111 views)
Permalink
Re: Ticket #10414: HDHomeRun: Bad Recordings [In reply to]

#10414: HDHomeRun: Bad Recordings
------------------------------------------------+--------------------------
Reporter: Billy Macdonald <billymacdonald@…> | Owner: danielk
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: 0.26
Component: MythTV - Recording | Version: Master
Severity: medium | Head
Keywords: | Resolution: Fixed
| Ticket locked: 0
------------------------------------------------+--------------------------
Changes (by danielk):

* status: accepted => closed
* resolution: => Fixed


Comment:

Ok, this may be controversial but I'm going to close this.

The main issue appears to be that the Ubuntu 12.04 rbuf_max needs to be
increased for libmythhdhomerun to get the level of buffering it requires.
The usleep() change should be unnecessary with the greater buffering in
the kernel and is a band-aid anyway.

The HDHomeRun Prime issues and the libhdhomerun resync should get their
own separate tickets.

I'm resolving this as fixed rather than upstream because there was a
MythTV issue (excessive CPU usage) that was fixed.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10414#comment:28>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits

First page Previous page 1 2 Next page Last page  View All MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.