LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-19-2018, 11:28 AM   #5131
Johnnt
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Rep: Reputation: Disabled

Quote:
Originally Posted by tonycpsu View Post
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.
 
Old 04-19-2018, 11:52 AM   #5132
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Quote:
Originally Posted by Johnnt View Post
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?
 
Old 04-20-2018, 12:34 AM   #5133
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 04-20-2018, 06:27 PM   #5134
fang2415
Member
 
Registered: Jan 2007
Posts: 195

Rep: Reputation: 15
Quote:
Originally Posted by tonycpsu View Post
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!
 
Old 04-21-2018, 03:12 PM   #5135
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: several
Posts: 90

Rep: Reputation: Disabled
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
Any idea?
 
Old 04-21-2018, 03:18 PM   #5136
mkomko
Member
 
Registered: Mar 2010
Posts: 97

Rep: Reputation: 3
Quote:
Originally Posted by larshenric View Post
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:

Any idea?
Looks like your pip is broken.
 
1 members found this post helpful.
Old 04-21-2018, 03:25 PM   #5137
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: several
Posts: 90

Rep: Reputation: Disabled
Thanks for replying! :-)
I thought of that, too. So I uninstalled and reinstalled, but the same problem... :-(
 
Old 04-21-2018, 03:33 PM   #5138
mkomko
Member
 
Registered: Mar 2010
Posts: 97

Rep: Reputation: 3
Quote:
Originally Posted by larshenric View Post
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?

Or have you tried googling your problem? https://stackoverflow.com/questions/...port-name-main
 
Old 04-21-2018, 03:44 PM   #5139
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: several
Posts: 90

Rep: Reputation: Disabled
I un- and reinstalled pip again, and now I get this:
Quote:
lars@acer:~$ pip install mlbstreamer
Requirement already satisfied: mlbstreamer in ./.local/lib/python2.7/site-packages (0.0.8)
Requirement already satisfied: lxml in ./.local/lib/python2.7/site-packages (from mlbstreamer) (4.2.1)
Requirement already satisfied: pyyaml in ./.local/lib/python2.7/site-packages (from mlbstreamer) (3.12)
Requirement already satisfied: py-dateutil in ./.local/lib/python2.7/site-packages (from mlbstreamer) (2.2)
Requirement already satisfied: six in ./.local/lib/python2.7/site-packages (from mlbstreamer) (1.11.0)
Requirement already satisfied: urwid in ./.local/lib/python2.7/site-packages (from mlbstreamer) (2.0.1)
Requirement already satisfied: pytz in ./.local/lib/python2.7/site-packages (from mlbstreamer) (2018.4)
Requirement already satisfied: tzlocal in ./.local/lib/python2.7/site-packages (from mlbstreamer) (1.5.1)
Requirement already satisfied: orderedattrdict in ./.local/lib/python2.7/site-packages (from mlbstreamer) (1.5)
Requirement already satisfied: streamlink>=0.11.0 in ./.local/lib/python2.7/site-packages (from mlbstreamer) (0.11.0)
Requirement already satisfied: urwid-utils>=0.1.2 in ./.local/lib/python2.7/site-packages (from mlbstreamer) (0.1.2)
Requirement already satisfied: prompt-toolkit in ./.local/lib/python2.7/site-packages (from mlbstreamer) (1.0.15)
Requirement already satisfied: requests in ./.local/lib/python2.7/site-packages (from mlbstreamer) (2.18.4)
Requirement already satisfied: panwid>=0.2.3 in ./.local/lib/python2.7/site-packages (from mlbstreamer) (0.2.3)
Requirement already satisfied: pymemoize in ./.local/lib/python2.7/site-packages (from mlbstreamer) (1.0.2)
Requirement already satisfied: backports.shutil-which in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (3.5.1)
Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (1.6.8)
Requirement already satisfied: futures in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (3.2.0)
Requirement already satisfied: pycryptodome<4,>=3.4.3 in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (3.6.1)
Requirement already satisfied: iso-639 in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (0.4.5)
Requirement already satisfied: singledispatch in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (3.4.0.3)
Requirement already satisfied: websocket-client in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (0.47.0)
Requirement already satisfied: iso3166 in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (0.8)
Requirement already satisfied: backports.shutil-get-terminal-size in ./.local/lib/python2.7/site-packages (from streamlink>=0.11.0->mlbstreamer) (1.0.0)
Requirement already satisfied: wcwidth in ./.local/lib/python2.7/site-packages (from prompt-toolkit->mlbstreamer) (0.1.7)
Requirement already satisfied: idna<2.7,>=2.5 in ./.local/lib/python2.7/site-packages (from requests->mlbstreamer) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in ./.local/lib/python2.7/site-packages (from requests->mlbstreamer) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python2.7/site-packages (from requests->mlbstreamer) (2018.4.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.local/lib/python2.7/site-packages (from requests->mlbstreamer) (3.0.4)
Requirement already satisfied: raccoon==2.1.5 in ./.local/lib/python2.7/site-packages (from panwid>=0.2.3->mlbstreamer) (2.1.5)
Requirement already satisfied: blist in ./.local/lib/python2.7/site-packages (from panwid>=0.2.3->mlbstreamer) (1.3.6)
Requirement already satisfied: tabulate in ./.local/lib/python2.7/site-packages (from raccoon==2.1.5->panwid>=0.2.3->mlbstreamer) (0.8.2)
lars@acer:~$ mlbplay --init-config
mlbplay: Befehl nicht gefunden.
Comand not found... Hm...

Last edited by larshenric; 04-21-2018 at 03:52 PM.
 
Old 04-22-2018, 08:23 PM   #5140
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Quote:
Originally Posted by larshenric View Post
I un- and reinstalled pip again, and now I get this:

Comand not found... Hm...
Make sure ~/.local/bin is in your PATH, or run mlbplay with the full path, which should be ~/.local/bin/mlbplay
 
Old 04-23-2018, 12:16 AM   #5141
jowski
Member
 
Registered: Aug 2007
Posts: 117

Rep: Reputation: 9
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.

Jim
 
Old 04-23-2018, 12:33 AM   #5142
jowski
Member
 
Registered: Aug 2007
Posts: 117

Rep: Reputation: 9
Quote:
Originally Posted by tonycpsu View Post
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.

Jim
 
Old 04-23-2018, 09:17 AM   #5143
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Quote:
Originally Posted by jowski View Post
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.

Jim
Works for me -- was this while the game was streaming live?

Please run with the -v (verbose) argument, and if you see this error again, please send me the error you get.

Thanks.
 
Old 04-23-2018, 12:37 PM   #5144
jowski
Member
 
Registered: Aug 2007
Posts: 117

Rep: Reputation: 9
Quote:
Originally Posted by tonycpsu View Post
Works for me -- was this while the game was streaming live?

Please run with the -v (verbose) argument, and if you see this error again, please send me the error you get.

Thanks.
mlbplay -v -s /video/det.mlb -d 2018-04-22 det -b T1
usage: mlbplay [-h] [-d DATE] [-g GAME_NUMBER] [-b [offset_from_game_start]]
[-r RESOLUTION] [-s [SAVE_STREAM]] [-v] [--init-config]
[game]
mlbplay: error: argument -b/--beginning: invalid int value: 'T1'
 
Old 04-23-2018, 12:57 PM   #5145
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Quote:
Originally Posted by jowski View Post
mlbplay -v -s /video/det.mlb -d 2018-04-22 det -b T1
usage: mlbplay [-h] [-d DATE] [-g GAME_NUMBER] [-b [offset_from_game_start]]
[-r RESOLUTION] [-s [SAVE_STREAM]] [-v] [--init-config]
[game]
mlbplay: error: argument -b/--beginning: invalid int value: 'T1'
Ah, my guess is you're running from the version in PyPI, which doesn't contain the new inning feature.

Try pip install -U git+https://github.com/tonycpsu/mlbstreamer/ or wait until I can push a new release to PyPI.
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration