MLB.TV for Channels

I'm thinking something must be going on anyway. When I try the eplus mlb channels I have to try 2-3 times before it will tune. Feels like something up with a CDN or something...

I just tried pulling the latest version. I believe my docker-compose was correct.

services:
  channels-baseball:
    image: matty8199/channels-baseball:latest
    container_name: channels-baseball
    environment:
      - APP_URL='http://172.16.5.33:8080'
      - LOG_LEVEL='warning'
      - MLB_USERNAME='username'
      - MLB_PASSWORD='userpass'
      - MLB_BITRATE='5600'
      - MLB_PLAYLIST_FIRST_CHANNEL='777'
      - MLB_TEAM_ORDER='NYM,SDP,PIT,LAA,ATL,MIA,PHI,WAS,CHC,CIN,MIL,STL,ARI,COL,LAD,SFG,BAL,BOS,NYY,TBR,TOR,CWS,CLE,DET,KCR,MIN,HOU,OAK,SEA,TEX,MLB'
      - MLB_TIMEZONE='America/Phoenix'
      - MLB_SHOW_TV_FEEDS=true
      - MLB_SHOW_RADIO_FEEDS=false
    ports:
      - 8080:8080
    restart: always
    volumes:
      - storage_app:/var/www/html/storage/app
      - storage_logs:/var/www/html/storage/logs
volumes:
  storage_app:
  storage_logs:

I'm still pulling the same version

1 Like

I was talking about channels dvr version not the baseball docker version. Anyway it doesn’t sound like it was a server update that broke it. Like @slampman says it’s probably a regional cdn issue that will likely resolve with time.

ok, thanks. I'll check again tomorrow to see if stuff have resolved.

im also on 2024.05.07.1442, no issues yesterday.

as i mentioned above, i have no issue with MLB.TV direct on the chromecast or browser. the issue is only when using the Channels "plugin".

Did some sleuthing and the issue stems from the app requesting the radio feed (even when it's disabled in the config). The radio feeds fails to be found, but the error bubbles up and takes down the video stream. Hopefully MLB's radio feed problems fix themselves but if not, the quickest fix is for either @crackers8199 to remove the code that fetches the radio stream in the official image or to patch it manually (it's a bit brute force, but it'll get you back up and running).

2 Likes

l̶o̶o̶k̶i̶n̶g̶ g̶o̶o̶d̶ t̶h̶i̶s̶ a̶m̶, s̶o̶ m̶a̶y̶b̶e̶ w̶h̶a̶t̶e̶v̶e̶r̶ t̶h̶e̶ i̶s̶s̶u̶e̶ w̶a̶s̶ r̶e̶s̶o̶l̶v̶e̶d̶ o̶v̶e̶r̶ n̶i̶g̶h̶t̶. g̶u̶e̶s̶s̶ i̶'l̶l̶ f̶i̶n̶d̶ o̶u̶t̶ f̶o̶r̶ s̶u̶r̶e̶ i̶n̶ 9̶0̶m̶i̶n̶.

[2024-06-26 07:45:49] local.INFO: cache middleware for team: SEA
[2024-06-26 07:45:49] local.WARNING: media id not cached, attempting to retrieve it
[2024-06-26 07:45:49] local.INFO: getMediaId: http://statsapi.mlb.com/api/v1/schedule
[2024-06-26 07:45:49] local.ERROR: game not yet started, sending off air stream
[2024-06-26 07:45:49] local.INFO: cache middleware for team: SEA
[2024-06-26 07:45:49] local.DEBUG: using mediaId from session: offAir
[2024-06-26 07:45:49] local.DEBUG: using radioMediaId from session:
[2024-06-26 07:45:49] local.DEBUG: offAir status expires at: 2024-06-26 09:00:00
[2024-06-26 07:45:59] local.INFO: cache middleware for team: SEA
[2024-06-26 07:45:59] local.DEBUG: using mediaId from session: offAir
[2024-06-26 07:45:59] local.DEBUG: using radioMediaId from session:
[2024-06-26 07:45:59] local.DEBUG: offAir status expires at: 2024-06-26 09:00:0

edit:

scratch that, the feed is now returning the same errors as yesterday:

[2024-06-26 09:06:03] local.WARNING: stream url not cached, attempting to retrieve it
[2024-06-26 09:06:03] local.DEBUG: https://edge.svcs.mlb.com/media/bf6f1194-47a6-4bd8-9048-7bc05616cd90/scenarios/browser~csai
[2024-06-26 09:06:03] local.DEBUG: getStreamUrl https://edge.svcs.mlb.com/media/bf6f1194-47a6-4bd8-9048-7bc05616cd90/scenarios/browser~csai
[2024-06-26 09:06:03] local.INFO: using existing bamgrid token
[2024-06-26 09:06:37] local.DEBUG: request exception getting stream url, code: 404
[2024-06-26 09:06:37] local.DEBUG: request exception getting stream url, message: {"errors":["media.not-playable"]}
[2024-06-26 09:06:37] local.ERROR: unknown error

I just checked today and I'm still getting the same errors. I was hoping it would resolve itself today.

2024/06/26 12:03:31.107592 [ERR] Failed to start stream for ch788.1: M3U: Stream Not Available
2024/06/26 12:03:31.107592 [HLS] Couldn't generate stream playlist for ch788.1-dANY-ip172.16.5.2: M3U: Stream Not Available
2024/06/26 12:03:31.107592 [HLS] Stopping transcoder session ch788.1-dANY-ip172.16.5.2 (out=0s finished=false first_seq=0 last_seq=-1)

It will keep trying to reconnect but after a few tries it just shuts off.

Mabey try removing this part of the environments

- MLB_SHOW_RADIO_FEEDS=false

Something is weird with your channel numbers with the point 1 (788.1). I would think with the radio feed being false there should be no .1 channel numbers. Remove that line in the environments. :crossed_fingers:

So I checked on the mlb docker logs and this is what I found.

[2024-06-26 12:17:47] local.WARNING: media id not cached, attempting to retrieve it  
[2024-06-26 12:17:47] local.WARNING: media id: 16497084-b5eb-4554-8a7c-35015478fa50  
[2024-06-26 12:17:47] local.WARNING: radio media id: 2cbee94e-8c4b-49b5-be40-e1a666ac9731  
[2024-06-26 12:17:47] local.WARNING: stream url not cached, attempting to retrieve it  
[2024-06-26 12:17:48] local.WARNING: stream url: https://hlslive-akc-ewr1.media.mlb.com/hdnts=exp=1719515871~acl=/*/2024/06/26/Away_VIDEO_eng_Atlanta_Braves_St_Louis_C_20240626_1719416733071/*~id=00upy8v9t5kjzhh4i357~data=16497084-b5eb-4554-8a7c-35015478fa50~hmac=743959dc75ecf56fbe3916178c4fbf6c11e9faf61f2e19190527e434883a42c2/c74d0bac9645f02d440ef75462a54a08/va01/mlb/2024/06/26/Away_VIDEO_eng_Atlanta_Braves_St_Louis_C_20240626_1719416733071/master_desktop_complete.m3u8  
[2024-06-26 12:17:48] local.WARNING: stream url not cached, attempting to retrieve it  
[2024-06-26 12:17:48] local.ERROR: unknown error  

media id not cached, is that supposed to happen?

as @nilephant hinted at previously, its probably best to wait for the Developer to weigh in at this point. youre not the only one with the issue since yesterday.

Thanks, I did remove the radio feed, rebuilt it, but it still has my channels as .1 I think I will try removing both the radio and video feed part of the environment and see if it will re do my channel numbers.

Here is what my environments looks like and it is working

You also need to reload the m3u in the dvr and probably need to delete and recreate the guide database for the channels to show correct

Yup, that's how mine looks like too. I checked on the http://172.16.5.33:8080 and I see both the playlist and epg data, that's how I know that It recreated the channels with the same .1
for example:

#EXTM3U #EXTINF:-1, channel-id="mlb-nym" channel-number="777.1" tvg-id="mlb-nym" tvg-name="NYM" tvg-logo="http://172.16.5.33:8080/images/channel-logos/nym.png", New York Mets http://172.16.5.33:8080/playlist/NYM

Mabey try rolling back to 1.8.3?? I am on an older one I guess

That did it, going back to 1.8.3 did the trick. Have to remember not to update.

Same...

I just rolled back from matty8199/channels-baseball:latest to matty8199/channels-baseball:1.8.8 and it seems to be working again...

2 Likes

yeah this is definitely broken for some reason now.