Author Topic: Mplayer w100 api files needed...  (Read 12764 times)

doublec

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://radio.weblogs.com/0102385/categories/zaurus/index.html
Mplayer w100 api files needed...
« Reply #15 on: August 19, 2004, 10:21:32 pm »
alan, thanks for the forum link. I hadn't seen that before. That lead me to downloading the PocketMVP source here: http://home.adelphia.net/~mdukette/kits/PocketMVP_source.zip

In the ATI.cpp file from that source is some code that uses the ATI w100 functions. Some analysis of this might help debugging the problems with the vidix driver.

Chris.

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Mplayer w100 api files needed...
« Reply #16 on: August 20, 2004, 02:19:29 am »
doublec : No pb  

bastichelaar : sorry to give you this, but it looks like VLC won't work on pdaxrom

https://www.oesf.org/forums/inde...?showtopic=4345

bastichelaar

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • http://www.xerys.nl
Mplayer w100 api files needed...
« Reply #17 on: August 20, 2004, 03:40:47 am »
Try to download the package for the yopy... VLC works pretty good! I tried to download the newer version for ipaq, but it kept complaining about glibc 2.3... Which version does rc2 have?
Visit my website...
--------------------------
C860
 - 512 MB SD Kingston
 - 256 MB PQI 40x
 - Socket BT rev. G
 - Asus wlan
--------------------------
RUNNING FLUXBOX!

bastichelaar

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • http://www.xerys.nl
Mplayer w100 api files needed...
« Reply #18 on: August 23, 2004, 07:09:38 am »
We need somebody with the time and the knowledge to optimise the driver. I would like to know which command Kino2 invokes to run mplayer... Where are the developers? I will donate €50 to the one who makes mplayer run perfectly...

HELP US!
Visit my website...
--------------------------
C860
 - 512 MB SD Kingston
 - 256 MB PQI 40x
 - Socket BT rev. G
 - Asus wlan
--------------------------
RUNNING FLUXBOX!

XorA

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • http://
Mplayer w100 api files needed...
« Reply #19 on: August 23, 2004, 10:49:32 am »
At a guess a combo of these options (obtained directly from kino2 binary)

/usr/local/bin/mplayer
-identify
-slave
-really-quiet
-framedrop
Or =
fbdev:vidix
fbdev
-double
-vop
rotate=1
-geometry
50%:50%
flip=yes,mirror=yes
rotate=1,scale=-2:
scale=
%d%%:%d%%
x =
y =
w =
h =
-cache
-bandwidth
-sws
seek -5
seek +5
seek +1
seek -1
seek +10
seek -10

Graeme
--
SL-C860 XorABuild/GPE
Sandisk Connect Plus SD/1GMB CF/512M
BT PCMCIA

bastichelaar

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • http://www.xerys.nl
Mplayer w100 api files needed...
« Reply #20 on: August 23, 2004, 02:16:48 pm »
I've installed the Cacko rom, just to find out what command mplayer invokes. It seems that Kino2 adds an extra option -dr, to enable direct rendering. Maybe this is possible with X11 ROM?
Visit my website...
--------------------------
C860
 - 512 MB SD Kingston
 - 256 MB PQI 40x
 - Socket BT rev. G
 - Asus wlan
--------------------------
RUNNING FLUXBOX!

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Mplayer w100 api files needed...
« Reply #21 on: August 23, 2004, 03:15:52 pm »
i'll test whatever you want me to.

just give me instructions.

I've already tried many files from 'Pocket movies' without any trouble but first it was mpg1, second it was outside of X...

I'm not sure of what you want to do, but i guess it might be something useful.

bastichelaar

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • http://www.xerys.nl
Mplayer w100 api files needed...
« Reply #22 on: August 23, 2004, 03:20:12 pm »
Try:

mplayer -slave -vo fbdev:vidix -framedrop -really-quiet -fbmode qvga -dr -vm -double -geometry 50%:50% -vop rotate=1

And tell us...
Visit my website...
--------------------------
C860
 - 512 MB SD Kingston
 - 256 MB PQI 40x
 - Socket BT rev. G
 - Asus wlan
--------------------------
RUNNING FLUXBOX!

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Mplayer w100 api files needed...
« Reply #23 on: August 23, 2004, 03:40:24 pm »
  eergh...  

tried this inside x :
- complained about not finding /home/root/.mplayer/codecs.conf
- complained about not finding /usr/etc/mplayer/codecs.conf
- complained about not finding font.desc
- could not access 'termcap' data base

Tried this outside X :
well, let's say that a reboot was needed in order to find back a 'normal' screen  

this seems to be the best i've tried :

Quote
Here are the steps needed to play videos in 320x240 fullscreen:

1) First, install mplayer from the pdaxrom feed. No other additional software is needed.

2) Next, create the file /etc/fb.modes with the following contents:

mode "qvga"
geometry 320 240 320 240 16
timings 1 2 3 4 5 6 7
endmode

Now, to play your file, you must first exit from X if you're running it (issue 'killall X' in terminal). You can only play fullscreen video from the console at the moment.

3) When you're in console, run mplayer with the following command:

mplayer -vo fbdev -fbmode qvga -vm -ac mad file.avi

assuming 'file.avi' is the file you want to play.

bastichelaar

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • http://www.xerys.nl
Mplayer w100 api files needed...
« Reply #24 on: August 23, 2004, 03:43:08 pm »
I know that works... But I would like to run mplayer from INSIDE X, i.e. make a gui, have a decent player!

Just flashed pdaXrom, so I will continue trying...
Visit my website...
--------------------------
C860
 - 512 MB SD Kingston
 - 256 MB PQI 40x
 - Socket BT rev. G
 - Asus wlan
--------------------------
RUNNING FLUXBOX!

doublec

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://radio.weblogs.com/0102385/categories/zaurus/index.html
Mplayer w100 api files needed...
« Reply #25 on: August 23, 2004, 05:21:27 pm »
I have hacked at the code for w100_vid.so and have videos playing inside X using mplayer. You need to use the 'xvidix' driver:

  mplayer -vo xvidix -vop rotate=1 file.avi

Unfortunately it still has a number of problems:

1) I haven't been able to get the rotation of the video overlay window to align with the mplayer GUI window. Because the Z in landscape mode is '480x640' and mplayer expects 640x480 things are a bit out of kilter. To fix it I need to have w100_vid.so do the rotation itself but I haven't worked out the AtiCore magic to do this. Anyone know?

2) The X session is 640x480. I want to switch the display to 320x240 (like the qvga fbmode) to not have to scale 320x240 videos. Again, I don't know the AtiCore magic to do this.

3) I can't seem to get stretch blitting to work to scale things up to 640x480. I'm still working on this if I can't get (2) to work.

If anyone is interested I can upload the binary and source to my modified version of the w100_vid driver.

Chris.

bastichelaar

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • http://www.xerys.nl
Mplayer w100 api files needed...
« Reply #26 on: August 23, 2004, 05:32:43 pm »
Please upload the binary... I just installed pdaXrom (after a try to switch back to Cacko... without success  ), so I would like to give it a try. Upload the binary and the source...
Visit my website...
--------------------------
C860
 - 512 MB SD Kingston
 - 256 MB PQI 40x
 - Socket BT rev. G
 - Asus wlan
--------------------------
RUNNING FLUXBOX!

doublec

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://radio.weblogs.com/0102385/categories/zaurus/index.html
Mplayer w100 api files needed...
« Reply #27 on: August 23, 2004, 06:18:33 pm »
Binary is at http://www.double.co.nz/zaurus/w100_vid.so.gz. You'll need to unpack it with:

  gunzip w100_vid.so.gz
  cp w100_vid.so /usr/lib/mplayer/vidix

Use like:

  mplayer -vo xvidix -vop rotate=1 file.avi

Only tested and probably only works with videos that are already 320x240 in size. Try other file sizes though. If they don't work you can scale with:

  mplayer -vo xvidix -vop scale=320:240,rotate=1 file.avi

Note this will use software scaling. I haven't worked out how to hardware scale.

Notice how the overlay window is not aligned with the mplayer window.

Source will follow when I get back home (I don't have it on my Z).

Chris.

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Mplayer w100 api files needed...
« Reply #28 on: August 24, 2004, 11:18:44 am »
I was playing with this last night.  It sort of worked, the video started to play, but it was so choppy it wasn't watchable.  The weird thing is, now I can't watch videos even outside of X like I always could.  I removed the driver, did a rm -rf ~/.mplayer, reinstalled mplayer, still no luck.  The video starts to play, but it never gets passed the first frame.  

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Mplayer w100 api files needed...
« Reply #29 on: August 29, 2004, 10:26:38 am »
New native SDK will with RC3, cross SDK little later. That includes hacked aticore API header.
In RC3 i moved aticore to shared library for easy to use acceleration from another progrems.