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

failed Recordings after upgrade to 2.0, ADBTuner has been rock solid with YTTV for almost a year, but now my recordings are failing, more specifically YTTV exits and the recording continues with a static view of the Firestick 4k Max Home Screen for the remainder of the recording. I'm pulling my hair out trying to figure out what is going on. I have successful recordings of a single channel all day long, but at 4:00 I have two other channels scheduled to start, they both start and then fail to the Firestick Home Screen when the 3:00 recording on a different channel ends. 1 minute later. Any suggestions would be appreciated, I've completely removed and reinstalled ADBTuner, Made sure all my fire sticks (4) are up to date.

I am sorry you are running into issues. Can you share some docker logs from when this happens? That would be the best way to start troubleshooting this.

1 Like

Thanks again for the feedback. In your usage, does the sort order of the channels within the generated m3u files matter? If there are no channel numbers the list will just be sorted in the order in which the channels were added.

Thanks, I just deleted and recreated the image, so my logs are gone, I'll provide them tomorrow. Not sure how much of them you need, and if the forum is the appropriate place to post them.

Seem to be able to recreate the issue, by having any combination of multiple streams going and ending any one of them ends all of them.

I have 500+ channels in ADBTuner now, and they were all entered either by import (in the order I wanted them), or using the API. The only ones with channel numbers are the DTV channels, as those are the only channels where a channel number matters.

What happens though, is if I want to make even a simple manual change to any channel without a channel number, I have to make-up a channel number to be able to save a change. Then, that one channel is no longer in my desired order (at least in the ADBTuner interface), as it's now sorted by channel number.

Gutfeld started at 2200 and scheduled to end at 2301, CBS scheduled at 2300, recorded Firestick Home Screen starting @ 2301, when Gutfeld ended. Every time any ADBTuner scheduled program ends it seems to close any other ADBTuner scheduled recordings, but channels keeps recording the Firestick home screen for the remainder of the time. Never a problem if only one ADBTuner is scheduled.

2025/12/17 22:00:00.001431 [DVR] Starting job 1766026800-222 Gutfeld! on ch=[1289]
2025/12/17 22:00:00.003107 [DVR] Waiting 1h0m0s until next job 1766030400-169 Bill O'Reilly: No Spin News
2025/12/17 22:00:11.230420 [TNR] Opened connection to M3U-ADBTuner for ch1289 FOXNEWS
2025/12/17 22:00:11.232061 [DVR] Recording for job 1766026800-222 from M3U-ADBTuner ch1289 into "TV/Gutfeld!/Gutfeld! 2025-12-17-2200.mpg" for 1h0m59.996845402s
2025/12/17 22:00:11.787187 [IDX] Generating video index for job 1766026800-222
2025/12/17 22:24:35.157167 [DVR] Fetched guide data for XMLTV-SLM in 191ms
2025/12/17 22:24:38.595655 [DVR] Indexed 2472 airings into XMLTV-SLM (51 channels over 144h20m22s) + 1029 skipped [3s index]
2025/12/17 22:24:38.705297 [DVR]   pruned 477 replaced airings in 110ms.
2025/12/17 22:24:39.802997 [DVR] Indexed 3 channels (1008 airings + 0 replaced) with placeholders [1s index]
2025/12/17 22:24:50.728676 [DVR] Waiting 35m9s until next job 1766030400-169 Bill O'Reilly: No Spin News
2025/12/17 23:00:00.014663 [DVR] Starting job 1766030400-169 Bill O'Reilly: No Spin News on ch=[2073]
2025/12/17 23:00:00.925798 [M3U] stream timestamps: plm_0003: start_at=2025-12-17T22:58:55-05:00 end_at=2025-12-17T22:59:49-05:00 live_delay=5.423530891s
2025/12/17 23:00:00.925934 [TNR] Opened connection to M3U-SLMGracenote for ch2073 The First
2025/12/17 23:00:00.926899 [DVR] Recording for job 1766030400-169 from M3U-SLMGracenote ch2073 into "TV/Bill O'Reilly No Spin News/Bill O'Reilly No Spin News 2020-06-01 2025-12-17-2300.mpg" for 1h0m59.966842299s
2025/12/17 23:00:00.926967 [DVR] Starting job 1766030400-246 WCNC Charlotte at 11:00 on ch=[1359]
2025/12/17 23:00:00.927395 [DVR] Waiting 1h54m59s until next job 1766037300-264 Fallen
2025/12/17 23:00:01.460376 [IDX] Generating video index for job 1766030400-169
2025/12/17 23:00:18.766268 [TNR] Opened connection to M3U-ADBTuner for ch1359 NBC (WCNCDT)
2025/12/17 23:00:18.790319 [DVR] Recording for job 1766030400-246 from M3U-ADBTuner ch1359 into "TV/WCNC Charlotte at 1100/WCNC Charlotte at 1100 2025-12-17-2300.mpg" for 34m59.07299691s
2025/12/17 23:00:19.301424 [IDX] Generating video index for job 1766030400-246
2025/12/17 23:01:00.004519 [TNR] Closed connection to M3U-ADBTuner for ch1361 CBS (WBTVDT)
2025/12/17 23:01:00.004563 [TNR] Closed connection to M3U-ADBTuner for ch1289 FOXNEWS
2025/12/17 23:01:00.004528 [TNR] Closed connection to M3U-ADBTuner for ch1365 PBS SCETV (WRLKDT)

2025/12/17 22:00:00.001431 [DVR] Starting job 1766026800-222 Gutfeld! on ch=[1289]
2025/12/17 22:00:00.003107 [DVR] Waiting 1h0m0s until next job 1766030400-169 Bill O'Reilly: No Spin News
2025/12/17 22:00:11.230420 [TNR] Opened connection to M3U-ADBTuner for ch1289 FOXNEWS
2025/12/17 22:00:11.232061 [DVR] Recording for job 1766026800-222 from M3U-ADBTuner ch1289 into "TV/Gutfeld!/Gutfeld! 2025-12-17-2200.mpg" for 1h0m59.996845402s
2025/12/17 22:00:11.787187 [IDX] Generating video index for job 1766026800-222
2025/12/17 22:24:35.157167 [DVR] Fetched guide data for XMLTV-SLM in 191ms
2025/12/17 22:24:38.595655 [DVR] Indexed 2472 airings into XMLTV-SLM (51 channels over 144h20m22s) + 1029 skipped [3s index]
2025/12/17 22:24:38.705297 [DVR]   pruned 477 replaced airings in 110ms.
2025/12/17 22:24:39.802997 [DVR] Indexed 3 channels (1008 airings + 0 replaced) with placeholders [1s index]
2025/12/17 22:24:50.728676 [DVR] Waiting 35m9s until next job 1766030400-169 Bill O'Reilly: No Spin News
2025/12/17 23:00:00.014663 [DVR] Starting job 1766030400-169 Bill O'Reilly: No Spin News on ch=[2073]
2025/12/17 23:00:00.925798 [M3U] stream timestamps: plm_0003: start_at=2025-12-17T22:58:55-05:00 end_at=2025-12-17T22:59:49-05:00 live_delay=5.423530891s
2025/12/17 23:00:00.925934 [TNR] Opened connection to M3U-SLMGracenote for ch2073 The First
2025/12/17 23:00:00.926899 [DVR] Recording for job 1766030400-169 from M3U-SLMGracenote ch2073 into "TV/Bill O'Reilly No Spin News/Bill O'Reilly No Spin News 2020-06-01 2025-12-17-2300.mpg" for 1h0m59.966842299s
2025/12/17 23:00:00.926967 [DVR] Starting job 1766030400-246 WCNC Charlotte at 11:00 on ch=[1359]
2025/12/17 23:00:00.927395 [DVR] Waiting 1h54m59s until next job 1766037300-264 Fallen
2025/12/17 23:00:01.460376 [IDX] Generating video index for job 1766030400-169
2025/12/17 23:00:18.766268 [TNR] Opened connection to M3U-ADBTuner for ch1359 NBC (WCNCDT)
2025/12/17 23:00:18.790319 [DVR] Recording for job 1766030400-246 from M3U-ADBTuner ch1359 into "TV/WCNC Charlotte at 1100/WCNC Charlotte at 1100 2025-12-17-2300.mpg" for 34m59.07299691s
2025/12/17 23:00:19.301424 [IDX] Generating video index for job 1766030400-246
2025/12/17 23:01:00.004519 [TNR] Closed connection to M3U-ADBTuner for ch1361 CBS (WBTVDT)
2025/12/17 23:01:00.004563 [TNR] Closed connection to M3U-ADBTuner for ch1289 FOXNEWS
2025/12/17 23:01:00.004528 [TNR] Closed connection to M3U-ADBTuner for ch1365 PBS SCETV (WRLKDT)

2025/12/17 23:59:45	stdout	2025-12-17 23:59:45.330 - maintenance - Skipping keep alive tasks as it's currently the top or middle of the hour.
2025/12/17 23:29:45	stdout	2025-12-17 23:29:45.320 - maintenance - Skipping keep alive tasks as it's currently the top or middle of the hour.
2025/12/17 23:14:44	stdout	2025-12-17 23:14:44.349 - tuner_management - Caching installed apps list for all tuners
2025/12/17 23:01:18	stdout	2025-12-17 23:01:18.364 - tuner_management - [Tune mxxisKMLvzeBU9ya8gBSg2] Cleanup complete. Max-2 (PBS SCETV (WRLKDT))
2025/12/17 23:01:18	stdout	2025-12-17 23:01:18.364 - tuner_management - [Tune mxxisKMLvzeBU9ya8gBSg2] Released tuner (2).
2025/12/17 23:01:17	stdout	2025-12-17 23:01:17.359 - lib.adb - [Tune mxxisKMLvzeBU9ya8gBSg2] ADB: 192.168.1.212 - input keyevent KEYCODE_HOME
2025/12/17 23:01:16	stdout	2025-12-17 23:01:16.342 - lib.adb - [Tune mxxisKMLvzeBU9ya8gBSg2] ADB: 192.168.1.212 - input keyevent KEYCODE_MEDIA_PAUSE
2025/12/17 23:01:14	stdout	2025-12-17 23:01:14.657 - lib.adb - [Tune mxxisKMLvzeBU9ya8gBSg2] ADB: 192.168.1.212 - input keyevent KEYCODE_MEDIA_STOP
2025/12/17 23:01:14	stdout	2025-12-17 23:01:14.657 - tuner_management - [Tune mxxisKMLvzeBU9ya8gBSg2] Using configuration: Deep Links (default, recommended) (8ec77d65-30d6-46a3-8045-282571cff8d8) for channel cleanup.
2025/12/17 23:01:14	stdout	2025-12-17 23:01:14.389 - tuner_management - Releasing tuner: {'lock_obtained': 1766023200, 'tuner_name': 'Max-2', 'name': 'PBS SCETV (WRLKDT)', 'number': 4002, 'provider_name': 'Local YTTV', 'tuner_id': 2, 'channel_id': 109, 'tuning_status': 'tuned', 'request_key': 'mxxisKMLvzeBU9ya8gBSg2', 'target_package': 'com.amazon.firetv.youtube.tv'}
2025/12/17 23:01:14	stdout	2025-12-17 23:01:14.389 - tuner_management - Releasing tuner 2 as it has been inactive for 15 seconds.
2025/12/17 23:01:14	stdout	2025-12-17 23:01:14.388 - tuner_management - [Tune edfNkC3wKGXrYKJQzD4njf] Cleanup complete. Max-3 (CBS (WBTVDT))
2025/12/17 23:01:14	stdout	2025-12-17 23:01:14.388 - tuner_management - [Tune edfNkC3wKGXrYKJQzD4njf] Released tuner (3).
2025/12/17 23:01:13	stdout	2025-12-17 23:01:13.151 - lib.adb - [Tune edfNkC3wKGXrYKJQzD4njf] ADB: 192.168.1.213 - input keyevent KEYCODE_HOME
2025/12/17 23:01:12	stdout	2025-12-17 23:01:12.099 - lib.adb - [Tune edfNkC3wKGXrYKJQzD4njf] ADB: 192.168.1.213 - input keyevent KEYCODE_MEDIA_PAUSE
2025/12/17 23:01:10	stdout	2025-12-17 23:01:10.601 - lib.adb - [Tune edfNkC3wKGXrYKJQzD4njf] ADB: 192.168.1.213 - input keyevent KEYCODE_MEDIA_STOP
2025/12/17 23:01:10	stdout	2025-12-17 23:01:10.600 - tuner_management - [Tune edfNkC3wKGXrYKJQzD4njf] Using configuration: Deep Links (default, recommended) (8ec77d65-30d6-46a3-8045-282571cff8d8) for channel cleanup.
2025/12/17 23:01:10	stdout	2025-12-17 23:01:10.347 - tuner_management - Releasing tuner: {'lock_obtained': 1766019600, 'tuner_name': 'Max-3', 'name': 'CBS (WBTVDT)', 'number': 3355, 'provider_name': 'Local YTTV', 'tuner_id': 3, 'channel_id': 105, 'tuning_status': 'tuned', 'request_key': 'edfNkC3wKGXrYKJQzD4njf', 'target_package': 'com.amazon.firetv.youtube.tv'}
2025/12/17 23:01:10	stdout	2025-12-17 23:01:10.347 - tuner_management - Releasing tuner 3 as it has been inactive for 11 seconds.
2025/12/17 23:01:10	stdout	2025-12-17 23:01:10.346 - tuner_management - [Tune 746mg7SkYuykc3xzTk4Yhv] Cleanup complete. Max-1 (NBC (WCNCDT))
2025/12/17 23:01:10	stdout	2025-12-17 23:01:10.346 - tuner_management - [Tune 746mg7SkYuykc3xzTk4Yhv] Released tuner (1).

2025/12/17 23:01:10	stdout	2025-12-17 23:01:10.107 - server - 
2025/12/17 23:01:09	stdout	2025-12-17 23:01:09.314 - lib.adb - [Tune 746mg7SkYuykc3xzTk4Yhv] ADB: 192.168.1.211 - input keyevent KEYCODE_HOME
2025/12/17 23:01:08	stdout	2025-12-17 23:01:08.372 - lib.adb - [Tune 746mg7SkYuykc3xzTk4Yhv] ADB: 192.168.1.211 - input keyevent KEYCODE_MEDIA_PAUSE
2025/12/17 23:01:07	stdout	2025-12-17 23:01:07.142 - lib.adb - [Tune 746mg7SkYuykc3xzTk4Yhv] ADB: 192.168.1.211 - input keyevent KEYCODE_MEDIA_STOP
2025/12/17 23:01:07	stdout	2025-12-17 23:01:07.142 - tuner_management - [Tune 746mg7SkYuykc3xzTk4Yhv] Using configuration: Deep Links (default, recommended) (8ec77d65-30d6-46a3-8045-282571cff8d8) for channel cleanup.
2025/12/17 23:01:06	stdout	2025-12-17 23:01:06.775 - tuner_management - Releasing tuner: {'lock_obtained': 1766030401, 'tuner_name': 'Max-1', 'name': 'NBC (WCNCDT)', 'number': 3353, 'provider_name': 'Local YTTV', 'tuner_id': 1, 'channel_id': 103, 'tuning_status': 'tuned', 'request_key': '746mg7SkYuykc3xzTk4Yhv', 'target_package': 'com.amazon.firetv.youtube.tv'}
2025/12/17 23:01:06	stdout	2025-12-17 23:01:06.775 - tuner_management - Releasing tuner 1 as it has been inactive for 4 seconds.
2025/12/17 23:01:06	stdout	2025-12-17 23:01:06.774 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Cleanup complete. Max-4 (FOXNEWS)
2025/12/17 23:01:06	stdout	2025-12-17 23:01:06.774 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Released tuner (4).
2025/12/17 23:01:05	stdout	2025-12-17 23:01:05.826 - lib.adb - [Tune NHqALS6wJkD7mquBkU9mqm] ADB: 192.168.1.214 - input keyevent KEYCODE_HOME
2025/12/17 23:01:04	stdout	2025-12-17 23:01:04.760 - lib.adb - [Tune NHqALS6wJkD7mquBkU9mqm] ADB: 192.168.1.214 - input keyevent KEYCODE_MEDIA_PAUSE
2025/12/17 23:01:03	stdout	2025-12-17 23:01:03.304 - lib.adb - [Tune NHqALS6wJkD7mquBkU9mqm] ADB: 192.168.1.214 - input keyevent KEYCODE_MEDIA_STOP
2025/12/17 23:01:03	stdout	2025-12-17 23:01:03.304 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Using configuration: Deep Links (default, recommended) (8ec77d65-30d6-46a3-8045-282571cff8d8) for channel cleanup.
2025/12/17 23:01:02	stdout	2025-12-17 23:01:02.884 - tuner_management - Releasing tuner: {'lock_obtained': 1766026800, 'tuner_name': 'Max-4', 'name': 'FOXNEWS', 'number': 3173, 'provider_name': 'YouTube TV', 'tuner_id': 4, 'channel_id': 33, 'tuning_status': 'tuned', 'request_key': 'NHqALS6wJkD7mquBkU9mqm', 'target_package': 'com.amazon.firetv.youtube.tv'}
2025/12/17 23:01:02	stdout	2025-12-17 23:01:02.884 - tuner_management - Releasing tuner 4 as it has been inactive for 3 seconds.
2025/12/17 23:00:40	stdout	--------------------------------------------------
2/17 23:00:40	stdout	
2025/12/17 23:00:40	stdout	2025-12-17 23:00:40.032 - server - 
2025/12/17 23:00:18	stdout	2025/12/17 23:00:18 [PROXY] 172.20.0.1 -> GET "/proxy/1?requestKey=746mg7SkYuykc3xzTk4Yhv" -> "http://192.168.1.215:8090/stream1"
2025/12/17 23:00:18	stdout	2025-12-17 23:00:18.742 - uvicorn.access - 172.20.0.1:0 - "GET /stream/103 HTTP/1.1" 307
2025/12/17 23:00:18	stdout	2025-12-17 23:00:18.681 - stream - [Tune 746mg7SkYuykc3xzTk4Yhv] Tuning completed after 17.7 seconds. [Tune 746mg7SkYuykc3xzTk4Yhv] Display was off, application (com.amazon.firetv.youtube.tv) was running.
2025/12/17 23:00:18	stdout	2025-12-17 23:00:18.680 - lib.adb - [Tune (746mg7SkYuykc3xzTk4Yhv)] ADB: Closing connection - 192.168.1.211
2025/12/17 23:00:18	stdout	2025-12-17 23:00:18.680 - lib.adb - [Tune (746mg7SkYuykc3xzTk4Yhv)] Detected 100.0% black pixels. Assuming HDCP is active and video is playing.
2025/12/17 23:00:12	stdout	2025-12-17 23:00:12.639 - lib.adb - [Tune (746mg7SkYuykc3xzTk4Yhv)] Checking for profile screen
2025/12/17 23:00:09	stdout	--------------------------------------------------
:09	stdout	
2025/12/17 23:00:09	stdout	2025-12-17 23:00:09.972 - server - 
2025/12/17 23:00:09	stdout	2025-12-17 23:00:09.752 - stream - [Tune 746mg7SkYuykc3xzTk4Yhv] Waiting for playback start. Status: unknown
2025/12/17 23:00:05	stdout	2025-12-17 23:00:05.660 - stream - [Tune 746mg7SkYuykc3xzTk4Yhv] Waiting 3 seconds to allow sleeping device to setup.
2025/12/17 23:00:05	stdout	2025-12-17 23:00:05.358 - lib.adb - [Tune (746mg7SkYuykc3xzTk4Yhv)] ADB: 192.168.1.211 - am start -W -a android.intent.action.VIEW -d 'https://tv.youtube.com/watch/7_0y4TSuSXw' 'com.amazon.firetv.youtube.tv'
2025/12/17 23:00:03	stdout	2025-12-17 23:00:03.436 - lib.adb - [Tune (746mg7SkYuykc3xzTk4Yhv)] ADB: 192.168.1.211 - input keyevent KEYCODE_MEDIA_STOP
2025/12/17 23:00:03	stdout	2025-12-17 23:00:03.436 - stream - [Tune (746mg7SkYuykc3xzTk4Yhv)] Using https://tv.youtube.com/watch/7_0y4TSuSXw to load channel.
2025/12/17 23:00:03	stdout	2025-12-17 23:00:03.342 - lib.adb - [Tune (746mg7SkYuykc3xzTk4Yhv)] ADB: 192.168.1.211 - pidof com.amazon.firetv.youtube.tv
2025/12/17 23:00:01	stdout	2025-12-17 23:00:01.261 - lib.adb - [Tune (746mg7SkYuykc3xzTk4Yhv)] ADB: 192.168.1.211 - input keyevent KEYCODE_WAKEUP
2025/12/17 23:00:01	stdout	2025-12-17 23:00:01.019 - stream - [Tune (746mg7SkYuykc3xzTk4Yhv)] Using channel configuration: Deep Links (default, recommended) (8ec77d65-30d6-46a3-8045-282571cff8d8)
2025/12/17 23:00:01	stdout	2025-12-17 23:00:01.012 - stream - [Tune (746mg7SkYuykc3xzTk4Yhv)] Tuning to NBC (WCNCDT) on Max-1
2025/12/17 23:00:01	stdout	2025-12-17 23:00:01.012 - tuner_management - [Tune 746mg7SkYuykc3xzTk4Yhv] Reserved Tuner: Name: Max-1 Priority: 
2025/12/17 23:00:01	stdout	2025-12-17 23:00:01.012 - tuner_management - [Tune 746mg7SkYuykc3xzTk4Yhv] Using first available tuner (by priority).
2025/12/17 23:00:01	stdout	2025-12-17 23:00:01.011 - tuner_management - [Tune 746mg7SkYuykc3xzTk4Yhv] Name: Max-1 Priority: 
2025/12/17 23:00:01	stdout	2025-12-17 23:00:01.011 - tuner_management - [Tune 746mg7SkYuykc3xzTk4Yhv] Available Tuners:
2025/12/17 23:00:00	stdout	2025-12-17 23:00:00.987 - tuner_management - [Tune 746mg7SkYuykc3xzTk4Yhv] Attempting to reserve tuner for: ['com.amazon.firetv.youtube.tv'].
2025/12/17 23:00:00	stdout	2025-12-17 23:00:00.987 - stream - [Tune (746mg7SkYuykc3xzTk4Yhv)] No active tuners found for NBC (WCNCDT). Reserving a new tuner.
2025/12/17 23:00:00	stdout	2025-12-17 23:00:00.985 - stream - [Tune 746mg7SkYuykc3xzTk4Yhv] 192.168.1.200:5592 | Go-http-client/1.1
2025/12/17 22:59:44	stdout	2025-12-17 22:59:44.428 - maintenance - Skipping keep alive tasks as it's currently the top or middle of the hour.
2025/12/17 22:59:39	stdout	--------------------------------------------------
	stdout	--------------------------------------------------
2025/12/17 22:00:32	stdout	
2025/12/17 22:00:32	stdout	2025-12-17 22:00:32.423 - server - 
2025/12/17 22:00:11	stdout	2025/12/17 22:00:11 [PROXY] 172.20.0.1 -> GET "/proxy/4?requestKey=NHqALS6wJkD7mquBkU9mqm" -> "http://192.168.1.215:8090/stream4"
2025/12/17 22:00:11	stdout	2025-12-17 22:00:11.221 - uvicorn.access - 172.20.0.1:0 - "GET /stream/33 HTTP/1.1" 307
2025/12/17 22:00:11	stdout	2025-12-17 22:00:11.158 - stream - [Tune NHqALS6wJkD7mquBkU9mqm] Tuning completed after 11.11 seconds. [Tune NHqALS6wJkD7mquBkU9mqm] Display was off, application (com.amazon.firetv.youtube.tv) was running.
2025/12/17 22:00:11	stdout	2025-12-17 22:00:11.158 - lib.adb - [Tune (NHqALS6wJkD7mquBkU9mqm)] ADB: Closing connection - 192.168.1.214
2025/12/17 22:00:11	stdout	2025-12-17 22:00:11.157 - stream - [Tune NHqALS6wJkD7mquBkU9mqm] Waiting for playback start. Status: playing
2025/12/17 22:00:11	stdout	2025-12-17 22:00:11.155 - lib.adb - [Tune (NHqALS6wJkD7mquBkU9mqm)] Detected 100.0% black pixels. Assuming HDCP is active and video is playing.
2025/12/17 22:00:05	stdout	2025-12-17 22:00:05.185 - stream - [Tune NHqALS6wJkD7mquBkU9mqm] Waiting 3 seconds to allow sleeping device to setup.
2025/12/17 22:00:04	stdout	2025-12-17 22:00:04.803 - lib.adb - [Tune (NHqALS6wJkD7mquBkU9mqm)] ADB: 192.168.1.214 - am start -W -a android.intent.action.VIEW -d 'https://tv.youtube.com/watch/bdZ5qkAwaXc' 'com.amazon.firetv.youtube.tv'
2025/12/17 22:00:02	stdout	2025-12-17 22:00:02.542 - lib.adb - [Tune (NHqALS6wJkD7mquBkU9mqm)] ADB: 192.168.1.214 - input keyevent KEYCODE_MEDIA_STOP
2025/12/17 22:00:02	stdout	2025-12-17 22:00:02.542 - stream - [Tune (NHqALS6wJkD7mquBkU9mqm)] Using https://tv.youtube.com/watch/bdZ5qkAwaXc to load channel.
2025/12/17 22:00:02	stdout	2025-12-17 22:00:02.363 - lib.adb - [Tune (NHqALS6wJkD7mquBkU9mqm)] ADB: 192.168.1.214 - pidof com.amazon.firetv.youtube.tv
2025/12/17 22:00:02	stdout	--------------------------------------------------
2025/12/17 22:00:02	stdout	N/A
2025/12/17 22:00:02	stdout	Remote User Agent:
2025/12/17 22:00:02	stdout	Bytes Transferred: None
2025/12/17 22:00:02	stdout	Last Seen: N/A
2025/12/17 22:00:02	stdout	Lock Obtained: 2025-12-17 22:00:00 (0.04 minutes ago)
2025/12/17 22:00:02	stdout	Channel: FOXNEWS
2025/12/17 22:00:02	stdout	Tune ID: N/A
2025/12/17 22:00:02	stdout	Tuner "Max-4" is currently in use and locked.
2025/12/17 22:00:02	stdout	--------------------------------------------------
2025/12/17 22:00:02	stdout	
2025/12/17 22:00:02	stdout	--------------------------------------------------
2025/12/17 22:00:02	stdout	Go-http-client/1.1
2025/12/17 22:00:02	stdout	Remote User Agent:
2025/12/17 22:00:02	stdout	Bytes Transferred: 2851526472 (2719.43MB)
2025/12/17 22:00:02	stdout	Last Seen: 2025-12-17 22:00:01 (1.36 seconds ago)
2025/12/17 22:00:02	stdout	Lock Obtained: 2025-12-17 21:00:00 (60.04 minutes ago)
2025/12/17 22:00:02	stdout	Channel: PBS SCETV (WRLKDT)
2025/12/17 22:00:02	stdout	Tune ID: mxxisKMLvzeBU9ya8gBSg2
2025/12/17 22:00:02	stdout	Tuner "Max-2" is currently in use and locked.
2025/12/17 22:00:02	stdout	--------------------------------------------------
2025/12/17 22:00:02	stdout	
2025/12/17 22:00:02	stdout	--------------------------------------------------
2025/12/17 22:00:02	stdout	Go-http-client/1.1
2025/12/17 22:00:02	stdout	Remote User Agent:
2025/12/17 22:00:02	stdout	Bytes Transferred: 5631695100 (5370.8MB)
2025/12/17 22:00:02	stdout	Last Seen: 2025-12-17 22:00:02 (0.36 seconds ago)
2025/12/17 22:00:02	stdout	Lock Obtained: 2025-12-17 20:00:00 (120.04 minutes ago)
2025/12/17 22:00:02	stdout	Channel: CBS (WBTVDT)
2025/12/17 22:00:02	stdout	Tune ID: edfNkC3wKGXrYKJQzD4njf
2025/12/17 22:00:02	stdout	Tuner "Max-3" is currently in use and locked.
2025/12/17 22:00:02	stdout	--------------------------------------------------
2025/12/17 22:00:02	stdout	
2025/12/17 22:00:02	stdout	2025-12-17 22:00:02.362 - server - 
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.383 - lib.adb - [Tune (NHqALS6wJkD7mquBkU9mqm)] ADB: 192.168.1.214 - input keyevent KEYCODE_WAKEUP
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.113 - stream - [Tune (NHqALS6wJkD7mquBkU9mqm)] Using channel configuration: Deep Links (default, recommended) (8ec77d65-30d6-46a3-8045-282571cff8d8)
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.110 - stream - [Tune (NHqALS6wJkD7mquBkU9mqm)] Tuning to FOXNEWS on Max-4
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.110 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Reserved Tuner: Name: Max-4 Priority: 
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.109 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Selecting random tuner
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.109 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Name: Max-4 Priority: 
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.109 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Name: Max-1 Priority: 
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.109 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Available Tuners:
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.055 - tuner_management - [Tune NHqALS6wJkD7mquBkU9mqm] Attempting to reserve tuner for: ['com.amazon.firetv.youtube.tv'].
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.055 - stream - [Tune (NHqALS6wJkD7mquBkU9mqm)] No active tuners found for FOXNEWS. Reserving a new tuner.
2025/12/17 22:00:00	stdout	2025-12-17 22:00:00.052 - stream - [Tune NHqALS6wJkD7mquBkU9mqm] 192.168.1.200:5592 | Go-http-client/1.1
2025/12/17 21:59:43	stdout	2025-12-17 21:59:43.581 - maintenance - Skipping keep alive tasks as it's currently the top or middle of the hour.
2025/12/17 21:59:32	stdout

Thanks for sharing these logs. I'm trying, unsuccessfully so far, to duplicate this.

From your logs:

At 23:01 Channels DVR closed all three of these channels.

2025/12/17 23:01:00.004519 [TNR] Closed connection to M3U-ADBTuner for ch1361 CBS (WBTVDT)
2025/12/17 23:01:00.004563 [TNR] Closed connection to M3U-ADBTuner for ch1289 FOXNEWS
2025/12/17 23:01:00.004528 [TNR] Closed connection to M3U-ADBTuner for ch1365 PBS SCETV (WRLKDT)

ADBTuner then seemingly responded appropriately:

#PBS SCETV (WRLKDT)
2025-12-17 23:01:14.389 - tuner_management - Releasing tuner 2 as it has been inactive for 15 seconds.

#CBS (WBTVDT)
2025-12-17 23:01:10.347 - tuner_management - Releasing tuner 3 as it has been inactive for 11 seconds.

#FOXNEWS
2025-12-17 23:01:02.884 - tuner_management - Releasing tuner 4 as it has been inactive for 3 seconds.

Is this all correct? You had mentioned that the CBS recording included the home screen? Or was it NBC as listed below?


Before all of this, Channels DVR started recording NBC:

2025/12/17 23:00:18.766268 [TNR] Opened connection to M3U-ADBTuner for ch1359 NBC (WCNCDT
)

After about a minute, ADBTuner detected that Channels DVR hadn't streamed any data for 4 seconds and released the tuner.

#NBC (WCNCDT)
2025-12-17 23:01:06.775 - tuner_management - Releasing tuner 1 as it has been inactive for 4 seconds.

This recording should have lasted ~35 minutes.

2025/12/17 23:00:18.790319 [DVR] Recording for job 1766030400-246 from M3U-ADBTuner ch1359 into "TV/WCNC Charlotte at 1100/WCNC Charlotte at 1100 2025-12-17-2300.mpg" for 34m59.07299691s

Does the Channels DVR log include a "Closed connection to M3U-ADBTuner" log entry for this that was excluded from what you had shared? Was the home screen recorded for this after the one minute mark? Or was it CBS, or both?

ONN 4K Streamer is taking a long time (25 seconds) to display. Video is perfect... My Firestick 4K is about 7 seconds. Why the delay? I wanted to move to the Android 14 boxes since the Android 11's are aging. Thanks for any feedback!

Tuner connection did close as expected in the DVR log, but resulted in 1 minute of program and 30 minutes of Firestick home screen.
2025/12/17 23:35:00.000301 [TNR] Closed connection to M3U-ADBTuner for ch1359 NBC (WCNCDT)

Channels recordings last the correct amount of time, the YTTV app just closes to Firestick HomeScreen, and continues to record for the correct duration if another instance of the YTTV ended.

All instances of the YTTV app that are playing or recording to Channels, or the ADBTuner preview quit to the Firestick HomeScreen when any instance of a YTTV stream is closed by ADBTuner or Channels. A single stream will record flawlessly all day long, or two streams will do the same as long as they have the same end time.

I'm using a LinkPi 5 input encoder, with 4 Firestick 4k Max, Like stated earlier this has been rock solid until the upgrade to 2.0. Simultaneous recordings or viewing of up to all four tuners at the same time, nothing has changed on the network or channels schedule. But I do have lots of hours of the Firestick Home screen recorded :frowning: I wish I could be of more help, or had a better technical understanding of what is happening. If I can provide any further data please let me know. Thanks

So from that specific set of logs you had one show recording while three others ended. That one show was interrupted during the time when Channels DVR ended those three recordings. So it could most certainly be a bug in ADBTuner. I just need to figure out how to duplicate it so I can fix it.

Can you try one thing for me, can you add an environment variable to your docker config for ADBTuner? I'd like to see if perhaps Channels stops streaming the video for a few seconds while stopping three unrelated streams simultaneously. It probably doesn't but it would be helpful to confirm.

KNOWN_STREAM_DEFAULT_TIMEOUT=10

How this is done would depend on how you are managing your docker container(s). This will keep the tuner active for 10 seconds after a disconnect which could allow for the client to reconnect before video playback is stopped.

added it, will keep an eye on it.

KNOWN_STREAM_DEFAULT_TIMEOUT=10 added, and I'm now not able to reproduce....fingers crossed.

Which Onn 4k streamer? What app is opening slowly? What ADBTuner configuration are you using for those channels?

1 Like

Got it. Thanks for the extra info.

I think this one is on me for using the "channel number" label and also using it for sorting. The "channel number" label adds confusion because it's natural to try to associate that with a content specific channel number which may not exist.

Since the channel order does matter, we do need to include some sort of sort order field with each channel. In your situation, the sort order is undefined and it's falling back to sorting by the primary key in the database. This works fine with a bulk import, but if someone wanted to later add a channel in the middle of the list then all of the channels after it would have to be deleted and added again to maintain the correct sort order.

I think the right thing to do would be to would be to use the current "channel number" field as an optional "display channel number" that is passed through to the m3u output and then add a secondary sort order field. The sort order field would be optional when adding a channel (it would default to adding the new channel at the end of the list) so you shouldn't have to update any of your scripts to support this.

I will build this out and get some feedback here to make sure it addresses all of the concerns around that field.

@turtletank thanks for you help, all my recordings transitioned as expected this afternoon, and no more recording the Firestick Home Screen. Love your project.

My 2c:

As Channels lets me order channels in a collection, the number AND order of channels are non-issues for me, from ADBTuner. I just want to be able to add/test a channel and info, without going through too many hoops.

I think we're collectively overthinking the sort order here. Sort by number if you have them, or add to bottom if it's missing.

2 Likes

Onn 4K Google TV (Base Model) Running YTTV. Using keep device awake with com.google.android.youtube.tvunplugged. Priority is set at 0 for all 3. Using LinkPi. Update ADBTuner about 10 days ago.

Thanks

1 Like

Ignore, I am being too literal.

1 Like

Agreed. I'd only add that the ability to modify an existing channel that has no channel number, without having to add one to save the edit, is another good reason to make this change.