The time now is Sat 25 May 2013, 02:39
All times are UTC - 4 |
|
Page 1 of 2 [21 Posts] |
Goto page: 1, 2 Next |
| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Tue 29 Sep 2009, 19:13 Post subject:
Mplayer with Multi-core support (09/2009) + gnome frontend |
|
This mplayer was compiled using these instructions:
http://nikita.melnichenko.name/blog.php?id=5&topic=gentoo-ebuild-mplayer-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_gallery/gl1800/1080p/running_the_sahara_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_gallery/gl1800/1080p/blue_marvel_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/Multimedia/Mplayer-MultiThread/
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
_________________ my recommended links
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Wed 30 Sep 2009, 07:27 Post subject:
|
|
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/distributions/puppylinux/pet_packages-5/Gnome-Mplayer-29305-i486-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

|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 30 Sep 2009, 08:13 Post subject:
|
|
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
_________________ my recommended links
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Wed 30 Sep 2009, 08:27 Post subject:
|
|
| 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-video/TSS_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

|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 30 Sep 2009, 09:26 Post subject:
|
|
| Quote: | http://puppylinux.com/test/media-test-video/TSS_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.
| Quote: | | 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
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 30 Sep 2009, 09:46 Post subject:
|
|
Jeff, is the audiocodec detected as on my screenshot for http://puppylinux.com/test/media-test-video/TSS_Lindows.rm ?
(menu - view- details)
Mark
| Description |
|
| Filesize |
29.83 KB |
| Viewed |
3073 Time(s) |

|
_________________ my recommended links
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Wed 30 Sep 2009, 09:58 Post subject:
|
|
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
| Description |
|
| Filesize |
24.12 KB |
| Viewed |
3104 Time(s) |

|
| Description |
|
| Filesize |
22.68 KB |
| Viewed |
3089 Time(s) |

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

|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 30 Sep 2009, 11:35 Post subject:
|
|
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
The setup for that system is not completed yet, some finetuning is required.
Mark
| Description |
|
| Filesize |
54.4 KB |
| Viewed |
3079 Time(s) |

|
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 30 Sep 2009, 14:46 Post subject:
|
|
ok, vdpau seems not to work with xinerama:
http://www.nvnews.net/vbulletin/showthread.php?t=128637 (at bottom)
| Quote: | | VDPAU does not work with Xinerama, but does work with Twinview. |
http://ubuntuforums.org/archive/index.php/t-1037625.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
_________________ my recommended links
Last edited by MU on Wed 30 Sep 2009, 15:11; edited 3 times in total
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 30 Sep 2009, 15:06 Post subject:
|
|
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
_________________ my recommended links
|
|
Back to top
|
|
 |
panzerpuppy
Joined: 02 Oct 2007 Posts: 632
|
Posted: Thu 01 Oct 2009, 05:21 Post subject:
|
|
@technosaurus: Try these test videos by happypuppy:
| 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. |
|
|
Back to top
|
|
 |
tempestuous
Joined: 10 Jun 2005 Posts: 4944 Location: Australia
|
Posted: Thu 01 Oct 2009, 05:55 Post subject:
|
|
Ooh. MPlayer with Multi-threading and VDPAU support.
Very cool.
|
|
Back to top
|
|
 |
T_Hobbit

Joined: 27 May 2006 Posts: 400 Location: Portugal - Lisbon
|
Posted: Thu 01 Oct 2009, 06:57 Post subject:
|
|
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
Rebuilding old DOS Machine for Wing Commander Privateer and Puppy Old spare parts to give away - anyone interested 
|
|
Back to top
|
|
 |
panzerpuppy
Joined: 02 Oct 2007 Posts: 632
|
Posted: Thu 01 Oct 2009, 07:12 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
panzerpuppy
Joined: 02 Oct 2007 Posts: 632
|
Posted: Thu 01 Oct 2009, 07:21 Post subject:
|
|
@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?
|
|
Back to top
|
|
 |
|
|
Page 1 of 2 [21 Posts] |
Goto page: 1, 2 Next |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|