Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A quick look suggests that there are two issues. The one jgshier discovered seems to occur when games are postponed, as both the PIT-DET and WSH-CIN games were yesterday. A totally separate issue is that MLB changed one of the URLs for getting stream data. I'll work something up ASAP.
A quick look suggests that there are two issues. The one jgshier discovered seems to occur when games are postponed, as both the PIT-DET and WSH-CIN games were yesterday. A totally separate issue is that MLB changed one of the URLs for getting stream data. I'll work something up ASAP.
Thank you for the work you've done. For me as a new baseball fan it's just great to find a tool by randomly browsing github supporting native media players. It's an even greater joy to see the actual development and debugging of this tool unfold at the same time I was downloading it and trying to get it to work.
I just made it run on my Mac but I've experienced the same problems with the postponed games mentioned earlier. An earlier recording is running perfectly in MPV.
A quick look suggests that there are two issues. The one jgshier discovered seems to occur when games are postponed, as both the PIT-DET and WSH-CIN games were yesterday. A totally separate issue is that MLB changed one of the URLs for getting stream data. I'll work something up ASAP.
Okay I just added a fix for the postponed games to the pull request I've created earlier. Both PIT - DET and WSH - CIN are working for me now and are streaming.
Thanks to everyone working on fixing this to work for this season. I have one question, though: previously the HLS streams contained all available audio streams for that team: TV broadcast, spanish TV, radio, spanish radio, and park audio (when available). The streams being produced out of streamlink only contain, as far as I can tell, a single audio stream. Is this due to a change on MLB's end or something in streamlink that in muxing the streams is stripping away all but the primary audio?
Edit: It appears this is a function of streamlink that it only passes one video and one audio stream from any source. That's unfortunate, because with something like ffmpeg we'd have "-map 0" to copy all streams. "--hls-audio-select" exists as a streamlink option but it's unclear how to use it here. Again, it would be best to just have streamlink copy all streams and allow the user to select which one they want which is extremely easy to do in VLC or really any other media player.
Thanks much to everyone for the bug reports and especially the pull requests. Everything looks great on my end now. Really nice to be able to watch the Phillies game after a long day of traveling without having to fix more bugs.
The second "bug" I noticed this morning seems to not actually be a problem. The web interface does seem to be using a different URL now for one of the components, but the old URL seems to be working. Might switch to the new one just in case they disable the old one, but things look great for now.
To those who have open pull requests / issues -- I'll be getting to those ASAP. Should have more time to play with this stuff when I return home next week.
For those asking for home/away stream selection, my latest commit should allow you to pass a team code in and it should play the stream for that team, if available. Not extensively tested, but works for me so far.
x-9er, I feel your pain re: the missing radio/natural sound streams. I always liked to switch over to radio to hear their calls of the games from time to time. I haven't looked closely at the HLS plugin for streamlink yet to see what would need to be done to fix it, but if nobody else gets around to it, I'll take a look.
x-9er, I feel your pain re: the missing radio/natural sound streams. I always liked to switch over to radio to hear their calls of the games from time to time. I haven't looked closely at the HLS plugin for streamlink yet to see what would need to be done to fix it, but if nobody else gets around to it, I'll take a look.
...where the ffmpeg_options need to include "map -0" or something along those lines. The problem is if there's a weird extra track that isn't video *or* audio that ffmpeg won't know how to handle, though there's another ffmpeg flag that can be added to have it ignore that.
Previously, mlbhls just stitched together the HLS packets without doing anything else to them so whatever was contained inside the stream came along with it.
Long time user of mlbviewer (starting with the initial season when MLB moved to Silverlight, making this project necessary). Thanks to daftcat for all of his work over the years and now tonycpsu and others for picking up on this new project. It sounds promising.
Now that it appears that I need to learn how to do something other than 'svn up' to get this working for 2018, I have an honest question - in what scenarios are people using this for? I'm in no way questioning the need for this project, I'm just honestly curious and sort of polling the community. I've found over the years, between my roku and AtBat app, the need to watch on my computer itself has greatly diminished, and when I do watch on my computer, the browser player now seems to work OK on Linux. The one thing I liked about mlbviewer/mplayer instead of the browser is that I could pick a player size somewhere between regular and full-screen, and it was outside of a Firefox session so it wouldn't interfere with any web browsing you were doing. To me, that alone would be enough if my computer was my primary viewer for games.
Anyway, I probably will try to start using this new solution simply because I like to tinker and play with new things - just want to hear from others.
I have an honest question - in what scenarios are people using this for?
I like to watch all of my favorite team's games. But I don't have the time to do it in real time. And while I love baseball, sitting through a four hour game in front of a screen feels quite boring to me.
So I save the streams to my computer and then use the fast forward feature of my video player a lot to skip dead time. This allows me to watch a game in 30 to 45 minutes.
I do the same with NFL Gamepass, but that allows me to do that kind of fast forwarding with my cursor keys directly in the web player and it even is surprisingly and impressively fast. Sadly, the MLB.TV player does not have the same functionality.
Basically, what mkomko said. I have a Roku as well, but I've pretty much seen every pitch of every Phillies game in the past few years, something that would be impossible if I were watching the games on TV or having to use the browser interface and its crude seek controls. A lot of times I end up multi-tasking the game along with whatever my wife wants to watch on the big TV. I also play fantasy baseball, and with mlbviewer (and now mlbstreamer) I can watch multiple game streams simultaneously to check in on how my players are doing. (I actually have another app that I use to manage my fantasy teams that has the ability to launch an mlbiewer stream from the MLB standings screen, but I haven't replaced that code with mlbstreamer yet.)
Oh, and the MLB.tv browser interface chews a *lot* of resources. I have a pretty high-end Macbook Pro and it's just so slow. With MPV and mlbviewer/mlbstreamer, I can literally watch a dozen games at once.
Menawhile, there are a lot of other possible features that I have yet to integrate but hope to. MLB tracks timestamps of every individual play, and I'd like to add the ability to advance batter-by-batter or even pitch-by-pitch. The former was actually part of the MLB.tv web interface at one time, and getting that back would be great. The latter would just make it even easier to seek than it already is.
...where the ffmpeg_options need to include "map -0" or something along those lines. The problem is if there's a weird extra track that isn't video *or* audio that ffmpeg won't know how to handle, though there's another ffmpeg flag that can be added to have it ignore that.
Previously, mlbhls just stitched together the HLS packets without doing anything else to them so whatever was contained inside the stream came along with it.
The effect of the --hls-audio-select option can be seen in line 393-397 of hls.py. The documentation states this option takes a locale but it can be seen from the code that in fact it can also take a stream name. The three audio stream names that MLB.TV currently supplies are "English" (which is the main TV feed), "Natural Sounds" (which seems intended to be the uncommentated "park" sounds), and "English Radio" (which seems to be intended to be the English radio commentary). There is no Spanish channel that I can see on any of this year's audio channels.
However choosing these alternative feeds seems to make no difference to the audio output, which seems to be the main TV commentary in all three cases. I am therefore not certain that MLV.TV actually provides audio overlay at present this year. It doesn't appear on this years browser interface for example, whereas it was on last years browser interface when using HLS.
Does anyone have something like a Roku or X box which actually provides audio overlay or spanish channels this year?
I have a Roku and the alternate audio has been available for the regular season. The other day I watched Fox Sports Detroit and listened to WXYT. I prefer radio audio to the tv stuff since it's usually more descriptive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.