OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Mplayer With Debian Eabi, What encoding options do you use?
canguy247
post Feb 2 2008, 04:13 AM
Post #1





Group: Members
Posts: 70
Joined: 6-January 07
Member No.: 13,740



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
Go to the top of the page
 
+Quote Post
canguy247
post Feb 4 2008, 08:57 PM
Post #2





Group: Members
Posts: 70
Joined: 6-January 07
Member No.: 13,740



Does nobody play video with Debian???
Go to the top of the page
 
+Quote Post
kkazakov13
post Feb 4 2008, 09:35 PM
Post #3





Group: Members
Posts: 409
Joined: 3-December 06
Member No.: 13,063



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 sad.gif
Go to the top of the page
 
+Quote Post
canguy247
post Feb 10 2008, 08:52 AM
Post #4





Group: Members
Posts: 70
Joined: 6-January 07
Member No.: 13,740



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.
Go to the top of the page
 
+Quote Post
jpmatrix
post Feb 15 2008, 04:59 AM
Post #5





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



QUOTE(canguy247 @ Feb 5 2008, 05:57 AM) *
Does nobody play video with Debian???


my mplayer doesn't work either... now i use my PSP to play video tongue.gif
Go to the top of the page
 
+Quote Post
canguy247
post Mar 24 2008, 10:11 AM
Post #6





Group: Members
Posts: 70
Joined: 6-January 07
Member No.: 13,740



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?
Go to the top of the page
 
+Quote Post
stupkid
post Mar 24 2008, 06:21 PM
Post #7





Group: Members
Posts: 578
Joined: 2-January 04
From: Texas USA
Member No.: 1,324



QUOTE(canguy247 @ Mar 24 2008, 01:11 PM) *
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.
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 25 2008, 12:16 AM
Post #8





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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.
Go to the top of the page
 
+Quote Post
canguy247
post Mar 25 2008, 12:24 AM
Post #9





Group: Members
Posts: 70
Joined: 6-January 07
Member No.: 13,740



QUOTE(ZDevil @ Mar 25 2008, 04:16 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.


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.
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 25 2008, 12:39 AM
Post #10





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



So how is the actual performance of video playback now? Is it good enough? smile.gif
Go to the top of the page
 
+Quote Post
canguy247
post Mar 25 2008, 01:23 AM
Post #11





Group: Members
Posts: 70
Joined: 6-January 07
Member No.: 13,740



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
Go to the top of the page
 
+Quote Post
stupkid
post Mar 25 2008, 10:35 AM
Post #12





Group: Members
Posts: 578
Joined: 2-January 04
From: Texas USA
Member No.: 1,324



QUOTE(canguy247 @ Mar 25 2008, 04:23 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


You should also try 512x384.
Go to the top of the page
 
+Quote Post
born2wonder
post Apr 13 2008, 12:06 PM
Post #13





Group: Members
Posts: 26
Joined: 24-June 07
Member No.: 17,442



QUOTE(canguy247 @ Mar 24 2008, 11:11 AM) *
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
Go to the top of the page
 
+Quote Post
kkazakov13
post Apr 13 2008, 08:46 PM
Post #14





Group: Members
Posts: 409
Joined: 3-December 06
Member No.: 13,063



QUOTE(canguy247 @ Mar 25 2008, 11:23 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


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.
Go to the top of the page
 
+Quote Post
HRH_H_Crab
post Jul 29 2008, 06:52 AM
Post #15





Group: Members
Posts: 36
Joined: 29-August 06
Member No.: 11,035



QUOTE(canguy247 @ Mar 24 2008, 07:11 PM) *
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?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th July 2014 - 02:40 AM