OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: flexibyte on May 23, 2006, 08:09:55 am

Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: flexibyte on May 23, 2006, 08:09:55 am
I have managed to get mplayer working with 640x480 videos - smoothly.
You still need to re-encode your old videos though, because they need to be encoded sideways.
Eg.
- Download pocketdivxencoder (free)
- set device type to the 640x480 E800
- in advanced options set orientation so that the pda is rotated to the left on its side (2 clicks)
- Set desired video quality options and encode

Now copy the video to your zaurus and type (works best outside of X11):

# mplayer -vo fbdev -fb /dev/fb0 yourvideofile.avi

and there you have it. It should play roughly full speed. Let me know if this works well with your videos and if you have any more tips.

Also, isnt /dev/fb1 supposed to be even faster? - only I cant get that working with anything, not just mplayer.


Enjoy,
Phill
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: gromituk on May 23, 2006, 08:14:57 am
Which model(s)?
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: flexibyte on May 23, 2006, 08:18:20 am
Sorry - just tried with SL-C3200 - So should work with any Cxx00 model. Please try if you have a different model though and let everyone know if it works.
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: merli on May 23, 2006, 08:19:34 am
Quote
Sorry - just tried with SL-C3200 - So should work with any Cxx00 model. Please try if you have a different model though and let everyone know if it works.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128173\"][{POST_SNAPBACK}][/a][/div]

Which version pdaxrom beta4?
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: urielka on May 23, 2006, 09:06:42 am
try doing:
modprobe pxafb_overlay
and then /dev/fb1 should work
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: Dima202 on May 23, 2006, 09:20:57 am
Quote
try doing:
modprobe pxafb_overlay
and then /dev/fb1 should work
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128179\"][{POST_SNAPBACK}][/a][/div]
In C860: "modprobe: Can't located module pxafb_overlay"
This is supposed to work in beta 1 or is this only beta 4 thing?
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: flexibyte on May 23, 2006, 09:39:24 am
Quote
try doing:
modprobe pxafb_overlay
and then /dev/fb1 should work
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128179\"][{POST_SNAPBACK}][/a][/div]

Yes, I tried this but it doesnt seem to be working. :/


Quote
Quote
try doing:
modprobe pxafb_overlay
and then /dev/fb1 should work
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128179\"][{POST_SNAPBACK}][/a][/div]
In C860: "modprobe: Can't located module pxafb_overlay"
This is supposed to work in beta 1 or is this only beta 4 thing?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128181\"][{POST_SNAPBACK}][/a][/div]

This is only in 1.1.0beta4 (with 2.6 kernel) .... I thought versions before beta4 had bvdd in mplayer which makes it fine for mplayer anyway?
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: gromituk on May 23, 2006, 10:26:24 am
Quote
In C860: "modprobe: Can't located module pxafb_overlay"
This is supposed to work in beta 1 or is this only beta 4 thing?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128181\"][{POST_SNAPBACK}][/a][/div]
No-one answered when I asked on another thread, but I suspect that these models are not capable of any video acceleration, at least at 640x480.
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: Dima202 on May 23, 2006, 02:49:26 pm
Quote
Quote
In C860: "modprobe: Can't located module pxafb_overlay"
This is supposed to work in beta 1 or is this only beta 4 thing?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128181\"][{POST_SNAPBACK}][/a][/div]
No-one answered when I asked on another thread, but I suspect that these models are not capable of any video acceleration, at least at 640x480.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128190\"][{POST_SNAPBACK}][/a][/div]
That would be sad    
I know for sure that C860 has Imageon 100 ATI chip.
Maybe it's still possible but using another method?  
-Also I am running Beta1 (2.4 kernel) so maybe that has something to do with it.. eh?
BTW -I am sorry guys I didn't donate yet, I am going to try and straighten things up will PayPal and will donate as soon as I can.

EDIT!:
THE OTHER METHOD (FOR C7X0,860)
<pgas> DukeMd: on your 760(but I have 860)  have you tried "mplayer -vo w100"
It doesn't work yet, but its a start?
Edit:
-vo w100 calls driver and -nortc means there isnt rtc on Z
so use -vo w100 -nortc
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: iczer3 on May 23, 2006, 10:01:21 pm
Hi Dima202,

The C860 does indeed have acceleration quite a long time ago.
The fb0 is accelerated. But the Ati chip have not enough internal memory,
and can only support 512x384 resolution using internal ram.
640x480 means need external memory and therefore slow.

BR,

Felix.
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: zodttd on May 23, 2006, 10:24:26 pm
I did some tests which I mentioned in "I Got pxafb_overlay working..." topic. I found no speed increases using /dev/fb1 over /dev/fb0.
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: wrc4 on May 24, 2006, 03:10:23 am
Quote
Quote
try doing:
modprobe pxafb_overlay
and then /dev/fb1 should work
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128179\"][{POST_SNAPBACK}][/a][/div]

Yes, I tried this but it doesnt seem to be working. :/


Quote
Quote
try doing:
modprobe pxafb_overlay
and then /dev/fb1 should work
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128179\"][{POST_SNAPBACK}][/a][/div]
In C860: "modprobe: Can't located module pxafb_overlay"
This is supposed to work in beta 1 or is this only beta 4 thing?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128181\"][{POST_SNAPBACK}][/a][/div]

This is only in 1.1.0beta4 (with 2.6 kernel) .... I thought versions before beta4 had bvdd in mplayer which makes it fine for mplayer anyway?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128184\"][{POST_SNAPBACK}][/a][/div]


/fb0, /fb1 and bvdd... Where can I get more information about these things? I really hope my SL7500C can play video as smooth as my iPAQ hx4705. (Yes, I know the CPU of hx4705 is 624MHz while 7500 has a 400MHz one).

BTW, how big is the video memory of IMAGEON 100? I know that hx4700(which uses IMAGEON 3200) has 2MB. I've tried to program the video buffer of 4705 but stopped with the YUV decoder because I couldn't find enough documents.

Also, I hope beta4 for 7x0/860 will be out soon!
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: wrc4 on May 26, 2006, 03:54:44 am
Well, I tried some of the mplayer command lines by myself. It seems that the best performance I can get on my SL7500C is with:

mplayer -nosound -fs -vo w100

First, I can't get acceptable performance with sound enabled even after trying all possible "-ao" options. Does anyone know how to get sound working smoothly with video?

Second, -fs, I found that with "-vo w100", there is no speed penalty scaling to full screen.

Third, among all the -vo options I tired, "w100" is the only one that provides smooth video. Other ones (even /dev/fb0) have screen flickering issues.

Also, I figured out that IMAGEON 100 has only 384K video memory, But I'm not sure why 512x384 is the max accelerated size. (iczer3, can you explain this in details). I tried 320x240 and 640x352 video sizes and apparently the latter one was not accelerated and end up with a lot of flickering.

I'm still expecting beta4 for C7x0 to try out some new options.
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: iczer3 on May 26, 2006, 04:12:14 am
Dear wrc4,

The video screen is 16 bit per pixel, so 384K memory = 192K pixels.
So for 512 pixels wide the width is 192 * 1024 / 512 = 384 pixels.

BR,

Felix.
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: wrc4 on May 26, 2006, 04:15:26 am
Quote
Dear wrc4,

The video screen is 16 bit per pixel, so 384K memory = 192K pixels.
So for 512 pixels wide the width is 192 * 1024 / 512 = 384 pixels.

BR,

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

Thanks!

I was thinking 24 bit color depth!  

So I need to think about converting my favorite video clips to 512x384.
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: Da_Blitz on May 26, 2006, 04:21:30 am
This is very nice, i was just reading about this on a directFB mailing list i may have to consider comming back to pdaXrom
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: guylhem on May 27, 2006, 07:59:00 am
Quote
First, I can't get acceptable performance with sound enabled even after trying all possible "-ao" options. Does anyone know how to get sound working smoothly with video?

Which kernel do you use? Type uname -a
On 2.4 you *must* encode at a specific bitrate, 48 000 IIRC, or the CPU will have to handle the conversion and therefore slow down.

Try to convert to 512x384, and see which framerates work better.

Guylhem
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: wrc4 on May 28, 2006, 02:05:24 am
Quote
Which kernel do you use? Type uname -a
On 2.4 you *must* encode at a specific bitrate, 48 000 IIRC, or the CPU will have to handle the conversion and therefore slow down.

Try to convert to 512x384, and see which framerates work better.

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

I'm using pdaXrom1.1.0beta1 so the kernel is 2.4.18

I have been using DivX/Xvid codec to convert my files. When I converted the film to 512x384, the "-vo w100" stopped working. (I mean the screen started to flickering). It seems any resolutions between 512x384 and 320x240 are not accelerated.

After that I tried a standard NTSC VCD file(352x240x30fps, .DAT file),  The "-vo w100" option had bad performance. Without audio the framerate was much lower than 30fps(like slow-motion, even if I turned "-framedrop" on). When I turned sound on, the speed was normal but there were a lot of framedrops.

However, with "/vo fbdev -fb /dev/fb0" the sound and video are all perfect. the only problem is the "-fs" doesn't work. The screen size is limited to 352x240.

Since mpeg file and avi file use different decoders, maybe the optimum parameters are different.

I think I need to do more research on this.
Title: Mplayer Plays High Quality Videos In Beta4 640x480
Post by: anunakin on May 30, 2006, 01:26:23 pm
Any here know if we can rotate a video with ffmpeg? I using mencoder in this script todo it ....

Code: [Select]
#!/bin/bash
ffmpeg -i $1 -f avi -r 29.970030 -b 768 -ar 24000 -ab 64 -s 640x480 $1.mpg
mencoder -oac copy -ovc lavc -vf rotate=1 -o $1-r.mpg $1.mpg

If you have a video, and dont want make a new file rotated... can use this command:

Code: [Select]
$ mplayer -vo fbdev -fb /dev/fb0 -vf rotate=1 video.mpg