User:Hum
From Openmoko
(New page: == 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 < P...) |
m (→mplayer.conf: -afm removed, since default config seems to be Ok) |
||
(19 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | == My subpages == | ||
+ | |||
+ | * [[User:Hum/Surviving a GPRS connection]] | ||
+ | * [[User:Hum/Links]] | ||
+ | * [[User:Hum/Hints_you_would_not_miss]] | ||
+ | * [[User:Hum/charge_battery.sh]] | ||
+ | |||
+ | == 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 [[Smedia Glamo 3362|GPU glamo]] in the Freerunner seems to support hardware decoding of [http://en.wikipedia.org/wiki/H.263 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: [http://proyectos.pixelamigo.com/open/movies/BigBuckBunny/unofficial_PSP/big_buck_bunny_480p_AVC_FW33.mp4 Big Buck Bunny] | ||
+ | |||
+ | ==== MPEG4 640x240 ==== | ||
+ | for "fullscreen" try mplayer -aspect 3:4 | ||
+ | |||
+ | [http://www.stud.fh-dortmund.de/~jkorte/bbb-mpeg4-250k-640x240-vmax30000k-buf1835-2pass-30seconds-works.avi 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 ==== | ||
+ | |||
+ | * [http://www.students.uni-marburg.de/~Musicc/media/sampler/omc04/2008-omc04-101_pornophonique-sad_robot.flac 2008-omc04-101_pornophonique-sad_robot.flac] [http://www.students.uni-marburg.de/~Musicc/media/sampler/omc04/2008-omc04-101_pornophonique-sad_robot.ogg ogg] | ||
+ | * [http://www.students.uni-marburg.de/~Musicc/media/lt-openmusic/01_open_source__magic_mushrooms.ogg 01_open_source__magic_mushrooms.ogg] | ||
+ | * [http://chaosradio.ccc.de/archive/chaosradio_express_042.mp3 Chaosradio Express 42 (german)] (about OpenMoko) | ||
+ | |||
+ | ==== Video ==== | ||
+ | * [http://proyectos.pixelamigo.com/open/movies/BigBuckBunny/unofficial_PSP/big_buck_bunny_480p_AVC_FW33.mp4 Big Buck Bunny 480p AVC FW33.mp4] | ||
+ | *[http://www.stud.fh-dortmund.de/~jkorte/bbb-mpeg4-250k-640x240-vmax30000k-buf1835-2pass-30seconds-works.avi 30 seconds sample Big Buck Bunny MPEG4 640x240] | ||
+ | |||
== Installation Blog == | == Installation Blog == | ||
* 11:29 < H_u_m> is there any image for FR I can dd to a SD Card? | * 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 < DocScrutinizer51> H_u_m: yes. the console image that does the [[GSM/Flashing|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. | *11:33 < PaulFertser> H_u_m: alternatively, you just create a single ext2 partition on the card and untar the SHR image. | ||
Line 32: | Line 148: | ||
umount /mnt<br /> | umount /mnt<br /> | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | ==== Activating Swap ==== | ||
+ | http://shr-project.org/trac/wiki/swap | ||
+ | |||
+ | ==== Packages ==== | ||
+ | less, vim |
Latest revision as of 11:16, 14 July 2010
Contents |
[edit] My subpages
- User:Hum/Surviving a GPRS connection
- User:Hum/Links
- User:Hum/Hints_you_would_not_miss
- User:Hum/charge_battery.sh
[edit] 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.
[edit] video playing/encoding
I prefer mplayer and mencoder.
[edit] 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
[edit] 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
[edit] 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
[edit] 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
[edit] 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
[edit] Examples
[edit] Audio
- 2008-omc04-101_pornophonique-sad_robot.flac ogg
- 01_open_source__magic_mushrooms.ogg
- Chaosradio Express 42 (german) (about OpenMoko)
[edit] Video
[edit] 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.
[edit] 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
[edit] Activating Swap
http://shr-project.org/trac/wiki/swap
[edit] Packages
less, vim