LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-31-2014, 01:57 PM   #4366
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76

Quote:
Originally Posted by dapperdan View Post
Recent adopter of MLBviewer. Not sure how many kin Iíll have here, but Iím running Mac OS X 10.9.2 with MLBviewer revision 590 and mlbhls revision 67 with the video player mpv v0.3.6--which, as I understand it, is the successor to mplayer2--built with ffmpeg 2.2. I quite like the setup overall, but Iím having the seeking problems that others have described. When watching nexdef streams using MLBviewer, Iím unable to seek. But using the following options; which daftcat offered in response to kermitfan22 last August (on page 279); I can get a stream that is seekable by mpv and vlc (I canít get mplayer2 to build):


python mlbplay.py v=team j=mm/dd/yy n=1 nu=1

[aHR0...]

mlbhls -B [aHR0...] -L -s 4500000 -f 1 -o video.ts

mpv video.ts


Iíd like to get a seekable stream from MLBviewer even if that means using -f instead of -F in the mlbhls options and losing support for inning selection. Alternatively, Iíve looked at fang2415ís patch to mlb.c in mlbhls, but I donít know how it works, or Iím implementing it incorrectly (I donít code) because the streams from MLBviewer remain unseekable. Though I am able to seek (using mpv or vlc) in the following file:

mlbhls -B [aHR0...] -L -s 4500000 -F "hh:mm:ss" -o video.ts

I'd greatly appreciate any pointers, especially re fang2415's patch to -F and the way that MLBviewer uses -F
I'm also curious about the extent of adoption of mpv.
mlbhls is not my code. I recommend trying to send fang2415 a private message to see if he can explain the patch to you. I am hesitant to fix anything around mlbhls right now as MLBAM says there will be a new player that does away with the Nexdef plugin. I do not know if that means they'll do away with the HLS streams or if they are integrating an HLS client into the Flash application.

As for mpv, if it accepts playing a stream from standard input (e.g. "mplayer2 -"), you should be able to just change the video_player= line in ~/.mlb/config to use mpv instead of mplayer.
 
Old 03-31-2014, 02:01 PM   #4367
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by mosi76 View Post
Hello everyone.

I have been reading through the forum and looking online and was wondering if anyone could point me to a post or an article that could help a relative linux noob set this up for the upcoming season. I am not completely helpless but am relatively new to linux.

I am currently running Linux Mint and have mlb.tv premium.

If the articles from 2012 are still accurate I can follow those but I am not sure if they are still applicable.

Thanks in advance.

Mosi

There's an INSTALL file and a wiki page on Sourceforge (http://sourceforge.net/p/mlbviewer/wiki/Home/)

If either of those are incomplete, let me know so I can update them. I'd rather have a good Wiki page than have to answer this question several times a season.
 
Old 03-31-2014, 03:17 PM   #4368
dapperdan
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
mlbhls is not my code. I recommend trying to send fang2415 a private message to see if he can explain the patch to you. I am hesitant to fix anything around mlbhls right now as MLBAM says there will be a new player that does away with the Nexdef plugin. I do not know if that means they'll do away with the HLS streams or if they are integrating an HLS client into the Flash application.

As for mpv, if it accepts playing a stream from standard input (e.g. "mplayer2 -"), you should be able to just change the video_player= line in ~/.mlb/config to use mpv instead of mplayer.
Thanks. mpv works fine with video_player=mpv in ~/.mlb/config; it's just that I can't seek in the streams sent to it by mlbviewer.py or mlbplay.py, whereas I can seek in the MPEG-TS output file generated when I run mlbhls manually. I can manage that way until we see what MLBAM does; though I prefer the curses GUI

Wondering how many people will adopt mpv (fork of mplayer2 and MPlayer) since mplayer2 development seems to have stopped.
 
Old 03-31-2014, 04:53 PM   #4369
charlie460
LQ Newbie
 
Registered: Aug 2011
Posts: 29

Rep: Reputation: Disabled
The new player is live on the MLB site. RTMP streams are no longer officially available in the player. HLS support is now built in to the flash player. This is very disappointing, the extra delay with HLS really stinks.
 
Old 03-31-2014, 08:08 PM   #4370
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by charlie460 View Post
The new player is live on the MLB site. RTMP streams are no longer officially available in the player. HLS support is now built in to the flash player. This is very disappointing, the extra delay with HLS really stinks.
However, RTMP streams still appear to work via mlbviewer. Am I missing something?
 
Old 03-31-2014, 08:10 PM   #4371
charlie460
LQ Newbie
 
Registered: Aug 2011
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
However, RTMP streams still appear to work via mlbviewer. Am I missing something?
Yeah, perhaps I could have phrased that a bit better. RTMP is working fine but I'm assuming this will not last, since PC was the only platform it was used on... feel free to voice your displeasure on the MLB.TV support forums:

http://www.forums.mlb.com/n/pfx/foru...lp01&tid=23276

and @MLBFanSupport on Twitter.
 
Old 04-01-2014, 01:58 AM   #4372
mkomko
Member
 
Registered: Mar 2010
Posts: 68

Rep: Reputation: 0
Ah damn...I loved the RTMP streams! I don't get why they need this NexDef/HLS crap at all - just provide a normal, I don't know, 5000kbps RTMP stream and everyone is happy.

I guess now we have to focus on how to get a normally seekable stream out of HLS...I gotta try fang2415's mlbhls patch.

Last edited by mkomko; 04-01-2014 at 02:04 AM.
 
Old 04-01-2014, 10:29 AM   #4373
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
Quote:
Originally Posted by dapperdan View Post
I'd greatly appreciate any pointers, especially re fang2415's patch to -F and the way that MLBviewer uses -F
I'm also curious about the extent of adoption of mpv.
Yeesh, now I need to figure out how to apply my own patch! (I don't code much either )

I think that what you'll need to do is to download the patch file I posted on page 288, as well as an up-to-date mlbhls source directory. Then do this:
Code:
cd /path/to/mlbhls/source/directory
patch < /path/to/patchfile
Hopefully, that'll do the trick. You can check it by doing
Code:
grep 'k=0' mlb.c
If it worked, the output should be 'int s, q=0, k=0;'.

Once you've got that, recompile mlbhls (type "make" from the source dir), and move the resulting "mlbhls" file to wherever your old one lived (probably something like /usr/bin/mlbhls).

That should make mlbhls -F grab the same streams as the corresponding -f does. If not then let me know what happens and I may be able to remember some clues about how to help debug it...
 
Old 04-01-2014, 01:45 PM   #4374
dapperdan
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
Quote:
If it worked, the output should be 'int s, q=0, k=0;'.
I seem to have applied it correctly, but -F doesn't seem to be the root of the problem that I've been having. It's probably just some very basic difference between playing the http live stream as stdout from mlbhls (via the "-o -" option that mlbMediaStream.py uses) and playing a local MPEG-TS file (e.g. generated by "-o local_file.ts") that I'm not understanding because I'm new to this. If I change "-o -" to "-o local_file.ts" in mlbMediaStream.py, then MLBviewer generates a fully seekable file, whereas the stream from "-o -" returns to the beginning when I try to seek. I can't check it right now, but maybe I just need to tell mpv more about the stream it's receiving by enabling some demuxer option or something. In which case, sorry for my ignorance, but thanks to everyone nonetheless.
 
Old 04-01-2014, 05:42 PM   #4375
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by dapperdan View Post
I seem to have applied it correctly, but -F doesn't seem to be the root of the problem that I've been having. It's probably just some very basic difference between playing the http live stream as stdout from mlbhls (via the "-o -" option that mlbMediaStream.py uses) and playing a local MPEG-TS file (e.g. generated by "-o local_file.ts") that I'm not understanding because I'm new to this. If I change "-o -" to "-o local_file.ts" in mlbMediaStream.py, then MLBviewer generates a fully seekable file, whereas the stream from "-o -" returns to the beginning when I try to seek. I can't check it right now, but maybe I just need to tell mpv more about the stream it's receiving by enabling some demuxer option or something. In which case, sorry for my ignorance, but thanks to everyone nonetheless.
You really should not change the "-" in mlbMediaStream.py. Even though I don't officially support downloading, there is "hidden" support for it in prepareFilename() in that file. Just read some of the comments in that routine and change your video_player= command to use those "%" flags as needed. There's an argument for mplayer/mplayer2 to write a stream to file. Search the online docs for it and mangle your video_player= line instead of the mlbhls line in my code.

Also, finding an mplayer2 binary might be easier than trying to sort this out with mpv. I'm at work right now so I can't test seeking but I'll have a look into mpv tonight perhaps.
 
Old 04-01-2014, 07:36 PM   #4376
kweisen
Member
 
Registered: May 2006
Location: Stewartsville, NJ
Distribution: fedora 14 & MInt 15
Posts: 50

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
Also, late last season I added "Free Game Of The Day" support. So all season long, whenever you see "[FREE]", that means you don't need an MLB.TV subscription to watch it. Just make sure you have your mlb.com (free registration) user= and pass= in your config.
Thanks for this additonal feature - very nice!
 
Old 04-01-2014, 09:59 PM   #4377
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Unrelated question: How many of you are Spotify subscribers? I just discovered pyspotify last night and I am strongly considering a mlbviewer/mlbclassics type interface for Spotify.
 
Old 04-01-2014, 10:04 PM   #4378
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Also, first look at mpv. Seeking seems to work okay for me. It takes a second or two to resume playback (probably re-fetching cache) but audio and video are in sync when playback resumes. Looks like I have already patched my mlbhls, though.
 
Old 04-02-2014, 08:48 AM   #4379
manny1407
LQ Newbie
 
Registered: Apr 2014
Posts: 1

Rep: Reputation: Disabled
When I tried to install mlbhls I got

gcc -O2 mlb.c utils.c output.c -lm -lcrypto -lpthread -lconfig -lcurl -o mlbhls
mlb.c: In function ‘mlb_refresh_playlists_thread’:
mlb.c:460:6: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘size_t’ [-Wformat]
 
Old 04-02-2014, 10:01 AM   #4380
mgoetze
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Rep: Reputation: Disabled
Basic is working for me, and Nexdef used to work, but hasn't been working since the middle of last season. I've finally looked into this, and when I try with nexdefdl.py I get...

[MLB] (CURL ERR) SSL certificate problem: self signed certificate in certificate chain (URL: https://mlb-ws.mlb.com/pubajaxws/bam...00&sessionKey=...)

I couldn't care less about their cert so I tried creating a ~/.curlrc with contents "insecure", but that didn't fix it. Anything else I can do?
 
  


Reply

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM


All times are GMT -5. The time now is 09:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration