2012年9月26日 星期三

Install audacity and verify pcm

Install audacity under ubuntu
sudo add-apt-repository ppa:audacity-team/daily
sudo apt-get update
sudo apt-get install audacity
 Verify PCM raw data
 Import raw data
 Select myFile.raw file, then click Open button
 Choose these options:
    Signed 16-bit PCM
    Little-endian
    1 Channel (Mono) / 2 Channels (Stereo) based on the selected file
    Sample rate same as the selected file
 Click Import button

2012年9月18日 星期二

some notes

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
sudo apt-get --quiet update
sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring
sudo apt-get --quiet update

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
sudo apt-get install non-free-codecs


vlc -I dummy ./tender_Mayday.aac ":sout=#transcode{acodec=mp3,ab=128,channels=2,samplerate=44100}:duplicate{dst=std{access=file,mux=raw,dst=./song.mp3}}"


deb http://packages.medibuntu.org/ hardy free non-free
deb-src http://packages.medibuntu.org/ hardy free non-free

sudo apt-get update && sudo apt-get install medibuntu-keyring
sudo apt-get remove ffmpeg
sudo apt-get install ffmpeg
sudo apt-get install libavcodec1d

apt-cache search ...

gpg --keyserver pgpkeys.mit.edu --recv-key  010908312D230C5F
gpg -a --export 010908312D230C5F | sudo apt-key add -

2012年9月17日 星期一

開發 XML 對應的 server

基於 Android / iOS 和 server 溝通的需要,我們需要透過 XML 來
1. 定義通訊協定本體
2. 承載交換訊息

目前 Android 端會用 XMLParser Class,Server 端則選用 libxml2
取得 libxml2 compile including path 
xml2-config --cflags
取得 libxml2 library and link path 
xml2-config --libs

xmlparser: xmlparser.c
    echo $?
    echo $@
    echo $<
    echo $*

echo xmlparser.c
xmlparser.c
echo xmlparser
xmlparser
echo xmlparser.c
xmlparser.c
echo