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.
Anyone else seeing this exception occasionally from streamlink when watching a game?
Code:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Users/tonyc/.pyenv/versions/3.6.4/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/Users/tonyc/.pyenv/versions/3.6.4/lib/python3.6/site-packages/streamlink/stream/segmented.py", line 161, in run
self.write(segment, result)
File "/Users/tonyc/.pyenv/versions/3.6.4/lib/python3.6/site-packages/streamlink/stream/hls.py", line 133, in write
self.reader.buffer.write(pkcs7_decode(decrypted_chunk))
File "/Users/tonyc/.pyenv/versions/3.6.4/lib/python3.6/site-packages/streamlink/stream/hls.py", line 29, in pkcs7_decode
raise StreamError("Input is not padded or padding is corrupt, got padding size of {0}".format(val))
streamlink.exceptions.StreamError: Input is not padded or padding is corrupt, got padding size of 131
I get it somewhat often -- maybe 2-3 times during a typical game. Since mlbplay is calling streamlink as a shell command I'm not sure there's much I can do other than relaunch when the exit code isn't zero.
I've seen it a couple of times but now I use mlbstreamer just to obtain streamlink command and run it manually. I haven't seen this error since that time.
I've seen it a couple of times but now I use mlbstreamer just to obtain streamlink command and run it manually. I haven't seen this error since that time.
That's very odd, as there should be no difference between streamlink being opened as a subprocess by mlbstreamer and you running it from your shell. Can you let me know in the future if you see it happen from the shell?
I just pushed some changes to support inning selection in mlbplay. The -b option can now be used to select a half-inning, e.g.
Code:
mlbplay phi -b T3
to start at the top of the 3rd, or B3 to start at the bottom of the third. It's only been lightly tested, but it seems to work for me. If anyone wants to give it a whirl, install from Github and let me know how it's working. If it looks good I'll push another release to PyPI.
I just pushed some changes to support inning selection in mlbplay. The -b option can now be used to select a half-inning, e.g.
Code:
mlbplay phi -b T3
to start at the top of the 3rd, or B3 to start at the bottom of the third. It's only been lightly tested, but it seems to work for me. If anyone wants to give it a whirl, install from Github and let me know how it's working. If it looks good I'll push another release to PyPI.
Wow, awesome, great work! It's working for me with a few archived games, including the tenth inning in one that went to extras!
Thanks again tonycpsu for all your work on this! I kind of can't believe how quickly this has all come together even after BAM changed everything. Great job tony and everyone who has contributed!
Hello!
I haven't been here for a long time because mlbviewer was running very smart. :-)
Now I tried to install mlbstreamer (thanks a lot for the work!!) I get this message:
Quote:
lars@acer:~$ pip install mlbstreamer
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
Hello!
I haven't been here for a long time because mlbviewer was running very smart. :-)
Now I tried to install mlbstreamer (thanks a lot for the work!!) I get this message:
Thanks for replying! :-)
I thought of that, too. So I uninstalled and reinstalled, but the same problem... :-(
Well, can you install any other package with your pip? If it's a general problem you might be better served looking for a solution in your distro's forum.
But maybe someone else here knows something that could help?
Another thing to try is 'pip install --upgrade pip' followed by 'pip install -U mlbstreamer'.
On a separate issue; has anyone gotten mlbplay to work on a raspberryPi using omxplayer? I've gotten mpv to work but can't get it to respond to keyboard commands.
I just pushed some changes to support inning selection in mlbplay. The -b option can now be used to select a half-inning, e.g.
Code:
mlbplay phi -b T3
to start at the top of the 3rd, or B3 to start at the bottom of the third. It's only been lightly tested, but it seems to work for me. If anyone wants to give it a whirl, install from Github and let me know how it's working. If it looks good I'll push another release to PyPI.
It burped for me with the following command line: 'mlbplay -s /video/det.mlb -d 2018-04-22 det -b T1'
I was trying to save the video from the beginning of the game itself after skipping the pregame stuff.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.