LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-21-2010, 09:43 PM   #2731
Koufax
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
rtmpdump error


Thanks to daftcat for everything. I think I am getting close, but still not quite there.

Trying the make posix for rtmpdump per the instructions above after updating the Makefile line, I am getting the following errors. I'm sure I'm overlooking a missing dependency, but haven't been able to figure it out yet.

Thanks for the help!


Code:
make[1]: Entering directory `/home/username/mlbviewer-svn/rtmpdump'
make[2]: Entering directory `/home/username/mlbviewer-svn/rtmpdump/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2   -c -o rtmp.o rtmp.c
rtmp.c:37:25: error: openssl/ssl.h: No such file or directory
rtmp.c:38:25: error: openssl/rc4.h: No such file or directory
rtmp.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from rtmp.c:123:
handshake.h:43:25: error: openssl/sha.h: No such file or directory
handshake.h:44:26: error: openssl/hmac.h: No such file or directory
In file included from rtmp.c:123:
handshake.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from handshake.h:59,
                 from rtmp.c:123:
dh.h:75:24: error: openssl/bn.h: No such file or directory
dh.h:76:24: error: openssl/dh.h: No such file or directory
In file included from handshake.h:59,
                 from rtmp.c:123:
dh.h:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from handshake.h:59,
                 from rtmp.c:123:
dh.h:126: error: expected ‘)’ before ‘y’
dh.h:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dh.h:212: error: expected ‘)’ before ‘*’ token
dh.h:246: error: expected ‘)’ before ‘*’ token
dh.h:282: error: expected ‘)’ before ‘*’ token
In file included from rtmp.c:123:
handshake.h:89: error: expected declaration specifiers or ‘...’ before ‘RC4_handle’
handshake.h:89: error: expected declaration specifiers or ‘...’ before ‘RC4_handle’
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:91: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:91: error: (Each undeclared identifier is reported only once
handshake.h:91: error: for each function it appears in.)
handshake.h:93: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:93: error: expected ‘;’ before ‘ctx’
handshake.h:95: error: ‘rc4keyIn’ undeclared (first use in this function)
handshake.h:95: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:96: error: ‘rc4keyOut’ undeclared (first use in this function)
handshake.h:98: warning: implicit declaration of function ‘HMAC_CTX_init’
handshake.h:98: error: ‘ctx’ undeclared (first use in this function)
handshake.h:98: warning: implicit declaration of function ‘HMAC_Init_ex’
handshake.h:98: warning: implicit declaration of function ‘EVP_sha256’
handshake.h:99: warning: implicit declaration of function ‘HMAC_Update’
handshake.h:100: warning: implicit declaration of function ‘HMAC_Final’
handshake.h:100: warning: implicit declaration of function ‘HMAC_CTX_cleanup’
handshake.h:105: warning: implicit declaration of function ‘RC4_set_key’
handshake.h:91: warning: unused variable ‘digest’
handshake.h: In function ‘HMACsha256’:
handshake.h:242: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:242: error: expected ‘;’ before ‘ctx’
handshake.h:244: error: ‘ctx’ undeclared (first use in this function)
handshake.h: In function ‘CalculateDigest’:
handshake.h:255: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:256: warning: unused variable ‘message’
handshake.h: In function ‘VerifyDigest’:
handshake.h:270: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:270: warning: unused variable ‘calcDigest’
handshake.h: In function ‘HandShake’:
handshake.h:345: error: ‘RC4_handle’ undeclared (first use in this function)
handshake.h:345: error: expected ‘;’ before ‘keyIn’
handshake.h:346: error: expected ‘;’ before ‘keyOut’
handshake.h:411: warning: implicit declaration of function ‘DHInit’
handshake.h:411: warning: assignment makes pointer from integer without a cast
handshake.h:422: warning: implicit declaration of function ‘DHGenerateKey’
handshake.h:429: warning: implicit declaration of function ‘DHGetPublicKey’
handshake.h:445: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
In file included from rtmp.c:123:
handshake.h:532: warning: implicit declaration of function ‘DHComputeSharedSecretKey’
handshake.h:546: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:546: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:546: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:486: warning: unused variable ‘digestResp’
handshake.h:692: warning: implicit declaration of function ‘RC4’
handshake.h:624: warning: unused variable ‘digest’
handshake.h:623: warning: unused variable ‘signature’
handshake.h: In function ‘SHandShake’:
handshake.h:720: error: ‘RC4_handle’ undeclared (first use in this function)
handshake.h:720: error: expected ‘;’ before ‘keyIn’
handshake.h:721: error: expected ‘;’ before ‘keyOut’
handshake.h:803: warning: assignment makes pointer from integer without a cast
handshake.h:838: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:920: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:920: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:920: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:857: warning: unused variable ‘digestResp’
handshake.h:986: warning: unused variable ‘digest’
handshake.h:985: warning: unused variable ‘signature’
rtmp.c: In function ‘RTMP_TLS_Init’:
rtmp.c:207: warning: implicit declaration of function ‘SSL_load_error_strings’
rtmp.c:208: warning: implicit declaration of function ‘SSL_library_init’
rtmp.c:209: warning: implicit declaration of function ‘OpenSSL_add_all_digests’
rtmp.c:210: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c:210: warning: implicit declaration of function ‘SSL_CTX_new’
rtmp.c:210: warning: implicit declaration of function ‘SSLv23_method’
rtmp.c:211: warning: implicit declaration of function ‘SSL_CTX_set_options’
rtmp.c:211: error: ‘SSL_OP_ALL’ undeclared (first use in this function)
rtmp.c:212: warning: implicit declaration of function ‘SSL_CTX_set_default_verify_paths’
rtmp.c: In function ‘RTMP_Init’:
rtmp.c:221: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c: In function ‘RTMP_Connect1’:
rtmp.c:794: warning: implicit declaration of function ‘SSL_new’
rtmp.c:794: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c:795: warning: implicit declaration of function ‘SSL_set_fd’
rtmp.c:796: warning: implicit declaration of function ‘SSL_connect’
rtmp.c: In function ‘RTMP_Close’:
rtmp.c:3202: warning: implicit declaration of function ‘DH_free’
rtmp.c: In function ‘RTMPSockBuf_Fill’:
rtmp.c:3232: warning: implicit declaration of function ‘SSL_read’
rtmp.c: In function ‘RTMPSockBuf_Send’:
rtmp.c:3275: warning: implicit declaration of function ‘SSL_write’
rtmp.c: In function ‘RTMPSockBuf_Close’:
rtmp.c:3291: warning: implicit declaration of function ‘SSL_shutdown’
rtmp.c:3292: warning: implicit declaration of function ‘SSL_free’
make[2]: *** [rtmp.o] Error 1
make[2]: Leaving directory `/home/username/mlbviewer-svn/rtmpdump/librtmp'
make[1]: *** [librtmp/librtmp.a] Error 2
make[1]: Leaving directory `/home/username/mlbviewer-svn/rtmpdump'
make: *** [posix] Error 2
 
Old 04-21-2010, 10:38 PM   #2732
reefis
LQ Newbie
 
Registered: Apr 2010
Posts: 27

Rep: Reputation: 15
can't find the config file

$ cp MediaService.* ~/.mlb didn't seem to do anything. i got the program running and it said login failed when i click on a game

not seeing any ~/.mlb/config directory or file. do u mean ~/mlbviewer-svn/config? still even there is no config file, except in the folder ~/mlbviewer-svn/mlbviewer there is a config.py file. when i edit that there is no line that says user= pass=
 
Old 04-21-2010, 10:59 PM   #2733
reefis
LQ Newbie
 
Registered: Apr 2010
Posts: 27

Rep: Reputation: 15
nevermind about not finding .mlb/config. it was a hidden folder, never changed that setting to show all hidden files


and success it works. except the apsect ratio is messed up. and widescreen res bunch up into a 4:3. and i can't do fullscreen?

i get this when i start a stream, notice lines about mplayer, what's going on with that?

Buffering streamRTMPDump v2.2c
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: width 400.00
INFO: height 448.00
INFO: framerate 29.97
INFO: videocodecid 7.00
INFO: videodatarate 704.00
INFO: audiodatarate 32.00
mplayer: could not connect to socket
mplayer: No such file or directory

Last edited by reefis; 04-21-2010 at 11:34 PM.
 
Old 04-21-2010, 11:01 PM   #2734
onuhwt
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by reefis View Post
can't find the config file

$ cp MediaService.* ~/.mlb didn't seem to do anything. i got the program running and it said login failed when i click on a game

not seeing any ~/.mlb/config directory or file. do u mean ~/mlbviewer-svn/config? still even there is no config file, except in the folder ~/mlbviewer-svn/mlbviewer there is a config.py file. when i edit that there is no line that says user= pass=
I'm not positive and I'm relatively new to this program as well but I believe you have to manually create the ~/.mlb directory and then copy all of the MediaService files to that directory. Then after you run mlbviewer the first time it will create the config file. Then you need to go back and edit to config file to include your username and password. That's what I did and I now have basic functionality working.

Code:
$mkdir -p ~/.mlb
$cp MediaService* ~/.mlb
However I am still having trouble with the nexdef aspects, and can't figure out why. I am a premium subscriber, I have enabled nexdef in my config file by setting "use_nexdef=True" and I have increased the max bit rate with "max_bps=3000000". I have autobahn.jar running but when scrolling through the options with the 'p' button I don't see anything listed higher than 1800 and the 1800 doesn't work, Does anyone have any idea what I'm doing wrong? Let me know if you need to see my config file or any output.

Thanks for your help in advance and I just want to say this is an awesome project. I can't believe I dealt with Firefox/Flash all last season when something like this was available. Thanks again

P.S I'm using svn revision 237

Last edited by onuhwt; 04-21-2010 at 11:06 PM. Reason: Added svn revision number
 
Old 04-22-2010, 12:59 AM   #2735
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by edouble312 View Post
if anyone is interested in knowing how to set up mlbviewer on windows 7, (should work for any windows though) let me know I may write up a guide for how I did it...

took me roughly 15 minutes start to finish once I knew what I was doing.
I would edouble. Thanks...
 
Old 04-22-2010, 02:36 AM   #2736
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by Koufax View Post
Thanks to daftcat for everything. I think I am getting close, but still not quite there.

Trying the make posix for rtmpdump per the instructions above after updating the Makefile line, I am getting the following errors. I'm sure I'm overlooking a missing dependency, but haven't been able to figure it out yet.

Thanks for the help!


Code:
make[1]: Entering directory `/home/username/mlbviewer-svn/rtmpdump'
make[2]: Entering directory `/home/username/mlbviewer-svn/rtmpdump/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2   -c -o rtmp.o rtmp.c
rtmp.c:37:25: error: openssl/ssl.h: No such file or directory
rtmp.c:38:25: error: openssl/rc4.h: No such file or directory
rtmp.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from rtmp.c:123:
handshake.h:43:25: error: openssl/sha.h: No such file or directory
handshake.h:44:26: error: openssl/hmac.h: No such file or directory
In file included from rtmp.c:123:
handshake.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from handshake.h:59,
                 from rtmp.c:123:
dh.h:75:24: error: openssl/bn.h: No such file or directory
dh.h:76:24: error: openssl/dh.h: No such file or directory
In file included from handshake.h:59,
                 from rtmp.c:123:
dh.h:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from handshake.h:59,
                 from rtmp.c:123:
dh.h:126: error: expected ‘)’ before ‘y’
dh.h:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dh.h:212: error: expected ‘)’ before ‘*’ token
dh.h:246: error: expected ‘)’ before ‘*’ token
dh.h:282: error: expected ‘)’ before ‘*’ token
In file included from rtmp.c:123:
handshake.h:89: error: expected declaration specifiers or ‘...’ before ‘RC4_handle’
handshake.h:89: error: expected declaration specifiers or ‘...’ before ‘RC4_handle’
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:91: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:91: error: (Each undeclared identifier is reported only once
handshake.h:91: error: for each function it appears in.)
handshake.h:93: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:93: error: expected ‘;’ before ‘ctx’
handshake.h:95: error: ‘rc4keyIn’ undeclared (first use in this function)
handshake.h:95: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:96: error: ‘rc4keyOut’ undeclared (first use in this function)
handshake.h:98: warning: implicit declaration of function ‘HMAC_CTX_init’
handshake.h:98: error: ‘ctx’ undeclared (first use in this function)
handshake.h:98: warning: implicit declaration of function ‘HMAC_Init_ex’
handshake.h:98: warning: implicit declaration of function ‘EVP_sha256’
handshake.h:99: warning: implicit declaration of function ‘HMAC_Update’
handshake.h:100: warning: implicit declaration of function ‘HMAC_Final’
handshake.h:100: warning: implicit declaration of function ‘HMAC_CTX_cleanup’
handshake.h:105: warning: implicit declaration of function ‘RC4_set_key’
handshake.h:91: warning: unused variable ‘digest’
handshake.h: In function ‘HMACsha256’:
handshake.h:242: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:242: error: expected ‘;’ before ‘ctx’
handshake.h:244: error: ‘ctx’ undeclared (first use in this function)
handshake.h: In function ‘CalculateDigest’:
handshake.h:255: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:256: warning: unused variable ‘message’
handshake.h: In function ‘VerifyDigest’:
handshake.h:270: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:270: warning: unused variable ‘calcDigest’
handshake.h: In function ‘HandShake’:
handshake.h:345: error: ‘RC4_handle’ undeclared (first use in this function)
handshake.h:345: error: expected ‘;’ before ‘keyIn’
handshake.h:346: error: expected ‘;’ before ‘keyOut’
handshake.h:411: warning: implicit declaration of function ‘DHInit’
handshake.h:411: warning: assignment makes pointer from integer without a cast
handshake.h:422: warning: implicit declaration of function ‘DHGenerateKey’
handshake.h:429: warning: implicit declaration of function ‘DHGetPublicKey’
handshake.h:445: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
In file included from rtmp.c:123:
handshake.h:532: warning: implicit declaration of function ‘DHComputeSharedSecretKey’
handshake.h:546: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:546: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:546: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:486: warning: unused variable ‘digestResp’
handshake.h:692: warning: implicit declaration of function ‘RC4’
handshake.h:624: warning: unused variable ‘digest’
handshake.h:623: warning: unused variable ‘signature’
handshake.h: In function ‘SHandShake’:
handshake.h:720: error: ‘RC4_handle’ undeclared (first use in this function)
handshake.h:720: error: expected ‘;’ before ‘keyIn’
handshake.h:721: error: expected ‘;’ before ‘keyOut’
handshake.h:803: warning: assignment makes pointer from integer without a cast
handshake.h:838: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:920: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:920: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:920: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:857: warning: unused variable ‘digestResp’
handshake.h:986: warning: unused variable ‘digest’
handshake.h:985: warning: unused variable ‘signature’
rtmp.c: In function ‘RTMP_TLS_Init’:
rtmp.c:207: warning: implicit declaration of function ‘SSL_load_error_strings’
rtmp.c:208: warning: implicit declaration of function ‘SSL_library_init’
rtmp.c:209: warning: implicit declaration of function ‘OpenSSL_add_all_digests’
rtmp.c:210: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c:210: warning: implicit declaration of function ‘SSL_CTX_new’
rtmp.c:210: warning: implicit declaration of function ‘SSLv23_method’
rtmp.c:211: warning: implicit declaration of function ‘SSL_CTX_set_options’
rtmp.c:211: error: ‘SSL_OP_ALL’ undeclared (first use in this function)
rtmp.c:212: warning: implicit declaration of function ‘SSL_CTX_set_default_verify_paths’
rtmp.c: In function ‘RTMP_Init’:
rtmp.c:221: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c: In function ‘RTMP_Connect1’:
rtmp.c:794: warning: implicit declaration of function ‘SSL_new’
rtmp.c:794: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c:795: warning: implicit declaration of function ‘SSL_set_fd’
rtmp.c:796: warning: implicit declaration of function ‘SSL_connect’
rtmp.c: In function ‘RTMP_Close’:
rtmp.c:3202: warning: implicit declaration of function ‘DH_free’
rtmp.c: In function ‘RTMPSockBuf_Fill’:
rtmp.c:3232: warning: implicit declaration of function ‘SSL_read’
rtmp.c: In function ‘RTMPSockBuf_Send’:
rtmp.c:3275: warning: implicit declaration of function ‘SSL_write’
rtmp.c: In function ‘RTMPSockBuf_Close’:
rtmp.c:3291: warning: implicit declaration of function ‘SSL_shutdown’
rtmp.c:3292: warning: implicit declaration of function ‘SSL_free’
make[2]: *** [rtmp.o] Error 1
make[2]: Leaving directory `/home/username/mlbviewer-svn/rtmpdump/librtmp'
make[1]: *** [librtmp/librtmp.a] Error 2
make[1]: Leaving directory `/home/username/mlbviewer-svn/rtmpdump'
make: *** [posix] Error 2
You need openssl for this. Which Linux are you using? Whatever. Just use your package manager to install openssl. If that still doesn't clear it up, download and build the openssl source.

http://www.openssl.org/source/openssl-1.0.0.tar.gz
 
Old 04-22-2010, 02:40 AM   #2737
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by onuhwt View Post
I'm not positive and I'm relatively new to this program as well but I believe you have to manually create the ~/.mlb directory and then copy all of the MediaService files to that directory. Then after you run mlbviewer the first time it will create the config file. Then you need to go back and edit to config file to include your username and password. That's what I did and I now have basic functionality working.

Code:
$mkdir -p ~/.mlb
$cp MediaService* ~/.mlb
However I am still having trouble with the nexdef aspects, and can't figure out why. I am a premium subscriber, I have enabled nexdef in my config file by setting "use_nexdef=True" and I have increased the max bit rate with "max_bps=3000000". I have autobahn.jar running but when scrolling through the options with the 'p' button I don't see anything listed higher than 1800 and the 1800 doesn't work, Does anyone have any idea what I'm doing wrong? Let me know if you need to see my config file or any output.

Thanks for your help in advance and I just want to say this is an awesome project. I can't believe I dealt with Firefox/Flash all last season when something like this was available. Thanks again

P.S I'm using svn revision 237
Nexdef isn't supported in mlbviewer 2010 yet. The implementation has changed from last year and I've been having a really hard time getting it to work on either Windows or Linux using the official flash client. Without that much working, I won't be able to figure out the details of this year's implementation.

Besides, from the support forums, it sounds like Nexdef hasn't quite found its groove yet this season. Let's put it this way. I expect Nexdef to become more stable as David Ortiz climbs above .200.
 
Old 04-22-2010, 02:43 AM   #2738
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by reefis View Post
nevermind about not finding .mlb/config. it was a hidden folder, never changed that setting to show all hidden files


and success it works. except the apsect ratio is messed up. and widescreen res bunch up into a 4:3. and i can't do fullscreen?

i get this when i start a stream, notice lines about mplayer, what's going on with that?

Buffering streamRTMPDump v2.2c
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: width 400.00
INFO: height 448.00
INFO: framerate 29.97
INFO: videocodecid 7.00
INFO: videodatarate 704.00
INFO: audiodatarate 32.00
mplayer: could not connect to socket
mplayer: No such file or directory

Do you get sound? Let's rule that out.

What's your video_player line in the config?

Post the results of these commands:

Code:
$ mplayer -vo help
and

Code:
$ grep video_player ~/.mlb/config
 
Old 04-22-2010, 05:35 AM   #2739
CCRS8
LQ Newbie
 
Registered: Apr 2010
Location: Durham, NC, USA
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
I don't see any problems with your config.

That trace is kind of helpful but I see you already have blackout defined in your config file. Even when I leave blackout blank, I don't have a parser problem. One thing I did notice is that my line numbers don't match up with yours.

It's not until around revision 210 (the last Sourceforge release) that the line numbers match up.

Did you just download this from sourceforge?

Okay, here's what I want you to do. Install subversion if you don't have it already. Then checkout the latest svn version (development version) of the code and run setup.py again.

Code:
$ sudo apt-get install subversion
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-svn
$ cd mlbviewer-svn
$ python setup.py install
Now when I post about future revisions (the post "Title" is always something like: SVN Revision 237: Some Description of What's Fixed), you'll only need to cd to this directory and run svn up, e.g.

Code:
$ cd mlbviewer-svn
$ svn up
It's an honest mistake. I was going to wait until NexDef is implemented but since Sourceforge release is obviously broken, I'll update it with the latest svn code later tonight.
No, I was already on Rev 236:
Code:
~/mlbviewer$ svn info
Path: .
URL: https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk
Repository Root: https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer
Repository UUID: d37ac8f2-af4a-0410-91f3-abd50a2159f9
Revision: 236
Node Kind: directory
Schedule: normal
Last Changed Author: daftcat75
Last Changed Rev: 236
Last Changed Date: 2010-04-20 00:38:22 -0400 (Tue, 20 Apr 2010)
Anyway, I updated to revision 237 and then ran the program and it actually took me to the game listings! I swear all I did was update to the latest revision (only mlbviewer.py was updated) and the listings appeared. I'm sure it was an error of mine, but I don't know what it was.

Anyway, all is not 100% yet, though. I decided to play the first game I saw, the archived KC vs. Toronto game. Since debug was still on, it gave me the url of the stream instead of actually trying to play the game. I turned debug off, expecting that this would attempt to play the game and let me know if I have rtmpdump installed correctly, but instead I got an error. I turned debug on again but this time got the same error instead of the url of the stream:
Code:
Traceback (most recent call last):
  File "/usr/local/bin/mlbviewer.py", line 1508, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/bin/mlbviewer.py", line 1159, in mainloop
    stream = available[current_cursor][2][myteam]
IndexError: list index out of range
So, it looked like it would have worked the very first time when I got the url, but now I'm just getting that error when I try to play a game. I'm getting to the listings page, though, so that's a great start!

Thanks a ton.
 
Old 04-22-2010, 07:11 AM   #2740
reefis
LQ Newbie
 
Registered: Apr 2010
Posts: 27

Rep: Reputation: 15
mplayer -vo help
MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
Available video output drivers:
xmga Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)
mga Matrox G200/G4x0/G550 overlay (/dev/mga_vid)
tdfxfb 3Dfx Banshee/Voodoo3/Voodoo5
3dfx 3dfx (/dev/3dfx)
xv X11/Xv
vdpau VDPAU with X11
x11 X11 ( XImage/Shm )
xover General X11 driver for overlay capable video output drivers
gl X11 (OpenGL)
gl2 X11 (OpenGL) - multiple textures version
dga DGA ( Direct Graphic Access V2.0 )
sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
fbdev Framebuffer Device
fbdev2 Framebuffer Device
svga SVGAlib
caca libcaca
v4l2 V4L2 MPEG Video Decoder Output
directfb Direct Framebuffer Device
dfbmga DirectFB / Matrox G200/G400/G450/G550
xvidix X11 (VIDIX)
cvidix console VIDIX
null Null video output
xvmc XVideo Motion Compensation
mpegpes MPEG-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
png PNG file
jpeg JPEG file
gif89a animated GIF output
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame


and


reefis@ubuntu:~$ grep video_player ~/.mlb/config
video_player=mplayer
 
Old 04-22-2010, 11:38 AM   #2741
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by CCRS8 View Post
No, I was already on Rev 236:
Code:
~/mlbviewer$ svn info
Path: .
URL: https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk
Repository Root: https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer
Repository UUID: d37ac8f2-af4a-0410-91f3-abd50a2159f9
Revision: 236
Node Kind: directory
Schedule: normal
Last Changed Author: daftcat75
Last Changed Rev: 236
Last Changed Date: 2010-04-20 00:38:22 -0400 (Tue, 20 Apr 2010)
Anyway, I updated to revision 237 and then ran the program and it actually took me to the game listings! I swear all I did was update to the latest revision (only mlbviewer.py was updated) and the listings appeared. I'm sure it was an error of mine, but I don't know what it was.

Anyway, all is not 100% yet, though. I decided to play the first game I saw, the archived KC vs. Toronto game. Since debug was still on, it gave me the url of the stream instead of actually trying to play the game. I turned debug off, expecting that this would attempt to play the game and let me know if I have rtmpdump installed correctly, but instead I got an error. I turned debug on again but this time got the same error instead of the url of the stream:
Code:
Traceback (most recent call last):
  File "/usr/local/bin/mlbviewer.py", line 1508, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/bin/mlbviewer.py", line 1159, in mainloop
    stream = available[current_cursor][2][myteam]
IndexError: list index out of range
So, it looked like it would have worked the very first time when I got the url, but now I'm just getting that error when I try to play a game. I'm getting to the listings page, though, so that's a great start!

Thanks a ton.
Those are still the wrong line numbers in the code. Try this:

Code:
$ sudo rm /usr/local/bin/mlbviewer.py
$ cd ~/
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-svn
$ cd mlbviewer-svn
$ python mlbviewer.py
Basically, the one you are running at /usr/local/bin/mlbviewer.py is the wrong version. I know this because the line numbers aren't right in those errors.

If you still run into problems, we'll have to figure out where the old libraries are installed and remove those too.
 
Old 04-22-2010, 11:40 AM   #2742
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by reefis View Post
reefis@ubuntu:~$ grep video_player ~/.mlb/config
video_player=mplayer
Try changing the mplayer command to:

Code:
video_player=mplayer -vo xv -cache 4092
 
Old 04-22-2010, 11:52 AM   #2743
CCRS8
LQ Newbie
 
Registered: Apr 2010
Location: Durham, NC, USA
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
Those are still the wrong line numbers in the code. Try this:

Code:
$ sudo rm /usr/local/bin/mlbviewer.py
$ cd ~/
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-svn
$ cd mlbviewer-svn
$ python mlbviewer.py
Basically, the one you are running at /usr/local/bin/mlbviewer.py is the wrong version. I know this because the line numbers aren't right in those errors.

If you still run into problems, we'll have to figure out where the old libraries are installed and remove those too.
Ugh - I know what I did. The first time I installed it I tried to do a system-wide install, but then I decided to do a local install instead. So I've been updating via svn the files at /user/home/mlbviewer and thinking that I've been running the mlbviewer.py file located there, but instead I've been running system-wide version that I thought I had removed. Had I read the error messages at all instead of just posting them here, I cold have seen that. Like I figured, a silly user error. Don't know why the listings all of a sudden worked, but when I get home from work I'm going to eradicate my system of the system-wide installed version and start over again.

Thanks!
 
Old 04-22-2010, 12:20 PM   #2744
Koufax
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
You need openssl for this. Which Linux are you using? Whatever. Just use your package manager to install openssl. If that still doesn't clear it up, download and build the openssl source.

http://www.openssl.org/source/openssl-1.0.0.tar.gz
I have openssl, but will try to download and build. I am using Kubuntu 10.04, so maybe I should wait until the release moves from beta to final next week before trying just in case that is the cause
 
Old 04-22-2010, 01:21 PM   #2745
reefis
LQ Newbie
 
Registered: Apr 2010
Posts: 27

Rep: Reputation: 15
video_player=mplayer -vo xv -cache 4092 game me no video at all, but i got audio and i have to close mplayer thru system monitor
 
  


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 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


All times are GMT -5. The time now is 11:10 AM.

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