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.
First of all, thank you for the help! :-)
Up to now I got at least mlbstreamer running. Now, starting a game this happens:
Quote:
lars@acer:~$ ~/.local/bin/mlbstreamer
Traceback (most recent call last):
File "/home/lars/.local/bin/mlbstreamer", line 11, in <module>
sys.exit(main())
File "/home/lars/.local/lib/python2.7/site-packages/mlbstreamer/__main__.py", line 409, in main
state.loop.run()
File "/home/lars/.local/lib/python2.7/site-packages/urwid/main_loop.py", line 286, in run
self._run()
File "/home/lars/.local/lib/python2.7/site-packages/urwid/main_loop.py", line 384, in _run
self.event_loop.run()
File "/home/lars/.local/lib/python2.7/site-packages/urwid/main_loop.py", line 788, in run
self._loop()
File "/home/lars/.local/lib/python2.7/site-packages/urwid/main_loop.py", line 825, in _loop
self._watch_files[fd]()
File "/home/lars/.local/lib/python2.7/site-packages/urwid/raw_display.py", line 404, in <lambda>
event_loop, callback, self.get_available_raw_input())
File "/home/lars/.local/lib/python2.7/site-packages/urwid/raw_display.py", line 502, in parse_input
callback(processed, processed_codes)
File "/home/lars/.local/lib/python2.7/site-packages/urwid/main_loop.py", line 411, in _update
self.process_input(keys)
File "/home/lars/.local/lib/python2.7/site-packages/urwid/main_loop.py", line 511, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "/home/lars/.local/lib/python2.7/site-packages/urwid/wimp.py", line 648, in keypress
return self._current_widget.keypress(size, key)
File "/home/lars/.local/lib/python2.7/site-packages/urwid/container.py", line 1590, in keypress
key = self.focus.keypress(tsize, key)
File "/home/lars/.local/lib/python2.7/site-packages/urwid/container.py", line 1590, in keypress
key = self.focus.keypress(tsize, key)
File "/home/lars/.local/lib/python2.7/site-packages/urwid/container.py", line 2271, in keypress
key = w.keypress((mc,) + size[1:], key)
File "/home/lars/.local/lib/python2.7/site-packages/mlbstreamer/__main__.py", line 323, in keypress
self.watch(self.table.selection.data.game_id)
File "/home/lars/.local/lib/python2.7/site-packages/mlbstreamer/__main__.py", line 334, in watch
self.toolbar.start_from_beginning,
File "/home/lars/.local/lib/python2.7/site-packages/mlbstreamer/play.py", line 154, in play_stream
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden
lars@acer:~$
First of all, thank you for the help! :-)
Up to now I got at least mlbstreamer running. Now, starting a game this happens:
For me this is chinese... ;-)
Looks like it's not finding the streamlink executable, which should be in the same path as mlbplay. It's probably best to put ~/.local/bin in your PATH, e.g.:
I'm quite unsure... I have to put exactly that into terminal?
You can do that in the terminal window before run mlbplay, or you can put it in your shell startup file (usually .bashrc by default) so that ~/.local/bin is in your PATH variable by default.
Also it would probably be better to look into the file .bash_profile in you home directory, there is most likely an PATH export there already, just adding it to there would make it global for all you terminal windows.
An Example:
Code:
bash$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
[bash]$
Last edited by friggo; 04-24-2018 at 10:29 AM.
Reason: add some info about .bash_profile
Hey all, super new to this so bear with me as I have a bunch of different questions.
With mlbstreamer, would there be a way to create a stream of the file that I could connect to remotely? Currently mlb.tv doesn't work at my location, but I have a headless server that has no restrictions and I can connect to files on it via vlc.
If I used the -s option to create a file of the mlb.tv streams would I be able to watch those on the fly so I could basically catch the games live via the file? or would that not work?
Can you use the -s command and -r command in conjunction with each other?
Is there a way to do the initial config without a media player installed?
Is there a way to do what I want to in a different way?
Hey all, super new to this so bear with me as I have a bunch of different questions.
With mlbstreamer, would there be a way to create a stream of the file that I could connect to remotely? Currently mlb.tv doesn't work at my location, but I have a headless server that has no restrictions and I can connect to files on it via vlc.
Many years ago I played around with VLC re-encoding and re-streaming input files, but I don't remember the details. This page has some examples, none of which I've tried, but should help you get started.
Quote:
Originally Posted by swetz
If I used the -s option to create a file of the mlb.tv streams would I be able to watch those on the fly so I could basically catch the games live via the file? or would that not work?
Yeah, that's pretty much what I do. MPV seems to handle watching files as they're being written to just fine. Not sure about other media players.
Quote:
Originally Posted by swetz
Can you use the -s command and -r command in conjunction with each other?
Yes, that should work fine as well.
Quote:
Originally Posted by swetz
Is there a way to do the initial config without a media player installed?
I hadn't really considered that, but I suppose in the situation where you want to run headless and watch from somewhere else, that would be useful. Go ahead and file an issue on GitHub and I'll see what I can do.
I'm trying to start not from the beginning with this:
And I get this:
Any idea?
Please see my response upthread to another user with the same issue. Until this feature is released to PyPI, you have to install from github to get it.
Yeah, that's pretty much what I do. MPV seems to handle watching files as they're being written to just fine. Not sure about other media players.
I forgot a few details. I'm doing this over http. I use a seedbox with whatbox and access their files via a http web directory. I open the file .ts as it's being populated on windows via vlc. What happens is that the file opens but only contains the amount of time in the video from when I opened it. it doesn't seem to want to add the new data to the end of it.
I forgot a few details. I'm doing this over http. I use a seedbox with whatbox and access their files via a http web directory. I open the file .ts as it's being populated on windows via vlc. What happens is that the file opens but only contains the amount of time in the video from when I opened it. it doesn't seem to want to add the new data to the end of it.
Also, I'll check that link! Thanks!
OK I have no experience with seedbox/whatbox, and can't vouch for VLC doing the smart thing when it's reading files from mlbstreamer. I just know mpv handles it properly when reading from a normal local filesystem. Once you have more moving parts in your workflow, I'm afraid you're on your own if things don't work optimally.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.