MLB.TV for Channels

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....

1 Like

Tuner sharing is not optional for dvr based streams. If the log says it's sharing tuners then it is definitely sharing the stream. You can confirm using lsof to see what connections are active to the docker container and from where.

I'll try running lsof to see what is happening when some games come on. If tuner sharing is working though then there should be no difference in playing a live stream vs playing a recording in progress. Clearly there is an issue though as I had up to 6 streams running for an hour playing the recording progress and 3 streams died after 5 min when I selected the channel from the guide.

I'm not sure what you're referring to here.

Perhaps your clients are not set to Home Streaming Quality: Original

1 Like

It's set to original but I may have found something. I think my ssd datastore that docker is on just crapped out. I've got errors in vsphere now and can't access the VM anymore. It may have been dying for the last few days and finally just gave out. Let me recreate the docker server and try again.

Sorry for the fire drill

Closing the loop on this one. It was in fact the storage failing on my esxi server. I guess recording the game somehow masked the issue. Maybe I didn't see the glitches that way or something. I moved the VM to another host and all is well. Sorry for the confusion.

3 Likes

I'm running Channels on a Pi. Will it run an on Pi? (linux)

i know the underlying issue here has been figured out, but the answer to this question as far as i can tell is no. i've had it running in tivimate with 7 games up at the same time with no issues.

also, sorry for the delay in responding here: mets were in SD so i was down there at all four games and obviously as such didn't have much time to check the forum.

1 Like

LOL! It's why we do what we do....

i'm not a docker expert, but i don't see why not.

Ok, build a standalone Ubuntu VM today and installed docker. "Installed docker" is a euphamism, it's really easy to do, and leave it in a way that the instructions won't work.

Having said that, I GOT IT TO WORK! Cool.

Now I want to ask: Is there ANYONE on this thread that's gotten it to run on Docker on a Raspberry Pi?

1 Like

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

I got that, too, never really got an answer. People think it should work, but haven't found an example of it working and I'm brand spanking new to docker.

First of all I just want to say thanks... this is awesome! It also made me learn how to use Docker and some new skills so kudos for that too. My only question is if it is possible to have the games show up in the on now tab in the sports category?