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

Post links to your 64bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
Kriss
Samurai
Samurai
Posts: 135
Joined: 06 Jul 2011, 07:07
Location: Russia

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

Post#1 by Kriss » 14 Nov 2011, 18:06

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
Last edited by Kriss on 14 Nov 2011, 18:19, edited 1 time in total.
Suggestions/corrections/additions are always welcome.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: MPlayer SVN

Post#2 by Hamza » 14 Nov 2011, 18:15

Very Useful! :good:
Just one suggestion..
Add the version in the title.

Cheers!
NjVFQzY2Rg==

Kriss
Samurai
Samurai
Posts: 135
Joined: 06 Jul 2011, 07:07
Location: Russia

Re: MPlayer SVN

Post#3 by Kriss » 14 Nov 2011, 18:22

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. =)
Suggestions/corrections/additions are always welcome.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

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

Post#4 by fanthom » 19 Nov 2011, 14:24

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
Please add [Solved] to your thread title if the solution was found.

Kriss
Samurai
Samurai
Posts: 135
Joined: 06 Jul 2011, 07:07
Location: Russia

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

Post#5 by Kriss » 20 Nov 2011, 02:52

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)...
Suggestions/corrections/additions are always welcome.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

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

Post#6 by beny » 20 Nov 2011, 10:37

in console write this:svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer but you should have svn software package

Kriss
Samurai
Samurai
Posts: 135
Joined: 06 Jul 2011, 07:07
Location: Russia

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

Post#7 by Kriss » 22 Nov 2011, 05:16

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)...
Suggestions/corrections/additions are always welcome.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

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

Post#8 by beny » 22 Nov 2011, 10:30

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.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

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

Post#9 by fanthom » 25 Nov 2011, 19:11

@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.
Please add [Solved] to your thread title if the solution was found.

Kriss
Samurai
Samurai
Posts: 135
Joined: 06 Jul 2011, 07:07
Location: Russia

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

Post#10 by Kriss » 28 Nov 2011, 07:09

@fanthom
Thanks for the info I'll be sure to check it! =)

Update: Wow, so many dependencies... 0_0
Last edited by Kriss on 28 Nov 2011, 16:52, edited 1 time in total.
Suggestions/corrections/additions are always welcome.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

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

Post#11 by Ahau » 28 Nov 2011, 15:59

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
Please take a look at our online documentation, here. Suggestions are welcome!

Kriss
Samurai
Samurai
Posts: 135
Joined: 06 Jul 2011, 07:07
Location: Russia

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

Post#12 by Kriss » 29 Nov 2011, 11:42

@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...
Suggestions/corrections/additions are always welcome.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

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

Post#13 by fanthom » 29 Nov 2011, 11:59

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
Please add [Solved] to your thread title if the solution was found.

Kriss
Samurai
Samurai
Posts: 135
Joined: 06 Jul 2011, 07:07
Location: Russia

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

Post#14 by Kriss » 29 Nov 2011, 12:01

@fanthom
Thank you!
Suggestions/corrections/additions are always welcome.

Post Reply