• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

Install MPlayer

Started by jep, 2008.04.30, 16:05:41

Previous topic - Next topic

jep

Hello,

Quote from: ddan on 2008.05.26, 06:49:19
To jep and OriAl:
Line 41 surely isn't right?:
'SET MPLAYER_HOME='home_path'\.mplayer'
                       delete the period ^
Or is my knowledge of command line dot-iness less than perfect?

The link at the top says that it should be a dot in front of mplayer as .mplayer, it's a Linux config directory thingie, very ugly I say, but since they've decided to use that notation, we better accept it, I guess.

It's possible to adjust it as you have done though, but if you set config.sys-entries like that first, you must change the code likewise to reflect the changes!

Quote from: ddan on 2008.05.26, 06:49:19
BUT then mplayer complained (besides not running after brief blank screen):
MPlayer dev-SVN-rUNKNOWN-3.3.5 (C) 2000-2007 MPlayer Team
CPU: AMD Duron(tm)  (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
The cache option can't be used in a config file.
Error parsing option cache=12288 at line 2
Warning unknown option cache-min at line 3

If you on the other hand have specified something else in advance in config.sys, then the code won't do you any good, and then rather cause the problem you describe.

Ahh, yes, you've changed the "SET MPLAYER_HOME=" setting, that's probably why!

Quote from: ddan on 2008.05.26, 06:49:19
THEN, I deleted the two config files that your script makes, and I got video
too, plus a LOT of text in the calling window, mostly like:
A:  65.2 V:  65.2 A-V:  0.0022 ct: -0.022 904/904  4%  3%  0.2% 150 0
Is that normal? My experience with MPlayer is nearly 30 seconds at this
instant. Minimizing the calling window seemed to free up the CPU.

Before I wrote the script I got text like that as well. The config entries suppress the output of those messages. Every output can take quite some cpu power and therefore slow down your video experience if you have a slow computer. Minimizing the text window should to my knowledge let it skip updates to that window.

It's though quite instersting to see what codecs each movie require for audio and video, and the time it take to load each codec, but the rest just take cpu cycles.

Quote from: ddan on 2008.05.26, 06:49:19
By the way, in copying text to an OS/2 window or to a DOS word processor, I
frequently get duplicated characters, not obviously the same one or same
place, except that it seems to particularly like doubling slashes. This is new
to me in plain Warp 4 and now in WSEB. Old problem? Unique to me? Anyone know
of a cure for it?

Hmmm, I haven't seen that in PM (GUI) applications, can it have something to do with that it esccpae the '\'?
In C/C++ the character '\' can't be used on its own, it has to be escaped with yet another '\\' to mean what me see as the character "\". '\n' = new_line, '\0' = end_of_text etc.

//Jan-Erik
Fixed a line I think look wrapped in the code above, but now I can't find any more.

ddan

To clarify a little:
I didn't even test with the dot in ".mplayer", just edited it first thing.
Nor did I test with those items "SET" in config.sys, didn't reboot during testing.
Yes, I made directory names match. This is manifestly right. It's obviously finding the \os2\mplayer directory; from the config files there is where mplayer got the cache figures from, though it didn't LIKE them.
Meant to say that the sound only worked (on about the third test), but video did not -- until I DELETED the config files in \os2\mplayer entirely, then got video. This also seems to be manifestly -- visibly, even -- the right way.
Looks to me better to rely on as many defaults as possible.

I'm less than thrilled with results, but don't know how much to discount for that I've only generic unaccelerated driver from SNAP 3.18 for onboard S3 Unichrome. In any case, I won't be adding a separate card, not much interested in video. K Movie Player seems to work better, just fine IF a nice standard codec is used.

OriAl

Could part of my problem be that I have mplayer installed on drive G?  Should it be elsewhere?

ddan

This isn't as difficult as it seeems. I suggest you start over with the setup I give here:
http://www.os2world.com/component/option,com_smf/Itemid,63/topic,970.msg6306/#msg6306

Except that I managed to slightly mangle my own:
SET MPLAYER_PATH=C\MPLAYER\MPLAYER.EXE
                            ^^^^^should be a colon ":" after "C"
That only makes it so you have to be in \mplayer to run it, or explicitly specify the path. Didn't bother me during testing.

Now, to have the mplayer files on "G:", change "C:" to "G:" in those "SET" statements.

I'm going to say disregard all other advice, undoing it where needed, based on the fact that my installation is working, and if _I_ can get it working, then it's easy. -- I've spent much more time on these postings than actually using mplayer.

<Warning: irrelevant diversion follows.>
What might we deduce from the following facts, not unique to the particulars, but presented with good contrast to make a fairly clear case?:

I didn't expect installation to work, didn't much care if it did, spent five minutes at it: result, I have a working mplayer.

OriAl and others presumably expected it to work, hoped that it did, and have spent apparently hours trying. Their result, not working.

Obvious conclusion: Pessimism and Indifference are rewarded in this perverse universe.

Saijin_Naib

Win for the above comment.

My mplayer plugin seems to work in phases with the moon or some other such divinity-based cycle. I've more or less quit caring about it, its a bigger pain in the ass than its worth, Ill just have Firefox temp DL everything for now.

OriAl

I have limited knowledge, so I hope things work.  I still haven't gotten the .cmd file to run, and I don't know if mplayer is working without it.  How can I test it?

jep

#21
Hello OriAl,

Right Click: Free area on the Desktop
Menu select: New Object -> Program
Edit name: MPlayer
Right Click: On new Icon
Menu select: Properties
Field: Path and file name
Type: path to mplayer.exe
e.g. C:\Programs\MPlayer\MPlayer.exe
Field: Parameters
Type: %**P\%**F
where %**P mean the path and %**F mean file with extension
Close window

Drag & drop movie on the newly created icon, a vio window appear with information about the file and after a while the actual movie in a separate window.

Note: It's possible to add more options in the Parameters field, e.g. -framedrop for slow computers etc.

//Jan-Erik

OriAl

I've followed your instructions, and have .  I've never downloaded a movie - where would I find one to test?

Thank you.

BigWarpGuy

http://www.pocketmovies.net Here are some movie trailers, short films and animations at this site. I down load the .mpg files and play them using Warp Vision.  ;D

OriAl

I still haven't got mplayer working.  I have the set statements correct for my drive G install (I believe), and the correct plugin.  As I've said, I'm not good with computers, so I really appreciate all the help I get from the eCS-OS/2 community.

RobertM

Quote from: OriAl on 2008.07.25, 04:05:19
I still haven't got mplayer working.  I have the set statements correct for my drive G install (I believe), and the correct plugin.  As I've said, I'm not good with computers, so I really appreciate all the help I get from the eCS-OS/2 community.

In what way is it not working? Are we talking about as a Firefox plugin, or standalone?

Robert


|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|


jep

#26
Hi OriAl,

Does it play something for you?

If not, let's determine what may go wrong.

1) You have a folder with some videos in the Multimedia Folder ( Desktop -> Programs -> Multimedia -> Movies
2) Do you have a file that end with the extension .mpg there?
3) If so, drag & drop it on the icon for MPlayer
4) A textmode window should appear with some text on it... after a moment a PM window should appear and the movie shold begin to show.
5) Use the arrow keys ( left/right ) on you keyboard to wind/rewind 10 seconds. Up/Down to wind/rewind 60 seconds. Use Space key to pause.
6) Use / and * (top middle buttons) on the numeric part of you r keyboard to lower and raise the volume.
7) Close the text mode window after you've looked at the movie.

Please tell us if you've managed to look at a movie file this way!

Someone else, more experienced may help us out on how to play movies through the web browser.

//Jan-Erik

OriAl

I'm sorry I haven't gotten back to you.  I'm having more health problems, and my mother is, also.  I'll do these things as soon as I can. 

If I finish this. I'll then try to install ClamAV.  I wish I had more computer knowledge.

RobertM

Quote from: OriAl on 2008.08.12, 03:58:15
I'm sorry I haven't gotten back to you.  I'm having more health problems, and my mother is, also.  I'll do these things as soon as I can. 

If I finish this. I'll then try to install ClamAV.  I wish I had more computer knowledge.

:-[

OriAl: Hope you both do better. My best wishes and thoughts are with you both. Come back to us when you can and we will try to help you out.

Rob


|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|


Ben

#29
Quote from: OriAl on 2008.08.12, 03:58:15
I'm having more health problems, and my mother is, also.
Geez, OriAl, I hope it's nothing serious for either of you.

May you both master it soon!


8 )