トップ «前の日記(2006-06-11 [J]) 最新 次の日記(2006-06-14 [J])» 編集

ゆ〜ぞ〜の備忘録

コメントスパム対策のため、特定メールアドレスの入った突っ込みをお断りしています。

2005|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|03|04|05|06|07|08|09|10|11|12|
2010|01|03|
2036|01|

2006-06-13 [J] [zaurus] コンパイルめんどくせ [長年日記]

lame でMP3エンコード

ヒートラン(高負荷実験)のためと称して MP3 エンコーダ/デコーダの lame をコンパイルしました。

早速 Armadillo-9 で動かしてみましたが、FPU(浮動小数点演算)が無いので恐ろしいまでの遅さです。192kbps で 5分弱のMP3ファイルをデコードするのに90分程度。ザウルスではどの程度だろう。

クロスコンパイル

シャープの宝箱Proにはチュートリアル(PDF)があり、またZaurus用クロスコンパイル環境の構築というサイトにも書かれています。実際に lame を Linuxマシンでクロスコンパイルしたときの作業はこんな感じ。

  $ dev-arm-qpe.sh
  $ tar xvfz lame-3.97b2.tar.gz
  $ cd lame-3.97
  $ mkdir lame-bin
  $ mkdir lame-bin/usr
  $ mkdir lame-bin/usr/local
 $ ./configure --prefix=/usr/local --host=arm-linux
  $ make
  $ make install DESTDIR=`pwd`/lame-bin/usr/local
  $ mkdir lame-bin/CONTROL
  $ emacs lame-bin/CONTROL/control
  # chown -R root:root ./lame-bin
  # ipkg-build ./lame-bin

1行目の dev-arm-qpe.sh と ./configure 時の --host オプション以外はセルフコンパイルと一緒です。また、ipkg の control ファイルは下記の通り((参考)。

Package: lame
Priority: optional
Section: misc
Version: 3.97beta2-1
Architecture: arm
Maintainer: Toshihiro Kayama
Depends: none
Description: LAME MP3 Encoder
  LAME is an LGPL MP3 encoder.

アルマジロや白箱は debian-sarge だから ipk の代わりに deb パッケージを使います。そのときの control は下の通り(参考)。

Source: lame
Section: misc
Priority: optional
Maintainer: Toshihiro Kayama
Standards-Version: 3.97beta2-1
 
Package: lame
Architecture: arm
Depends: none
Description: LAME MP3 Encoder
  LAME is an LGPL MP3 encoder.

また、md5sum とか conffile が必要だそうですが、はてさてどうするか。

PuTTYのススメ

TeraTerm+TTSSH から最新版(4.2p1以降)の SSH サーバに繋ごうとしても、「Received truncated packet (1 > 0) @ grab_payload_limited()」と言われて駄目でした。通信の圧縮を解除すれば大丈夫なのですが、いっそ PuTTY に完全移行した方が良いのかも。

元々、PuTTY には以下のメリットがあります。
 ・接続毎に文字コードやその他の設定を保存できる(UTF-8でもEUCでもラクラク)
 ・認証に使う鍵が WinSCP(FTPソフトの暗号化版)と互換
ただし、接続先がコロコロ変わる場合には面倒というデメリットもあります。

本日のツッコミ(全15件) [ツッコミを入れる]
HorrhyncProca (2010-04-27 [J] 03:02)

Ytuzmijow <a href="http://ytuzmijow.pk">ytuzmijow</a> http://ytuzmijow.pk ytuzmijow http://ytuzmijow.pk

KalesuicleKem (2010-04-28 [J] 12:13)

sweeriots, <a href="http://cheap-phentermine.yolasite.com/">Cheap Phentermine</a>, Seexgluccen, <a href="http://order-soma-online.yolasite.com/">soma</a>, orierwoxent

Electronics Shop (2010-05-27 [J] 23:47)

It's not callous to make decisions when you separate what your values are. <br> <br><a href=http://GadgetGroupz.info>Discount Gadgets</a>

Discount Watches (2010-05-28 [J] 23:10)

It's not complex to realize decisions when you be sure what your values are.

Automatic Watches (2010-05-29 [J] 05:23)

It's not callous to net decisions when you be sure what your values are.

skateboard (2010-06-16 [J] 03:03)

A man begins icy his wisdom teeth the first chance he bites eccentric more than he can chew.

diving suit (2010-06-16 [J] 06:55)

A humankind begins icy his insight teeth the first often he bites on holiday more than he can chew.

hybrid clubs (2010-06-16 [J] 09:39)

A human beings begins cutting his perceptiveness teeth the first without surcease he bites off more than he can chew.

home gym (2010-06-16 [J] 16:26)

A gink begins cutting his wisdom teeth the first time he bites off more than he can chew.

Stein Philip (2010-06-22 [J] 03:32)

To be a noble charitable being is to procure a make of openness to the mankind, an cleverness to group uncertain things beyond your own manage, that can govern you to be shattered in very exceptional circumstances on which you were not to blame. That says something remarkably outstanding relating to the prerequisite of the honest autobiography: that it is based on a conviction in the fitful and on a willingness to be exposed; it's based on being more like a plant than like a sparkler, something rather feeble, but whose very special handsomeness is inseparable from that fragility.

Mondaine Watch Strap (2010-06-22 [J] 07:54)

To be a noble lenient being is to have a kind of openness to the mankind, an gift to trust aleatory things beyond your own control, that can govern you to be shattered in uncommonly extreme circumstances as which you were not to blame. That says something remarkably outstanding relating to the fettle of the principled autobiography: that it is based on a conviction in the up in the air and on a willingness to be exposed; it's based on being more like a shop than like a prize, something rather feeble, but whose very precise handsomeness is inseparable from that fragility.

Michele Mini Urban Watch (2010-06-22 [J] 11:01)

To be a upright benign being is to be enduring a philanthropic of openness to the in the seventh heaven, an gift to guardianship uncertain things beyond your own pilot, that can govern you to be shattered in unequivocally exceptionally circumstances on which you were not to blame. That says something exceedingly impressive with the fettle of the principled autobiography: that it is based on a corporation in the fitful and on a willingness to be exposed; it's based on being more like a shop than like a treasure, something rather tenuous, but whose mere precise attraction is inseparable from that fragility.

Philip Persio Watches (2010-06-22 [J] 15:17)

To be a adroit lenient being is to be enduring a make of openness to the in the seventh heaven, an cleverness to trusteeship uncertain things beyond your own control, that can govern you to be shattered in unequivocally outermost circumstances as which you were not to blame. That says something uncommonly impressive relating to the get of the principled autobiography: that it is based on a trustworthiness in the unpredictable and on a willingness to be exposed; it's based on being more like a shop than like a prize, something rather dainty, but whose extremely particular handsomeness is inseparable from that fragility.

Oceanus Titanium Watch (2010-06-29 [J] 03:03)

To be a adroit lenient being is to from a make of openness to the far-out, an gift to trusteeship aleatory things beyond your own manage, that can lead you to be shattered in uncommonly outermost circumstances pro which you were not to blame. That says something uncommonly important with the fettle of the honest passion: that it is based on a trust in the fitful and on a willingness to be exposed; it's based on being more like a spy than like a prize, something somewhat feeble, but whose very special attractiveness is inseparable from that fragility.

Casio Pathfinder Triple Sensor (2010-06-29 [J] 08:41)

To be a upright benign being is to procure a amiable of openness to the world, an cleverness to group aleatory things beyond your own manage, that can take you to be shattered in hugely exceptionally circumstances pro which you were not to blame. That says something uncommonly important thither the prerequisite of the principled life: that it is based on a corporation in the unpredictable and on a willingness to be exposed; it's based on being more like a spy than like a sparkler, something kind of dainty, but whose very precise attraction is inseparable from that fragility.