2012-08-31

MAC - 設定 home & end 鍵

外接 keyboard 後發現其 home, end 鍵跟我想的不一樣
在 mac 下好像變成"頁首"與"頁尾", 實在太不習慣
google 了一下, 找到以下的方法

2012-08-30

MAC - 使用 ps2 鍵盤 + usb mouse

看起來 keyboard & mouse 分別使用哪一種連接方式有差的樣子,
以下紀錄 ps2 keyboard + usb mouse 的使用情境

2012-08-28

LINUX - 使用 ffmpeg 在影片加上 padding

要解決「LINUX - 使用 ffmpeg 合併(連接)影片」裡的直/横影片問題
參考 youtube 的做法, 把直的影 scale 成横式的影片, 再利用 padding 的方式補上黑色的底

2012-08-18

CODE - php 檢查字串的編碼

本來是要用來檢查 mediainfo parsing 後的字串, 以便轉成 xml 時不會有誤
雖然後來沒這麼做, 但還是把這段檢查紀錄一下

2012-08-17

LINUX - 利用 ffmpeg 與 MP4Box 將影片的聲音抽離

如題, 有時從 youtube 抓下來的 mv 影片我們只需要 audio 的部份,
要達成這個目的可以使用 ffmpegMP4Box 來做到

2012-08-16

LINUX - MediaInfo 使用筆記

mediainfo --help 的內容如下
--Inform=...  Specify a template (BETA)
Usage: "MediaInfo --Inform=[xxx;]Text FileName"

xxx can be: General, Video, Audio, Text, Chapter, Image, Menu
Text can be the template text, or a filename
     Filename must be in the form file://filename

See --Info-Parameters for available parameters in the text
(Parameters must be surrounded by "%" sign)

Example: "MediaInfo --Inform=Video;%AspectRatio% FileName"

Example: "MediaInfo --Inform=Video;file://Video.txt FileName"
and Video.txt contains 
"%DisplayAspectRatio%"        for Video Aspect Ratio.

Example: "MediaInfo --Inform=file://Text.txt FileName"
and Text.txt contains
"Video;%DisplayAspectRatio%"  for Video Aspect Ratio.
"Audio;%Format%"              for Audio Format.