Notices


Reply
Thread Tools
Posts: 59 | Thanked: 5 times | Joined on Nov 2005
#51
Originally Posted by Serge
MPlayer binary is compiled for Internet Tablet OS 2006. It does not work on Internet Tablet OS 2005. Most likely that's the problem you encountered (and you are not the first, check older messages in this forum thread).
Found the problem: I can't execute it from my MMC card, I have to copy it into the main filing system (i.e. /usr/bin/ rather than /media/mmc1/).

Odd Maemo restriction...

Works like a dream though - I'm now considering various transcoding strategies. Know of a way of getting mencoder or transcode to add horizontal or vertical bars to movies so that I can encode them to 400x240 or 320x240 whilst maintaining the original picture aspect ratio?
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#52
Originally Posted by Nickster
Odd Maemo restriction...
This is not so odd if you consider that FAT filesystem used on MMC cannot preserve permissions (including executable bit). With FAT either everything is executable (with proper mount flags) or nothing. Nothing is better/safer choice.
 
Posts: 264 | Thanked: 28 times | Joined on May 2006
#53
the mmc1 entry in /etc/fstab has the noexec option.
 
Posts: 59 | Thanked: 5 times | Joined on Nov 2005
#54
Originally Posted by BanditRider
the mmc1 entry in /etc/fstab has the noexec option.
Any idea why someone chose that?
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#55
Originally Posted by Nickster
Any idea why someone chose that?
For the reasons fanoush outlined.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 59 | Thanked: 5 times | Joined on Nov 2005
#56
Originally Posted by aflegg
For the reasons fanoush outlined.
D'oh... forum software skipped over his post...

Meanwhile, here's a Perl script that I've knocked up that will recode anything you can throw at Mencoder to produce a 300kbps video 96kbps audio 15fps video file, at 320x240 or 400x240 depending on aspect ratio, with vertical or horizontal bars added if need be.

You'll need Perl, Mplayer and Mencoder installed.

Haven't used it much yet, but the output's OK.

Usage: lokify input_file (output_file)

Default output file name is input_file + ".avi"

http://www.egyptus.co.uk/lokify_pl.txt
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#57
Why would anyone want black border encoded in the video? Fullscreen playback should add it at no cost BTW for the parameters you mentioned (15fps) default video player should be good enough, is there problem with such videos?
 
Posts: 59 | Thanked: 5 times | Joined on Nov 2005
#58
Regarding the bars, the problem is with videos which aren't precisely 4:3 or 15:9. If you're after generating a 320x240 or 400x240 video, then you're going to have to add bars or distort the picture. I prefer to add bars.

Regarding framerate, I've found that the lag between sound and video is smaller when using 15fps rather than 25fps.

EDIT: Aha, just re-read this thread and discovered the "-vo sdl -ao sdl" option - the 25fps movie I generated is smooth and in synch now! Actually, even the full-sized movies are smoother too... will have to re-think this...

Last edited by Nickster; 2006-07-25 at 15:22.
 
konfoo's Avatar
Posts: 116 | Thanked: 12 times | Joined on Dec 2005 @ OC, CA
#59
Inserting bars will waste bits for en/decoding. You should use the aspect tag in the MP4 header via mplayer's -lavcopts aspect=16/9 (or 4/3, or autoaspect). If you can't get correct 4/3 or 16/9 then use -vf scale to adjust the vertical size of the content so it doesn't appear out of ratio (if your source is 2.35:1, 1.88:1, etc.). At 320x and 400x, a little chopping is not going to cost you any quality.
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#60
Originally Posted by Nickster
Regarding the bars, the problem is with videos which aren't precisely 4:3 or 15:9. If you're after generating a 320x240 or 400x240 video, then you're going to have to add bars or distort the picture. I prefer to add bars.
Well, you don't need to add bars, the player should respect aspect ratio. With -vo x11 the player tries to scale video twice (using hardware pixel doubling), if it still fits screen, pixel doubling is used. So it either displays unscaled video or doubled. 320x240 and 400x240 were just examples of video resolutions that are good for pixel doubling (and 352x288 is bad). And for 16:9 video, the best resolution would be 400x224.

Regarding framerate, I've found that the lag between sound and video is smaller when using 15fps rather than 25fps.
Maybe that's because of esd output module that is used by default. And with -ao gst some lag also exists, it should be compensated in some way later.

EDIT: Aha, just re-read this thread and discovered the "-vo sdl -ao sdl" option - the 25fps movie I generated is smooth and in synch now! Actually, even the full-sized movies are smoother too... will have to re-think this...
I also used -ao sdl first, but found some problems with it on a few video clips (it was quite buggy). So now -ao esd is used by default.

By the way, I enabled wiki at garage and added some information about current command line options usage:
https://garage.maemo.org/plugins/wik...l&id=54&type=g
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:52.