2015-12-05, 21:52
I have been trying Kodi for few days, previously I used old Gotham with cmyth add-on, but now I decided to give newer versions a try. Since I'm having this issue, I though I should ask if it is already a known one.
I have just updated to Openelec 6.0 on Raspberry Pi B+. It includes Kodi 15.2 (?) and enabled Mythtv PVR add-on 2.8.4. The problem I have been seeing was there also with add-on version 2.4.3, but I thought maybe updating add-on could help...
So I have Mythbackend 0.27 running and I have both server and RasPi B+ connected to gigabit ethernet via a router. I have been seeing problems with playback. It usually plays fine for a minute or two and then playback stops without a warning. I have tried 10+ times in a row and same behaviour. If I stop for 10min or for an hour, I might not face it when I watch the same program again. But it is as likely to see than not to see it. There has been no reboots or anything like that in between.
I have checked the log and it says connection error:
8:18:44 64163.035156 T:1773139008 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)__connectAddr: failed to connect (110)
18:18:44 64163.035156 T:1773139008 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetPreviewImage1_32: invalid response
18:18:44 64163.035156 T:1704981568 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvMessageLength: 111
18:18:44 64163.039062 T:1704981568 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvBackendMessage: SYSTEM_EVENT CLIENT_DISCONNECTED HOSTNAME OlkkariRPiOpenElec SENDER tvserveri-ssd (6)
18:18:44 64163.039062 T:1773139008 ERROR: AddOnLog: MythTV PVR Client: Process: Failed to read file: type: 1, local: /storage/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/2043_1409
984100_000
18:18:44 64163.039062 T:1773139008 DEBUG: AddOnLog: MythTV PVR Client: Process: Delayed recache file: type: 1, local: /storage/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/2043_140
9984100_000
I recorded a log from server side using tcpdump. Inside that log I see sequences of data block which are then acknowledged with single ack-message. All of those data messages are of size 1448 (probably bytes), but just before the playback stops there is same package sent twice and size of that package is less than 1448. Response to that from client is not looking the same as successful ones and then playback stops. Here is example of successful sequence:
21:42:05.736018 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281796863:281798311, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736027 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281798311:281799759, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736032 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281799759:281801207, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736037 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281801207:281802655, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736043 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [P.], seq 281802655:281804103, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736048 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281804103:281805551, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736052 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281805551:281806999, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736058 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281806999:281808447, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.756514 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281808447:281809895, ack 131, win 227, options [nop,nop,TS val 27249795 ecr 22819434], length 1448
21:42:05.776135 IP 192.168.1.100.57169 > 192.168.1.3.6543: Flags [.], ack 281809895, win 43440, options [nop,nop,TS val 22819446 ecr 27249789], length 0
Have you experts seen anything like this? If there is any info I could provide which helps to solve this?
I also wondered how is video transfer implemented. Is there just block of data which is chopped into pieces for transfer inside MythTV or is there some library called from MythTV which is doing that?
Help much appreciated...
-Pasi-
I have just updated to Openelec 6.0 on Raspberry Pi B+. It includes Kodi 15.2 (?) and enabled Mythtv PVR add-on 2.8.4. The problem I have been seeing was there also with add-on version 2.4.3, but I thought maybe updating add-on could help...
So I have Mythbackend 0.27 running and I have both server and RasPi B+ connected to gigabit ethernet via a router. I have been seeing problems with playback. It usually plays fine for a minute or two and then playback stops without a warning. I have tried 10+ times in a row and same behaviour. If I stop for 10min or for an hour, I might not face it when I watch the same program again. But it is as likely to see than not to see it. There has been no reboots or anything like that in between.
I have checked the log and it says connection error:
8:18:44 64163.035156 T:1773139008 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)__connectAddr: failed to connect (110)
18:18:44 64163.035156 T:1773139008 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetPreviewImage1_32: invalid response
18:18:44 64163.035156 T:1704981568 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvMessageLength: 111
18:18:44 64163.039062 T:1704981568 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvBackendMessage: SYSTEM_EVENT CLIENT_DISCONNECTED HOSTNAME OlkkariRPiOpenElec SENDER tvserveri-ssd (6)
18:18:44 64163.039062 T:1773139008 ERROR: AddOnLog: MythTV PVR Client: Process: Failed to read file: type: 1, local: /storage/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/2043_1409
984100_000
18:18:44 64163.039062 T:1773139008 DEBUG: AddOnLog: MythTV PVR Client: Process: Delayed recache file: type: 1, local: /storage/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/2043_140
9984100_000
I recorded a log from server side using tcpdump. Inside that log I see sequences of data block which are then acknowledged with single ack-message. All of those data messages are of size 1448 (probably bytes), but just before the playback stops there is same package sent twice and size of that package is less than 1448. Response to that from client is not looking the same as successful ones and then playback stops. Here is example of successful sequence:
21:42:05.736018 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281796863:281798311, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736027 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281798311:281799759, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736032 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281799759:281801207, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736037 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281801207:281802655, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736043 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [P.], seq 281802655:281804103, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736048 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281804103:281805551, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736052 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281805551:281806999, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.736058 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281806999:281808447, ack 131, win 227, options [nop,nop,TS val 27249789 ecr 22819434], length 1448
21:42:05.756514 IP 192.168.1.3.6543 > 192.168.1.100.57169: Flags [.], seq 281808447:281809895, ack 131, win 227, options [nop,nop,TS val 27249795 ecr 22819434], length 1448
21:42:05.776135 IP 192.168.1.100.57169 > 192.168.1.3.6543: Flags [.], ack 281809895, win 43440, options [nop,nop,TS val 22819446 ecr 27249789], length 0
Have you experts seen anything like this? If there is any info I could provide which helps to solve this?
I also wondered how is video transfer implemented. Is there just block of data which is chopped into pieces for transfer inside MythTV or is there some library called from MythTV which is doing that?
Help much appreciated...
-Pasi-