Author Topic: Mplayer With Debian Eabi  (Read 7710 times)

canguy247

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Mplayer With Debian Eabi
« on: February 02, 2008, 07:13:04 am »
Hey all,

I have installed Debian EABI from the preconfigured rootfs, thanks all who contributed to that!  Everything is great except I am having trouble with Mplayer.  I noticed the only other person who had the same issues was kkazakov13, so I checked and found that the script I was using was written by kkazakov13!  The settings I tweaked in the script worked great with pdaxii13.  So what I wanted to know was this...could anyone who has had luck with 640x480 video please post their encoding options.  The easiest way is to post your mencoder/ffmpeg command line, this way I can see ALL of the options you use.

Thanks,
Canguy
SL-C1000 - Debian 2.6.24.4-yonggun (from SD)
Pandora preordered
4GB Transcend 150X SD
16GB AData CF
USB Host cable
Bluetooth USB Dongle/Linksys WCF12 CF Wifi
TRENDnet TE-CF100 10/100 Wired ethernet CF / DM9601 usb ethernet
Palm III keyboard neoprene case

canguy247

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Mplayer With Debian Eabi
« Reply #1 on: February 04, 2008, 11:57:11 pm »
Does nobody play video with Debian???
SL-C1000 - Debian 2.6.24.4-yonggun (from SD)
Pandora preordered
4GB Transcend 150X SD
16GB AData CF
USB Host cable
Bluetooth USB Dongle/Linksys WCF12 CF Wifi
TRENDnet TE-CF100 10/100 Wired ethernet CF / DM9601 usb ethernet
Palm III keyboard neoprene case

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Mplayer With Debian Eabi
« Reply #2 on: February 05, 2008, 12:35:33 am »
Well, I currently _try_ to play video in debian. But all I got so far (without overclocking) is playback, with on-few-seconds freeze for a second. Which is kinda annoying. I must admit that I do reencode my movies to 640x480 ( and I include black bars so my subtitles can play ) and then rotate it on another round, because If I do it on the same round, things get messy.

Also, the OSD controls are rotated, which suxx. _And_ I have to find a way to put some font in there so it displays the playtime ( I never have enough time to watch full movie on Z )

If you want some help, contact me in PM. I will be glad if we can solve this, as it's a problem for me too. My Z is just sitting as brick right now
« Last Edit: February 05, 2008, 12:38:05 am by kkazakov13 »
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

canguy247

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Mplayer With Debian Eabi
« Reply #3 on: February 10, 2008, 11:52:35 am »
I finally had a chance to play around today.
So far I have found out the following;

1) The sample rate of the audio must be 44100. This is due to a bug in the sound driver.
2) PXA only works for videos of a specific resolution: 320x240, 240x320, 480x640. NOT 640x480.

I am now stuck. Whenever I use -vo sdl, it is still slow and chunky. When I use -vo pxa, the screen goes white and a reset is required. I have read post on the Angstrom forum about this, with no resolution. I have gotten tired of reseting my Zaurus, so I will give it a break for now.
SL-C1000 - Debian 2.6.24.4-yonggun (from SD)
Pandora preordered
4GB Transcend 150X SD
16GB AData CF
USB Host cable
Bluetooth USB Dongle/Linksys WCF12 CF Wifi
TRENDnet TE-CF100 10/100 Wired ethernet CF / DM9601 usb ethernet
Palm III keyboard neoprene case

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Mplayer With Debian Eabi
« Reply #4 on: February 15, 2008, 07:59:58 am »
Quote from: canguy247
Does nobody play video with Debian???

my mplayer doesn't work either... now i use my PSP to play video  
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

canguy247

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Mplayer With Debian Eabi
« Reply #5 on: March 24, 2008, 02:11:39 pm »
I am happy to say I have found a solution.  I got the info from this link,

Good video performance...

It comes down to this.  You need to create a file which contains your video interface info (refresh rates and geometry) called /etc/fb.modes

This is what should be in the file:

Quote
mode "qvga"
geometry 240 320 240 320 16
timings 134617 20 46 1 0 20 2
accel false
endmode

mode "480x640-117"
# D: 51.999 MHz, H: 75.252 kHz, V: 116.851 Hz
geometry 480 640 480 640 16
timings 19231 46 125 1 0 40 3
accel false
endmode

mode "vga"
# D: 51.999 MHz, H: 75.252 kHz, V: 116.851 Hz
geometry 480 640 480 640 16
timings 19231 46 125 1 0 40 3
accel false
endmode

you then run mplayer with the following command line (you can make a shell script and add the options to ~/.mplayer/config as it is quite long):

Quote
mplayer -vo fbdev -fbmode qvga -vf rotate=1,crop=240:320 -fs -framedrop -vm -cache 8192 -really-quiet filename.avi

He also included his mencoder line, although I have not yet tried it...
Quote
mencoder -quiet -of avi -ofps 25 -sws 10 -vf scale=320:-2::: -ovc lavc -lavcopts vcodec=msmpeg4:vme=4:autoaspect:mbd=1:vbitrate=250 -oac mp3lame -lameopts preset=cd inputfile.avi -o outputfile.avi

So, many thanks to piku over at atari-source.org for this!  Video was the last gremlin I had to work out.

EDIT: Now I just need to mash together a quick script to run mplayer and then redraw the screen as mplayer does not do it.  Anyone know an easy way to do this?
« Last Edit: March 24, 2008, 02:13:31 pm by canguy247 »
SL-C1000 - Debian 2.6.24.4-yonggun (from SD)
Pandora preordered
4GB Transcend 150X SD
16GB AData CF
USB Host cable
Bluetooth USB Dongle/Linksys WCF12 CF Wifi
TRENDnet TE-CF100 10/100 Wired ethernet CF / DM9601 usb ethernet
Palm III keyboard neoprene case

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Mplayer With Debian Eabi
« Reply #6 on: March 24, 2008, 10:21:03 pm »
Quote from: canguy247
Anyone know an easy way to do this?

Isn't Quasar available in the Debian feeds?  If so, that might be a good option.  A fast GUI that will use whatever options you like.  I don't currently run Debian.
« Last Edit: March 24, 2008, 10:21:55 pm by stupkid »

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Mplayer With Debian Eabi
« Reply #7 on: March 25, 2008, 04:16:26 am »
Yes, there is a Quasar package in the custom post (and feed).
Thanks canguy247 for the tip. It's interesting because now you say mplayer can play video smoothly without the "-vo pxa" option. Haven't tested it though.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

canguy247

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Mplayer With Debian Eabi
« Reply #8 on: March 25, 2008, 04:24:47 am »
Quote from: ZDevil
Yes, there is a Quasar package in the custom post (and feed).
Thanks canguy247 for the tip. It's interesting because now you say mplayer can play video smoothly without the "-vo pxa" option. Haven't tested it though.

Actually, it is using pxa (I think...could be wrong).  By using FB overlay it uses pxa.  Even if it is not used, it does not do much anyway (ie. does not provide scaling which is the big thing)

Someone correct me if I am on crack.
« Last Edit: March 25, 2008, 04:31:40 am by canguy247 »
SL-C1000 - Debian 2.6.24.4-yonggun (from SD)
Pandora preordered
4GB Transcend 150X SD
16GB AData CF
USB Host cable
Bluetooth USB Dongle/Linksys WCF12 CF Wifi
TRENDnet TE-CF100 10/100 Wired ethernet CF / DM9601 usb ethernet
Palm III keyboard neoprene case

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Mplayer With Debian Eabi
« Reply #9 on: March 25, 2008, 04:39:05 am »
So how is the actual performance of video playback now? Is it good enough?  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

canguy247

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Mplayer With Debian Eabi
« Reply #10 on: March 25, 2008, 05:23:13 am »
I have not had a chance to really play with it but 320x240 is perfect.  I will try 640x480 at some point but the article in the link says it is a no-go.

Canguy
SL-C1000 - Debian 2.6.24.4-yonggun (from SD)
Pandora preordered
4GB Transcend 150X SD
16GB AData CF
USB Host cable
Bluetooth USB Dongle/Linksys WCF12 CF Wifi
TRENDnet TE-CF100 10/100 Wired ethernet CF / DM9601 usb ethernet
Palm III keyboard neoprene case

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Mplayer With Debian Eabi
« Reply #11 on: March 25, 2008, 02:35:42 pm »
Quote from: canguy247
I have not had a chance to really play with it but 320x240 is perfect.  I will try 640x480 at some point but the article in the link says it is a no-go.

Canguy

You should also try 512x384.

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

born2wonder

  • Newbie
  • *
  • Posts: 25
    • View Profile
Mplayer With Debian Eabi
« Reply #12 on: April 13, 2008, 04:06:04 pm »
Quote from: canguy247
Now I just need to mash together a quick script to run mplayer and then redraw the screen as mplayer does not do it.  Anyone know an easy way to do this?

AFAIK ,to redraw the screen u can just just issue xrandr -o normal

good luck
C1000 yonggun kernel and andromeda
Ambicom/dell/canon wifi cards

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Mplayer With Debian Eabi
« Reply #13 on: April 14, 2008, 12:46:41 am »
Quote from: canguy247
I have not had a chance to really play with it but 320x240 is perfect.  I will try 640x480 at some point but the article in the link says it is a no-go.

Canguy

Well, in pdaXrom beta3 it was a go-go. Overclocked, but worked. For some movies overclocking wasn't needed. I thought Debian is *optimized* and will work great, but I was mistaken. The difference in quality between 320x240 and 640x480 is huge. At least to me. Watching 640x480 is the only way to go there, as 320x240 is just ugly.
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

HRH_H_Crab

  • Newbie
  • *
  • Posts: 38
    • View Profile
Mplayer With Debian Eabi
« Reply #14 on: July 29, 2008, 10:52:27 am »
Quote from: canguy247
I am happy to say I have found a solution.  I got the info from this link,

This isnt working for me.
I get an error saying that mplayer "cannot connect to socket" and "file not found".
Any Ideas?