Запустить команду после завершения кодирования в Adobe Media Encoder?

833
callum

Я использую Adobe Media Encoder CS6 (в Mac OS X Mountain Lion), чтобы выполнить большую работу по кодированию, которая займет около 6 часов.

Мне нужно выполнить команду терминала после того, как моя кодировка будет завершена. (Команда предназначена для загрузки закодированных файлов на удаленный сервер.)

Можно ли как-нибудь автоматически запустить эту команду после завершения очереди кодирования?

2

1 ответ на вопрос

4
kindzmarauli

There seem to be two parts to the question:

  1. Is it possible (to launch a terminal command after encoding is done)?
  2. How to do it?

  1. Yes it is, via a script that would simulate "watch folder" behaviour:

    • watch for files in a specified folder
    • once a file is there, wait for it to becomes available (if it isn't outright): not being used by another process
    • once it's available, run a specified command (upload, etc.)
    • delete or move the file when done - otherwise the script will attempt to repeat the process

AME would have to be set to encode files into that "watched" folder, and the script running in infinite loop would pick it up from there.

  1. Not sure if it can be done in BASH; certainly doable in perl.
Спасибо 50-3 за редактирование: часть 2 ответа пронумерована "1", а не "2" - есть ли способ изменить это? kindzmarauli 10 лет назад 0