User:Hum

From Openmoko

Jump to: navigation, search

Contents

My subpages

GPRS data connection

I connect the Freerunner with my notebook via USB. On my notebook I run

ifconfig eth3 192.168.0.2
ifconfig eth3 mtu 960
cp /etc/resolv.conf.aldi /etc/resolv.conf
route add default gw 192.168.0.202

With mtu=1500 I get a unstable GPRS connection.

video playing/encoding

I prefer mplayer and mencoder.

mplayer.conf

My ~/.mplayer/config :

lavdopts=fast=1:skipframe=nonref
vo=xover:glamo,x11
display=:0
fs=1
quiet=1
osdlevel=0
noautosub=1
stop-xscreensaver=1
framedrop=1
noslices=1
ao=alsa
#aspect=3:4    # uncomment to use whole screen

video encoding

For some more up to date information see
Video_Player#Some_hints_on_encoding_for_Neo_Freerunner

I encoded Video_Player#Example_-_Big_Buck_Bunny only with mencoder several times and changed codecs and resolutions. The GPU glamo in the Freerunner seems to support hardware decoding of H.263, imho an early MPEG4 codec.

mencoder -voc lavc -lavopts vcodec=flv

seemed to be a good choice since flv in mencoder is a "Sorenson H.263 (Flash-Videos)". I tried to play full resolution (640x480) video, but even with best optimizations video is sometimes slow. Once in a while video crashed while sound was still playing. Once every mpeg4 video didn't play, after rebooting everything is fine.

Mpeg4 and a resolution of 640x240 is a good choice. Audio is encoded as 64kbit mp3, constant bitrate. Mpeg4 with 640x480 seems to be broken while playing.

Download: Big Buck Bunny

MPEG4 640x240

for "fullscreen" try mplayer -aspect 3:4

30 seconds sample Big Buck Bunny MPEG4 640x240

Pass 1:

mencoder big_buck_bunny_480p_AVC_FW33.mp4 \
-ovc lavc -lavcopts \
vcodec=mpeg4:mv0:mbd=2:vbitrate=250:vrc_maxrate=30000:vrc_buf_size=1835:autoaspect:vpass=1:turbo \
-vf crop=720:480:0:0,scale=640:240,eq2=1.2:0.5:-0.25,rotate=1 \
-oac mp3lame -lameopts br=64:cbr \
-o bbb.avi

Pass 2:

mencoder big_buck_bunny_480p_AVC_FW33.mp4 \
-ovc lavc -lavcopts \
vcodec=mpeg4:mv0:mbd=2:vbitrate=250:vrc_maxrate=30000:vrc_buf_size=1835:autoaspect:vpass=2 \
-vf crop=720:480:0:0,scale=640:240,eq2=1.2:0.5:-0.25,rotate=1 \
-oac mp3lame -lameopts br=64:cbr \
-o bbb.avi

FLV 640x480

some resolutions don't work, video playing is slow with 640x480.

for "fullscreen" try mplayer -aspect 3:4

Pass 1:

mencoder big_buck_bunny_480p_AVC_FW33.mp4 \
-ovc lavc -lavcopts \
codec=flv:mv0:v4mv:mbd=2:vbitrate=230:vrc_maxrate=200000:vrc_buf_size=1835:autoaspect:vpass=1:turbo \
-vf crop=720:480:0:0,scale=640:480,eq2=1.2:0.5:-0.25,rotate=1 \
-oac mp3lame -lameopts br=64:cbr \
-o bbb.avi

Pass 2:

mencoder big_buck_bunny_480p_AVC_FW33.mp4 \
-ovc lavc -lavcopts \
codec=flv:mv0:m4mv:mbd=2:vbitrate=230:vrc_maxrate=40000:vrc_buf_size=1835:autoaspect:vpass=2 \
-vf crop=720:480:0:0,scale=640:480,eq2=1.2:0.5:-0.25,rotate=1 \
-oac mp3lame -lameopts br=64:cbr \
-o bbb.avi

MPEG4 640x480

Seems to be broken

Pass 1:

mencoder big_buck_bunny_480p_AVC_FW33.mp4 \
-ovc lavc -lavcopts \
vcodec=mpeg4:mv0:mbd=2:vbitrate=300:vrc_maxrate=30000:vrc_buf_size=1835:autoaspect:vpass=1:turbo \
-vf crop=720:480:0:0,scale=640:480,eq2=1.2:0.5:-0.25,rotate=1 \
-oac mp3lame -lameopts br=64:cbr \
-o bbb.avi

Examples

Audio

Video

Installation Blog

  • 11:29 < H_u_m> is there any image for FR I can dd to a SD Card?
  • 11:33 < DocScrutinizer51> H_u_m: yes. the console image that does the gsm fw flashing
  • 11:33 < PaulFertser> H_u_m: alternatively, you just create a single ext2 partition on the card and untar the SHR image.

What I did

cd /tmp
wget http://build.shr-project.org/shr-testing/images/om-gta02/full-om-gta02.tar.gz
#start downloading

fdisk -l #to find the device name, refered as /dev/sdX
mount #make sure, it is unmounted (automount?)

fdisk /dev/sdX
help # show help
p # show me the partition table of this device! Is this my HDD or my backup USB stick?
d # delete
q # quit if /dev/sdX is wrong
n # new partition
p # everything ok?
w # write to disk

fdisk -l
/dev/sdX1 1 1020 7968239+ 83 Linux

mke2fs -j /dev/sdX1

mount /dev/sdX1 /mnt/
cd /mnt
tar -xvpzf /tmp/full-om-gta02.tar.gz
cd
umount /mnt


Activating Swap

http://shr-project.org/trac/wiki/swap

Packages

less, vim

Personal tools