MPlayer-1.0rc2 + mencoder Feb 2008

Audio editors, music players, video players, burning software, etc.
Message
Author
tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

MPlayer-1.0rc2 + mencoder Feb 2008

#1 Post by tempestuous »

These MPlayer packages are similar to the "rc1" versions I posted in Nov 2006 here
http://www.murga-linux.com/puppy/viewtopic.php?t=13216

These new versions were compiled under Puppy 214R, so they should work OK with the more recent GTK2 libs in Puppy3.x and 4.x.
Thanks to Raffy, the dotpets are here -
http://minipc.org/ipup/download/MPlayer-1.0rc2.pet
http://minipc.org/ipup/download/MPlayer ... chrome.pet
http://minipc.org/ipup/download/mencoder-1.0rc2.pet
http://minipc.org/ipup/download/mencode ... chrome.pet

These dotpets are also mirrored by MU. Thanks Mark.
http://dotpups.de/puppy3/dotpups/Multimedia/

UPDATE FOR PUPPY 4.0:
- MPlayer will freeze when launched from the JWM menu. To fix this, open /root/.jwmrc in geany and add a space and "&" to the end of the gmplayer launch command, so it looks like this

Code: Select all

<Program label="MPlayer" icon="mplayer.xpm">gmplayer -msglevel all=-1 %U &</Program>
The "&" is not necessary if you create a desktop icon for MPlayer, because this is controlled by ROX, not JWM.

Puppy4.0 is missing several files which this version of MPlayer requires: libXvMC.so.1, libXvMCW.so.1, and libXxf86dga.so.1
I have attached a dotpet to the bottom of this post with these files.

Features:
- DVD menu support (limited)
- "xvmc" video output for accelerated MPEG2 decoding under Xorg with nVidia/i810/Unichrome 3D drivers.
- "xv" video output for optimised playback (hardware-assisted scaling) under Xorg.
- "x11" video output under Xvesa (not as good as xv+Xorg).
- "gl" video output under Xorg+OpenGL (older).
- Inbuilt codecs for MPEG2, XviD, WindowsMedia8/9, H.264, and AAC.
- External Linux Theora codec.
- External Linux 3gp codec (used by mobile phones).
- External Win32 RealVideo10 codec.
- DVB input support, for digital TV tuner cards.
- V4L/V4L2 input support, for most analogue TV tuner cards.
- IVTV input support, for "PVR" analogue TV tuner cards.
- VideoCD support.
- network support, to play streaming audio/video from a server.
- infrared remote control support.

Regarding XvMC:
XvMC is hardware-assisted decoding of MPEG1/MPEG2 video streams, available only with the nVidia, Intel i810 and VIA Unichrome Xorg drivers.
To enable the XvMC feature, you must install the 3D-DRI Xorg driver for your graphics card. Use MU's 3D Control Center -
http://www.murga-linux.com/puppy/viewtopic.php?t=14463

EDIT: For 3D drivers in Puppy4.0 you need to install xorg_xorg_full_dri-7.3.pet from the Puppy4 petget repository.

MPlayer-1.0rc2.pet has been compiled with XvMC support for nVidia and Intel i810 graphics cards. It is preconfigured for nVidia. To change to i810, open /etc/X11/XvMCConfig in geany, and replace "libXvMCNVIDIA_dynamic.so.1" with "libI810XvMC.so.1" (without the quotation marks).

People with VIA Unichrome graphics chips who want to use the XvMC feature must install MPlayer-1.0rc2-unichrome.pet, which has had patches applied from the "Openchrome" project to support the non-standard variant of XvMC used by Unichrome devices (vld-xvmc). MPlayer-1.0rc2-unichrome.pet has been preconfigured for the older Unichrome chips, such as CLE266. For newer Unichrome chips such as the CN700, open /etc/X11/XvMCConfig in geany, and replace "libviaXvMC.so.1" with "libviaXvMCPro.so.1" (without the quotation marks).

MPlayer's XvMC output will only work when the XvMC-specific libavcodec-MPEG-1/2 codec ("ffmpeg12mc") is selected, and this can only be done when MPlayer is launched from the command line, NOT THE GUI. Like this -

Code: Select all

mplayer -vo xvmc -vc ffmpeg12mc -fs /path/to/MYMPEG2VIDEO.mpg
("-fs" is for fullscreen)

Regarding DVD menus:
DVD menus in MPlayer remain less-than-ideal.
To see DVD menus, you must launch MPlayer from the commandline like this -

Code: Select all

mplayer dvdnav:// -fs
And as forum member mikeb mentioned, it's a good idea to add "-msglevel all=-1" to avoid filling up /tmp with error messages. So -

Code: Select all

mplayer dvdnav:// -fs -msglevel all=-1
My tests show that DVD menus consisting of graphics-only will display just briefly on the screen.
DVD menus containing video content will remain on the screen, and the menu buttons can be selected by the arrow keys on the keyboard numerical keypad; 4 left, 6 right, 8 up, 2 down, keypad Enter to select.
Unfortunately there is no highlighting of the DVD buttons, so it's difficult to know which button you have selected.
I also read in the documents that when launching MPlayer in dvdnav mode you should add the option "-nocache". I don't know why.

This MPlayer package will update Puppy's libdvdcss and libdvdread libraries. I'm not sure if this will affect other media players such as Xine.

Regarding IVTV:
Most IVTV-compatible TV tuner cards contain MPEG2/4 encoding chips, so the the tuned TV signal can be compressed and saved as a file. These cards are usually identified as "PVR" models. The "pvr" option failed to compile in MPlayer-1.0rc2, but I believe that it's possible to simultaneously record a TV signal and watch it with MPlayer at the same time by doing this -

Code: Select all

mkfifo test.mpg
cat /dev/v4l/video0 > test.mpg | mplayer test.mpg
Regarding mencoder:
This has been compiled and packaged with the XviD (xvidcore), x264, and faac libraries, to enable encoding with these additional codecs.

UPDATE Oct 27 2010:
LIRC modules attached to support infrared remote control.
The Puppy3.x/4.0 package is modules only, because the MPlayer package contains the required LIRC libraries.
The Puppy4.1 package is modules plus full upgrade of libraries.
The Puppy5.1 package is modules plus full upgrade of libraries.
The MPlayer-1.0rc2 package installs a LIRC HOWTO in /root/my-documents
Attachments
lirc-0.8.2-k2.6.21.7.pet
for Puppy ver 3.x and 4.0
(76.1 KiB) Downloaded 1925 times
MPlayer-extra-libs.pet
for Puppy 4.x FIXED Oct 20 2008
(14.71 KiB) Downloaded 3661 times
Last edited by tempestuous on Wed 27 Oct 2010, 14:28, edited 9 times in total.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#2 Post by tempestuous »

To integrate MPlayer with Firefox or Seamonkey there are several methods, but the best is considered to be MPlayerplugin.
MU provided Mplayerplugin-3.50 here -
http://www.murga-linux.com/puppy/viewtopic.php?t=25591

shenen
Posts: 37
Joined: Sun 03 Dec 2006, 18:19

#3 Post by shenen »

tempestuous,

Thank you very much. Playing 3gp file now have a sound.(puppy 3.01)

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#4 Post by tempestuous »

I just checked this version of MPlayer in Puppy4.00. This version needs the (large) xorg_xorg_full_dri-7.3 petget package to be installed, mainly to obtain the libXvMC library, then it launches successfully and works well.
Use this version instead of the official MPlayer version if you want one of the specialised features listed in the first post, such as DVD menu support.

EDIT: the large xorg_xorg_full_dri-7.3.pet is no longer necessary. Just install MPlayer-extra-libs.pet from the first post.
Last edited by tempestuous on Mon 19 May 2008, 16:06, edited 1 time in total.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#5 Post by tempestuous »

I see a few posts on the forum lately about DVD playback performance, especially related to older computers.
For optimal video playback performance under Linux, you should ALWAYS use the Xorg server and "xv" output (XVideo overlay) with either MPlayer or Xine. This enables hardware assistance (colour space conversion and scaling) by the graphics card's onboard processor (GPU).
With the "x11" video output there is no hardware assistance and the CPU does all the work. On more powerful modern computers this handicap may not be noticeable, but on older computers the effect will be obviously poor playback; the picture will "stutter".

EDIT: The xv video output also provides borderless fullscreen display. And the fullscreen function under xv creates no additional CPU load.

Be aware that several other MPlayer versions available on this forum DO NOT support xv video output.
I have attached an image of where you will see the xv option appear in the preferences menu.

Regarding minimum specification for DVD playback, the requirement in Linux is the same as it is in Windows - Pentium2 or equivalent with AGP graphics interface and minimum 16MB graphics memory.
Attachments
mplayer-xv.jpg
(46.82 KiB) Downloaded 19445 times
Last edited by tempestuous on Mon 12 May 2008, 13:24, edited 1 time in total.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#6 Post by ttuuxxx »

[quote="tempestuous"][/quote]
Hello
Okay your pet package is 5Mb plus the xorg_full is 19MB we are talking 24MB min compressed for mplayer to work on Dingo, I tried it and it still wouldn't work for me.

Big bass as you know has a package that is 28MB and works without the xorg_full, his is just all codeC and a lot are windows naughty naughty

Barry has a 2MB package compiled for dingo 4.0 on the petget 4.0 manager that doesn't work out of the box it crashes the same as yours. It shows 2 boxes one is black and the other is white.

Ok we have 3 pet packages of the same program compiled different ways and different sizes. 24MB, 28MB, 2MB
I'm just wondering maybe someone could compile a 5MB version like we used to use, A lot of useless Codec's are beeing shot in, All we need is dvd.xvid,divx,svcd,vcd,Mpeg1,2,3,realmedia.wma,Quicktime, plus your regular video streams, ? kind of like xine has.
I just think that older computers would run better if the media player package compressed was around 20MB smaller.
Would of been great if Barry's 2.1MB version worked.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#7 Post by tempestuous »

Ah, I know what causes the crash; it's a problem with how gmplayer is launched from the JWM menu.
If you launch gmplayer from the terminal, you will see that both versions (mine and official) launch successfully.

The fix for the menu is to add a space and "&" to the end of the relevant launch script.
For my version see the update to the first post in this thread.
Of course, if you use my version for DVD menu support the application needs to be launched from the terminal, anyway.

For the official petget version this means modifying /usr/bin/mplayershell
This launch script is meant to handle various configuration issues and detect the presence of a DVD, but I found that a DVD would fail to launch using this script.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#8 Post by tempestuous »

ttuuxxx wrote:... plus the xorg_full is 19MB ...
Yes, but that's not wasted space. It's worth having the full Xorg package. Amongst other things, it provides the necessary core libraries for DRI (3D) support.

EDIT: the large xorg_xorg_full_dri-7.3.pet is no longer necessary. Just install MPlayer-extra-libs.pet from the first post.

Regarding extra codecs; please, please don't install the "extra codecs" with my MPlayer package.
I carefully considered all worthwhile codecs, and properly enabled the necessary support libraries, as explained in the first post.
The "extra codecs" package is a (large) waste of space.
Last edited by tempestuous on Mon 19 May 2008, 16:07, edited 1 time in total.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#9 Post by ttuuxxx »

tempestuous wrote:
ttuuxxx wrote:... plus the xorg_full is 19MB ...
Yes, but that's not wasted space. It's worth having the full Xorg package. Amongst other things, it provides the necessary core libraries for DRI (3D) support.

Regarding extra codecs; please, please don't install the "extra codecs" with my MPlayer package.
I carefully considered all worthwhile codecs, and properly enabled the necessary support libraries, as explained in the first post.
The "extra codecs" package is a (large) waste of space.
thanks for explaining that, I wasn't trying to complain, I was really just wondering why myplayer is getting into VLC size, I tried building a VLC 9.0 package but failed :? It did startup but wouldn't play anything, The new version sure does have a lot more functions, I like the new look and feel of it.
anyways thanks for being a great help :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

djringjr
Posts: 157
Joined: Sun 14 Jan 2007, 21:08

#10 Post by djringjr »

Hello,

What am I doing wrong? I just installed the MPlayer-1.0rc2.pet file, neither "mplayer" or "gmplayer" runs a GUI as is pictured. Do I need a special GUI, or is that in the other files - the "unichrome" pet etc and the rest - that are listed?

Best to all,

David

cartz
Posts: 85
Joined: Wed 09 Apr 2008, 00:39

#11 Post by cartz »

I can't get this to work in puppy 4.00.

I have installed:
mencoder-1.0rc2
Mplayer-1.0rc2
xorg_xorg_dri-7.3-1

I also altered .jwmrc as described.

When I run it in terminal I get the error:

gmplayer: error while loading shared libraries: libXvMC.so.1: cannot open shared object file: No such file or directory


Does anyone have any ideas what I am doing wrong?

Thanks,

cartz.

cartz
Posts: 85
Joined: Wed 09 Apr 2008, 00:39

#12 Post by cartz »

Just tried it on another machine and it worked fine.

I think the install of xorg_xorg_dri-7.3-1 must have dropped out on the other machine so I have uninstalled it and am downloading it again now. I then expect that it will work.

Cheers,

cartz.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#13 Post by tempestuous »

Puppy4.0 is missing a few library files required by this version of MPlayer, so I have now attached a dotpet package with the necessary files to the first post.
It's no longer necessary to install the large xorg_xorg_full_dri-7.3.pet package, unless you want full 3D support and/or XvMC support.

User avatar
sketchman
Posts: 294
Joined: Thu 01 Jun 2006, 17:20
Location: West Virginia, USA

#14 Post by sketchman »

I have the following installed in Puppy 4.0.

mencoder-1.0rc2
Mplayer-1.0rc2
xorg_xorg_full_dri-7.3.pet

Mplayer starts fine, but won't play a video in "xv" mode. the only mode that works is "x11". The video will play fine in this mode, but only at its normal size. Ctrl+F makes the window fullscreen, but the video remains the same and just gets surrounded by black space.

If I try to open a video in "xv" mode, I get the following error. To me it looks like the drivers aren't working, but I don't know how to check that.
Attachments
temp.jpg
(110.57 KiB) Downloaded 5358 times
"In a world that exists without walls and fences, who needs Windows and Gates?"

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#15 Post by tempestuous »

I just tried MPlayer now with Puppy4.0 on my old Pentium2-350 with nVidia graphics card and "nv" (non-3D) Xorg driver. Works great.
Are you sure you're using Xorg? Or maybe you're using the generic "vesa" Xorg driver?

Try launching mplayer from the terminal so it will report what's happening.

Code: Select all

mplayer /path/to/myvideofile
You will see lines scroll by as MPlayer analyzes your video file and chooses the best codec, then you should see this line -

Code: Select all

VO: [xv] 352x288 => 376x288 Planar YV12

User avatar
sketchman
Posts: 294
Joined: Thu 01 Jun 2006, 17:20
Location: West Virginia, USA

#16 Post by sketchman »

Got the following.

Code: Select all

MPlayer 1.0rc2-3.4.4 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 4000+ (Family: 15, Model: 55, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing i-irona.avi.

AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  592x272  24bpp  25.000 fps  1600.6 kbps (195.4 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.10.2 (build 2540/release)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 160.0 kbit/10.42% (ratio: 20000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

Exiting... (Quit)
Nothing else happens.

I thought about the xvesa thing too, but I dropped to the prompt and typed xorgwizard and made sure to choose xorg. Still didn't help.
"In a world that exists without walls and fences, who needs Windows and Gates?"

User avatar
sketchman
Posts: 294
Joined: Thu 01 Jun 2006, 17:20
Location: West Virginia, USA

#17 Post by sketchman »

Problem solved. I installed gray's prop NVIDIA driver and everything's smooth and fast. If anyone has my problem, gray's drivers are at the link below.

http://download.tuxfamily.org/nop/

Thanks for your help, tempestuous.
"In a world that exists without walls and fences, who needs Windows and Gates?"

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

mplayer and also xawtv can't find libraries in Puppy 4.00

#18 Post by mcewanw »

@tempestuous:

On latest Puppy 4.00 (Dingo) frugal install with new pup_save file
kernel: 2.6.21.7

Installed:
http://minipc.org/ipup/download/MPlayer-1.0rc2.pet
and
MPlayer-extra-libs.pet

Rebooted and from console ran: gmplayer
Gives following error:

gmplayer: error while loading shared libraries: libXvMC.so.1: cannot open shared object file: No such file or directory

ALSO

Installed v4lctl.pet and xawtv-3.95.pet
from http://www.murga-linux.com/puppy/viewtopic.php?t=19918

Tried running: xawtv from console
Gives following error:
xawtv: error while loading shared libraries: libXxf86dga.so.1: cannot open shared object file: No such file or directory

I'm busy packing so haven't been able to look into this further. I'm presuming it is a library path problem?

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#19 Post by tempestuous »

Yes, once MPlayer-extra-libs.pet is installed both of those library files definitely exist in /usr/X11R7/lib/

I'm away from a Linux computer at the moment, and I can't remember where to define library files ... but /usr/X11R7/lib/ is a standard location, and there are many other files already there ... maybe just run this command -

Code: Select all

ldconfig
Strange, though, that neither I nor sketchman had that trouble?

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

Re: mplayer and also xawtv can't find libraries in Puppy 4.0

#20 Post by big_bass »

a clean up
removed old links to outdated packages
that were linked here
Last edited by big_bass on Wed 11 Nov 2009, 03:23, edited 1 time in total.

Post Reply