OS2World OLD-STATIC-BACKUP Forum

OS/2 - Technical => Internet => Topic started by: melf on 2008.04.24, 10:33:13

Title: mPlayer Plugin and Media Player Connectivity
Post by: melf on 2008.04.24, 10:33:13
Hi all,
I'm having troubles with MPC. For some time, a couple of months or half a year MPC doesn't work anymore. (Sorry to say, I can't specify if that happened after some application install or other change in system.) I just get the "plugin is missing" message. I've tried deinstalling and reinstalling and also deleting saved records regarding MPC in my Mozilla home directory. I'm using eCS RC4 and now FF 2.0.0.14.

Does someone regognize this? Is MPC depending on some files I could be missing?
Title: Re: Media Player Connectivity
Post by: Pete on 2008.04.24, 17:14:47
Hi Melf

Have you checked the MPC configuration is setup correctly?

The message you get is indicative of MPC not being set to play the file (or possibly mime) type involved.


And - Why are you not using mplayer with the updated plugin for most vid clips?

mplayer    http://hobbes.nmsu.edu/pub/os2/apps/mmedia/video/players/mplayer-dev-svn-r26012-os2-3.3.5.zip
the later browser plugin  http://www.7xx.org/komh/npmp_test.zip
win32 plugins  http://www8.mplayerhq.hu/MPlayer/releases/codecs/windows-essential-20071007.zip


Have fun  :-)

Pete
Title: Re: Media Player Connectivity
Post by: Saijin_Naib on 2008.04.24, 19:08:23
When I tried the MPLAYER mozilla plugin I just got a tab with a black screen and no controls or anything. Nothing ever played.
Title: Re: Media Player Connectivity
Post by: RobertM on 2008.04.24, 21:01:46
Quote from: Saijin_Naib on 2008.04.24, 19:08:23
When I tried the MPLAYER mozilla plugin I just got a tab with a black screen and no controls or anything. Nothing ever played.

Hi Saijin_Naib,

IIRC, the mPlayer plugin does not yet work. What you need to do is install the MediaPlayerConnectivity plugin and assign various file types to mPlayer. Someone, please correct me if I am wrong - because I would love to have mPlayer working as a Firefox plugin directly - without the need for MPC.

NOTE: in configuring MPC, don't just type in "mplayer.exe" unless you have modified your config.sys path statements accordingly - otherwise MPC will try to start the WinOS2 mplayer.exe instead of the OS/2 program.

Running mPlayer this way will result in a separate VIO window with mPlayer's normal messages about what it is doing, as well as a video window with no controls. To fast forward, or rewind, use the arrow keys on the keyboard. To pause, use the spacebar. When the video is completed, if the video window does not close, simply hit the close button on the menubar. In addition, you can then close the VIO message window in the same fashion.

If you use KMP for such things, you can use the mouse to seek. Click on the video window to seek forward or backwards. The method is relatively simple, if somewhat inaccurate - if you click half way (from left to right) it will seek to 50% on the file... if you click 1/4 of the way from the left edge of the video window, it will seek to 25% of the video.

mPlayer has the option of handling streams better than KMP (which I dont know if it handles them at all) and will also try finding a stream using multiple methods, including RTSP, RTP (both on all the standard supported ports) and HTTP if the initial link/method sent to it fails.

Personally, I use UnPlug to download them and then just drag-n-drop the file onto a KMP icon to play them.

Hope that helps somewhat.

Robert
Title: Re: Media Player Connectivity
Post by: Pete on 2008.04.25, 03:31:17
Quote from: RobertM on 2008.04.24, 21:01:46


IIRC, the mPlayer plugin does not yet work. What you need to do is install the MediaPlayerConnectivity plugin and assign various file types to mPlayer. Someone, please correct me if I am wrong - because I would love to have mPlayer working as a Firefox plugin directly - without the need for MPC.

Robert


Hi Robert

Correction: the mplayer plugin (url in previous post) works fine with some vids and not at all with others. Seems to depend how a website streams the vid...

What are you doing wrong? - wrong plugin or older mplayer build? Do NOT bother with the pugin supplied with the mplayer package as that is fairly much a non-worker - get the later test plugin mentioned before.

No useless old NPOS2*.DLL files hanging around in the Mozilla plugins directory causing problems?

Do you have the mplayer win32 plugins installed correctly?

Did you reconfigure MPC to not play those file types that the plugin can play?

There are probably more questions based on answers to the above...  :-)

And... don't forget to read the docs - possibly something missing from Saijin_Naib's exploration of mplayer  :-)


Regards

Pete





Title: Re: Media Player Connectivity
Post by: Saijin_Naib on 2008.04.25, 04:15:30
You are right, I didn't read the docs. I made the mistaken assumption that I could just put the npmp plugin in my MOZ_PLUG directory and be done with it. Now that I have the (supposedly) functional plugin downloaded & in my MOZ_PLUG directory, I get a black tab that says "Click To Start MPlayer" then "Failed to start MPlayer".

I have tried to read the doc and write this mplayer_path variable to the config file, but I don't know the syntax the program expects, and so, after reading the docs, I still do not have a functional Mplayer plugin.

Here is what my config (C:\HOME\Default\.mplayer\) states:
# Write your default config options here!
MPLAYER_PATH C:\Programs\Mplayer
Title: Re: Media Player Connectivity
Post by: RobertM on 2008.04.25, 05:12:44
Hi Pete!

1) I am using broken plugin from mPlayer (Ooops!)

2) I did not install the WinCodecs (as I had read elsewhere they werent necessary) (Ooops!)

3) I had not removed the NPOS2*.DLL files (Ooops!)

I wonder why I am having problems... hmmm...  ;)  ;D

Thanks very much! Will give it a try the correct way now and see what happens!




Saijin:
I put this "SET MPLAYER_PATH=D:\Apps\mPlayer" in my config.sys (change your location as appropriate) and then put "D:\Apps\mPlayer;" in the front of my PATH= statement and (dunno if this was necessary) also put "D:\Apps\mPlayer\CODECS;" in the front of my LIBPATH= statement.

Robert
Title: Re: Media Player Connectivity
Post by: RobertM on 2008.04.25, 05:38:00
Hi Pete,

I have set up and installed as per my previous post, removed anything related from MPC, installed the WinCodecs as per the instructions on the mPlayer site, (and fixed issues 1-3). I am getting the same results as Saijin_Naib when trying the test videos in the same directory that the test plugin is located in. :(

Any suggestions would be greatly appreciated.

Robert
Title: Re: Media Player Connectivity
Post by: melf on 2008.04.25, 09:34:00
Hi Pete,
Didn't know about this plugin. Would be great if it worked, but I have the same problem as Robert and Sajin_Naib.
Title: Re: Media Player Connectivity
Post by: Saijin_Naib on 2008.04.25, 09:48:03
I wouldn't care as much about Mozilla Plug-in if Mplayer/2 had a PM-SHELL GUI it ran in and didnt leave stray VIO windows around. Hell, even in Windows, I have media launch in WMP directly. Its a lot nicer than having a tab hanging around doing nothing when the stream is done.

I think this would be a great feature, even a simple (I mean, really simple) gui would be welcome. Or am I wrong?
Title: Re: Media Player Connectivity
Post by: melf on 2008.04.25, 10:41:46
Now I have it up running! Works very well, tried it on BBC.  I have these statements i my config.sys:

SET MPLAYER_HOME=D:\HOME\DEFAULT\.mplayer
SET MPLAYER_CODECS_DIR=D:\APPS\MPLAYER-DEV-SVN-R25844-OS2-3.3.5\codecs
SET MPLAYER_PATH=D:\APPS\MPLAYER-DEV-SVN-R25844-OS2-3.3.5\mplayer.exe

adding "mplayer.exe" in the PATH statement did the thing.

Thanks a lot Pete!

A little movie (*.mp4 1,2MB)  http://elfonnet.nu/pics/mp.mp4 (http://elfonnet.nu/pics/mp.mp4)
Title: Re: Media Player Connectivity
Post by: 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.
Title: Re: Media Player Connectivity
Post by: The Blue Warper on 2008.04.25, 13:05:11
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 all!

Saijin_Naib,
just a little hint.  As I happen to remember you've got your video-card running under Panorama VESA driver, have you tried running mplayer with the correct parameters (there's an option for DIVE output: sorry, but I haven't the docs at hand right now)?
Regards
Title: Re: Media Player Connectivity
Post by: melf on 2008.04.25, 16:14:47
I just have to say after some more tests. This plugin works splendid!
Title: Re: Media Player Connectivity
Post by: Saijin_Naib on 2008.04.25, 19:30:39
Blue Warper, I have no added this line to my config anywhere because MPLayer (in its stand-alone configuration) plays all my files without issue. I believe it defaults to DIVE here, but I may try and force it to see if this is the issue at hand.
Title: Re: Media Player Connectivity
Post by: Pete on 2008.04.26, 01:33:41
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
Title: Re: Media Player Connectivity
Post by: 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
Title: Re: Media Player Connectivity
Post by: Pete on 2008.04.26, 04:30:48
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



Title: Re: Media Player Connectivity
Post by: Saijin_Naib on 2008.04.26, 05:00:18
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!
Title: Re: Media Player Connectivity
Post by: 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
Title: Re: Media Player Connectivity
Post by: Pete on 2008.04.30, 03:18:50
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
Title: Re: Media Player Connectivity
Post by: RobertM on 2008.04.30, 07:44:48

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

Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: melf on 2008.04.30, 10:01:45
Just saw your "formatation". Nice tutorial Robert!
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: RobertM on 2008.04.30, 10:17:04
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
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: jep on 2008.04.30, 16:31:07
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
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: melf on 2008.04.30, 17:28:05
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!
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: RobertM on 2008.04.30, 20:37:30
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
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Pete on 2008.05.01, 12:58:19
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

Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: RobertM on 2008.05.01, 23:49:38
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
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: klipp on 2008.05.04, 01:45:40
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
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: RobertM on 2008.05.04, 02:37:14
klipp,

You may wish to see how the file is embedded in the page. Certain things (for me) get played by Z! (via MPC), while others seem to happily play in the background (but not sure how they are embedded, or why they play differently). Some I know are flash based... which the neat thing about that is, it appears the flash system will actually play multiple things at the same time and mix them.

Do you have anything installed to take over the browser's default audio playing? (like MPC) And if so, what do you have assigned to it?

Robert
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: klipp on 2008.05.04, 02:46:38
Hi Robert, I'm using the "bgsound" with the name of the .wav file in the html. Its kinda embarrasing to admit ignorance, but I have no idea what "MPC" is or how to use it.  You've bailed me out before, care to do it again?

thanks klipp
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Pete on 2008.05.04, 04:23:37
Hi klipp

MPC = MediaPlayerConnectivity 

This is a rather useful extension for "Mozilla" browsers found here http://membres.lycos.fr/sethnakht/

It does what it suggests - sorts out Media Player Connectivity and enables playback of various media  :-)

If using the mplayer plugin make sure that you do not configure MPC to play media that you want mplayer to play.

Do not use the "Wizard" to try and configure MPC when restarting the browser after installing; use the (in Seamonkey; must be something similar in Firefox), Tools -> MediaPlayerConnectivity -> Configure menu item to do it manually.

Ummm... MIDI and WAV files can be set to use a particular playback application by MPC - if using Uniaud drivers you definitely need to set an app to play MIDI.


I have no idea what "bgsound" is...


Hope the above gets you started.


Pete
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: klipp on 2008.05.04, 05:50:25
Hey Pete! How's it going! Thanks for the response. MPC is something I know nothing about, but you loaded me up with enough info to get me going. I think I can get it on my own now. If not I'll be back scrounging more info.

Thanks much!  klipp
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Saijin_Naib on 2008.05.04, 06:27:46
Im guessing he is referring to the bgsound src tag in HTML, which is just a means of embedding audio into a webpage. It should play, I would assume, with the np**os2 plugins, but I guess not.
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: RobertM on 2008.05.04, 20:33:03
I've found that bgsound does not seem to work on Firefox for me - but as Saijin mentioned, that may be because I have removed the np*os2.dll plugins. There are other methods though.

klipp, you may wish to look for a flash audio player... it will also allow visitors to turn off the sound if they dont want to hear it...

Robert
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: klipp on 2008.05.04, 22:42:16
Hi Robert. No it doesn't seem to work with the np**os2.dll's on Seamonkey either. Mplayer works great now as a plug-in but I need .wav files to play using bgsound. You mentioned a flash audio player, where can I find one that works with eCs? Probable problem with that is -- more junk on the web page.

thanks   klipp
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: RobertM on 2008.05.04, 23:15:05
Quote from: klipp on 2008.05.04, 22:42:16
Hi Robert. No it doesn't seem to work with the np**os2.dll's on Seamonkey either. Mplayer works great now as a plug-in but I need .wav files to play using bgsound. You mentioned a flash audio player, where can I find one that works with eCs? Probable problem with that is -- more junk on the web page.

thanks   klipp

Hi klipp, though I havent done that in a while, I think you may want to look up the <embed> tag and it's options... that may work...

Robert
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Dave Palmer on 2008.05.25, 23:44:31
I'm slow to get to the mPlayer Plugin and Media Player - and I've run into issues others did, but I can't seem to find a fix.

I installed the codecs, mplayer, and npmp.dll in firefox plugins and replaced the one in the mplayer directory as well.
I renamed the npnulos2.dll's as well.

On the http://news.bbc.co.uk/  I get "Click Here to Play" and then "Mplayer Running" and then right
back to "Click Here to Play".

My config.sys has:
SET MPLAYER_HOME=c:\apps\.mplayer
SET MPLAYER_CODECS_DIR=c:\apps\mplayer\Codecs
SET MPLAYER_PATH=c:\apps\mplayer\mplayer.exe

My directories look like this:
Path:           \APPS
Subdirectories: .mplayer
                 MPlayer
                 PMDCalcP
                 PMMail
                 tame
Path:           \APPS\.mplayer
Subdirectories: None
Path:           \APPS\MPlayer
Subdirectories: Codecs
Path:           \APPS\MPlayer\Codecs

I've rebooted with and without MPC pointing to mplayer.exe and the results are almost the same, although
mpc shows its' window and one can almost observe startup messages in the mplayer window

I stymied. 
Any help appreciated.
Dave

Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: David McKenna on 2008.05.26, 00:04:39
Dave,

  I tried it... it worked fine. In your config.sys example you show the home directory is .mplayer. In the codecs and path you show mplayer. Either remove the period from the first, or add it to the second two (depending on which is correct).

Dave McKenna
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Dave Palmer on 2008.05.26, 06:50:48
Dave.
Thanks for the response.

I tried what you suggested, and had the same results - i.e. nothing

Then I went back to the suggested installation tips directory structure and ended up with

SET MPLAYER_HOME=c:\os2\.mplayer
SET MPLAYER_CODECS_DIR=c:\mplayer\Codecs
SET MPLAYER_PATH=c:\mplayer\mplayer.exe

They seem to want the mplayer config in a different directory and that directory starts with a period

Either way, your suggested solution, or the textbook solution, I'm still stymied.
Are there other config.sys entries which would override or need to be changed
for this to work?
Dave Palmer
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: ddan on 2008.05.26, 07:03:32
I've just got MPlayer working here using SNAP with jep's script, somewhat modified. See my post here:
http://www.os2world.com/component/option,com_smf/Itemid,63/topic,994.msg6284/topicseen,1/#new
for details regarding the dot in ".mplayer", and entirely deleting the config files...

Good luck.

Frankly, I regard my OS/2 system as the "serious" computer, meaning text, so have been FTP-ing all video to a Linux system, only in the last month for the first time experimenting with K Movie Player (besides seeing MACAW.AVI in 2.1GA).  Video players in Linux are cranky enough (heck, even in Windows only VLC handles most codecs). So I'm not particularly dismayed when these toys don't work, though I do appreciate all the effort of Paul Smedley and others. -- Have a whole rant on this line, that I hope to get round to posting. -- And now back to our previously scheduled topic...
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Dave Palmer on 2008.05.26, 20:07:58
Thanks for the tips.
I'll be digging into them later today and hopefully will have same results.
Dave
Later... and I tried Dan's solutions.  Removing the dot in a directory name didn't change things.
I went back to the original naming conventions and made sure all the files were where they should be.
I now have this:
MPLAYER_HOME=c:\os2\.mplayer
MPLAYER_CODECS_DIR=c:\mplayer\Codecs
MPLAYER_PATH=c:\mplayer\mplayer.exe

Now - when running BBC and others, I get a SYS2070 message.
i.e.: EXPLANATION: The system delayed the loading of some of the
application's code until it was needed.  Now there is a problem
loading the needed code segment.

How do you spell frustration?  I'll try STYMIED
any ideas?
Dave



Quote from: ddan on 2008.05.26, 07:03:32
I've just got MPlayer working here using SNAP with jep's script, somewhat modified. See my post here:
http://www.os2world.com/component/option,com_smf/Itemid,63/topic,994.msg6284/topicseen,1/#new
for details regarding the dot in ".mplayer", and entirely deleting the config files...

Good luck.

Frankly, I regard my OS/2 system as the "serious" computer, meaning text, so have been FTP-ing all video to a Linux system, only in the last month for the first time experimenting with K Movie Player (besides seeing MACAW.AVI in 2.1GA).  Video players in Linux are cranky enough (heck, even in Windows only VLC handles most codecs). So I'm not particularly dismayed when these toys don't work, though I do appreciate all the effort of Paul Smedley and others. -- Have a whole rant on this line, that I hope to get round to posting. -- And now back to our previously scheduled topic...
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Dave Palmer on 2008.05.28, 01:44:36
My mplayer saga continues.

I tried mplayer from the command line, using the video which Melf contributed (A little movie (*.mp4 1,2MB)  http://elfonnet.nu/pics/mp.mp4).

"Without the generated  config and inpufiles" in  c:\os2\.mplayer,  it played - albeit in a small window.  Hooray - mplayer words offline.

If I run the mplayer script and leave the generated config and input files in c:\os2\.mplayer , then mplayer freezes the system, no video is played, and I have to do a power-off restart.  CAD and/or Xit won't do it.

When it ran, I directed the output to a file.
I still cannot run any online video.  SYS2070 is the message I get.

***********************************
os/2 cmd line screen output follows:
***********************************
[C:\]mplayer mp.mp4 >a.b
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. You may try recompiling using gcc >= 4.2.
Do not report crashes to FFmpeg developers.
FAAD: compressed input bitrate missing, assuming 128kbit/s!

DART error(11587):Invalid Stream Protocol Key specified.
DVB card number must be between 1 and 4

[C:\]
************************************
mplayer application output, redirected to file follows:
************************************
MPlayer dev-SVN-r26012-OS2-3.3.5 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing mp.mp4.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [mp4v]  352x240  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 352 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.47:1 - prescaling to correct movie aspect.
VO: [kva] 352x240 => 352x240 Planar YV12
[swscaler @ 0x1899920]SwScaler: using unscaled yuv420p -> bgr24 special converter
A:   0.2 V:   0.0 A-V:  0.224 ct:  0.000   0/  0 ??% ??% ??,?% 0 0             
A:   0.3 V:   0.0 A-V:  0.231 ct:  0.002   0/  0 ??% ??% ??,?% 0 0             
A:  24.0 V:  24.0 A-V:  0.007 ct:  0.021   0/  0  0%  0%  0.5% 0 0             
A:  24.1 V:  24.1 A-V:  0.006 ct:  0.021   0/  0  0%  0%  0.5% 0 0             
A:             
A:  27.2 V:  27.2 A-V:  0.002 ct:  0.021   0/  0  0%  0%  0.5% 0 0             

<snip,snip>
Exiting... (End of file)

Again, I am stymied.  Hate to send files or links to XP, but
that's seems to be the best route right now. 

Open to any and all comments, suggestions
Regards
Dave
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Pete on 2008.05.28, 02:30:18
Hi Dave

Have you read the "how to"?  http://www.os2world.com/content/view/17999/2/

Do NOT rename files in an OS2 world - the system will just use the new filenames. REMOVE the npos2*.dll files from the Firefox plugins directory instead ie COPY those files to either another directory or to new filenames in the same directory, eg npos2vid.dll.OS2, and then DELETE the npos2*dll files in the plugins directory. If copying to new filenames do not leave them with a .dll extension as "Mozilla" will still try to load them as plugins.

Talking of plugins: Did you download the working plugin or are you trying to use the plugin supplied in the mplayer package? - You need to download and install this plugin http://www.7xx.org/komh/npmp_test.zip

If you want the plugin to work then any file types that you want it to play should NOT be configured in MPC.

Any (or all) of the above could be responsible for mplayer displaying a "Click Here to Play" after "Mplayer Running" has been displayed.


To try and clear any lingering confusion over the mplayer user configuration directory name: it is (usually) %HOME%\.mplayer - yes, there is a "."; not uncommon for java and *nix ported apps to have a User configuration directory start with "."

Does your system not have a "User Home" directory structure? Lots of java and *nix ported apps look to shove configuration files into a "User Home" directory structure so you may want to investigate that at some point rather than having potentially loads of configuration files scattered around different drives/directories.


The SYS2070 could be that you do not have all the codec files in mplayer\codecs. I seem to recall that the codec files come wrapped in a directory already and I found when I unzipped the package that files with .drv extension could not be copied from j:\temp\windows-codecs-something-or-other to h:\mmos2\mmplayer\mplayer\codecs using the WPS as the WPS treats .drv files as system files; thinks they are all printer drivers  ;-)

The answer was to do the copying using the command line which circumvents that problem.

Hope some of the above helps - if not we may want to start at the beginning again, ie install mplayer from scratch, to find out what went wrong where   :-)

Regards

Pete





Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: ddan on 2008.05.28, 04:47:08
To Dave Palmer, who "still cannot run any online video."

NONE? I got SOME working right off.

I'd say start from scratch. Here's my setup: WSEB, PmW-Fx (Firefox) 1.5.0.8,
Smedley's current build of Mplayer, and Win32 codecs from first post on this
topic (though doesn't seem to have any effect), and I moved the .DLLs from
\mplayer to \os2\dll (otherwise must be in \mplayer for it to run at all; I
ignored that during previous command-line experimenting).

Have these lines in CONFIG.SYS (but as noted, the .DLLs must be moved):
SET MPLAYER_HOME=C:\OS2\MPLAYER
SET MPLAYER_CODECS_DIR=C:\MPLAYER\CODECS
SET MPLAYER_PATH=C\MPLAYER\MPLAYER.EXE

I just blithely ignored all other advice. Made my eyes glaze over. Note that
I've NO plug-ins, no MPC, and on some sites it may be important that I use the
"noscript" extension to prevent Javascript from running unless explicitly
allowed, so I don't get re-directed, at the least. The list of things that I
DON'T have, use, or allow is long, includes Shlockware Flash, and all
"plug-ins" that sites wish to install.

Also, previously had all files types (Firefox calls these MIME types) set to
"save to disk", so in Firefox Tools, Options, Downloads, Download Actions, I
set the .WMV type to "Play with mplayer.exe". Then went to a site with known
reliable video: www.crooksandliars.com (don't bother commenting on the
content, irrelevant), and picked a video, clicking on "Download" rather than
"Play", as that tries to install something. An "opening" dialog came up,
clicked on "save", waited for download to complete (usually fast); VIO window
opened, Mplayer ran, played the video just fine while distractingly spewing
info in the VIO; Mplayer closed, leaving the VIO window saying "completed",
must be clicked away.

By the way, KMP worked too, though further testing of Mplayer makes me lean
toward it because seems -- uh, to have different and perhaps less annoying
drawbacks, though its audio seems pretty IFFY. Sometimes running Dink's Z
player in between, or concurrently, gets Mplayer audio working, but guess we
can only wish that a tiny fraction of the money wasted on Vista had gone
toward cleaning up the few quirks in this far superior OS...
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Saijin_Naib on 2008.05.28, 05:16:43
What does funding spend by Microsoft on development of Vista have anything to do with the lack of funding for eComStation?

IRT to the rest of your thread, I find that Mplayer plugin works maybe 1 time out of 20 for me, so I'd rather just not have it. Atleast the outdated NP*os2 plugins handle MPEG fine from the sites i visit.

Mplayer stand-alone vs KMP, I prefer KMP simply due to how it can seek within the video by clicking at the representative position within the video window. I think both apps could stand having their GUI parts ported so we don't need to muck with rather annoying and confusing VIO windows.
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Dave Palmer on 2008.05.28, 06:10:42
Pete and ddan,

Thanks for serious suggestions.  I've some home work to do.

Quick answers - did read the 'how to' -
Did choose some of m own directory names.
Did do a 'rename' and that might be biting me in the butt.
Extracted codecs directly to the codecs directory, but will double check to see if all made it.
Did get the new mplayer, did install in plugin for FF

But, many more things to check.  It is late - been all day working on FEMA (Fed. Emer. Mgmnt. Agency) stuff (we were badly flooded in Dec.)

My eyes are crossing and I'm out of town tomorrow.  But "I will return".

Thanks,
Dave
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: ddan on 2008.05.28, 06:43:14
(This may end up looking like an accidental re-post, but at present, it's not showing.)

To Saijin_Naib re "What does funding spend by Microsoft on development of Vista
have anything to do with the lack of funding for eComStation?"

Uh, nothing directly I guess. It's a wish that in a better world, money wouldn't
have been WASTED on an OS so annoying that people actually PAY to have it
"upgraded" to XP.  -- Don't argue that's not true. I've SEEN it several times
in a small shop where I hang out.

Bill BRAGGED that as much money was spent on Vista as on going to the moon.
Might have been worth it if any of the original promises had been kept, but
what was delivered is simply a face-lift on XP plus DRM that no user wants.

Crimosoft put their best people and ideas into OS/2, then after figuring out
that it was TOO good, they spent the next ten years peddling marginal
improvements on top of DOS.

I doubt that there's anything that can be done in Vista that cannot be done in
OS/2; its  base is so fundamentally sound that genuine improvements are
difficult to conceive. (Oh, spare me the SIQ and other quibbles; those are MUCH
rarer than XP simply crashing for no obvious reason during ordinary mousing
around.) But there's no market to support OS/2 APPLICATIONS. -- Vista is doing
TOO MUCH with "features" of spyware, DRM, and "eye candy", that I for one
vehemently DO NOT WANT.

I don't want to become JUST an anti-Crimosoft ranter (though it's one of my
favorite topics). We're here for a better alternative. I'll just sum up by
saying that OS/2 suits me. I'm still discovering its included marvels, such as
REXX, that's far beyond system scripting languages used by Unix or Crimosoft.
(For contrast, look at the recent Powershell, a laughably convoluted, unique
new script language that almost no one can afford to become even adequate at,
no matter what the potential benefits are.) And there are semi-finished gems
like Jumpkey (IBM EWS), a hot-key capability that I had wished for and only
recently discovered. -- So I suggest that we're all better off to spend time
making what incremental additions to OS/2 that we can, than ranting about
Crimosoft, no matter how evil and stupid the empire is.
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Saijin_Naib on 2008.05.28, 07:39:33
I think with the Mplayer plugin that the source video must be directly linked to without any redirects or alternate transfer protocols. I really can't find anything that would tell me what causes the plugin to choke on certain streams.
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Carlo_Warp on 2008.06.07, 15:12:16
Instead of starting a new discussion I posted mine here. I am happy with Mplayer, because it allowed me to listen to the internet radios and other movies. When I was looking at this internet site (http://www.thecorrswebsite.com/index2.htm), I was unable to listen to the songs and they have the specific .ram format. I installed the codecs from the file  http://www1.mplayerhq.hu/MPlayer/releases/codecs/windows-essential-20071007.zip 
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Pete on 2008.06.09, 03:37:11
Hi Carlo_Warp

I am currently trying to play "Heart like a wheel" that I found in the Music section under Singles.

It is available in RealPlayer and MediaPlayer formats.

I would like to be able to tell you that it is playing but it looks like the link is dead: ie I click on the mplayer "Click here to play..." which changes to "mplayer running..." but there is no indication of network traffic on my router suggesting no download in progress and mplayer finally reverts to "Click here to play...".

I went Back and selected MediaPlayer format: Seamonkey now wants to know what to do with this file:-

The file "t05.wax" is of type audio/x-ms-wax (WAX file)..."

What the f*** is a WAX file? - some new M$ format?


I have also tried a couple of vids from this site and would not recommend the website to anyone - it is far to slow to stream video.

Regards

Pete
Title: Re: mPlayer Plugin and Media Player Connectivity
Post by: Carlo_Warp on 2008.06.10, 11:43:19
Hi Pete, thanks for having tried the website. I am quite happy with Mplayer. Now I want to test it on different sites. I want to try Kplayer as well.

Regards

Carlo

Quote from: Pete on 2008.06.09, 03:37:11
Hi Carlo_Warp

I am currently trying to play "Heart like a wheel" that I found in the Music section under Singles.

It is available in RealPlayer and MediaPlayer formats.

I would like to be able to tell you that it is playing but it looks like the link is dead: ie I click on the mplayer "Click here to play..." which changes to "mplayer running..." but there is no indication of network traffic on my router suggesting no download in progress and mplayer finally reverts to "Click here to play...".

I went Back and selected MediaPlayer format: Seamonkey now wants to know what to do with this file:-

The file "t05.wax" is of type audio/x-ms-wax (WAX file)..."

What the f*** is a WAX file? - some new M$ format?


I have also tried a couple of vids from this site and would not recommend the website to anyone - it is far to slow to stream video.

Regards

Pete