LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-07-2016, 06:35 AM   #4771
dysonsphere23
LQ Newbie
 
Registered: Mar 2016
Posts: 4

Rep: Reputation: Disabled

Quote:
Originally Posted by daftcat View Post
# rm -rf /usr/bin/mlbhls
# mv /usr/local/bin/mlbhls /root
# cd /root/mlbhls
# make
# chmod +x mlbhls
# cp mlbhls /usr/bin
great, thanks. that got it working. i had to install the development packages for openssl, libconfig, and curl for the make command to work.

i hate to keep bugging you, but there is one more thing:

with the HD stream running I am unable to navigate through the video in mpv player as i was able to with the SD stream (archived games). is that an issue with the stream itself, or is there something i can do to fix that?

thanks again
 
Old 03-07-2016, 10:56 AM   #4772
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Is there a way to get closed captions with mlbviewer? I'm having trouble getting the new league video working and have to go to the old viewer to get caps and I'd love to be able to just use mlbviewer.
 
Old 03-07-2016, 06:30 PM   #4773
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by dysonsphere23 View Post
great, thanks. that got it working. i had to install the development packages for openssl, libconfig, and curl for the make command to work.

i hate to keep bugging you, but there is one more thing:

with the HD stream running I am unable to navigate through the video in mpv player as i was able to with the SD stream (archived games). is that an issue with the stream itself, or is there something i can do to fix that?

thanks again

That may be an issue with the stream itself. Can you search this thread for "seek stream mlbhls"?
 
Old 03-07-2016, 06:32 PM   #4774
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
Is there a way to get closed captions with mlbviewer? I'm having trouble getting the new league video working and have to go to the old viewer to get caps and I'd love to be able to just use mlbviewer.
No idea. Try the SD and the HD streams and I think (?) it's the 'v' key in the video player that turns on subtitles (if present in the stream.) If they are not in the stream and somehow downloaded out-of-band, I don't have the time to look into this.
 
Old 03-07-2016, 06:39 PM   #4775
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Just another quick message.

My new job is way more time intensive than it has been in prior years and leaves me with little time (or desire) for personal programming.

As long there are no architecture changes, I think I can keep up with a bug fix here or there.

But new development (or re-working mlbclassics with V3 API) is likely not going to happen until I can strike a better work-health-life balance.
 
Old 03-08-2016, 02:26 AM   #4776
mkomko
Member
 
Registered: Mar 2010
Posts: 97

Rep: Reputation: 3
Quote:
Originally Posted by daftcat View Post
My new job is way more time intensive than it has been in prior years and leaves me with little time (or desire) for personal programming.
But new development (or re-working mlbclassics with V3 API) is likely not going to happen until I can strike a better work-health-life balance.
Keep striving for a better balance, I wish you all the best for that! I know how important it is.
 
Old 03-08-2016, 03:33 PM   #4777
fang2415
Member
 
Registered: Jan 2007
Posts: 195

Rep: Reputation: 15
Just wanted to chime in at this point for my periodic thank-you to daftcat for all the work on taking a great application so far. I'm always kind of amazed that anybody can find the time for that level of work on a project like this, so thank you again. I hope the Python skillz you've gained through all this mlbviewer development have led to your new work situation paying you lots of money! And that with time you'll be able to both make lots of money *and* have time for personal programming projects...

Meantime, hopefully the rest of us will be able to lend a hand to help keep things running. Does anybody know if there are instructions anywhere on the best way to submit patches?
 
Old 03-31-2016, 04:25 PM   #4778
chrisVV
Member
 
Registered: Aug 2010
Posts: 378

Rep: Reputation: 200Reputation: 200Reputation: 200
It seems that stream changes have struck us. The nexdef stream seems now to be stuck at 800kb/S and the rtmp stream doesn't work at all, as of this afternoon. They worked OK yesterday.

Hi-def using the flash plugin works OK so presumably the stream URLs have changed somewhat.
 
Old 04-01-2016, 12:48 AM   #4779
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by chrisVV View Post
It seems that stream changes have struck us. The nexdef stream seems now to be stuck at 800kb/S and the rtmp stream doesn't work at all, as of this afternoon. They worked OK yesterday.

Hi-def using the flash plugin works OK so presumably the stream URLs have changed somewhat.
When reporting streaming issues, please indicate the game and the stream: nexdef/rtmp/speed/any other details that could spare us this turnaround delay.

I tried a couple streams and had no problems with rtmp.

You may be right about the HLS (nexdef) streams but we may be out of luck. It depends on how involved the fix may be and whether thegryghost wants to do one more fix for us or if it's time someone stepped up and took over mlbhls support.

I got no time or desire to debug this tonight. Probably not until the weekend.

If someone else wants to take a stab,

mlbplay nu=1 n=1 v=ana

That will give you a base64 string.

aHR0cDovL21sYmxpdmUtbDNjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDE2LzA0LzAxL01MQl9HQU1FX1ZJREVPX0FOQUxBTl9WSVNJ VF8yMDE2MDQwMS9tYXN0ZXJfd2lyZWQubTN1OHw0WkM4Y1ZhRENkMlVsOWN6eUowQ1JFY1JNOHc9fHBsYXliYWNrPUhUVFBfQ0xP VURfV0lSRUQmY29udGVudElkPTU2ODQwNzI4MyZhcHBBY2NvdW50TmFtZT1tbGImZXZlbnRJZD0xNC00NjYwMDUtMjAxNi0wMy0z MSZpcGlkPTEyMjYzNTE3JnNlc3Npb25LZXk9WFl6a3NkNWxvRE9MVGVtZUg5ZjdXNDVRNjgwJTNE

Code:
>> import base64
>> base64.b64decode('aHR0cDovL21sYmxpdmUtbDNjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDE2LzA0LzAxL01MQl9HQU1FX1ZJREVPX0FOQUxBTl9WSVNJVF8yMDE2MDQwMS9tYXN0ZXJfd2lyZWQubTN1OHw0WkM4Y1ZhRENkMlVsOWN6eUowQ1JFY1JNOHc9fHBsYXliYWNrPUhUVFBfQ0xPVURfV0lSRUQmY29udGVudElkPTU2ODQwNzI4MyZhcHBBY2NvdW50TmFtZT1tbGImZXZlbnRJZD0xNC00NjYwMDUtMjAxNi0wMy0zMSZpcGlkPTEyMjYzNTE3JnNlc3Npb25LZXk9WFl6a3NkNWxvRE9MVGVtZUg5ZjdXNDVRNjgwJTNE')
'http://mlblive-l3c.mlb.com/ls04/mlbam/2016/04/01/MLB_GAME_VIDEO_ANALAN_VISIT_20160401/master_wired.m3u8|4ZC8cVaDCd2Ul9czyJ0CREcRM8w=|playback=HTTP_CLOUD_WIRED&contentId=568407283&appAccountName=mlb&eventId=14-466005-2016-03-31&ipid=12263517&sessionKey=XYzksd5loDOLTemeH9f7W45Q680%3D'

wget the master_wired.m3u8 and cat it:

#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=2121091,RESOLUTION=640x360,CODECS="mp4a.40.2,avc1.4d001f"
1800K/1800_complete.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=985571,RESOLUTION=512x288,CODECS="mp4a.40.2,avc1.42c01e"
800K/800_complete.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1425340,RESOLUTION=640x360,CODECS="mp4a.40.2,avc1.4d001f"
1200K/1200_complete.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2908735,RESOLUTION=960x540,CODECS="mp4a.40.2,avc1.4d001f"
2500K/2500_complete.m3u8
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2900000,CODECS="avc1.4d001f",RESOLUTION=960x540,URI="2500K/2500_complete_iframe.m3u8"
#EXT-X-STREAM-INF:BANDWIDTH=4023049,RESOLUTION=1280x720,CODECS="mp4a.40.2,avc1.640028"
3500K/3500_complete.m3u8
All those bandwidths look like garbage. That's one thing.

If you use mlbhls directly with debug enabled:

and....aha... this all works if you enable adaptive streaming because the speeds are all garbage. That was kind of an accidental discovery right now.

Code:
./mlbhls -d -B $(../mlbviewer2014/mlbplay.py nu=1 n=1 v=ana) -s 1200000 -m 1200000 -b 4800000 -o /dev/null
I'm just going to leave all of this here as debug instructions because I'm too damn tired to re-compose this tonight.
 
Old 04-01-2016, 12:56 AM   #4780
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
TLDR; rtmp works for me, nexdef needs a slight tweak

For nexdef, change or add to your config file:

adaptive_stream=1

The nexdef stream speeds in the m3u8's (the segment playlists consumed by mlbhls) are all garbage today. Not sure if this will continue to be an issue.

Also, make sure your min_bps and max_bps allow for some garbage. I would choose the following:

min_bps=1200
max_bps=5000

This of course will make your window resize as the streams change speed so be sure to include a fullscreen option for your video player (mplayer -fs or mpv -fs.) I can't speak for vlc.

We may not get "adaptive_stream=0" (stream speed locking) back without a patch to mlbhls. I'll look more this weekend.
 
Old 04-01-2016, 01:35 AM   #4781
mkomko
Member
 
Registered: Mar 2010
Posts: 97

Rep: Reputation: 3
The RTMP streams work for me too...phew! Let's hope it stays that way (forever).
 
Old 04-01-2016, 06:52 AM   #4782
chrisVV
Member
 
Registered: Aug 2010
Posts: 378

Rep: Reputation: 200Reputation: 200Reputation: 200
Quote:
Originally Posted by mkomko View Post
The RTMP streams work for me too...phew! Let's hope it stays that way (forever).
All the RTMP streams seem to be back for me on the archived games now except the 2400K one (let's hope that is true of the live games as well). Is 2400K working for you or is it just me? It it's just me, then possibly it is an issue with my stream player rather than the stream itself.
 
Old 04-01-2016, 09:16 AM   #4783
tonycpsu
Member
 
Registered: Apr 2014
Posts: 71

Rep: Reputation: Disabled
Quote:
It depends on how involved the fix may be and whether thegryghost wants to do one more fix for us or if it's time someone stepped up and took over mlbhls support.
I'm a reasonably competent C and Python coder, and I actually did hack the mlbhls source a while back to have it retry failed downloads of HLS segments before giving up. If the original developer doesn't have time for it anymore, I can give it a go.
 
Old 04-01-2016, 03:55 PM   #4784
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 659: highest rtmp speed increased to 2500

I knew I wrote the network responses to ~/.mlb directory for a reason.

Highest rtmp speed increased to 2500 and I've made the two line change in mlbviewer code to support this.
 
Old 04-01-2016, 04:05 PM   #4785
chrisVV
Member
 
Registered: Aug 2010
Posts: 378

Rep: Reputation: 200Reputation: 200Reputation: 200
Quote:
Originally Posted by daftcat View Post
and....aha... this all works if you enable adaptive streaming because the speeds are all garbage. That was kind of an accidental discovery right now.
It may be that, with the new flash viewer, adaptive speeds only are now supported with HD/nexdef. Does your Roku provide fixed speeds and if so do they still work?

According to a popup when using their old flash viewer, support for the old viewer will cease on 1 May (I am not sure what that means but presumably the adaptive streams at least will remain).
 
  


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

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

All times are GMT -5. The time now is 02:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration