LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-05-2010, 11:34 AM   #2461
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16

Quote:
Originally Posted by edouble312 View Post
install rtmpdump 2.2 from here:
http://rtmpdump.mplayerhq.hu/

it doesn't need any patching... just 'make' and then move it usr/local/bin
I do appreciate your help but I'm not sure what to do after downloading the tar.gz. Sorry!
 
Old 04-05-2010, 12:16 PM   #2462
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by rjwood View Post
I do appreciate your help but I'm not sure what to do after downloading the tar.gz. Sorry!
I opened it with archive manager but can't move the file with
Code:
sudo mv rtmpdump-2.2b /user/local/bin
say's no file or directory. What gives?

Last edited by rjwood; 04-05-2010 at 12:17 PM.
 
Old 04-05-2010, 12:35 PM   #2463
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by mchapter View Post
daftcat et al-
Thanks for working on this mlbviewer, it's pretty sweet. I'm having trouble getting any game from 4/3 to download completely. My player command is video_player=mplayer -cache 2048 -dumpstream %s -dumpfile %f, so that I can write the video file and play it back through a different process. The download progresses, but around 40% (for PIT @ PHI) or 45% (for BOS @ WAS) I get a ping type of 31 and the download ends. At one point I saw the error message "Could not connect to LIRC, retrying:" at the end of the log file repeated 4 times, but it doesn't seem to be the case after I checked out revision 229. The error from the mlbviewer.py terminal is below.

DEBUG: Set duration: 10414.271000
DEBUG: HandlePing, received ping. type: 6, len: 6
DEBUG: sending ping. type: 0x0007
DEBUG: HandlePing, received ping. type: 6, len: 6
DEBUG: sending ping. type: 0x0007
DEBUG: HandlePing, received ping. type: 6, len: 6
DEBUG: sending ping. type: 0x0007
DEBUG: HandlePing, received ping. type: 31, len: 6

The downloaded video is viewable, but ends abrubtly.

Any thoughts or suggestions? I'm able and willing to debug the problem but I'm not sure where to start.

Thanks,
Matt
Hey Matt,

rtmpdump has that problem where after about 33-45% of stream (probably an actual MB size downloaded), it is cut off at the server. This happens when rtmpdump is run "naked" (without an mplayer pipeline) or when mplayer is using the -dumpstream option. I don't know know what the issue is but it's not in my code. Fortunately, when run with mplayer in playback mode (not dumpstream) it doesn't have this problem.

One option available to you is to use the soapevent.py script in the test directory. Use mlblistings.py script to see the game schedules and event-id's (the E: number that looks like 14-263816-2010-04-04). Use that as an argument to test/soapevent.py. You'll likely have to run that script about 3 times to get the full game.

A quick script you can use for this:

Code:
#!/bin/ksh

# use the three letter code for your team from the mlblistings output
FAVORITE=${FAVORITE:=bos}

# where is your mlbviewer directory?
MLBDIR=/home/user/mlbviewer

# how many times to retry rtmpdump to get a complete game?
RETRIES=${RETRIES:=3}

#Done with configuration - shouldn't need to edit below this line

cd ${MLBDIR}

eventid=`./mlblistings.py | grep ${FAVORITE} | awk '{print $6}'`


r=0
while [ $r -lt ${RETRIES} ]; do
    test/soapevent.py ${eventid}
    ((r+=1))
done
FAVORITE and RETRIES can be overridden through the use of environment variables:

Code:
$ export FAVORITE=flo
$ export RETRIES=5
This is how I frequently watch games on my slow machine.

One limitation of this script is that it only works for the current day's games. I can make a modification to it later to allow event-id to be overridden. In truth, I usually do all those steps by hand and use startdate=mm/dd/yy argument to mlblistings.py if I need to go to past days.

Hope that works for you.
 
Old 04-05-2010, 12:36 PM   #2464
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by rjwood View Post
I opened it with archive manager but can't move the file with
Code:
sudo mv rtmpdump-2.2b /user/local/bin
say's no file or directory. What gives?
Well I figured out that I was using the incorrect command to move the file and now have it in /usr/local/bin but still no luck getting games showing.
 
Old 04-05-2010, 12:39 PM   #2465
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I know the season has already started but mlbviewer like MLB.TV itself probably won't stabilize until the end of the month. 800K and 1200K non-premium video and gameday audio streams are probably the only thing that work right now. If anything else does, well, that's just cool. I'll send out status updates or post new SVN revisions as other features get fixed for the new season.
 
Old 04-05-2010, 12:41 PM   #2466
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by rjwood View Post
Well I figured out that I was using the incorrect command to move the file and now have it in /usr/local/bin but still no luck getting games showing.
Please paste the output of:
Code:
/usr/local/bin/rtmpdump --help
 
Old 04-05-2010, 12:42 PM   #2467
edouble312
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 16
Quote:
Originally Posted by rjwood View Post
Well I figured out that I was using the incorrect command to move the file and now have it in /usr/local/bin but still no luck getting games showing.
you have to run the 'make' command to compile rtmpdump, then you move it to that folder.

read the instructions provided in the rtmpdump folder.

ALSO: it's not "user/local/bin"... it's "usr/local/bin"

Last edited by edouble312; 04-05-2010 at 12:47 PM.
 
Old 04-05-2010, 01:12 PM   #2468
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by Theophile View Post
Please paste the output of:
Code:
/usr/local/bin/rtmpdump --help
It says no file or directory - but its there - I swear!
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	17
Size:	162.4 KB
ID:	3274  

Last edited by rjwood; 04-05-2010 at 01:19 PM.
 
Old 04-05-2010, 01:13 PM   #2469
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by edouble312 View Post
you have to run the 'make' command to compile rtmpdump, then you move it to that folder.

read the instructions provided in the rtmpdump folder.

ALSO: it's not "user/local/bin"... it's "usr/local/bin"
I did that then moved it but its still not working.
 
Old 04-05-2010, 01:40 PM   #2470
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by rjwood View Post
It says no file or directory - but its there - I swear!
lol, okay. You're doing this wrong. Delete that directory from /usr/local/bin

You should have the .tar.gz file somewhere else like a Downloads folder. Unzip it there, then open a terminal and 'cd' to inside the directory. I'm assuming you're running Ubuntu. If you're not, tell me first. If you are, do this:
Code:
sudo apt-get install libssl-dev
make posix
sudo cp rtmpdump /usr/local/bin/
Then tell me the output of this:
Code:
/usr/local/bin/rtmpdump --help

Last edited by Theophile; 04-05-2010 at 01:41 PM.
 
Old 04-05-2010, 01:45 PM   #2471
mchapter
Member
 
Registered: Apr 2010
Location: austin, tx
Distribution: osx 10.8.3
Posts: 46

Rep: Reputation: 17
Quote:
Originally Posted by rjwood View Post
I did that then moved it but its still not working.
Instead of moving the file manually, after you do a make, do: sudo make install

This will use the makefile's install operation to put the executable where the programmer intended it to go. In this case that could be /usr/local/bin, but may be somewhere else depending on what the makefile says. Mine is installed in ~/bin, so that should fix your problem.
 
Old 04-05-2010, 01:55 PM   #2472
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
here it is:
Quote:
rob@rob-desktop:~/rtmpdump-2.2b$ /usr/local/bin/rtmpdump --help
RTMPDump v2.2b
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL

This program dumps the media content streamed over RTMP.

--help|-h Prints this help screen.
--rtmp|-r url URL (e.g. rtmp//host[ort]/path)
--host|-n hostname Overrides the hostname in the rtmp url
--port|-c port Overrides the port in the rtmp url
--socks|-S hostort Use the specified SOCKS proxy
--protocol|-l Overrides the protocol in the rtmp url (0 - RTMP, 2 - RTMPE)
--playpath|-y Overrides the playpath parsed from rtmp url
--swfUrl|-s url URL to player swf file
--tcUrl|-t url URL to played stream (default: "rtmp://host[ort]/app")
--pageUrl|-p url Web URL of played programme
--app|-a app Name of target app on server
--swfhash|-w hexstring SHA256 hash of the decompressed SWF file (32 bytes)
--swfsize|-x num Size of the decompressed SWF file, required for SWFVerification
--swfVfy|-W url URL to player swf file, compute hash/size automatically
--swfAge|-X days Number of days to use cached SWF hash before refreshing
--auth|-u string Authentication string to be appended to the connect string
--conn|-C type:data Arbitrary AMF data to be appended to the connect string
B:boolean(0|1), S:string, N:number, Object-flag(0|1),
Znull), NB:name:boolean, NS:name:string, NN:name:number
--flashVer|-f string Flash version string (default: "LNX 10,0,32,18")
--live|-v Save a live stream, no --resume (seeking) of live streams possible
--subscribe|-d string Stream name to subscribe to (otherwise defaults to playpath if live is specifed)
--flv|-o string FLV output file name, if the file name is - print stream to stdout
--resume|-e Resume a partial RTMP download
--timeout|-m num Timeout connection num seconds (default: 120)
--start|-A num Start at num seconds into stream (not valid when using --live)
--stop|-B num Stop at num seconds into stream
--token|-T key Key for SecureToken response
--hashes|-# Display progress with hashes, not with the byte counter
--buffer|-b Buffer time in milliseconds (default: 36000000), this option makes only sense in stdout mode (-o -)
--skip|-k num Skip num keyframes when looking for last keyframe to resume from. Useful if resume fails (default: 0)

--quiet|-q Suppresses all command output.
--verbose|-V Verbose command output.
--debug|-z Debug level command output.
If you don't pass parameters for swfUrl, pageUrl, or auth these properties will not be included in the connect packet.
 
Old 04-05-2010, 02:00 PM   #2473
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by rjwood View Post
here it is:
Well there ya go. Try mlbviewer now.
 
Old 04-05-2010, 02:13 PM   #2474
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by Theophile View Post
Well there ya go. Try mlbviewer now.
That did it. Thank you to all those who have helped. Donation time after the game!
 
Old 04-05-2010, 02:33 PM   #2475
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
I'm only getting a very small screen. I've tried "f" for full-screen but that just fills it with a black background. If you all are not yet fed up with me, does anyone have a fix for this issue? For all i know, its something quite simple - right!
 
  


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 11:29 PM.

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