Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
'q' in the mlbviewer window should close out mplayer for you.
Okay, so we may have to recompile mplayer but before we do, let's see what does work for you.
Do you have any video files that work just fine with mplayer? If so, try this:
Code:
$ mplayer somevideo.avi | tee mplayer-works.log
Quit mplayer right when the timer starts running so we don't have pages of timer output in the mplayer-works.log. Now post the contents of mplayer-works.log here.
Next let's see what specifically isn't going well with the baseball stream.
Code:
$ cd mlbviewer-svn
$ test/soapevent.py 14-264014-2010-04-20
This will just record the stream using rtmpdump. Record about 5 or 10 seconds, then press Ctrl-C to kill it.
Code:
$ mplayer 14-264014-2010-04-20.mp4 | tee mplayer-notworking.log
Again, 'q' or 'Ctrl-C' this as soon as the timer starts running and post the contents of the mplayer-notworking.log file here.
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
It's nothing to do with the beta release. You can try to find the -dev package for openssl:
Code:
$ apt-cache search openssl-dev
If you see something like openssl-dev or openssl-devel, install that with apt-get.
Code:
$ sudo apt-get install openssl-dev
If you don't see a -dev package, building from source will install the header files that rtmpdump is trying to find and not finding them.
Often, Linux distributions do not install the -dev packages (the header files) to try to save on disk space. That comes back to bite you when you try to build something from source that expects to find those files.
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!
Cool - everything is working now. I just deleted the usr/local/bin version, installed rtmpdump, and I was watching baseball. Took about 60 seconds from start to finish to fix my problem.
I think my problem was that I got confused reading through the combination of the readme and install files provided with the source and the various fixes recommended in this thread. I think every user new user should be directed to this recent addition to the thread: http://www.linuxquestions.org/questi...ml#post3943407
hhhmmmm, when i play a avi in mplayer the same thing happens, no video, but the audio is there. i get: Fatal Error! Error opening/initializing the selected video_out (-vo) device.
so i completely removed mplayer, and reninstalled, and still no video. then i changed the config back to video_player=mplayer, and the skinny video came back. for some reason i then changed the speed from 800 to 1200 and now is has the proper screen resolution. but i can't do full screen. can mlbviewer do full screen? i maximize but the video size stays the same with a big black background
I got mlbviewer working for the first time tonight, but I can't get the 1800k stream to work - every game says "no video." I don't know if it's just me, or are there just no games available at that bitrate today?
There haven't been any 1800k streams (that I've seen) for any games for about four days. They must be having problems with them in some fashion. 1200k stream has the same vertical resolution, but the horizontal resolution is smaller and I think it gets compressed a tad bit more, but it still looks good. YOu can use the 'p' key to cycle through the bit rates or set speed=1200 in ~/.mlb/config
hhhmmmm, when i play a avi in mplayer the same thing happens, no video, but the audio is there. i get: Fatal Error! Error opening/initializing the selected video_out (-vo) device.
when i tried the second thing you suggested here's some of what i got
<snip>
4416.000 kB / 31.93 sec (0.3%)^CTraceback (most recent call last):
File "test/soapevent.py", line 424, in <module>
playprocess.wait()
File "/usr/lib/python2.6/subprocess.py", line 1157, in wait
Caught signal: 2, cleaning up, just a second...
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 66498
4443.982 kB / 31.93 sec (0.3%)
Download may be incomplete (downloaded about 0.30%), try resuming
pid, sts = os.waitpid(self.pid, 0)
KeyboardInterrupt
Okay, that's the rtmpdump output but what I want to see is the mplayer output. So that rtmpdump dropped a file called 14-264014-2010-04-20.mp4 (or something like that.)
So do this:
Code:
$ mplayer 14-264014-2010-04-20.mp4 | tee mplayer.log
Quit after the timer appears and post the mplayer.log output here.
thanks for the help, the only issue now i have is getting it to display fullscreen if it can. i edited my previous post to tell you what i did to get it to work. i changed speed from 800 to 1200. don't know why that worked
thanks for the help, the only issue now i have is getting it to display fullscreen if it can. i edited my previous post to tell you what i did to get it to work. i changed speed from 800 to 1200. don't know why that worked
What I think is happening is that it is using the x11 video output which doesn't scale and doesn't take full advantage of the video card. This is why I want to see all the mplayer (not rtmpdump) messages that appear when you try to play a video file. The soapevent.py script lets you record the stream to disk. (Though rtmpdump is buggy when it's not feeding its stream directly to mplayer and thus, the scripts in the test directory are there merely for debugging problems like this.)
Seeing all the mplayer messages without the rtmpdump output getting in the way will help me confirm the settings mplayer is using and will allow me to decide what next steps to take.
Also, knowing what video card you are using, I can help you in getting the Xv video output driver working which would allow you to do true full-screen. It will still be letterboxed if you don't have a widescreen monitor, but that's better than being completely boxed in a black background.
Since you do have both audio and video (albeit probably using the x11 output) and your mplayer does have the xv output already built in (from the -vo help command earlier), I see no reason to have to rebuild mplayer. That's the good news. But now we have to find out why mplayer isn't able to use xv.
I suspect Ubunutu didn't set up your video card with everything Xv needs.
ok. i don't know where to put the avi file so i can run that command (replacing somevideo.avi with the avi on my computer)
i did the last thing you suggested and got this:
reefis@ubuntu:~$ dpkg --get-selections | grep xv
libxcb-xv0 install
libxv-dev install
libxv1 install
libxvidcore4 install
libxvmc1 install
reefis@ubuntu:~$ grep XVideo /var/log/Xorg.0.log
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
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.
Alright good to know that it wasn't me doing something wrong. Thanks again, even without NexDef its way better than what I've been used to using for MLB.tv since my linux conversion a few years ago. Thanks
Are we still telling people to compile mplayer from source? I'm on Ubuntu (10.4 beta) and the stock mplayer plays everything just fine. I suspect the same is probably true for most recent distributions as well. Have others been having trouble with stock mplayer packages?
Also, since we are seeing an influx of new users (yay!) and the season is still young, might it be time to get a dedicated mlbviewer support/discussion forum?
Lastly, I finally got audio re-streaming to Android working. I thought I could just dump the audio to a local mp3 and point the stock player at it. It works, but it only plays as much of the file as existed at the time of the connection. So it doesn't "keep up" with the file as it grows. Are we still keeping such tricks to ourselves?
Are we still telling people to compile mplayer from source? I'm on Ubuntu (10.4 beta) and the stock mplayer plays everything just fine. I suspect the same is probably true for most recent distributions as well. Have others been having trouble with stock mplayer packages?
Also, since we are seeing an influx of new users (yay!) and the season is still young, might it be time to get a dedicated mlbviewer support/discussion forum?
Lastly, I finally got audio re-streaming to Android working. I thought I could just dump the audio to a local mp3 and point the stock player at it. It works, but it only plays as much of the file as existed at the time of the connection. So it doesn't "keep up" with the file as it grows. Are we still keeping such tricks to ourselves?
I'm trying to avoid re-compilation of mplayer for new users. I think we've learned quite a bit over the last year and a half to debug mplayer problems before we recommend re-compilation.
I'm awfully comfortable with this linuxquestions forum. It's nice to have a one-stop shop for answering questions rather than having to post the same answers on three or four or more separate threads. Yes, I do end up repeating myself a lot because it's too unreasonable to ask anyone to go back more than a page or two, but that's the cost of convenience to me. You guys can always post to the Sourceforge forums. Which reminds me, I need to update the sourceforge for what we have so far since we are getting new users. (yay!)
As for Android, I recommend reading the Apple Live Streaming spec. I know you told me Android doesn't support it, but maybe you could build a similar solution, e.g. a proxy server that one end downloads the stream from mlb.com and on the phone facing end, it sets up a stream. I don't know how to do this and if you figure it out, it's probably still a good idea to keep it on the down-low.
As long as I've got your ear (eyes), can you take a look at reefis' problem? It seems like both his mplayer and his Xorg has Xvideo but for some reason mplayer refuses to use it.
ok. i don't know where to put the avi file so i can run that command (replacing somevideo.avi with the avi on my computer)
i did the last thing you suggested and got this:
reefis@ubuntu:~$ dpkg --get-selections | grep xv
libxcb-xv0 install
libxv-dev install
libxv1 install
libxvidcore4 install
libxvmc1 install
reefis@ubuntu:~$ grep XVideo /var/log/Xorg.0.log
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
So what I think is going on is that mplayer is compiled with Xv (the video output that would allow proper fullscreen) and your X server has the XVideo extension loaded. But for some reason, mplayer is not able to use it.
So let's back up and repeat the mplayer steps to get an mplayer log (not an rtmpdump log) to see what mplayer is saying.
[code]
$ cd mlbviewer-svn
$ test/soapevent.py 14-264036-2010-04-22
[code]
Ctrl-C this after about 5 seconds.
Now in the same directory (mlbviewer-svn):
Code:
$ mplayer 14-264036-2010-04-22.mp4 | tee mplayer.log
Has anyone got NexDef working with archived games using the official flash player? I still can't get NexDef to work at all with the official flash player. I have had a little success with some code I'm working on, but only with live games.
If you have it working, please do the following:
1. Take a Wireshark trace (you may have to turn off promiscuous mode if you are using a wifi interface.)
2. In the filter, enter "http"
3. "Save As" and save only the "Displayed" Packet Range. Name it something useful like nexdef.pcap.
4. Send that pcap file to my yahoo account (grep yahoo README)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.