LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mplayer install help (https://www.linuxquestions.org/questions/linux-software-2/mplayer-install-help-36841/)

TomGerman 11-29-2002 07:01 PM

Mplayer install help
 
I really want to play DVDs... I'm a total :newbie: and I just got my first linux distro (redhat 8), so I'm not sure how to go about installing this. If someone would be kind enough to put up detailed instructions that'd be great :cool:

- Thanks ~

acid_kewpie 11-29-2002 07:04 PM

there are LOTS of instructions in the documentation at their site, http://mplayerhq.hu that's that it's there for...

TomGerman 11-29-2002 07:07 PM

Yeh, I read those and really didn't understand them. Need simple instructions.. btw that link doesn't work.

acid_kewpie 11-29-2002 07:07 PM

well there are plenty of generic instructions on this site, jsut use the search facility

TomGerman 11-29-2002 07:25 PM

Then build MPlayer:

./configure
make
make install


HUK? This does nothing, and I'm not sure how to extract the MPlayer-0.90pre10.tar.bz2 to anywhere... god I made a horrible horrible mistake:jawa:

acid_kewpie 11-29-2002 07:29 PM

well try searching this site for a thousand identical instructions on how to use tar ... if you do you'll just see...

tar jxvf mplayer-0.90pre10.tar.bz2

which will extract it to the current directory.

TomGerman 11-29-2002 07:41 PM

hmm weird.. it doesn't work.. I pasted it directly, so I couldn't have made a mistake.. gives me this error.. "no such file or directory".. I know it's in the directory I'm in.

TomGerman 11-29-2002 08:42 PM

Got everything installed, but the playback seems to skip every other second.. kinda like laggy I guess you could call it. I read the doc and it said to enable DMA via the command:

"hdparm -d1 -a8 -u1 [cdrom] "

my line looks like this: "hdparm -d1 -a8 -u1 /mnt/cdrom"
and it gives me a uh oh saying "/mnt/cdrom not supported by hdparm"

Any ideas?

TomGerman 11-29-2002 08:51 PM

I fixed that and got the settings working, but it's still jerky... any ideas?

trickykid 11-29-2002 10:13 PM

Have you tried any other video options ??

mplayer --help for more details.

What kind of hardware are you running this on ??

TomGerman 11-29-2002 11:31 PM

This is running on an athlon 1.47 ghz, 512 ddr, geforce 4 ti4600 (gainward golden sample), maxtor 20g, ata 133 7200 rpm, SB live! 5.1, kg7 RAID. The DVD drive itself is a creative "ovation" 16x. I'm gonna look through the help thing, but I doubt it'll help much :( .. I'm afraid I just wasted $$ on the dvd drive.

trickykid 11-29-2002 11:38 PM

Check out this link for the docs on video output. http://www.mplayerhq.hu/DOCS/video.html#normal

Most likely you just need to try a different vo output.

And don't doubt your new dvd, you didn't waste money. I have just a 900mhz machine with a ATI Xpert 98 8MB video card with 512 Megs of RAM, Pioneer 10x DVD drive and mine works like a charm.

TomGerman 11-29-2002 11:58 PM

Well, I tried to -xv vo thing or whatever, I checked to see that my setup supported it, but alas nothing seems to work. Just constant jerkiness.. it freezes every other second. I have the latest nvidia drivers... although I did remember getting a warning about GLX or something, even though Ut2k3 works flawlessly.

trickykid 11-30-2002 12:03 AM

Try either passing -vo sdl or maybe -vo x11 and see if those work if you haven't tried those.

TomGerman 11-30-2002 12:09 AM

nope, neither of those work :( Looks like I'm screwed, I have no clue why either. I tried disabling sound as well and that had no effect on it, so at least that narrows it down a bit.

trickykid 11-30-2002 12:20 AM

Not sure myself at this point. Maybe try a different DVD disc ? Could be the codecs used, maybe they don't like that DVD player... Hmmm...

TomGerman 11-30-2002 12:26 AM

Nope, it does it with several dvds. While I'm at it, how do I uninstall mplayer? No point in it wasting a huge amount of space.

MasterC 11-30-2002 12:38 AM

It doesn't waste much space actually, it's very small. To uninstall most software, if compile from source, you enter the directory where you typed:
make install
and type:
make uninstall

And that should be it.

But you might wanna try fiddling a bit more, it's one of the best programs around.

What's the line you type to play it anyway?

Cool

TomGerman 11-30-2002 12:44 AM

I've tried several different ways of playing it, but the line I use it is:

"mplayer -dvd 1 -dvd-device /dev/cdrom"

MasterC 11-30-2002 12:49 AM

Ok, well you are specifying alot, but I don't think it'd be causing you problems like that, just try:
mplayer -vo xv -dvd 1

OR
mplayer -vo x11 -dvd 1

Cool

TomGerman 11-30-2002 12:57 AM

When I type those it says, cannot find dvd device "/dev/dvd" which leads me to believe that linux doesn't recognize that this drive is in fact a DVD drive, which would mean that I flushed 80 bucks.

TomGerman 11-30-2002 12:57 AM

Here's the exact output:
"
Playing DVD title 1
libdvdread: Can't stat /dev/dvd
No such file or directory
Couldn't open DVD device: /dev/dvd
"

MasterC 11-30-2002 01:00 AM

Nah, that just means you don't have the symlink setup correctly

No biggie

Do this in the terminal:
ls -l /dev/cdrom

Notice the device it's pointing to, now link /dev/dvd to it:
ln -sf /dev/WHATEVER /dev/dvd

where /dev/WHATEVER is what you find from:
ls -l /dev/cdrom

Cool

TomGerman 11-30-2002 01:10 AM

weird, I did what you said, and it won't link it

ln -sf /dev/hdc /dev/dvd

hdc was what it was connected to..

TomGerman 11-30-2002 01:13 AM

Oh nm.. it worked ok, didn't have the dvd in LOL... but still is jerky as hell :(

MasterC 11-30-2002 01:22 AM

Don't give up just yet, Acid_Kewpie is the resident expert and might have some other options for you, like drop frame and things.

Also, try caching maybe:

mplayer -vo xv -dvd 1 -cache 128

I don't know, might help

Cool

TomGerman 11-30-2002 01:24 AM

it gives me an error saying my system is too slow to play this when I do the cache thing

TomGerman 11-30-2002 01:25 AM

It tells me that I have a slow CPU.. I guess 1.4ghz is slow nowadays, but lol...

TomGerman 11-30-2002 01:28 AM

I tried -cache 8192 and it helped a little bit, but it still was jerky and I lost the ability to type anything outside of the dvd window.

MasterC 11-30-2002 01:29 AM

Oh, you might also wanna try compiling mplayer with different options, like this for example:
--enable-runtime-cpudetection Enable runtime CPU detection [disable]

That's something I used for better performance.

Cool

TomGerman 11-30-2002 01:31 AM

So by compile you mean "make" and "make install?".. I'm kinda new at this lol

TomGerman 11-30-2002 01:38 AM

Hmm I played it with -nocache and it ran well until I opened up Mozilla, then it said something about "broken pipe"

"No bind found for key MOUSE_BTN0 4% 10.6% 49 0 0%
Broken pipe 81.2 A-V: -0.012 ct: -0.155 2425/1940 12% 4% 12.1% 78 0 0%"

dunno if that has anything to do with anything... but thereafter it was jerky again :(

MasterC 11-30-2002 01:43 AM

Probably killed your cache, but yeah it's make make install thing, like this though:

./configure --with-runtime-cpudetection
make
make install

But you can find more options with:
./configure --help

And then go from there.

Cool

trickykid 11-30-2002 02:04 AM

Don't worry about the message stating that your machine is too slow, mine does that too and shouldn't affect it.

Also to add, Mozilla is a resource hog itself. Can you run like top and see how much memory/swap is being used ? Not sure if that would have any affect but it is strange how it was running good there for a moment til you opened up Mozilla.

TomGerman 11-30-2002 02:13 AM

looking at the error again, it said that that could be a possible reason, not necessarily what is wrong with it. Which utility should I use to check the resource consumption?

trickykid 11-30-2002 02:15 AM

Just type top and it should start the display of all processes running and your memory and swap usage. Hit q to quit.

trickykid 11-30-2002 02:22 AM

Oh and just noticed, when you ran that command for hdparm, you tried to specify your cdrom ?? You can't run that command (that I know of or its new to me) for you cdrom or dvd player, that's why you got errors.

Try this command:

hdparm -d1 /dev/hdX

Where the X in hd is your particular hard drive. Most likely if its the primary IDE, it would be hda. So it would read like this:

hdparm -d1 /dev/hda

And see if that does any better at getting rid of the jerkiness and lag.

TomGerman 11-30-2002 02:24 AM

k, I ran that and noticed the moment CPU usage went over %16, the jerkyness started heavily. Just moving the mouse boosted me up 6 or 7 percent, so mozilla definitely put me over that figure. Still mystified about this whole thing... I could run like 10 apps and play a dvd on winblows2kpro with no problems.

TomGerman 11-30-2002 02:29 AM

That command hdparm -d1 /dev/hda helped a bit... noticed it didn't jerk out as easily.. but after moving the mouse around and switching to mozilla it instantly started

trickykid 11-30-2002 02:31 AM

I Re-Read the mplayer FAQ and Docs, you should be able to set the hdparm for your cdrom.. but try the actual device instead of the symlink, and also make sure your logged in as root for access with the hdparm command.

But something is definitely wrong. With your system you shouldn't have any problems running several apps and playing dvd's.
Yours is better than mine and I've had anywhere to 10 to 15 Galeon windows opened, evolution running, mplayer going with Gaim, several terminals going while compiling an app.. with no problems.

I would try that hdparm command again and also try the cache option when running the movie again.

trickykid 11-30-2002 02:34 AM

Quote:

Originally posted by TomGerman
That command hdparm -d1 /dev/hda helped a bit... noticed it didn't jerk out as easily.. but after moving the mouse around and switching to mozilla it instantly started
Do you have any other browsers installed, like Galeon. Galeon is much lighter on resources. Might want to try that out but go ahead and test it with the cache option and also try with the video option of -vo x11 and see what happens, without opening mozilla.

How big is your swap and how much of the memory was being used ??

TomGerman 11-30-2002 02:44 AM

I have a 1024 mb swap, and while I was running it, 414 mbs of phys ram was being used out of 512 .. seems like a shitload. I noticed the slowdown started when the dvd stopped spinning.. then when it started respinning it was jerky.

trickykid 11-30-2002 02:50 AM

Don't worry about the RAM amount, that's normal in Linux.

Well, is this the same DVD you had while using Windows ? Seems like it could be a hardware related issue with that last description. Did you try running that hdparm for the dvd device again as root and using the actual device name like /dev/hdc or something along those lines. I know you did with your hard drive, but maybe try with the dvd drive.

Well, my eyes are watery and burning from staring at this screen for too long... time to go to bed. Hopefully we can get you fixed up soon. Acid should see this thread here soon, maybe he can give us some insight on it.

TomGerman 11-30-2002 02:53 AM

I'll try to keep working on it, thanks much for your help :)


All times are GMT -5. The time now is 07:35 AM.