Page 1 of 1

MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 14 Nov 2011, 18:06
by Kriss
Here's a bunch of MPlayer(s) (Mencoder included) I've compiled after experiencing difficulties (probably I've screwed MAKEOPTS flag, but I hope it's used only to shorten compilation time)

MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)
x86_64
Os version (optimised to get smallest binary size) ~8Mb per binary

Code: Select all

CFLAGS="-Os -march=x86-64" CXXFLAGS="-Os -march=x86-64" MAKEOPTS="j2" ./configure --prefix=/usr --mandir=/usr/man --libdir=/usr/lib64 --confdir=/etc/mplayer --enable-runtime-cpudetection
02 version (moderate code optimisations without adding too much to the final binary size)

Code: Select all

CFLAGS="-O2 -march=x86-64" CXXFLAGS="-O2 -march=x86-64" MAKEOPTS="j2" ./configure --prefix=/usr --mandir=/usr/man --libdir=/usr/lib64 --confdir=/etc/mplayer --enable-runtime-cpudetection
03 version (largest binaries, more optimisations) ~11+Mb per binary

Code: Select all

CFLAGS="-O3 -march=x86-64" CXXFLAGS="-O3 -march=x86-64" MAKEOPTS="j2" ./configure --prefix=/usr --mandir=/usr/man --libdir=/usr/lib64 --confdir=/etc/mplayer --enable-runtime-cpudetection
"Clean" version (I was advised by configuration script that it's better to let mplayer decide what optimisations to use) ~11+Mb per binary

Code: Select all

./configure --prefix=/usr --mandir=/usr/man --libdir=/usr/lib64 --confdir=/etc/mplayer --enable-runtime-cpudetection
XZMs were created in the only way I know at the moment

Code: Select all

mkdir /inst
make && make DESTDIR=/inst install
dir2xzm /inst mplayer-SVN-**.xzm
I've tried to made some tests to decide which one is better but instead confused myself

Code: Select all

mplayer -v -benchmark -vo null -nosound "/mnt/sda3/video.anime/BDRip.Ookami to Koushinryou/3.Ookami to Koushinryou II/[Rising Sun] Spice and Wolf II - 01 [1920x1080-H264-FLAC][EA85CA2C].mkv" >./log.txt 
(with optional -lavdopts threads=2/4 for multithreading tests)

Turion 64x2 TL-66 (2.3Ghz x 2 cores)
Here you can see how much time (seconds) it took to decode 1920x1080 video file (23 min 45 sec)

1 thread:
Os 1070.451s
O2 1201.149s
O3 1302.416s
Clean 1356.162s
Default 1339.426s (default MPlayer in Porteux x86_64 1.1rc1)

2 threads:
Os 999.248s
O2 988.389s
O3 982.788s
Clean 970.962s

4 threads:
Os 989.496s
O2 991.015s
O3 1021.789s
Clean 976.987s

Re: MPlayer SVN

Posted: 14 Nov 2011, 18:15
by Hamza
Very Useful! :good:
Just one suggestion..
Add the version in the title.

Cheers!

Re: MPlayer SVN

Posted: 14 Nov 2011, 18:22
by Kriss
Hamza wrote:Very Useful! :good:
Just one suggestion..
Add the version in the title.

Cheers!
Thanks!
I planned to update it in future, so I hope I'll be able to change title later. =)

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 19 Nov 2011, 14:24
by fanthom
hi Kriss,

i have tried your new mplayer and with '-lavdopts threads=2' it did really well with my 2 cores CPU on 720p movie.
Anyway, i would like to keep vaapi feature in mplayer and tried to compile never version from vaapi git tree:
http://gitorious.org/vaapi/mplayer/
but i failed with ffmpeg related errors (also on my gentoo box so can be a ffmpeg issue itself). if you could compile this one then i would like to use it as official version.

here is the tarball if you are interested:
http://gitorious.org/vaapi/mplayer/arch ... l/79e6aa7b
(never checkouts of mplayer and/or ffmpeg may do better job for compilation)

Arch guys managed to do it somehow (maybe with external ffmpeg?):
http://www.archlinux.org/packages/commu ... yer-vaapi/

Cheers

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 20 Nov 2011, 02:52
by Kriss
Hi fanthom!
Thanks!
I agree that VA-API is definitely a good feature to have, but sadly I wasn't able to compile mplayer-vaapi 34180 from your link yet...
At first I got errors about implicit declaration of TLS_free TLS_read, TLS_write and TLS_shutdown in libavformat/tls.c.
As I understand this is related to gnutls, but even after adding
#define CONFIG_GNUTLS 0
#define CONFIG_OPENSSL 0
to configure script (these lines exist in configure for default mplayer) these errors didn't go away.
Then I tried to take configure script from official mplayer source. It was much better and "make" gone much farther. But still I got some sort of error about alsa (I think it needs sources of asoundconf.h somewhere, will check it soon.
I'm thinking of merging official mplayer tarball with your version in different way and see what will happen.

P.S I'm also trying to get mplayer r34180 sources from somewhere to test and compare them, but no luck so far.
"svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer" says that it can't connect to host and it can't do anything even if I have a local copy (I was trying to revert to 34180 version)...

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 20 Nov 2011, 10:37
by beny
in console write this:svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer but you should have svn software package

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 22 Nov 2011, 05:16
by Kriss
beny wrote:in console write this:svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer but you should have svn software package
Thanks! Yes, I have it with all necessary dependencies:
Kriss wrote:...
"svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer" says that it can't connect to host and it can't do anything even if I have a local copy (I was trying to revert to 34180 version)...

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 22 Nov 2011, 10:30
by beny
the funny thing is if you compile ffmpeg standalone no problem if compile it into vaapi-mplayer receive some error and build fail i have tryed a lot of ffmpeg version also the last snapshot but with no luck.

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 25 Nov 2011, 19:11
by fanthom
@Kriss
Arch repo got an update to SVN-34357 and i was able to compile brand new Mplayer with vaapi, yasm and multithread.
i'm going to use this one in Porteus-1.1 final.

@Ahau
now we can bring back multithread tip to the FAQ answer 7:

Code: Select all

How do I play 1080p movies in Porteus?

Mplayer in Porteus is compiled with vdpau and vaapi support. If you have a vdpau capable GPU (recent nvidia cards), then you can play HD movies easily by passing the following arguments to mplayer:

mplayer -vo vdpau -vc ffh264vdpau /path_to_movie

If you have Intel GMA/Clarkdale (i3, i5, i7) or newer gpu/igp, then the proper command syntax looks like this:

mplayer -vo vaapi -va vaapi /path_to_movie

in case that your PC doesn't meet above requirements but still have multicore processor you can use multithread feature to play HD movies without glitches:
mplayer -lavdopts threads=2 /path_to_movie/
please fix the lang and update FAQ which goes to the ISO.

Thanks guys.

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 28 Nov 2011, 07:09
by Kriss
@fanthom
Thanks for the info I'll be sure to check it! =)

Update: Wow, so many dependencies... 0_0

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 28 Nov 2011, 15:59
by Ahau
Ok, here's the full text I have for FAQ#7:

How do I play 1080p movies in Porteus?
Mplayer in Porteus is compiled with vdpau and vaapi support. If you have a vdpau capable GPU (recent nVidia cards), then you can play HD movies easily by passing the following arguments to mplayer:
mplayer -vo vdpau -vc ffh264vdpau /path_to_movie

If you have an Intel GMA/Clarkdale (i3, i5, i7) or newer gpu/igp, then the proper command syntax looks like this:
mplayer -vo vaapi -va vaapi /path_to_movie

If your PC has a multicore processor but doesn't meet the requirements listed above, you can use the multithread feature to play HD movies without glitches:
mplayer -lavdopts threads=2 /path_to_movie

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 29 Nov 2011, 11:42
by Kriss
@fanthom
Do you by chance have source codes of mplayer-vaapi-r34357 (or other version you used)?
I've compiled mesa 7.12 with lots of options (g3dvl, xvmc, vdpau, vaapi) and they almost worked (on radeon x1600) last time I tried...

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 29 Nov 2011, 11:59
by fanthom
you can read link to the source files directly from the PKGBUILD:
http://projects.archlinux.org/svntogit/ ... ayer-vaapi
which in this case is:
http://pkgbuild.com/~foutrelis/mplayer- ... 357.tar.xz

Re: MPlayer-SVN-r34343-snapshot-4.5.2 (2011-11-13)

Posted: 29 Nov 2011, 12:01
by Kriss
@fanthom
Thank you!