LinHES Forums
http://forum.linhes.org/

Frontend wackiness
http://forum.linhes.org/viewtopic.php?f=17&t=12862
Page 1 of 1

Author:  Type82 [ Tue Dec 05, 2006 7:09 pm ]
Post subject:  Frontend wackiness

I'm having a strange problem. I'm having a hard time finding search terms to find other people with the same problem to find any possible solutions.

On my frontend, when you watch a recorded show, it will play approximately 30 seconds, then the screen will freeze and eventually turn black and go back to the recorded programs screen. From initial freeze to being back in record problems is about a minute, maybe two. When you go to re-play the same video the problem is gone. Very annoying problem. It happens every single time, with every show.

This is only happening on my remote frontend. My backend is also a bedroom frontend and this problem is not happening there. However, there are some anomalies in my mythtv log.

Here are some snippets. "shuttle" is my remote frontend, "mythtv" is my frontend+backend system.

Code:
[mpeg2video @ 0xb739b620]skipped MB in I frame at 22 7
[mpeg2video @ 0xb739b620]ac-tex damaged at 0 21
[mpeg2video @ 0xb739b620]skipped MB in I frame at 1 22
[mpeg2video @ 0xb739b620]skipped MB in I frame at 1 23


Code:
2006-12-05 19:52:14.578 MainServer::HandleAnnounce Playback
2006-12-05 19:52:14.643 adding: shuttle as a client (events: 0)
2006-12-05 19:52:14.653 MainServer::HandleAnnounce FileTransfer
2006-12-05 19:52:14.672 adding: shuttle as a remote file transfer


Code:
2006-12-05 19:49:39.604 MainServer::HandleAnnounce Monitor
2006-12-05 19:49:39.606 adding: mythtv as a client (events: 1)
2006-12-05 19:50:13.548 Reschedule requested for id 0.
2006-12-05 19:50:20.599 TFW, Error: Write() -- IOBOUND begin cnt(2048) free(363)
2006-12-05 19:50:25.911 TFW, Error: Write() -- IOBOUND end
2006-12-05 19:50:31.310 TFW, Error: Write() -- IOBOUND begin cnt(2048) free(839)
2006-12-05 19:50:32.308 TFW, Error: Write() -- IOBOUND end
2006-12-05 19:50:50.268 Scheduled 1360 items in 36.7 = 0.02 match + 36.70 place


Code:
[mpeg2video @ 0xb739b620]invalid mb type in I Frame at 1 28
[mpeg2video @ 0xb739b620]skipped MB in I frame at 1 29
[mpeg2video @ 0xb739b620]Warning MVs not available
0: start_time: 0.036 duration: 161.474
1: start_time: 0.026 duration: 161.471
stream: start_time: 0.289 duration: 1794.270 bitrate=10157 kb/s
2006-12-05 19:49:36.286 AFD: Opened codec 0x80d9da0, id(MPEG2VIDEO) type(Video)
2006-12-05 19:49:36.362 AFD: Opened codec 0x80da1b0, id(MP2) type(Audio)




I do believe that some of these are being caused by my backend being over loaded. I have dual tuners, two frontends (backend being included). I'm using a pair of IDE drives in an LVM array... vmstat 1 shows the following pretty constantly:
Code:
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 3  2   1796   7660   4328 483200    0    0   455   417  284   268 40 11 43  6
 3  1   1796   8148   4324 482676    0    0  1440    40 2639  1273 89 11  0  0
 3  1   1796   7684   4332 483196    0    0  1468  1960 2659  1209 88 12  0  0


As you can see from this, my drives are thrashing. I don't believe this is the cause of my remote frontend oddness, but of course I could be wrong. Any help with this would be greatly appreciated.

Regards

Author:  falinskip [ Tue Dec 05, 2006 10:54 pm ]
Post subject:  Network Issue

Hi There,

What type of network switch/hub/router are you using? Is the cabling OK or is there a problem with the wireless? Can you grab a network trace (or sniff) using ethereal or some other sniffer? It sounds like a network problem, your stats look good to me (memory and CPU look good).

Thanks,

Paul

Author:  Type82 [ Sat Dec 09, 2006 11:32 am ]
Post subject: 

I'm positive this is a network problem. I enabled QoS on the two ethernet ports my front and backends are connected to. I can still see the video pausing from time to time, but now the connection resumes sooner so the stream is not reset.

Long term fix will be to get a second switch.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/