Author Topic: New Optimized Mplayer For Pxa25x-based Zaurus Mode  (Read 19547 times)

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #30 on: February 01, 2005, 07:35:14 pm »
your mplayer-opt-fm hangs sometimes, but indeed it is faster than atty's build.

doest the -rtprio 2 switch really make a difference. i also get an error about /dev/rtc not being readable

tovarish

anrp

  • Newbie
  • *
  • Posts: 16
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #31 on: February 01, 2005, 07:39:49 pm »
Quote
your mplayer-opt-fm hangs sometimes, but indeed it is faster than atty's build.

doest the -rtprio 2 switch really make a difference. i also get an error about /dev/rtc not being readable

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

Hang? How so? Post an example file, maybe? (If mplayer crashes while running with -rtprio 2, it will most likely hang the zaurus due to the nature of that switch...)
« Last Edit: February 01, 2005, 07:40:25 pm by anrp »

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #32 on: February 01, 2005, 07:56:27 pm »
i am using the matrix reloaded trailer to do my testing. the hang (not a crash, i have to do a battery reset  ) occurs usually when i try a fullscreen playback immediately after normal playback. i run it with the foll switches

-vo w100 -dr -double -vop rotate=1 -quiet -rtprio 2
and
-fs
for fullscreen

tovarish

anrp

  • Newbie
  • *
  • Posts: 16
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #33 on: February 01, 2005, 08:10:59 pm »
Quote
i am using the matrix reloaded trailer to do my testing. the hang (not a crash, i have to do a battery reset  ) occurs usually when i try a fullscreen playback immediately after normal playback. i run it with the foll switches

-vo w100 -dr -double -vop rotate=1 -quiet -rtprio 2
and
-fs
for fullscreen

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

So, for the first run, you do:
mplayer-opt-fm -vo w100 -dr -double -vop rotate=1 -quiet -rtprio 2 file.avi

..and it's fine. Then, you run
mplayer-opt-fm -fs file.avi

and it hangs?

You can try doing the exact same sequence you're using to get it to crash minus the "-rtprio 2" to see where it's failing....
« Last Edit: February 01, 2005, 08:35:38 pm by anrp »

anrp

  • Newbie
  • *
  • Posts: 16
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #34 on: February 01, 2005, 09:37:03 pm »
I'd like to take this post to say something important:

Doing rotation in software via -vop rotate=1 on the fly will cause up to a 40% performance hit in MPlayer overall.

Any media files you want to play on a Cx60 series zaurus really should be pre-rotated....

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #35 on: February 01, 2005, 10:16:44 pm »
Quote
So, for the first run, you do:
mplayer-opt-fm -vo w100 -dr -double -vop rotate=1 -quiet -rtprio 2 file.avi

..and it's fine. Then, you run
mplayer-opt-fm -fs file.avi

and it hangs?

You can try doing the exact same sequence you're using to get it to crash minus the "-rtprio 2" to see where it's failing....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65027\"][{POST_SNAPBACK}][/a][/div]

i actually use the other options plus -fs  for fullscreen
yes the hanging doesnt occur without the -rtprio option
tovarish

anrp

  • Newbie
  • *
  • Posts: 16
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #36 on: February 01, 2005, 10:57:32 pm »
Quote
Quote
So, for the first run, you do:
mplayer-opt-fm -vo w100 -dr -double -vop rotate=1 -quiet -rtprio 2 file.avi

..and it's fine. Then, you run
mplayer-opt-fm -fs file.avi

and it hangs?

You can try doing the exact same sequence you're using to get it to crash minus the "-rtprio 2" to see where it's failing....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65027\"][{POST_SNAPBACK}][/a][/div]

i actually use the other options plus -fs  for fullscreen
yes the hanging doesnt occur without the -rtprio option
tovarish
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65044\"][{POST_SNAPBACK}][/a][/div]

Well, that makes sense. If, for whatever reason, mplayer gets stuck in an infinite loop while running with real time priority, the machine will freeze. Understand that it has not actually crashed, it's just that the linux scheduler will always prefer a real time scheduled process over a mere mortal process (like QT,) so the machine becomes unusable. (This is a concern for any real-time process on linux.)

I may be able to hack in a so-called rtsafety patch to mplayer to help in that situation... otherwise, there's not much you can do about it at this point (besides not use rtprio )

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #37 on: February 02, 2005, 07:17:21 am »
yeah no rtprio for me.
any ideas why the equalizer is so slow. I dont have acess to a linux machine but if you do could you tell me if the behaviour is the same in x86 version of mplayer.

tovarish

anrp

  • Newbie
  • *
  • Posts: 16
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #38 on: February 02, 2005, 09:22:11 am »
Quote
yeah no rtprio for me.
any ideas why the equalizer is so slow. I dont have acess to a linux machine but if you do could you tell me if the behaviour is the same in x86 version of mplayer.

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

The problem is that af_equalizer is very float-heavy, so even using softfloat doesn't help enough to bring it up to realtime. I'm sure there are integer implementations of an equalizer out there, I may give a shot at adding one...

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #39 on: February 02, 2005, 11:16:47 pm »
Hey anrp, could you also build C3000 optimized version of mplayer with your MP3 VBR fix? everything you need should be there in SVN, and we'll have full set of fresh mplayer binaries for all supported Zaurus devices

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #40 on: February 03, 2005, 02:42:49 am »
Finaly had a chance to test the latest mplayer build. Excellent job!  Much smoother video playback! 640x352x500 Kb/s plays very well, mplayer doesn't even complain that the system is too slow.

Also, no problem with VBR Mp3 playback.

anrp, thank you very much

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #41 on: February 03, 2005, 06:44:40 am »
Quote
Finaly had a chance to test the latest mplayer build. Excellent job!  Much smoother video playback! 640x352x500 Kb/s plays very well, mplayer doesn't even complain that the system is too slow.

Also, no problem with VBR Mp3 playback.

anrp, thank you very much
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

I tried it with a 640x480 video and it didnt work very well , can you tell me which codec did you encode with, i used xvid(480) + mp3(118). did you overclock too?
for me only 320x240 videos work well with >480kbps

on a OT note, there are many public domain movies here that we could use for testing and passing around.

[a href=\"http://www.archive.org/movies/movies.php]http://www.archive.org/movies/movies.php[/url]

tovarish
« Last Edit: February 03, 2005, 07:40:02 am by tovarish »

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #42 on: February 03, 2005, 01:24:20 pm »
640x480 will not play well, I only tried 640x352 (aka 16:9) 500 kb/s
mplayer still drops frames, but movie is viewable

Do not use xVid, it doesn't play well with mplayer, use DivX, enable B-Frames, two pass encoding

I encoded audio at 44100 128 Kbs/c MP3 or OGG

Also, make sure to encode video in landscape mode, so that you don;t have to rotate.

And yes, I had to overclock.
« Last Edit: February 03, 2005, 01:25:07 pm by maslovsky »

shreks

  • Newbie
  • *
  • Posts: 47
    • View Profile
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #43 on: February 03, 2005, 01:53:37 pm »
Awesome work! Your mplayer works very smoothly on my Zaurus SL-C3000!!!  

And the bvdd version of mplayer, said to be optmized for C3000, actually crashed my C3000,    I don't why.

kfetisov

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://
New Optimized Mplayer For Pxa25x-based Zaurus Mode
« Reply #44 on: February 03, 2005, 11:20:53 pm »
Quote
Awesome work! Your mplayer works very smoothly on my Zaurus SL-C3000!!!   

And the bvdd version of mplayer, said to be optmized for C3000, actually crashed my C3000,    I don't why.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Dont forget to install bvdd driver else your C3000 will crash. Use -vo bvdd option

Good Luck,

Konstantin.

[a href=\"http://atty.jp/?plugin=attach&refer=Zaurus%2Fmplayer&openfile=bvdd_0.1.0-1_arm.ipk]http://atty.jp/?plugin=attach&refer=Zaurus...0.1.0-1_arm.ipk[/url]