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.
BTW, is anyone having success getting alternative audio? I'm not to sure why I'm not getting another audio other than the TV feed
Yes it works fine, apart from the fact that sometimes the radio audio is a little out of sync. Probably you are not using ffmpeg-4, or have an insufficiently recent version of streamlink.
Yes it works fine, apart from the fact that sometimes the radio audio is a little out of sync. Probably you are not using ffmpeg-4, or have an insufficiently recent version of streamlink.
Using "--hls-audio-select", '"*"' in your play.py? Or another method?
/usr/bin/ffmpeg40 is a script which starts ffmpeg-4.0, which is installed in /opt/ffmpeg40 - you don't want to interfere with your distribution's version.
I do not know what you man by 'play.py' - I use mlbplay.py. Possibly you are using the wrong program. Try mlbplay.py and see if that works.
For what it is worth, my streamlink_args are
/usr/bin/ffmpeg40 is a script which starts ffmpeg-4.0, which is installed in /opt/ffmpeg40 - you don't want to interfere with your distribution's version.
There is no mlbplay.py in the current mlbstreamer package... mlbplay.py was part of the old, no longer functioning mlbviewer.
There is no mlbplay.py in the current mlbstreamer package... mlbplay.py was part of the old, no longer functioning mlbviewer.
OK I see at least part of what you are doing wrong. The python script installed in /usr/bin is /usr/bin/mlbplay, not /usr/bin/mlbplay.py (my mistake on that). You should be starting /usr/bin/mlbplay, not trying to invoke play.py directly. More generally, read the README.md file in the mlbstreamer package which tells you how to set up and start the program.
You also need to set your streamlink_args in $HOME/.config/mlbstreamer/config.yaml and you need to have a ffmpeg-4.0 binary in your path or identified by the --ffmpeg-ffmpeg option, and the ffmpeg-4.0 libraries in a directory appearing in /etc/ld.so.conf or set LD_LIBRARY_PATH (which is what my /usr/bin/ffmpeg40 script does).
OK I see at least part of what you are doing wrong. The python script installed in /usr/bin is /usr/bin/mlbplay, not /usr/bin/mlbplay.py (my mistake on that). You should be starting /usr/bin/mlbplay, not trying to invoke play.py directly. More generally, read the README.md file in the mlbstreamer package which tells you how to set up and start the program.
You also need to set your streamlink_args in $HOME/.config/mlbstreamer/config.yaml and you need to have a ffmpeg-4.0 binary in your path or identified by the --ffmpeg-ffmpeg option, and the ffmpeg-4.0 libraries in a directory appearing in /etc/ld.so.conf or set LD_LIBRARY_PATH (which is what my /usr/bin/ffmpeg40 script does).
That's... exactly what I am already doing. There should not be a functional difference between editing the config file streamlink_args and doing it directly in play.py, which gets called by the linked binary anyway.
to config.yaml does result in a somewhat different output, however, --hls-audio-select "*" returns nothing at all but the bash prompt. But I could already get one alternate audio channel by putting it in play.py.
OK, I see one of the problems. The Spanish language radio is titled "Radio Espaņola" in the playlist, which results in python reporting thusly
"UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 108: ordinal not in range(128)"
position 108 is the ņ...
There is a streamlink patch for this near the end of https://github.com/tonycpsu/mlbstreamer/issues/1 which doesn't seem to have found it's way into git . Or you could use python-3 instead of python-2.7. Or you could mux in only the english radio stream, which is what I do and which your subsequent posting does.
There is a streamlink patch for this near the end of https://github.com/tonycpsu/mlbstreamer/issues/1 which doesn't seem to have found it's way into git . Or you could use python-3 instead of python-2.7. Or you could mux in only the english radio stream, which is what I do and which your subsequent posting does.
oh jeez i see people already went through everything i was discussing above. i feel pretty dumb for not checking that now.
oh jeez i see people already went through everything i was discussing above. i feel pretty dumb for not checking that now.
Well it was me who reported the issue. I didn't think it was your problem here, because you said that you could only receive the TV feed. If you run up against python-2.7's difficulty with unicode, you get nothing at all: it just crashes. It doesn't bother me because I am not interested in the spanish feed.
Edit: I have never tried the patch, so I cannot comment on your freeze.
Edit2: Try it without debugging enabled. That may be the cause of the problem.
Honestly after rebuilding everything to use python3 it has stopped working more or less entirely if I have any streamlink_args at all, now it just freezes. Works fine without them, though, which will have to suffice for me now.
Honestly after rebuilding everything to use python3 it has stopped working more or less entirely if I have any streamlink_args at all, now it just freezes. Works fine without them, though, which will have to suffice for me now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.