在「終端機」中將作業送出到 Compressor

若你習慣在「終端機」的 Shell 中工作,你可以使用 Compressor 指令,從指令列執行 Compressor 應用程式。有許多指令行選項可用來提交作業。

以下是將作業送出以進行轉碼的 Compressor 指令摘要。角括號 < > 表示指令中的必要引數,而方括號 [ ] 則表示選用引數。Compressor 指令位於 <PATH>/Compressor.app/Contents/MacOS。

【重要事項】以下指令必須在一行中執行。

Compressor [-computergroup <name>] [-batchname <name>] [-priority <value>] -jobpath <file>[?frameRate=<frame rate> |?audio=<file>|?frameRate=<frame rate>\&audio=<file>] -settingpath <path> -locationpath <file> [-info <xml>] [-scc <file>] [-startoffset <hh:mm:ss:ff>] [-in <hh:mm:ss:ff> [-out <hh:mm:ss:ff> [-annotations <file>] [-chapters <file>]Compressor -checkstream <file>Compressor -findletterbox <file>Compressor -helpCompressor [-resetBackgroundProcessing [cancelJobs]] [-sharing <on|off>] [[-requiresPassword <password>] | [-noPassword]] [-instances <value>] [-networkInterface <bsd name>] [-portRange <starting port> <count>]

送出作業最少需要這三個引數:

Compressor ‑jobpath <path> ‑settingpath <path> ‑locationpath <path>

【重要事項】如果你正在使用影像序列作為來源檔案,則必須在 -jobpath 中使用路徑的 URL。

以下是送出 Compressor 作業的範例程式碼:

/Applications/Compressor.app/Contents/MacOS/Compressor -batchname "My First Batch" -jobpath ~/Movies/ MySource.mov -settingpath ~/Library/Application\ Support/Compressor/Settings/Apple\ Devices\ HD\ \ (Custom\).cmprstng -locationpath ~/Movies/MyOutput.m4v

此指令的功能:

  • 辨識 Compressor 的位置

  • 指派 “My First Batch” 批次名稱(使用英文雙引號是因為名稱中有空格。)

  • 尋找位於 ~/Movies 之作業的「MySource.mov」檔案

  • 使用 ~/資源庫/Application\ Support/Compressor/Presets 中的「Apple 裝置 HD(自訂)」預設組(「\」字元用於保留「Application Support」中的空格。)

  • 將輸出檔案「MyOutput.m4v」寫入「~/影片」檔案夾

Morty Proxy This is a proxified and sanitized view of the page, visit original site.
有幫助?
字元限制: 250
最大字元限制為 250。
感謝您的寶貴意見。
Morty Proxy This is a proxified and sanitized view of the page, visit original site.