Mplayer with Multi-core support (09/2009) + gnome frontend

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Mplayer with Multi-core support (09/2009) + gnome frontend

#1 Post by MU »

This mplayer was compiled using these instructions:
http://nikita.melnichenko.name/blog.php ... mt&lang=en

On my dual core cpu I now can play high resolution movies (1920x1080), even scaled to a larger size, what is not possible with older mplayers.

I tested it with this 200 MB movie:
http://movies.apple.com/movies/us/hd_ga ... m1080p.mov
You can find more by examining the sourcecode of the pages listed on this page:
http://www.apple.com/quicktime/guide/hd/
This is very beautifull: http://movies.apple.com/movies/us/hd_ga ... m1080p.mov (but less good for test, because of sound and slow camera moves)


I also repackaged the Gnome Mplayer, a frontend for mplayer, once packaged by ttuuxx.
Required libraries for Puppy 4.3 (beta3) are included, it also should work in many other puplets.
I packaged them in a way, that avoids, that existing libraries are overwritten.

Download and screenshot:
http://dotpups.de/puppy4/dotpups/Multim ... ltiThread/


The mplayer pet installs a readme accessable from the menu.
It explains options concerning video-drivers and cpus to get best performance.
It also explains the usage of a fullscreen-script that I added. This gives better results on my system than the normal fullscreen option.

Here is the text from it:

-----------------------------------------


mplayer-mt is a mplayer with multithreading support.
So it can use more than one CPU-core.

To run it, use it like this:

mplayer-mt -vo xv /tmp/test.avi

Of course you need a /tmp/test.avi, or adapt the command to use another video.

--------------------------------------------
You also can run it fullscreen like this:
mplayerfullscreen-mt -vo xv /tmp/test.avi

If you want more than 2 threads, set a higher value for the threads in /usr/local/bin/mplayer-mt.


--------------------------------------------
--------------------------------------------
If the "xv" driver does not work:
try instead:
-vo x11 -vf scale=1024:768,harddup -framedrop

This uses a non-accellerated driver with software scaling.
To use this fullscreen, try:
mplayerfullscreen-mt-scaled -vo x11 /tmp/test.avi

--------------------------------------------
--------------------------------------------
If you have a Nvidia card with driver 180.37 or newer, try this
optimized video output:

mplayer-mt -vo vdpau -vc ffh264vdpau,ffvc1vdpau /tmp/test.avi
or fullscreen:
mplayerfullscreen-mt -vo vdpau -vc ffh264vdpau,ffvc1vdpau /tmp/test.avi

----------------------------------------------
----------------------------------------------
Note: if your sound sounds broken, press "p" to pause,
and "p" to continue playing. This often fixes it.

----------------------------------------------

If you use the gnome frontend, you can select one of the available videodrivers in the options.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

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

#2 Post by ttuuxxx »

Hi mu, I usually test media players with Barry's video clips from his blog site, when I tested the codec's I noticed you can only drag 1 video to the main gui, after that video played you have to exit mplayer and then start it again to play another test. Basically 10 test videos, 10 restarts, kind of strange.
next IT_Pro.wmv has no sound, just video.
rest of them works, just the WMV doesn't
other than those 2 minor snags not bad, for the size, I managed to reduce over 1MB of deps due to 2.14X has dbus and gconf and a few others by default :)
This is very similar to the one I made for jpup 4.1MB http://distro.ibiblio.org/pub/linux/dis ... 486-uj.pet
Oh yes do you have a dev package that would be handy, lots of great deps in this package :)
Great work.

ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

Hi Jeff,

can you please give me a link to the video page you use for testing?
I cannot find videos in the blog. Then I could test them here in newyearspup and look, if I encounter the same issues.
Thanks!

I have no "dev" addon, as I just added the required runtime libs in
/usr/lib/gnome-mplayer-puppy-4.3
and
/usr/lib/mplayer-mt-libs

So they are not used by and programs that you compile, as they are only included by the 2 startscripts "gnome-mplayer" and "mplayer-mt".

I compiled the mplayer in my current running newyearspup, then installed it in Puppy 4.3 beta3, and copied over the libs that it complained about.
If you would compile it from scratch in Puppy 4.3, maybe you would need less dependencies.
If I find time, I'll try to recompile it in Puppy 4.3 this weekend.
To save space, I upxed gnome-mplayer.bin and mplayer-mt.bin.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

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

#4 Post by ttuuxxx »

MU wrote:Hi Jeff,

can you please give me a link to the video page you use for testing?
I cannot find videos in the blog. Then I could test them here in newyearspup and look, if I encounter the same issues.
Thanks!

I have no "dev" addon, as I just added the required runtime libs in
/usr/lib/gnome-mplayer-puppy-4.3
and
/usr/lib/mplayer-mt-libs

So they are not used by and programs that you compile, as they are only included by the 2 startscripts "gnome-mplayer" and "mplayer-mt".

I compiled the mplayer in my current running newyearspup, then installed it in Puppy 4.3 beta3, and copied over the libs that it complained about.
If you would compile it from scratch in Puppy 4.3, maybe you would need less dependencies.
To save space, I upxed gnome-mplayer.bin and mplayer-mt.bin.

Mark
Hi Mark
I don't think recompiling would save me anything, I managed to already remove 1/2 the libs, and I moved all the libs which were left from your default directories to usr/lib. The devs would be great because they are highly used libs, These are the ones which 2.14X need out of all of them
libesd
libjack +libjackserver
liblzo2
libnotify
libxcb-render
libxcb
libXxf86dga <-- already in but located in /usr/X11R7/lib/libXxf86dga could system link it but its only17kb to start with :)

ok Barry keeps his testing clips at http://puppylinux.com/test/media-test-video/
the main one to test is
http://puppylinux.com/test/media-test-v ... Lindows.rm
that one even in gxine is kind of touch and go, not the best audio or video, but this mplayer has no audio at all for it, Gxine uses a couple of realplayer linux .so files located in usr/lib/codec or usr/lib/win32 depending which puppy you try it on.
Anyways thanks mark
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

http://puppylinux.com/test/media-test-v ... Lindows.rm
that one even in gxine is kind of touch and go, not the best audio or video, but this mplayer has no audio at all for it
works in newyearspup, even with pretty empty codec folders:
ls -al /usr/lib/win32
lrwxrwxrwx 1 root root 11 2009-04-19 16:26 cook.so -> cook.so.6.0
-rwxr-xr-x 1 root root 76936 2004-12-27 02:50 cook.so.6.0
-rwxr-xr-x 1 root root 321008 2008-02-19 22:16 drvc.so
-rw-r--r-- 1 root root 637 2007-09-20 08:01 README.txt
lrwxrwxrwx 1 root root 11 2009-04-19 16:26 sipr.so -> sipr.so.6.0
-rwxr-xr-x 1 root root 62820 2004-12-27 02:50 sipr.so.6.0

ls -al /usr/lib/codecs
-rwxr-xr-x 1 1003 1003 42956 2007-11-20 09:23 cook.so
-rwxr-xr-x 1 1003 1003 321008 2007-11-20 09:23 drvc.so
-rwxr-xr-x 1 1003 1003 69648 2007-11-20 09:23 dspr.so.6.0
-rwxr-xr-x 1 root root 568213 2009-04-24 22:27 libxvidcore.so.4.2
-rwxr-xr-x 1 1003 1003 62896 2007-11-20 09:23 sipr.so.6.0
-rwxr-xr-x 1 1003 1003 22472 2007-11-20 09:23 tokf.so.6.0
-rwxr-xr-x 1 1003 1003 59696 2007-11-20 09:23 tokr.so.6.0

So it might be not a codec issue, but a driver issue.
I use as output driver "alsa".
I will test it again later in Puppy 4.3.

Libs:
I think libnotify and liblzo2 I took from debian packages (http://packages.debian.org), and did not compile them myself.
libXxf86dga I had taken from an older Puppy3 or 4, as it was mising in Ultrapup. Also the libxcb libs. Libjack was a pet once posted here if I remember well, I think it was part of a wine pet.
I usually test media players with Barry's video clips from his blog site, when I tested the codec's I noticed you can only drag 1 video to the main gui, after that video played you have to exit mplayer and then start it again to play another test.
You must first hit the "pause" button to stop streaming.
If I hit "stop", then the sound continues to play in a second thread. I can even not close mplayer then, until the sound has finished playing.
If I hit pause, and then drag another link into gnome-mplayer, it is shown correctly.
Seems to me, that the interface would need some more intelligence here, maybe newer versions fix it? I did not yet look up, what the latest version is.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

Jeff, is the audiocodec detected as on my screenshot for http://puppylinux.com/test/media-test-v ... Lindows.rm ?
(menu - view- details)

Mark
Attachments
gnomemplayer.jpg
(29.83 KiB) Downloaded 3741 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

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

#7 Post by ttuuxxx »

I get no audio codec window at all, check all the options, just video.
But it I try a different video format I get the audio/video.
just the rm no sound
ttuuxxx
Attachments
other-type.jpg
(24.12 KiB) Downloaded 3729 times
details.jpg
(22.68 KiB) Downloaded 3709 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

ok strange, maybe there is missing another library so that it can detect that codec.
I will have a close look this weekend.

I attach a screenshot, it shows a 1920x1080 HD-Video running in Xinerama mode on 2 monitors (Ati HD4850+Catalyst 9.10beta) in Newyearspup :-)

Accoording to tests, this also basically works with 8 Monitors using 2 Nvidia cards with 4 GPUs each, just vdpau accelleration does not work :roll:
The setup for that system is not completed yet, some finetuning is required.

Mark
Attachments
xinerama-hd-moviesmall.jpg
(54.4 KiB) Downloaded 3640 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

ok, vdpau seems not to work with xinerama:
http://www.nvnews.net/vbulletin/showthread.php?t=128637 (at bottom)
VDPAU does not work with Xinerama, but does work with Twinview.
http://ubuntuforums.org/archive/index.p ... 37625.html (at top)

These posts are from january/february, so I don't know if still valid.
Google though indicates this.

So one had to set up a nvidia card for twinview, not for xinerama :?


They also should try, if "-vo gl" or "-vo gl2" works instead, in some forums people report success, in others not.

Mark
Last edited by MU on Wed 30 Sep 2009, 19:11, edited 3 times in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#10 Post by MU »

I updated to mplayer-mt-2009-09-28b.pet.

It is compiled without libesd, libsdl, libjack.
So less space is needed.
If someone explicitly needs support for those libs, he can download the old pet from the folder "outdated".
I also uploaded mencoder (note: run "mencoder-mt").

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

panzerpuppy
Posts: 632
Joined: Tue 02 Oct 2007, 07:39

#11 Post by panzerpuppy »

@technosaurus: Try these test videos by happypuppy:
happypuppy wrote:Test Video #1 (VC-1 720p): http://video.fraps.com/sunrise.zip

Download the zip, extract the WMV file and play it with MPlayer.
happypuppy wrote:Test Video #2 (H.264 low res): Open SeaMonkey,go to this page:

http://www.youtube.com/watch?v=vty4pMfJkZ4

and wait until the video loads completely.

Then go to /tmp ,rename the ~30 megabyte FlashXXXXX file to something else (append a number or a letter) so the file doesn't get deleted after you close the browser.

Close SeaMonkey and try to play the file with MPlayer.

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

#12 Post by tempestuous »

Ooh. MPlayer with Multi-threading and VDPAU support.
Very cool.

User avatar
T_Hobbit
Posts: 400
Joined: Sat 27 May 2006, 10:50
Location: Portugal - Lisbon

#13 Post by T_Hobbit »

ttuuxxx told me about this one.
Is this much bigger than gxine?
Can it replace gxine in main Puppy so we can have avi subtitles support?
T_Hobbit
:idea: Rebuilding old DOS Machine for Wing Commander Privateer and Puppy :!: Old spare parts to give away - anyone interested :?:

panzerpuppy
Posts: 632
Joined: Tue 02 Oct 2007, 07:39

#14 Post by panzerpuppy »

If you have a newer ATI card, MPlayer is a much better choice than GXine, because of the GL2 output.

With newer ATI cards (RadeonHD series) + Catalyst if you use Xv, you'll get a washed out picture and noticeable tearing. With GL2, the image (contrast) is perfect and there are no tearing artifacts.

panzerpuppy
Posts: 632
Joined: Tue 02 Oct 2007, 07:39

#15 Post by panzerpuppy »

@technosaurus: for a good CPU workout try this 1080p open source video:
http://showcase7.divx.com/ElephantsDream[DivX7].mkv

Is your dual core CPU fast enough to play this one? :)

alex12
Posts: 82
Joined: Fri 30 Jan 2009, 03:33

#16 Post by alex12 »

I tried to use this but the video will stay the same size and create a white border instead in full screen. I had the same issue with MPlayer on ubuntu on a different computer. Any ideas? Also, the space bar only pauses the video temporarily and occasionally the gui will freeze.

alex12
Posts: 82
Joined: Fri 30 Jan 2009, 03:33

#17 Post by alex12 »

*bump* Anyone? The issue is rather annoying as I would like to use mplayer.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#18 Post by MU »

alex,
try
mplayer-mt -vo xv test.avi

With "-vo" you can activate different drivers.
I think these should work, depending on the chipset:

x11
xv
gl
gl2
vdpau

x11 is unaccellerated (not scaling), the other use different methods of accelleration and scale the picture.

Using the gnome-mplayer frontend, you also can select them in the options.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

alex12
Posts: 82
Joined: Fri 30 Jan 2009, 03:33

#19 Post by alex12 »

Thanks. That worked, it was the Nvidia graphics.

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#20 Post by abushcrafter »

Please can you add support for theora video and any others formats you missed out please. :dogbeg:

Post Reply