• 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

mPlayer Plugin and Media Player Connectivity

Started by melf, 2008.04.24, 10:33:13

Previous topic - Next topic

Pete

Quote from: Saijin_Naib on 2008.04.25, 11:02:28
Doooh, so close. I now get "Click to play" and then "Mplayer running..." then immediately back to "Click to Play". I have similar entries to melf in both my config.sys and my C:\HOME\DEFAULT\.mplayer\config files.


Hi Saijin_Naib

Either you are trying to play a clip that, as mentioned previously, does not want to work due to the way the server is configured to stream the file or you have mplayer not quite configured.

Here is a working server: http://news.bbc.co.uk/  then click on the "Watch News headlines" link which should open a webpage telling you "We are sorry but you don't appear to have any compatible media plugins." I selected the Windows Media option and then clicked OK.

The "Click to play" window appears and I click it... and wait while mplayer fills a proportion of cache before it, eventually, starts to play.

Does that happen for you?

If not come back here and we'll all have a go at your configuration  :-)


Apologies to everyone for failing to respond to all the queries that my post generated. I have had a busy day and did not get any time to "play on computer" until around an hour ago. I see most people have this working now though so my help was obviously not desperately required  ;-)


I got a lot of mplayer tips/info from a discussion on news.mozilla.org/mozilla.dev.ports.os2 in the thread Media Player Connectivity and suggest that others may also benefit from looking through that thread.


Have fun  :-)

Pete

Saijin_Naib

Thanks Pete, but so far, it's still doing exhibiting the same behavior as before. It simply does not seem to want to work :C

Pete

#17
Quote from: Saijin_Naib on 2008.04.26, 02:17:09
Thanks Pete, but so far, it's still doing exhibiting the same behavior as before. It simply does not seem to want to work :C



Hi Saijin_Naib

Presuming you have the 3 software packages mentioned in my previous post ie current mplayer, the "test" plugin and the wincodec package installed OK we should be able to get it working. Earlier versions of mplayer and any previous plugin are *Not* capable; you *Do* need the wincodecs for a lot of video formats.

I have the wincodecs in a subdirectory of mplayer ie mplayer\codecs  -  you can leave them within the "Windows-Essential..." folder which should be within the mplayer\codecs directory ie mplayer\codecs\windows-essential-...  Obviously any codec related paths in config.sys or %HOME%\.mplayer\config files need to point to that directory 


I have the following config.sys file entries:-

REM ***** mplayer variables
SET MPLAYER_PATH=H:\MMOS2\MMPLAYER\mplayer\MPLAYER.EXE
SET MPLAYER_CODECS_DIR=H:\MMOS2\MMPLAYER\mplayer\codecs


My %HOME%\.mplayer\config file contains these entries:-

# Write your default config options here!
cache=12288
cache-min=30
user-agent=NSPlayer/4.1.0.3856

If you need to force use of DIVE add this:-

vo=kva:dive

Usually mplayer seems to be able to work out what to use though.

My Seamonkey plugins directory does not have any of the NPOS2*.DLL files in it


I think that about covers my installation and configuration...


Now we need to know what your configuration is like?



For the benefit of any(every?)one who has not had a look through the Mozilla ng thread I mentioned previously here are a few possibly useful tips I found there, cannot remember whose... possibly a Steve :-


And here's some tips that someone might like:

1) If you copy a TTF font to %HOME%\.mplayer\subfont.ttf, the OSD will
be able to show text.  The smallest one I had was Trebuc.TTF, and that
works fine.

2) MPlayer will make a playlist out of all the files on the command
line; for example "mplayer file1.mpg file2.mpg file3.mpg" or "mplayer
file?.mpg" or "mplayer file*.wmv"

3) You can define mouse buttons and keyboard keys to do lots of
different things.  Here's my %HOME%\.mplayer\input.conf:

MOUSE_BTN2 vo_fullscreen
PGUP pt_step -1
PGDWN pt_step 1
+ volume 5
- volume -5

This sets mouse button 2 to toggle fullscreen, PgUp/PgDwn to go forward
and back through the playlist, and ± to raise/lower the volume by 5%.

4) Any command-line options can also be specified in
%HOME%\.mplayer\config; here's some useful ones:

really-quiet=yes
fixed-vo=yes
colorkey=0x000001

This turns off most of the (verbose) messages, makes the transition
between videos in the playlist smooth by keeping the video window open
and fixed size (works best with fs=on), and sets the colorkey to a shade
of black instead of the default bright green.  Note that you don't want
to use solid black (0x000000), as then any console windows or other
black areas on your screen will then be transparent when over the video.
Also note that color keying is relevant for overlays, so it probably
doesn't do anything if you are using DIVE output.

5) As discussed previously, if you are getting jerkiness or lags in the
video, but you have a fast connection, you should set/boost your cache
and/or cache-min values.  Note that this causes a delay before it starts
playing video...


Regards

Pete




Saijin_Naib

Found out what I was doing wrong. I had the same entries in both my config.sys and my mplayer config. Removed the redundancies and now all is go. Except that to make anything play, I must click it twice. It will fail the first time, then the second time it will play. I also had to remove the np****os2 plugins, and I guess  I am mostly settled now.

Thanks!

RobertM

Pete and melf,

Thanks very much!!! All worked wonderfully! If one of you can combine the info you posted to make an article "Installing and using mPlayer as a plugin for Firefox" that would be great! If you dont have time, I can combine your posts to do that for us... lemme know!

Working like a charm!!!

Thanks again,
Robert


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


Pete

Quote from: RobertM on 2008.04.29, 23:00:50
Pete and melf,

Thanks very much!!! All worked wonderfully! If one of you can combine the info you posted to make an article "Installing and using mPlayer as a plugin for Firefox" that would be great! If you dont have time, I can combine your posts to do that for us... lemme know!

Working like a charm!!!

Thanks again,
Robert



Hi Robert

Please feel free to use anything from my posts that has been of help when putting together a "how to" get mplayer plugin working with Mozilla browsers - I use Seamonkey, not Firefox; and an "unofficial" (PmW) version at that  :-)

When reproducing the "tips" please note that I did find those in a mozilla newsgroup and think there were posted by Steve Wendt - you may want to double check the ng thread so that credit is given to the author. You may also find a few more odd tips in that thread worth including.

Regards

Pete

RobertM

#21

Thanks Pete! Done!




Everyone, All the Instructions and Tips have been placed into an article on the main site. It can be found here:
http://www.os2world.com/content/view/17999/2/

Please feel free to use this thread if anyone has any questions or problems or suggestions for how we can modify the article to be more helpful or easier to understand.

And much thanks to Steve Wendt, Melf and Pete for their contributions in making the article possible (I just formatted all their tips into one article - they did the hard work).

Thanks,
Robert



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


melf

Just saw your "formatation". Nice tutorial Robert!
/Mikael

RobertM

Quote from: melf on 2008.04.30, 10:01:45
Just saw your "formatation". Nice tutorial Robert!

Hi melf,

Thank you all! As I said in it, you all did all the work - I just formatted it and posted it.

Thanks again,
Robert


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


jep

Hello,

I'm writing a rexx script to follow your instructions on how to install MPlayer.

You mention that one should create an mPlayer Home Directory (such as D:\HOME\DEFAULT\mPlayer), shouldn't it be .mPlayer as mentioned later?

I'm not used to the Linux way of doing things so dots like that look wrong to me.

//Jan-Erik

melf

#25
Hi, jep!
In fact I think mplayer creates that directory by itself, first time you run it. At least if you have the general SET HOME statement i config.sys. And yes it is .mplayer . Seems to be a big help to be able to write those REXX scripts. Thanks for sharing them!
/Mikael

RobertM

Guys, thanks for the fix on the article! :)

As a side note, I hadn't realized that mPlayer would create such a directory because none existed on my system - or so I thought. So, after reading your posts, I went looking for it. Apparently, mPlayer created it here:

D:\APPS\OpenOffice.org.2.0\program\.mplayer

Anyway, here's something else I found, which may make the script a bit easier... if a HOME directory is defined in the config.sys file, the next time mPlayer is loaded (after reboot), it will recreate the HOME directory and default config file in the new location specified in the config.sys file.

Robert


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


Pete

Hi Robert

You are missing an important factor in the "how to": it is NECESSARY (Sorry to shout but this is important) to update the mplayer plugin with this package http://www.7xx.org/komh/npmp_test.zip

This came to my attention via the os2 uk user group - Yes, we still have an active mailing list :-) -

"
> I have recently followed the instructions from os2world to install
> mplayer as a plugin to SeaMonkey (1.1.9).
>
>    1. With MediaPlayerConnectivity also installed, trying to play audio
>       or video from bbc.co.uk causes SeaMonkey to crash, freezing OS/2
>       in the process: reboot needed
>    2. Removing MediaPlayerConnectivity removes the crash, but nothing
>       plays at bbc.co.uk
"


Having looked through the "how to" the only bit obviously missing is the instruction to update the mplayer plugin with the above package.

Have you noticed that instructions (how to pages) are like software - it usually takes a few goes to produce the optimum usable/working version  :-)

Regards

Pete


RobertM

#28
Hi Pete,

UGH!!! That was in the first revision... I had problems with the links being converted to "mailto:" links and when I recreated them, I must have missed putting it back in.

UPDATED!

Thanks!
Robert


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


klipp

Hey Pete! Thanks for the post. That's what  was killing me while trying to make mplayer work! You're right about How-to's, as you found the missing items in the one I wrote a while back, but eventually they  get corrected and "grease the wheels" of eCs thanks to people like you.
  An additional question for all, possibly "off subject" but I thought this might fix the problem I have with my web site but it didn't. -- it won't play .wav files or .midi but works with windoz!  Any ideas?

thanks again   klipp
********************************************************************
Windoz Free! eCS 2.0 serving Linux, Windoz & OS2
rklipp@megared.net.mx
********************************************************************