대용량 .avis를 .movs로 내보내거나 압축해야합니다.AppleScript to QuickTime에서 내보내기 : .mp4 대신 .mov로 내보낼 수 없습니다.
아래 작업 스크립트 (http://ldopa.net/2008/05/23/batch-export-for-quicktime-pro/에서 가져옴)가이를 발견했습니다.
데스크톱에서 "입력"이라는 폴더의 비디오를 성공적으로 가져 와서 바탕 화면의 "내보내기"라는 폴더로 내 보냅니다.
문제가 있지만 Quicktime에서 사용한 "최근 설정으로"내보내는 것이 아닙니다. 또한 .mov 대신 .mp4로 내 보냅니다.
참고 :
export front document to output_file as MPEG-4
을하지만 그것을 변경 : 원래 스크립트는 말 했는가
export front document to output_file as QuickTime movie
그리고 여전히 MPEG-4로 수출합니다.
전체 스크립트를
with timeout of 86400 seconds
display dialog "Before beginning batch processing, make sure QuickTime Player is set to the desired export settings, and all videos to be processed are in a folder named ‘Input’ on the desktop." with icon note
tell application "Finder"
set the startup_disk to the name of the startup disk
end tell
set user to do shell script "whoami"
set input_folder_name to "Input"
set input_folder to startup_disk & ":Users:" & user & ":Desktop:" & input_folder_name & ":"
set user_desktop to startup_disk & ":Users:" & user & ":Desktop:"
set output_folder to startup_disk & ":Users:" & user & ":Desktop:Output:"
set file_extension to "_export.mp4"
try
tell application "Finder"
make new folder at user_desktop with properties {name:"Output"}
end tell
end try
try
set the_folder_list to list folder input_folder without invisibles
repeat with x from 1 to count of the_folder_list
set the_file to input_folder & item x of the_folder_list
set output_file to output_folder & item x of the_folder_list & file_extension
tell application "QuickTime Player"
activate
open the_file
export front document to output_file as QuickTime movie using most recent settings with replacing
close front document
end tell
end repeat
on error
display dialog "This script requires a folder named ‘" & input_folder_name & "‘ located on the desktop." with icon stop
end try
beep
end timeout
MPEG4 컨테이너 *는 * QuickTime 동영상입니다. 이것은 표준화되고 현대적인 QuickTime 무비입니다. 파일 확장명이 ".mp4"인 파일은 ".mov"로 변경하면됩니다. 그러나 그렇게 할 이유가 없습니다. ".mp4"는 "QuickTime movie +"라고 말합니다. "저는 퀵타임 무비가 아니라 표준화되고 현대적인 QuickTime 무비입니다."라고 말합니다. 가장 중요한 것은 무비 컨테이너가 아니라 변환하는 것입니다 컨테이너 내 비디오 트랙의 즉, 구식 AVI 코덱 비디오 트랙을 현대 H.264 코덱 비디오 트랙으로 트랜스 코딩합니다. –