• 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

RobertM

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


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


klipp

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
********************************************************************
Windoz Free! eCS 2.0 serving Linux, Windoz & OS2
rklipp@megared.net.mx
********************************************************************

Pete

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

klipp

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
********************************************************************
Windoz Free! eCS 2.0 serving Linux, Windoz & OS2
rklipp@megared.net.mx
********************************************************************

Saijin_Naib

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.

RobertM

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


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


klipp

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
********************************************************************
Windoz Free! eCS 2.0 serving Linux, Windoz & OS2
rklipp@megared.net.mx
********************************************************************

RobertM

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


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


Dave Palmer

#38
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


David McKenna

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

Dave Palmer

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

ddan

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...

Dave Palmer

#42
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...

Dave Palmer

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

Pete

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