LinuxQuestions.org
Help answer threads with 0 replies.
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-13-2016, 10:19 PM   #4831
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
EXPERIMENTAL: SVN revision 663: 60fps support READ before UPDATING


Before you update, you should know how to back it out if it doesn't work for you.

Code:
svn -r 662 up
That out of the way, I have incorporated the 60fps support into mlbviewer in the laziest way possible which is why I deem this experimental.

I have hardcoded use_wired_web=1 and I replace the master_wired_web.m3u with the 60fps version for all nexdef requests. This does away with the need for a config file option (two if you count the use_wired_web option.) Both of these changes are marked in the code comments with EXPERIMENTAL in case the hackers among us need to tweak this. Once updated, you can "svn -r 662 diff" to see what I did.

After May 1, if all or most of our streams are still in business, I will cut a new ISO of the virtual machine version. I may be the only who uses it but I just love it so much for my work PC where I can't be bothered to install and configure the cygwin toolchain to support mlbviewer.

After this time period, I will also make the HLS speed selection more natural, more like RTMP. I will also consider deprecating the term nexdef in docs and code in favor of the more accurate HLS.
 
Old 04-16-2016, 05:45 PM   #4832
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Has anyone tried revision 663 with 60 fps support?
 
Old 04-19-2016, 01:41 PM   #4833
NUmet
LQ Newbie
 
Registered: Apr 2016
Posts: 2

Rep: Reputation: Disabled
Trouble compiling mlbhls

Hi everyone, I'm pretty green on this side of things, and I'm trying to compile mlbhls on my mint machine, but I keep running into this error:

Code:
gcc -O2 mlb.c utils.c output.c -lm -lcurl -lcrypto -lconfig -o mlbhls
mlb.c: In function ‘mlb_refresh_playlists’:
mlb.c:169:5: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
     sprintf(tmp_url, "%s%s\0", master->base_url, master->streams[i].base_url);
     ^
mlb.c: In function ‘mlb_hls_get_and_decrypt’:
mlb.c:859:3: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
   sprintf(content_url, "%s%s%s\0", master->base_url, stream->base_url_media, url);
   ^
mlb.c: In function ‘main’:
mlb.c:1362:15: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
               sprintf(master->cmd_params, "%s -cache %d %s\0", master->args->launch_cmd, 4*(master->decrypted_size/(p.stream->seg_time * master->decrypted_count)) / 1000, master->args->output.name);
               ^
/usr/bin/ld: /tmp/ccREzwO9.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [mlb] Error 1
Any help would be greatly appreciated. Thanks a bunch!
 
Old 04-20-2016, 03:51 PM   #4834
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by NUmet View Post
Hi everyone, I'm pretty green on this side of things, and I'm trying to compile mlbhls on my mint machine, but I keep running into this error:

Code:
gcc -O2 mlb.c utils.c output.c -lm -lcurl -lcrypto -lconfig -o mlbhls
mlb.c: In function ‘mlb_refresh_playlists’:
mlb.c:169:5: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
     sprintf(tmp_url, "%s%s\0", master->base_url, master->streams[i].base_url);
     ^
mlb.c: In function ‘mlb_hls_get_and_decrypt’:
mlb.c:859:3: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
   sprintf(content_url, "%s%s%s\0", master->base_url, stream->base_url_media, url);
   ^
mlb.c: In function ‘main’:
mlb.c:1362:15: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
               sprintf(master->cmd_params, "%s -cache %d %s\0", master->args->launch_cmd, 4*(master->decrypted_size/(p.stream->seg_time * master->decrypted_count)) / 1000, master->args->output.name);
               ^
/usr/bin/ld: /tmp/ccREzwO9.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [mlb] Error 1
Any help would be greatly appreciated. Thanks a bunch!
What repository are you using? And what does 'git branch -a' give you?
 
Old 04-20-2016, 04:05 PM   #4835
NUmet
LQ Newbie
 
Registered: Apr 2016
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by chrisVV View Post
What repository are you using? And what does 'git branch -a' give you?
I'm using the one listed on the mlbviewer's sourceforge wiki: https://github.com/thegryghost/mlbtv-hls-nexdef.git

As for the branch, Git says I'm using the master branch, but here's the full output:

Code:
# git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/experimental
  remotes/origin/freevo
  remotes/origin/master
  remotes/origin/wiki
I should be using the experimental branch, shouldn't I?
Thanks for your help, that was just the line of questioning I needed.

Last edited by NUmet; 04-20-2016 at 04:18 PM. Reason: That moment of realization
 
Old 04-20-2016, 06:34 PM   #4836
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by NUmet View Post
I should be using the experimental branch, shouldn't I?
Thanks for your help, that was just the line of questioning I needed.
You should checkout experimental, yes. Also use this repository, as it has the HLS fixes for the March 2016 MLB.TV changes: https://github.com/tonycpsu/mlbtv-hls-nexdef.git
 
Old 04-20-2016, 07:17 PM   #4837
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
To answer your problem specifically, if you open the Makefile in your favorite text editor and add -lpthreads to the LIBS= line, you will get past this error.

But you really should be using the new branch (and I really should be updating the documentation.)

Code:
$ git clone https://github.com/tonycpsu/mlbtv-hls-nexdef.git -b experimental
 
Old 04-20-2016, 09:39 PM   #4838
catepillar
LQ Newbie
 
Registered: Apr 2016
Posts: 2

Rep: Reputation: Disabled
I have been having some issues tonight. This is the first night that I have had any issues.

I am using mlbplay to get a base64 URL to pass to mlb-nexdef.

Code:
$ python2 mlbplay.py n=1 nu=1 v=hou
An error occurred locating the media URL:
Requested Media Not Available Yet.
Traceback (most recent call last):
  File "mlbplay.py", line 353, in <module>
    print mediaUrl
NameError: name 'mediaUrl' is not defined
The media is most certainly available, as I can play it through a browser, though it is very laggy and jumps a lot in the browser (hence, why I use mlbviewer in the first place).

Any help is greatly appreciated.
 
Old 04-21-2016, 11:04 AM   #4839
iamtheaardvark
LQ Newbie
 
Registered: Oct 2014
Posts: 18

Rep: Reputation: Disabled
Apologies for the late reply...linuxquestions never emailed me that the thread had been updated. r663 works fine for me.

It would really be great to migrate mlbviewer to github and start using issue tracking and pull requests. This thread has gone way beyond its intended purpose.
 
Old 04-21-2016, 02:32 PM   #4840
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by iamtheaardvark View Post
Apologies for the late reply...linuxquestions never emailed me that the thread had been updated. r663 works fine for me.

It would really be great to migrate mlbviewer to github and start using issue tracking and pull requests. This thread has gone way beyond its intended purpose.
Agreed. I'm too busy at work these last few weeks. I don't want to deal with any new infrastructure until release deadline at work has come and gone at the end of the month.
 
Old 04-21-2016, 02:46 PM   #4841
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by catepillar View Post
I have been having some issues tonight. This is the first night that I have had any issues.

I am using mlbplay to get a base64 URL to pass to mlb-nexdef.

Code:
$ python2 mlbplay.py n=1 nu=1 v=hou
An error occurred locating the media URL:
Requested Media Not Available Yet.
Traceback (most recent call last):
  File "mlbplay.py", line 353, in <module>
    print mediaUrl
NameError: name 'mediaUrl' is not defined
The media is most certainly available, as I can play it through a browser, though it is very laggy and jumps a lot in the browser (hence, why I use mlbviewer in the first place).

Any help is greatly appreciated.
Are you an international user? Could it be that your local time is a calendar day ahead of game time (e.g. requesting a game on 4/20 while your computer clock reads 4/21)?

I tried the command above for today, and it gives me same as above because hou game hasn't started yet. If I give it, j=04/20/16, it returns a base64 chunk as expected.

I am pretty sure I have some sort of algorithm in place to prevent this all from falling apart right at midnight. However, I don't remember and I already shut down the VM. Try it again with the correct game date as the j= parameter in mm/dd/yy format.
 
1 members found this post helpful.
Old 04-22-2016, 10:07 AM   #4842
iamtheaardvark
LQ Newbie
 
Registered: Oct 2014
Posts: 18

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
Agreed. I'm too busy at work these last few weeks. I don't want to deal with any new infrastructure until release deadline at work has come and gone at the end of the month.
Let me know if I can help. I can't commit much time as I'm also quite busy (grad student in the final year of my degree), but I appreciate this project and I have quite a bit of experience with git and python so I'll be happy to contribute what I can.
 
Old 04-22-2016, 07:56 PM   #4843
catepillar
LQ Newbie
 
Registered: Apr 2016
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
Are you an international user? Could it be that your local time is a calendar day ahead of game time (e.g. requesting a game on 4/20 while your computer clock reads 4/21)?

I tried the command above for today, and it gives me same as above because hou game hasn't started yet. If I give it, j=04/20/16, it returns a base64 chunk as expected.

I am pretty sure I have some sort of algorithm in place to prevent this all from falling apart right at midnight. However, I don't remember and I already shut down the VM. Try it again with the correct game date as the j= parameter in mm/dd/yy format.
Yes. I am based in the Netherlands. This definitely solved my problem. Cheers!
 
Old 04-23-2016, 12:03 PM   #4844
mgoetze
LQ Newbie
 
Registered: Aug 2013
Posts: 12

Rep: Reputation: Disabled
So I heard that Jacoby Ellsbury stole home and of course I wanted to see this for myself, but apparently there are no more "top plays" in mlbviewer. Any chance they could be revived?
 
Old 04-24-2016, 04:27 PM   #4845
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 665: restore highlights

1200K highlights have been restored. 1800K highlights are gone.

Longer version (especially for those who want to hack mlbviewer):

Highlights are taken from a URL like:
http://gdx.mlb.com/components/game/m...highlights.xml

Except recent listings no longer contain highlights.xml file. There was a very short-lived r664 which used highlights_es.xml (yay! bilingual highlights!) but that was kludgey. It looks like highlights.xml functionality can be replicated with a couple of modifications using mobile.xml instead. Additionally, and specifically why I'm even talking about this, it now looks like there is HLS support for highlights. It would be a bit of an overhaul to use HLS for highlights. I don't want to tackle that this weekend.
 
  


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 01:00 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