Notices


Reply
Thread Tools
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#31
Originally Posted by sampppa View Post
Well it seems that Maemo5 sdk has too old binutils...Assembler doesnt recognize NEON instructions
Did you compile with -mfpu=neon? Check the OPTFLAGS and adjacent lines in config.mak... Might also be a good idea to set -mcpu there... The default "-O4" is probably silly/stupid, try -O2 also...
 

The Following 2 Users Say Thank You to shadowjk For This Useful Post:
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#32
Ok, im gonna try it
 
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#33
hmm no... I still get a lot of errors:
arm/fft_neon.S:31: Error: bad instruction `vld1.32 {d0-d3},[r0,:128]'
arm/fft_neon.S:33: Error: bad instruction `vext.32 q8,q1,q1,#1'
arm/fft_neon.S:34: Error: bad instruction `vsub.f32 d6,d0,d1'
arm/fft_neon.S:35: Error: bad instruction `vsub.f32 d7,d16,d17'

etc.
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#34
Hello,

Some of you on IRC might've already seen it, but I managed to compile MPlayer with Neon optimizations.

The performance difference on h264 decode:

time ./mplayer -benchmark -vo null -ao null -quiet -ac dummy /home/user/MyDocs/.videos/Nokia_N900.mp4
[...]
Code:
No Neon:
BENCHMARKs: VC:  37.221s VO:   0.018s A:   0.000s Sys:   1.463s =   38.702s
BENCHMARK%: VC: 96.1730% VO:  0.0472% A:  0.0000% Sys:  3.7797% = 100.0000%
With Neon:
Code:
BENCHMARKs: VC:  27.057s VO:   0.018s A:   0.000s Sys:   1.771s =   28.846s
BENCHMARK%: VC: 93.7970% VO:  0.0619% A:  0.0000% Sys:  6.1411% = 100.0000%
That's a performance gain of 25%

For the people who know what they're doing, an MPlayer binary available here: http://enivax.net/jk/mplayer-n900/02/mplayer.gz (gunzip somewhere in your home dir, chmod +x).

MPlayer svn as of today, plus the following patches were used. The screen blanking prevention was taken from samppa's mplayer port. I submitted both upstream for comments.

http://enivax.net/jk/mplayer-n900/02/as-cflags.patch
http://enivax.net/jk/mplayer-n900/02...evention.patch

Configured it with:
.
Code:
/configure --prefix=/opt/maemo/usr --extra-cflags="-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp" --disable-speex --disable-dvdnav --disable-dvdread --disable-dvdread-internal --disable-real --disable-xanim
I'm too lazy to figure out debian packaging this weekend, so I hope samppa can make it work, although leave out the prefix part if you're using maemo-optify, I'd think..

EDIT:
MPlayer developers suggested I try set ASFLAGS to "-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp" in she shell before configure and make, instead of the patch. That works too, and is cleaner.

Last edited by shadowjk; 2009-12-20 at 19:53.
 

The Following 13 Users Say Thank You to shadowjk For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#35
sampppa: please note that there's also a patch for keyboard focus problems in this post.

Any hope of getting the NEON optimisations and a keyboard focus fix?
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post:
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#36
Originally Posted by qole View Post
sampppa: please note that there's also a patch for keyboard focus problems in this post.

Any hope of getting the NEON optimisations and a keyboard focus fix?
Yeah i can apply that patch also.

Can u try current version from extras-devel: mplayer_1.0svn20091221-1_armel.deb

Does it play smoother?
 
Posts: 1,255 | Thanked: 393 times | Joined on Oct 2009 @ US
#37
Samppa,

I have tried this version and it does seem to play a little smoother- not that it was not already, compared to the default player.

Last edited by Rushmore; 2009-12-23 at 01:21.
 

The Following 2 Users Say Thank You to Rushmore For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#38
Another request, please:

Set the _HILDON_NON_COMPOSITED_WINDOW property as discussed in here. libvo/x11_common.c looks a good place to do so.
 

The Following 9 Users Say Thank You to qwerty12 For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#39
Oh, and here's a patch allowing it to play in silent mode.

It's only using a very tiny subset of libplayback's functions; see my post here if you wish to use the rest. Not worth it.

The user will have to reboot after installing before this kicks into place, however. Not my fault.

Oh, I haven't modified its prerm to clean up the policy file on uninstall. Oh well.
Attached Files
File Type: gz mplayer_1.0svn20091221-1.diff.gz (1.6 KB, 109 views)

Last edited by qwerty12; 2009-12-24 at 11:16.
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 286 | Thanked: 100 times | Joined on Dec 2009 @ down south
#40
any chance of getting a version posted in repo's with all those lovely patches applied? wouldnt mind messing about and being beta tester or someone post a compiled version? cheers
 

The Following User Says Thank You to dread123 For This Useful Post:
Reply

Tags
mafw, mediabox, mplayer, mytube


 
Forum Jump


All times are GMT. The time now is 10:02.