善用motion與mencoder
mencoder真是太方便了
使用了motion[ref.1]的方式紀錄生活的點滴
自動將motion detection 存成avi檔
我寫了script將所有的detection結果合併起來
成了生活紀錄短片
再搭配 fast-motion[ref.2]
可以變得veryfast and speed up 看起來也節省時間
就變得很好玩了
合併avi檔
mencoder -ovc copy `find \$mov1_dir -mmin -1440 -name "*.avi"|sort` -o \$tar_dir/daily/cam1_`date +%d%H`.avi
快轉效果 fast-motion
mencoder -ovc copy -oac copy -fps 25 -ofps 144 source.avi -o test.avi
如果想做slow-motion[ref.3]就把 -fps, -ofps 調小 [ref.4]
一般motion detection的結果
http://140.110.61.17/\~thomas/fight1.avi
一天大約有數時勝至數百個片斷
我將某天的影片合併(注意右下角的時間是跳動的表示是將不同avi合併的結果)
再用fast-motion
的結果
http://140.110.61.17/\~thomas/fight2.avi
真的挺有趣
ref.1 motion
ref.2 fast motion
ref.3 slow motion
ref.4 [MEncoder-users] playback too fast
convert from Thomas blog post id 15 old convert log: ./234100/tag%3E2006%2009%20stream%20linux)
@2006 @09 @stream @linux
Comments