Friday, June 30, 2006

以程式A名稱搜尋 process, 若存在則執行程式B

pgrep 程式A > /dev/null || 程式B

==
An OR list has the form

command1 ││ command2

command2 is executed if and only if command1 returns a non-zero exit
status. The return status of AND and OR lists is the exit status of the
last command executed in the list.

Sunday, June 25, 2006

[sp-sc] sopcast command line

sop://211.152.34.35:3912/6002

/usr/bin/sp-sc -u 帳號 密碼 sop://211.152.34.35:3912/6002 3900 8900
xine http://localhost:8900

其中
3900 local port
8900 player port

Saturday, June 24, 2006

encode image sequences

tools:
cjpeg 壓縮檔案成為 jpeg 檔
mpeg2enc
jpeg2yuv
以上兩個 tools 是 Mjpeg project 中的子程式
http://mjpeg.sourceforge.net/
KmPg2 一個 mpeg2 轉檔的 gui


指令:
jpeg2yuv -f 25 -j frame-%05d.jpg -I p > temp.yuv
transcode -i temp.yuv -o final.avi -x yuv4mpeg -y xvid4

**注意:jpg 檔大小必須為 352x240 或 符合 yuv 格式規定