MLB.TV for Channels

I had seen this happen occasionally when I was first testing, but not recently...it usually happens when the login info gets out of sync.

you should be able to fix it with this command (which will refresh your login credentials):

docker exec -it channels-baseball rm -rf /var/www/html/storage/app/*

that should take care of it, but I would restart the container just to be safe to make sure you clear any potential cached login info.

I haven't seen that happen but I'll keep an eye on it...anything in the container logs?

Sorry I forgot how to view those. Do u know the command offhand?

Thanks very much, that took care of it.

1 Like
docker exec -it channels-baseball cat /var/www/html/storage/logs/laravel.log

I just put the Padres game on to test and both ATV's say connection lost
This is from channels logs, looks like 5:37 the stream quit:

Blockquote
2021/06/02 17:23:23.681091 [M3U] stream timestamps: mlb-chc: start_at=2021-06-02T13:19:56-04:00 current_at=2021-06-02T17:23:03-04:00 end_at=2021-06-02T17:23:13-04:00
2021/06/02 17:23:23.681141 [TNR] Opened connection to M3U-mlbtv for ch20008 Chicago Cubs
2021/06/02 17:23:45.738347 [TNR] Closed connection to M3U-mlbtv for ch20008 Chicago Cubs
2021/06/02 17:23:49.957444 [TNR] Sharing existing connection to M3U-mlbtv for ch20005 San Diego Padres (clients=2, len=0)
2021/06/02 17:37:04.605949 [TNR] Closed connection to M3U-mlbtv for ch20005 San Diego Padres

This is from docker:

Blockquote
[2021-06-02 17:35:53] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:35:53] local.INFO: end of playlist detected
[2021-06-02 17:35:53] local.INFO: playlist processing completed
[2021-06-02 17:35:55] local.INFO: cache middleware for team: SDP
[2021-06-02 17:35:55] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:35:55] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:35:55] local.INFO: playlist request received: SDP
[2021-06-02 17:35:55] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:35:55] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:35:55] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:35:55] local.INFO: end of playlist detected
[2021-06-02 17:35:55] local.INFO: playlist processing completed
[2021-06-02 17:35:57] local.INFO: cache middleware for team: SDP
[2021-06-02 17:35:57] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:35:57] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:35:57] local.INFO: playlist request received: SDP
[2021-06-02 17:35:57] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:35:57] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:35:57] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:35:57] local.INFO: end of playlist detected
[2021-06-02 17:35:57] local.INFO: playlist processing completed
[2021-06-02 17:35:59] local.INFO: cache middleware for team: SDP
[2021-06-02 17:35:59] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:35:59] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:35:59] local.INFO: playlist request received: SDP
[2021-06-02 17:35:59] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:35:59] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:35:59] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:35:59] local.INFO: end of playlist detected
[2021-06-02 17:35:59] local.INFO: playlist processing completed
[2021-06-02 17:36:02] local.INFO: cache middleware for team: SDP
[2021-06-02 17:36:02] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:36:02] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:36:02] local.INFO: playlist request received: SDP
[2021-06-02 17:36:02] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:36:02] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:36:02] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:36:02] local.INFO: end of playlist detected
[2021-06-02 17:36:02] local.INFO: playlist processing completed
[2021-06-02 17:36:05] local.INFO: cache middleware for team: SDP
[2021-06-02 17:36:05] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:36:05] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:36:05] local.INFO: playlist request received: SDP
[2021-06-02 17:36:05] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:36:05] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:36:05] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:36:05] local.INFO: end of playlist detected
[2021-06-02 17:36:05] local.INFO: playlist processing completed
[2021-06-02 17:36:07] local.INFO: cache middleware for team: SDP
[2021-06-02 17:36:07] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:36:07] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:36:07] local.INFO: playlist request received: SDP
[2021-06-02 17:36:07] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:36:07] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:36:07] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:36:07] local.INFO: end of playlist detected
[2021-06-02 17:36:07] local.INFO: playlist processing completed
[2021-06-02 17:36:10] local.INFO: cache middleware for team: SDP
[2021-06-02 17:36:10] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:36:10] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:36:10] local.INFO: playlist request received: SDP
[2021-06-02 17:36:10] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:36:10] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:36:10] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:36:10] local.INFO: end of playlist detected
[2021-06-02 17:36:10] local.INFO: playlist processing completed
[2021-06-02 17:37:03] local.INFO: cache middleware for team: SDP
[2021-06-02 17:37:03] local.INFO: cache middleware for team: SDP
[2021-06-02 17:37:03] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:37:03] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:37:03] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.INFO: playlist request received: SDP
[2021-06-02 17:37:03] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.INFO: cache middleware for team: SDP
[2021-06-02 17:37:03] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.INFO: playlist request received: SDP
[2021-06-02 17:37:03] local.INFO: cache middleware for team: SDP
[2021-06-02 17:37:03] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:37:03] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:37:03] local.INFO: playlist request received: SDP
[2021-06-02 17:37:03] local.INFO: cache middleware for team: SDP
[2021-06-02 17:37:03] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.INFO: playlist request received: SDP
[2021-06-02 17:37:03] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:37:03] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.INFO: playlist request received: SDP
[2021-06-02 17:37:03] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.INFO: cache middleware for team: SDP
[2021-06-02 17:37:03] local.DEBUG: using mediaId from session: a1f5c718-5805-48ff-81c5-3d1951215d72
[2021-06-02 17:37:03] local.DEBUG: using streamUrl from session: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.INFO: playlist request received: SDP
[2021-06-02 17:37:03] local.DEBUG: parseStream: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/master_desktop_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: processPlaylist: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/
~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:03] local.DEBUG: opened playlist https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1622755058~acl=/*~id=00uly7cpdzvl6fqpi356~data=a1f5c718-5805-48ff-81c5-3d1951215d72~hmac=e9d33173a81535eb341335fcb49269a9b1d29b70eef594afe18b9f78a3e44132/665f70338cf45cbf5e4f037f4e959c63/ls01/mlb/2021/06/02/Away_VIDEO_spa_San_Diego_Padres_Chicago__20210602_1622652609070/5600K/5600_complete.m3u8
[2021-06-02 17:37:04] local.INFO: end of playlist detected
[2021-06-02 17:37:04] local.INFO: playlist processing completed

that looks like channels is just quitting the stream for some reason. nothing in those docker logs from the container indicate that it had any issues loading the stream.

Diagnostics from the dvr right after this happens will show us the hls client logs on the dvr side.

1 Like

I'll try that next time it happens. The wierd thing is that it seems to only happen when 2 ATV'S are playing the same source. In the server logs it says that it is sharing the connection so I would think that wouldn't be a problem. Sometimes it freezes and recovers and other times it freezes and then says connection lost.

@tmm1 Just turned on the Nats game and it plays fine on ATV with channels. I opened up the same stream on my other ATV with the mlbtv app for refrence. then I opened the channels app on my android and opened the same mlb feed. As soon as I did that my ATV (using channels) started freezing, then my android started freezing. It doesn't happen all the time but it will happen periodically. The stream never crashed this time but it was really degraded. I submitted logs 0692d790-06e5-4da5-b2dd-492d995124d7 right after.

The ATV running the mlbtv app natively, the stream was fine.

Seems the issue only happens when the connection is shared with channels.

2021/06/03 12:48:39.636286 [TNR] Sharing existing connection to M3U-mlbtv for ch20000 Washington Nationals (clients=2, len=0)

Hmm. Is there any restriction from MLB.tv (on their server side) about concurrent streams accessed this way?

update: I just opened 3 streams and got the ATV client to dump out of the stream.
logs: 81d6e965-8caf-4cd6-9085-371e9ee43082 .

It is definitely a sharing issue. Even though the channels log shows that it is sharing the connection I'm not sure that it is. As a workaround I recorded the game, then I played it back on 4 devices simultaneously (choosing watch recording and not live). No issues whatsoever doing this.

I did notice that even with 1 stream the docker container is going between 5-30% cpu. I'm wondering if each stream is pulling from the docker container? My docker server is spec's pretty high so I don't think its a resource issue, I just think channels is duplicating the stream and not sharing.

nah I can open the the mlb app on that many devices..

Sorry to ask the obvious, but is "Tuner Sharing" enabled on your clients under Settings > Advanced?

I thought tuner sharing was only for HDHR? Let me enable and check to see if it behaves the same

Nah with tuner sharing enabled, the CPU the docker container starts getting hammered with additional clients. Even with one stream the docker CPU is high...

1 Like

Another update. It seems the docker container cannot handle more than 1 stream and even that sometimes freezes. When that happens the CPU usage for the docker image goes to zero for about 30 seconds and then after that it will start spiking again and the stream will recover on android but crash on ATV.

This screenshot above is from a single stream. The CPU goes back and forth between 0 and 30% sometimes peaking to 50%. When I start additional streams it goes north from there. I had my docker linux VM on my ESXi server allocated with 6 procs so I doubled that but it didn't make a difference. I know that Docker doesn't limit the image CPU and my VM has plenty of headroom.

So I guess my questions are:
Should the container CPU be spiking this excessively for a single stream? If I open a Pluto stream, the docker CPU for that image (same server that the mlb image is on) never goes above 1%. Wondering if mlb is doing something different?
@tmm1 The logs indicate sharing the connection but Channels is clearly starting a new stream with each client accessing the m3u8 stream, is this normal?

I just opened 4 streams to plus recording the same game and they are definitely "proxied" ("tuner shared") through channels. My mlb-channels-docker isn't even reachable from my local network as it is on a different machine on another network. (had to patch the docker-img btw to pull the logos from a different url - that's why I was asking if there was a repo somewhere to commit to/branch from).

I didn't set up any tuner sharing in any of my clients - and I am not using any transcoding (maybe that's the issue here?)
Yet - regardless if I stream through FireTV, TS4K and VLC channels log says:
2021/06/03 22:09:57.349017 [TNR] Sharing existing connection to M3U-MLB for ch7777 Cincinnati Reds (clients=3, len=0)

I can confirm that the docker contains eats up ~30% of my CPU every few seconds, but overall my server load (where the mlb-docker runs) is low. ~ .15-.2 - and it's a small VM with only one core that doesn't do much else.
Load on my pi, the channels server in the lan - serving those streams, plus recording another show, plus running a commercial detection is pretty high though - ~3 :slight_smile:

PS: I also ran netstat and didn't see any new connections opened on my mlb-server - I might have missed s.th. though - gotta run

Will this work on a Raspian build? I'm getting errors that it's looking for ARM and not AMD.

Yeah my log shows the same thing that the connection is shared but I'm pretty sure it isn't.

2021/06/03 12:48:39.636286 [TNR] Sharing existing connection to M3U-mlbtv for ch20000 Washington Nationals (clients=2, len=0)

I have my docker server running on an esxi Ubuntu VM with 8GB RAM and 12 cores. The docker server, channels DVR, and all ATV's are hard wired to the same gigabit switch on the same VLAN. I can repeat the issue of the stream bombing out when I connect more than 1 client. I can repeat it quickly if I connect 3+ clients. If I record the game and have the clients play while recording then I can connect 5+ clients with no hiccup. I know its not an issue with my ISP, I have business fiber and can open the mlb app and play the stream direct with no issues at all. confusing....