ADBTuner: A "channel tuning" application for networked Google TV / Android TV devices

Are you encoding with H.264/Main Profile/CBR? I am trying to figure out if encoding settings increase the likelihood of A/V sync. issues - so far it seems to me that those settings may exhibit the problem less often

I have figured out you aren’t able to. I bought a Flirc and an OTG cable that will come next week. So hopefully I can control my Chromecast outside of the network using the SwitchBot Hub mini.

Hit with another who's watching on Fubo. Would it be worth it for me to switch to a Chromecast? (From Fire TV Max)

1 Like

I haven't liked the way Fire TV works with ADB tuner.
The ONN boxes seem to be the best from my testing.
I don't have a Fubo account to test.
if you have the Walmart near by, I would grab one and see if it works better.
ADB Tuner and the ONN boxes appear to be a nice fit.

1 Like

I have the Uray 1080p 60fps encoder and I use h.264 high profile 10mb VBR, the only channel that has sync issues is my local NBC affiliate channel. I've seen NBC network shows that don't have the sync issue so there's something going on only with the local channel stuff.

There's no sync issues with any of the NBC cable channels.

Did you set the Still Watching on firetv to off ?

Sorry for the delay.
I pulled the latest and I didn't have any problems with Hulu.
I tried this morning and it failed on the first attempt. It worked on the second attempt.
This is from the log:

2023-08-13 11:18:18 2023-08-13 16:18:18.811 - server - Reserved tuner 1
2023-08-13 11:18:18 2023-08-13 16:18:18.811 - server - Using tuner id: 1
2023-08-13 11:18:18 2023-08-13 16:18:18.811 - uvicorn.access - 172.17.0.1:34832 - "GET /stream/1 HTTP/1.1" 307
2023-08-13 11:18:18 2023-08-13 16:18:18.815 - server - Tuner: Tuning to News Nation on ChromeCast 1
2023-08-13 11:18:18 2023-08-13 16:18:18.817 - lib.adb - ADB: Connecting to device (attempt 1).
2023-08-13 11:18:18 2023-08-13 16:18:18.896 - lib.adb - ADB: Connected.
2023-08-13 11:18:18 2023-08-13 16:18:18.896 - lib.adb - ADB: 192.168.1.41 - dumpsys display
2023-08-13 11:18:18 2023-08-13 16:18:18.981 - lib.adb - ADB: 192.168.1.41 - getprop ro.build.version.release
2023-08-13 11:18:19 2023-08-13 16:18:19.022 - lib.adb - ADB: Android Version: 12.0.
2023-08-13 11:18:19 2023-08-13 16:18:19.098 - lib.adb - ADB: 192.168.1.41 - pidof com.hulu.livingroomplus
2023-08-13 11:18:19 2023-08-13 16:18:19.162 - lib.adb - ADB: Stopping media playback.
2023-08-13 11:18:19 2023-08-13 16:18:19.162 - lib.adb - ADB: 192.168.1.41 - input keyevent KEYCODE_MEDIA_STOP
2023-08-13 11:18:19 2023-08-13 16:18:19.310 - lib.adb - ADB: 192.168.1.41 - am start -a android.intent.action.VIEW -d "https://www.hulu.com/watch/newsnation-f381371b-dbd1-4d9f-a10c-fb82bd1cf265" com.hulu.livingroomplus
2023-08-13 11:18:21 2023-08-13 16:18:21.235 - server - Tuner: Waiting for playback start. Status: unknown
2023-08-13 11:18:26 2023-08-13 16:18:26.667 - server - Tuner: Waiting for playback start. Status: unknown
2023-08-13 11:18:32 2023-08-13 16:18:32.122 - server - Tuner: Waiting for playback start. Status: unknown
2023-08-13 11:18:37 2023-08-13 16:18:37.442 - server - Tuner: Waiting for playback start. Status: unknown
2023-08-13 11:18:43 2023-08-13 16:18:43.190 - server - Tuner: Waiting for playback start. Status: unknown
2023-08-13 11:18:48 2023-08-13 16:18:48.854 - server - Tuner: Waiting for playback start. Status: unknown
2023-08-13 11:18:48 2023-08-13 16:18:48.954 - server - Tuner: Could not detect playback state. Giving up after 30.14 seconds. Display was on, application (com.hulu.livingroomplus) was running.
2023-08-13 11:18:48 2023-08-13 16:18:48.954 - server - Released tuner 1
2023-08-13 11:18:48 2023-08-13 16:18:48.954 - lib.adb - ADB: Stopping media playback.
2023-08-13 11:18:48 2023-08-13 16:18:48.954 - lib.adb - ADB: 192.168.1.41 - input keyevent KEYCODE_MEDIA_STOP
2023-08-13 11:18:49 2023-08-13 16:18:49.040 - lib.adb - ADB: 192.168.1.41 - input keyevent KEYCODE_MEDIA_PAUSE
2023-08-13 11:20:11 2023-08-13 16:20:11.310 - server - Reserved tuner 1
2023-08-13 11:20:11 2023-08-13 16:20:11.310 - server - Using tuner id: 1
2023-08-13 11:20:11 2023-08-13 16:20:11.310 - uvicorn.access - 172.17.0.1:50764 - "GET /stream/1 HTTP/1.1" 307
2023-08-13 11:20:11 2023-08-13 16:20:11.313 - server - Tuner: Tuning to News Nation on ChromeCast 1
2023-08-13 11:20:11 2023-08-13 16:20:11.314 - lib.adb - ADB: Connecting to device (attempt 1).
2023-08-13 11:20:11 2023-08-13 16:20:11.528 - lib.adb - ADB: Connected.
2023-08-13 11:20:11 2023-08-13 16:20:11.528 - lib.adb - ADB: 192.168.1.41 - dumpsys display
2023-08-13 11:20:11 2023-08-13 16:20:11.601 - lib.adb - ADB: 192.168.1.41 - getprop ro.build.version.release
2023-08-13 11:20:11 2023-08-13 16:20:11.637 - lib.adb - ADB: Android Version: 12.0.
2023-08-13 11:20:11 2023-08-13 16:20:11.698 - lib.adb - ADB: 192.168.1.41 - pidof com.hulu.livingroomplus
2023-08-13 11:20:11 2023-08-13 16:20:11.749 - lib.adb - ADB: Stopping media playback.
2023-08-13 11:20:11 2023-08-13 16:20:11.749 - lib.adb - ADB: 192.168.1.41 - input keyevent KEYCODE_MEDIA_STOP
2023-08-13 11:20:11 2023-08-13 16:20:11.832 - lib.adb - ADB: 192.168.1.41 - am start -a android.intent.action.VIEW -d "https://www.hulu.com/watch/newsnation-f381371b-dbd1-4d9f-a10c-fb82bd1cf265" com.hulu.livingroomplus
2023-08-13 11:20:13 2023-08-13 16:20:13.707 - server - Tuner: Waiting for playback start. Status: unknown
2023-08-13 11:20:19 2023-08-13 16:20:19.766 - server - Tuner: Waiting for playback start. Status: unknown
2023-08-13 11:20:20 2023-08-13 16:20:20.748 - server - Tuner: Tuning completed in 9.44 seconds. Display was on, application (com.hulu.livingroomplus) was running.
2023-08-13 11:20:20 2023-08-13 16:20:20.748 - lib.adb - ADB: Closing connection - 192.168.1.41
2023-08-13 11:20:20 2023-08-13 16:20:20.748 - uvicorn.access - 172.17.0.1:50764 - "GET /stream/1/1 HTTP/1.1" 200
2023-08-13 11:20:20 2023-08-13 16:20:20.759 - root - Tuner: Stream open (attempt 1).
2023-08-13 11:20:20 2023-08-13 16:20:20.828 - httpx - HTTP Request: GET http://192.168.1.168/0.ts "HTTP/1.1 200 OK"
2023-08-13 11:20:32 2023-08-13 16:20:32.929 - server - http disconnect
2023-08-13 11:20:32 2023-08-13 16:20:32.931 - lib.adb - ADB: Connecting to device (attempt 1).
2023-08-13 11:20:32 2023-08-13 16:20:32.979 - lib.adb - ADB: Connected.
2023-08-13 11:20:32 2023-08-13 16:20:32.979 - lib.adb - ADB: Stopping media playback.
2023-08-13 11:20:32 2023-08-13 16:20:32.979 - lib.adb - ADB: 192.168.1.41 - input keyevent KEYCODE_MEDIA_STOP
2023-08-13 11:20:33 2023-08-13 16:20:33.127 - lib.adb - ADB: 192.168.1.41 - input keyevent KEYCODE_MEDIA_PAUSE
2023-08-13 11:20:33 2023-08-13 16:20:33.230 - lib.adb - ADB: Closing connection - 192.168.1.41
2023-08-13 11:20:33 2023-08-13 16:20:33.230 - server - Released tuner 1
2023-08-13 11:20:33 2023-08-13 16:20:33.230 - server - Tuner: Cleanup complete. ChromeCast 1 (News Nation)

They don't seem to carry them here in Canadian stores :frowning: , but I'll keep an eye out!

I did, yup! The Fubo one still hits. It must be the Fire, as @Anvil_DVR doesn't seem to be having them anymore.

Yes, I haven't had the prompt once since the "fix".

It should not matter what device I think you have to look for the FIX and update ADBTuner.

Hmm, currently on the 8/11 image. I assume that's the latest @turtletank ?

@Ryboflavins I just pushed an update (08/13) that should fix the Fubo thing on Fire TV devices.

The Fire TV devices are totally fine, it's just there are subtle differences in how things work between Android versions so it takes some extra effort to ensure compatibility.

@Anvil_DVR Thank you for the logs. I will look into the Hulu thing.

3 Likes

Since at least a few ADBTuner users are getting hip to the convenience of Portainer, I thought I'd add another piece to the ease-of-use puzzle.

Among the containers I install everywhere I'm running Docker and Portainer is Watchtower. Watchtower is a very easy way to keep all of your containers up-to-date including itself and Portainer.

It can be setup to run automatically, but I don't recommend that -- instead I suggest running it on demand. That way you don't have any breaking changes installed without realizing why it happened.

Watchtower will only update running containers, so if you don't want a particular container updated for some reason, stop it before running Watchtower -- and start it again once Watchtower exits.

Here's the compose for Portainer-Stacks with the run-once flag set:

version: '3.9'
services:
  watchtower:
    image: containrrr/watchtower:latest
    container_name: watchtower
    environment:
      - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      - WATCHTOWER_RUN_ONCE=true
    labels:
      - 'com.centurylinklabs.watchtower.enable=true'
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

When you first spin-it-up, it'll update your running containers and then exit. Leave it in this exit state until the next time you want to check for updates -- then tick the box next to it and click "Start" in Portainer-Containers.

4 Likes

Thanks as always! I'll keep an eye out for the popups!

Thanks again for the logs. I believe it's just a timing thing. Sometimes Hulu is slow to open (usually on a cold start). The profile screen check adds some additional delay that makes it more likely the tune operation will exceed the 30 second timeout limit.

I just pushed an update (08/14) that temporarily limits this profile screen check to channels using compatibility mode. If you are using Fubo make sure the compatibility mode option is enabled for all Fubo channels.

Ok,
I will pull it later today and give it a go.
Overall its been working great!

Has anyone had Wi-Fi issues with there Google Chromecast 4K with Google TV? I am having constant quality changes during the stream from the NBC app. I looked at my Unifi to see if there were issues with the Wi-Fi and it’s having constant issues and I’m right by the AP. It’s the only device I am having Wi-Fi issues with. Wondering if it’s the Wi-Fi chip on board and was wondering if I should hard line it?

When I was using NBC, I noticed it would always start out crappy, and then after a time clear up.
This was regardless of what I used to watch the channel.
I am using Chromecast 4k units and have had no Wi-Fi issues at all.
But my Chromecast units are literally 2 feet from the router.

I think its NBC. I get the channels from Hulu or Fubo now.

How can I tell that I'm actually running the latest version after importing settings in Docker Container. My last import was looking to pull turtletank99-adbtuner1:2023717. Stated that it didn't exist so I edited the json file to pull turtletank99-adbtuner. That seem to work but not sure if its what got pulled.