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

Catching up on the party, but logs show this message:

server - Tuner: Application (com.amazon.firetv.youtube.tv) is not installed. Exiting

Any ideas?

First idea would be: Do you have the YouTube TV App installed on the FireStick you have plugged into your HDMI encoder?

Most definitely

I just setup ADBTuner with Firestick 4K Max sticks and had the same error in my logs. And, I knew I had installed YouTube TV - 100% sure.

Turns out, despite what I thought, I had installed YouTube and not YouTube TV.

Once I figured that out and installed YouTube TV then com.amazon.firetv.youtube.tv worked without issue.

In fact, it works so well that I've nearly switched over to ADBTuner exclusively as my Channels DVR sources.

Kudos and a huge thank you to @turtletank for building ADBTuner.

2 Likes

Embarrassingly, repurposing a Firestick 4K, I found this one did indeed not have yttv. Thanks for the clue. All is now well. This project works very well for things like YTTV channels that are not obtainable with TVE.

Anyone ever seen errors like these:

2023/12/12 19:14:28.849123 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [NULL @ 0x7fb7680] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.849180 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [hevc @ 0x815ef80] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.862389 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [NULL @ 0x7fb7680] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.862451 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [hevc @ 0x8170540] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.876732 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [NULL @ 0x7fb7680] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.876815 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [hevc @ 0x845a5c0] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.889405 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [NULL @ 0x7fb7680] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.889520 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [hevc @ 0x7ffaa80] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.891033 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-remux:      Last message repeated 69 times
2023/12/12 19:14:28.891089 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-remux:  [hls @ 0x94b9980] Non-monotonous DTS in output stream 0:1; previous: 3392820, current: 3392010; changing to 3392821. This may result in incorrect timestamps in the output file.
2023/12/12 19:14:28.892474 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-remux:  [NULL @ 0x9492000] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.904853 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [NULL @ 0x7fb7680] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.904921 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [hevc @ 0x7fc0a00] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.918725 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [NULL @ 0x7fb7680] Invalid NAL unit 4, skipping.
2023/12/12 19:14:28.918761 [HLS] ffmpeg: ch9499-dANY-ip192.168.152.217-1-----10000-0--0-0---false-false-0.01-0:  [hevc @ 0x815ef80] Invalid NAL unit 4, skipping.

It never ends, and my stream is pixelated at times. I've tried lowering bitrate and quality. All connections are wired. Thanks in advance.

That means the encoder is sending malformed h264. Check to see if there is a firmware update.

I'm stuck. Have the Onn and Uray4khevc which are working fine using Onn remote and viewing on my Mac with ffplay.

Onn is in developer mode but I was never asked by android to approve the connection but ADBTuner shows "Available".

I can't figure out how to get the information to complete the Add Channel with url, package and alt package.

I shell'ed into ADBTuner and I can't find any application logs or add client. I did a tcp port scan to Onn device and there are no ports open so I can't see how ADBTuner communicates.

(My end goal is Amazon Prime TNF, YTTV/USA.)

Found logs via lib/apps.py to stdout which is docker logs

lib.adb - ADB: Error while running command. Check for approval popup on device.

But I'm looking at output and see no popup.

Have you tried going into the ONN device, and revoking all previous permissions? Maybe this will reset the authorization process on ADBTuner, and you will see the authorization request on the ONN?

You also need to enable "USB Debugging" -- then you should see the auth prompt on the onn device.

Has anyone been able to launch NFL Network via the NFL app through ADBTuner? I believe the APK is com.gotv.nflgamecenter.us.lite but that's as far as I've gotten.

1 Like

Presuming you tried the other recommendations, sometimes this happens if you are trying to setup ABDTuner and another ADB connection is currently established with the target Android device.

Make sure you disconnect any persistent sessions you might have open from a PC (or other client), or just reboot the Android device, and then try adding it to ADBTuner.

Multiple devices can be configured to control one Android device via ADB, but you won’t get an approval popup if one is currently connected.

1 Like

Thank you! I didn't turn on USB debugging since it wasn't connected to anything but power supply. As soon as I did that it was resolved.

Launching the app is the easy part, it's the virtual tuning that's challenging. If deep links are supported, which is always a treasure hunt -- then this extension should work.

Otherwise, the ah4c project can do remote control emulation, so it'll work with most apps. I have DirecTV and FireTV LiveTV supported through ah4c.

If deep links exist, use this project -- otherwise ah4c is likely the answer.

1 Like

@turtletank I've got a random request/question. YTTV added a new feature to reduce broadcast delay to help with latency for live sports. It's been a super useful feature but the biggest issue is that it only lasts for 48 hours. So every 48 hrs I have go to and go to each chromecast I have setup in ADBTuner to turn on the feature. I'm wondering if there's something that could be added to ADBTuner to use ADB commands to manipulate the app to enable the feature.

Reduce broadcast delay on your TV for YouTube TV

Broadcast delay is the delay between the camera capturing an event and the event being displayed when you’re watching on your TV.

The lower the broadcast delay, the less buffer the video player will have. With a lower broadcast delay, you’re more likely to experience playback interruption.

Internet congestion, Wi-Fi interference, and other factors may also cause live programming issues, which can delay the stream. Delays can happen even when you have a great network.

Update your broadcast delay in the YouTube TV app on your TV

  1. Select the three dot more menu.
  2. Select Broadcast Delay.
  3. Select Decrease for 48 hours or Default.

If you select Decrease for 48 hours, the decreased broadcast delay will revert back to Default after the 48 hours are up.

“Default” is best to minimize playback interruptions. “Decrease for 48 hours” is best to reduce live spoilers. Choose the “Decrease for 48 hours” option if you want low broadcast delay with minimal playback interruptions.

3 Likes

Getting very close to have this working. Using Fubo and trying to get my first channel setup on the first tuner port. It's opens the nbc channel and player - but I have to click on the play icon to actually get it start playing.
I got past the profile issue by switching to the :experimental.

This my testing link:
https://www.fubo.tv/p/watch?type%3Dlive%26channelId%3D32639

Hi there,
The link you want for ADB Tuner as a sample is as follows.
https://link.fubo.tv/al1%3Fv%3D1%26a%3Dplay%26t%3Dchannel%26channel_id%3D68704
You have to use compatibility mode and it helps to run the Experimental branch.

That link plus compatibility mode worked perfectly! Thank you. Shoulda' posted an hour ago - would've saved me some time - lol..

Been following this project with excitment for some time and decided to give it a try. I purchased one of the Exvist 265 Encoders listed above and paired it with a firestick 4k 2018 I had laying around. Using the POE adapters recommeneded above, I wired everything up and tested with Hulu and Philo.

Playback has been a bit jittery using 10000 bitrate, h.264, TS, VBR, 5 GOP (tried 30 as well), and 24, 30 and 60 FPS.

After getting the Hulu walke up bug, i purchased a Chromecast 4K with Google TV. The tuner seems slow to capture on Hulu and the Philo channels stop working after being selected once. The logs say the tuner timed out after 20

Would any one have any ideas to make it better? Should I try the Uray boxes mentioned above?
My POE switch is only a 10/100, but I do have a better gigabit one on the way. The adapters are still 10/100 though, so not sure how much better it will be. I do have the poe switch daisyed to my gigabit switch my server is on, so I will have full bandwidth at the very least.

Any help would be greatly appreciated.