Author Topic: Mplayer Problem  (Read 8144 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Mplayer Problem
« Reply #15 on: March 11, 2007, 08:27:36 pm »
Quote
I always play videos at 320x240 after using xrandr to adjust the resolution, so I can play videos with or without BVDD.

Higher-res videos do play better in 2.4 betas due to the use of BVDD.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155959\"][{POST_SNAPBACK}][/a][/div]

actually, the bvdd only gives you some speed improvements. the big improvement comes from the iwmmxt optimised code by atty. it uses the iwmmxt instruction sets rather than the standard arm4l instruction, or the slightly improved xscale optimisations.

and yes, using the 2.4.20 kernel with bvdd and atty's statically compiled mplayer with iwmmxt gives you the best video performance on the Z.
« Last Edit: March 11, 2007, 08:29:24 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Mplayer Problem
« Reply #16 on: March 11, 2007, 09:21:17 pm »
Should've let the pro answer first...Oh, well.

Slightly OT, but does the "mtune=iwmmxt" give the largest performance boost in other builds, or just mplayer/video-intensive stuff?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Mplayer Problem
« Reply #17 on: March 11, 2007, 10:47:08 pm »
Quote
Should've let the pro answer first...Oh, well.

Slightly OT, but does the "mtune=iwmmxt" give the largest performance boost in other builds, or just mplayer/video-intensive stuff?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155978\"][{POST_SNAPBACK}][/a][/div]


compiler optimizations give some speed improvement, but code optimization/enhancements give you imrovements in the order of 10 or more vs mere compiler optimization, but of course, both combined, ie compiler optimization and code optimization gives the best results as seen in atty's mplayer build.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

XorA

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • http://
Mplayer Problem
« Reply #18 on: March 16, 2007, 08:42:35 am »
Hopefully this doesnt open old wounds, but an enterprising openzaurus user wrote a -vo pxa output for mplayer that works with 2.6.X CXX00 kernels using pxa overlays.

In other words it does the same as BVDD.

Anyway hopefully some enterprising pdaXrom developer will look in OE under packages/mplayer/files for the patches.
--
SL-C860 XorABuild/GPE
Sandisk Connect Plus SD/1GMB CF/512M
BT PCMCIA

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Mplayer Problem
« Reply #19 on: March 16, 2007, 08:51:45 am »
Quote
Hopefully this doesnt open old wounds, but an enterprising openzaurus user wrote a -vo pxa output for mplayer that works with 2.6.X CXX00 kernels using pxa overlays.

In other words it does the same as BVDD.

Anyway hopefully some enterprising pdaXrom developer will look in OE under packages/mplayer/files for the patches.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156500\"][{POST_SNAPBACK}][/a][/div]

oh this is great news! hopefully someone will look into it...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Mplayer Problem
« Reply #20 on: March 16, 2007, 09:29:58 am »
Quote
Quote
Hopefully this doesnt open old wounds, but an enterprising openzaurus user wrote a -vo pxa output for mplayer that works with 2.6.X CXX00 kernels using pxa overlays.

In other words it does the same as BVDD.

Anyway hopefully some enterprising pdaXrom developer will look in OE under packages/mplayer/files for the patches.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156500\"][{POST_SNAPBACK}][/a][/div]

oh this is great news! hopefully someone will look into it...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156501\"][{POST_SNAPBACK}][/a][/div]

Yea... Hopefully someone....

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Mplayer Problem
« Reply #21 on: March 16, 2007, 04:29:22 pm »
Alright, I'm looking into it, but I have a few questions:

1. Should I use the latest build or the latest release of MPlayer (source snapshot, SVN snapshot, or RC1?
2. Should I apply the patches only for the build I'm using or all of them (probably a dumb question)?
3. Should I cross-compile or compile natively?
EDIT: 4. What (if any) CFLAGS should I use?
« Last Edit: March 16, 2007, 04:54:06 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

XorA

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • http://
Mplayer Problem
« Reply #22 on: March 19, 2007, 12:18:55 pm »
Well if you look at my mplayer_XXX.bb files you will see what environment I used to compiling mplayer in OE. Seems to compile and work fine in armv4, armv5, and iwmmxt modes. For CXX00 I would suggest iwmmct "-mcpu=iwmxxt -march=iwmmxt -mtune=iwmmxct" in CFLAGS.

You should be able to patch up either RC1 or latest SVN, OE does both. I have heard rumours that latest svn contains some more arm optimisations that rc1 but I havent benchmarked.

Cross compiling would be fine, mplayer handles this without problems.
--
SL-C860 XorABuild/GPE
Sandisk Connect Plus SD/1GMB CF/512M
BT PCMCIA

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Mplayer Problem
« Reply #23 on: March 19, 2007, 03:46:42 pm »
Quote
Well if you look at my mplayer_XXX.bb files you will see what environment I used to compiling mplayer in OE. Seems to compile and work fine in armv4, armv5, and iwmmxt modes. For CXX00 I would suggest iwmmct "-mcpu=iwmxxt -march=iwmmxt -mtune=iwmmxct" in CFLAGS.

You should be able to patch up either RC1 or latest SVN, OE does both. I have heard rumours that latest svn contains some more arm optimisations that rc1 but I havent benchmarked.

Cross compiling would be fine, mplayer handles this without problems.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156715\"][{POST_SNAPBACK}][/a][/div]
Thanks...I'll get looking at it harder now.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Mplayer Problem
« Reply #24 on: March 20, 2007, 04:16:29 pm »
A couple more questions:

Should I use my normal GCC, or the cross environment?

Configure fails when looking for inttypes.h. How can I make it find it? It will find it if I get rid of the flags "-fomit-frame-pointer -mcpu=xscale -pipe", but then it says its optimizing for a Pentium M.

I'm trying to build with the latest SVN source.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

XorA

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • http://
Mplayer Problem
« Reply #25 on: March 21, 2007, 11:18:34 am »
Quote
A couple more questions:

Should I use my normal GCC, or the cross environment?

The cross environment. But its been so long since I did a build outside of OE don't ask me what the magic to pass the configure is.
--
SL-C860 XorABuild/GPE
Sandisk Connect Plus SD/1GMB CF/512M
BT PCMCIA

XorA

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • http://
Mplayer Problem
« Reply #26 on: March 21, 2007, 11:21:04 am »
Actually something along the lines of this. Pulled directly from the OE build.

                    --build=x86_64-linux \
                    --host=arm-angstrom-linux-gnueabi \
                    --target=arm-angstrom-linux-gnueabi \
                    --prefix=/usr \
                    --exec_prefix=/usr \
                    --bindir=/usr/bin \
                    --sbindir=/usr/sbin \
                    --libexecdir=/usr/libexec \
                    --datadir=/usr/share \
                    --sysconfdir=/etc \
                    --sharedstatedir=/usr/com \
                    --localstatedir=/var \
                    --libdir=/usr/lib \
                    --includedir=/usr/include \
                    --oldincludedir=/usr/include \
                    --infodir=/usr/share/info \
                    --mandir=/usr/share/man \

arm-angstrom-linux-gnueabi needs to be changed to whatever the system is called under pdaXrom cross compiler.
« Last Edit: March 21, 2007, 11:22:11 am by XorA »
--
SL-C860 XorABuild/GPE
Sandisk Connect Plus SD/1GMB CF/512M
BT PCMCIA

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Mplayer Problem
« Reply #27 on: March 21, 2007, 05:31:20 pm »
I got it to start compiling, but now it quit. Here's my configure command and error:

Configure:
Code: [Select]
CC=armv5tel-cacko-linux-gcc CFLAGS="-O4 -mcpu=iwmmxt -march=iwmmxt -mtune=iwmmxt" CXXFLAGS="-O4 -mcpu=iwmmxt -march=iwmmxt -mtune=iwmmxt" ./configure --disable-mencoder --enable-gui --enable-sdl --cc=/opt/cross/arm/3.4.6-xscale-softvfp/bin/armv5tel-cacko-linux-gcc --target=armv5tel-cacko-linux --enable-iwmmxt --enable-armv5te --prefix=/usr --enable-menu --disable-gl --disable-rtc --disable-inet6 --disable-network --disable-iconv
Error:
Code: [Select]
make
./version.sh `/opt/cross/arm/3.4.6-xscale-softvfp/bin/armv5tel-cacko-linux-gcc -dumpversion`
/opt/cross/arm/3.4.6-xscale-softvfp/bin/armv5tel-cacko-linux-gcc -I. -Wdeclaration-after-statement -O4 -mcpu=iwmmxt -march=iwmmxt -mtune=iwmmxt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT  -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/gtk-2.0 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/lib/gtk-2.0/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/atk-1.0 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/cairo -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/pango-1.0 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/glib-2.0 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/lib/glib-2.0/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/freetype2 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/libpng12   -I./libavutil -I./libavcodec   -c -o mplayer.o mplayer.c
In file included from /usr/include/bits/ioctls.h:24,
                 from /usr/include/sys/ioctl.h:27,
                 from mplayer.c:19:
/usr/include/asm/ioctls.h:9:4: warning: #warning This machine appears to be neither x86_64 nor i386.
In file included from /usr/include/bits/sigcontext.h:28,
                 from /usr/include/signal.h:333,
                 from /usr/include/sys/wait.h:31,
                 from mplayer.c:20:
/usr/include/asm/sigcontext.h:9:4: warning: #warning This machine appears to be neither x86_64 nor i386.
In file included from /usr/include/sys/wait.h:31,
                 from mplayer.c:20:
/usr/include/signal.h:336: warning: "struct sigcontext" declared inside parameter list
/usr/include/signal.h:336: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from /usr/include/linux/errno.h:4,
                 from /usr/include/bits/errno.h:25,
                 from /usr/include/errno.h:36,
                 from mplayer.c:38:
/usr/include/asm/errno.h:9:4: warning: #warning This machine appears to be neither x86_64 nor i386.
mplayer.c: In function `main':
mplayer.c:2672: warning: passing arg 2 of `guiGetEvent' from incompatible pointer type
/opt/cross/arm/3.4.6-xscale-softvfp/bin/armv5tel-cacko-linux-gcc -I. -Wdeclaration-after-statement -O4 -mcpu=iwmmxt -march=iwmmxt -mtune=iwmmxt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT  -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/gtk-2.0 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/lib/gtk-2.0/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/atk-1.0 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/cairo -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/pango-1.0 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/glib-2.0 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/lib/glib-2.0/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/freetype2 -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include -I/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/libpng12   -I./libavutil -I./libavcodec   -c -o spudec.o spudec.c
In file included from /usr/include/linux/errno.h:4,
                 from /usr/include/bits/errno.h:25,
                 from /usr/include/errno.h:36,
                 from spudec.c:17:
/usr/include/asm/errno.h:9:4: warning: #warning This machine appears to be neither x86_64 nor i386.
spudec.c: In function `spudec_draw_scaled':
/usr/include/bits/mathinline.h:530: error: impossible constraint in `asm'
/usr/include/bits/mathinline.h:530: error: impossible constraint in `asm'
make: *** [spudec.o] Error 1

Any ideas?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

XorA

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • http://
Mplayer Problem
« Reply #28 on: March 29, 2007, 05:13:22 am »
Quote
Code: [Select]
In file included from /usr/include/bits/ioctls.h:24,
                 from /usr/include/sys/ioctl.h:27,
                 from mplayer.c:19:

Any ideas?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156939\"][{POST_SNAPBACK}][/a][/div]

Yes, feed it the right -I and -isystem commands so that it doesnt search in /usr/include for include files.
--
SL-C860 XorABuild/GPE
Sandisk Connect Plus SD/1GMB CF/512M
BT PCMCIA