-
用Automator來把序列圖檔變成影片
https://cache.iphone4.tw/phpupload/s...7343902168.jpg
前面吉米教過幾個用automator的自動化程序
https://cache.iphone4.tw/phpupload/s...9e5e0e83c2.jpg
固定的時間去抓螢幕截圖變成序列圖檔,請參考「用Automator來製作螢幕截圖縮時攝影影片」教學
接著就要來教大家,同樣利用Automator來把這一堆序列圖檔,變成影片吧
https://cache.iphone4.tw/phpupload/s...e37859207f.jpg
開始之前,先說明這段教學的影片整合是透過QuickTime Player 7來達成的,若你只有QuickTime Player 10的話,沒辦法做到喔
https://cache.iphone4.tw/phpupload/s...f1b5430668.jpg
一樣開啟Automator,只是這次我們選擇的是「工作流程」
https://cache.iphone4.tw/phpupload/s...3a375813c7.jpg
然後在「檔案與檔案夾」下面選擇「Get Specified Finder Items」(取得指定的 Finder 項目)
https://cache.iphone4.tw/phpupload/s...a757b82cfd.jpg
接著把存放序列圖檔的目錄位置給加進去
https://cache.iphone4.tw/phpupload/s...8ba0e16bd5.jpg
下一個步驟,我們要做的是「Run AppleScript」(執行AppleScript)
https://cache.iphone4.tw/phpupload/s...3c1f845cad.jpg
接著貼上下面的語法到上面這個方框內取代原本內容
代碼:
on run {input, parameters}
repeat with theFolder in input
tell application "Finder" to set theSequence to first item of folder theFolder as alias
tell application "QuickTime Player 7"
activate
open image sequence theSequence frames per second 30
set nameSequence to (theSequence as string) & ".mov"
tell document 1
with timeout of 500 seconds
save self contained in nameSequence
end timeout
end tell
end tell
end repeat
end run
https://cache.iphone4.tw/phpupload/s...3bb4dee43d.jpg
他這段語法是用 QuickTime Player 7 去做的指令
這樣就完成了
可以存檔接著執行了
https://cache.iphone4.tw/phpupload/s...4cc0a555e0.jpg
最後就會把這些序列圖片變成影片了
資料來源:
http://apple.stackexchange.com/quest...-mountain-lion
後記:
若你沒有QuickTime Player 7的話,我也還在找相關作法,解決之後再跟大家分享
-
沒有 Quicktime 7 ,可以使用 Compressor ,在 Compressor 選單列上 File > Add Image Sequence ...... ,選那個序列圖像的檔案夾,就可以匯入到 Compressor ,然後再選擇需要輸出的規格,像是 ProRes 422 ,就可以匯入到 FCP X 內去編輯了.......
-
剪輯軟體、特效軟體(AE 或是 Motion)以及動畫軟體都可以匯入 Image Sequence 序列圖檔,然後轉換成影片........
-
-
我這裡有個下指令的方法
首先呢要有裝brew
直接在終端機下
代碼:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew就安裝完成了~
然後再用brew安裝ffmpeg
最後呢就能開始把序列圖轉換成影片了
先cd到你放序列圖的資料夾
cd 後面接資料夾路徑
然後以吉米的序列圖命名為例
代碼:
ffmpeg -i timelapse-%6d.png -r 30 output.mp4
%6d 代表的是後面的 timelapse-xxxxxx.png,後面的六個X,如果設定編號是四位數那就是 %4d 以此類推
然後他會以每秒30張存成一個output.mp4
這樣就完成拉~~~