kiall / android-tvheadend

Android + TV Headend + TV Input Framework
Apache License 2.0
191 stars 61 forks source link

Constantly dropping frames on WiFi #258

Closed sotiris-bos closed 5 years ago

sotiris-bos commented 5 years ago

Hello!

I am running a Xiaomi Mi Box with TVHeadend for Android OS and TVHeadend 4.3-1396~ge316c7677 on the server. I am transcoding the SD DVB-T stream using x264 and streaming to the Mi Boxes.

I get a lot of buffering and dropped frames when the Mi Box is on WiFi. Using a Ugreen USB 3.0 Ethernet adapter I get no buffering or dropped frames. I also don't get any buffering or dropped frames using Kodi with the TVHeadend plugin on my hardwired PC.

My Access Point is a Unifi AP AC Lite about 2 meters away from the Mi Box and I am getting 97% signal on 5GHz so the wireless connection between the Mi Box and the Access Point is probably not the problem.

Any ideas on how to diagnose the problem?

sotiris-bos commented 5 years ago

I am getting lines like this:

10-22 18:53:57.154 4897 31395 W ie.macinnes.tvheadend.player.HtspExtractor: Caught IOException, returning RESULT_CONTINUE

and this:

10-22 18:54:09.524 4897 31391 E AudioTrack: Discontinuity detected [expected 261408000, got 261888000]

in adb logcat

sotiris-bos commented 5 years ago

I restarted the Box and it stopped dropping frames.

Development on this app seems to be dead though.