2009-04-18 2 views
2

대용량 .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 
+0

MPEG4 컨테이너 *는 * QuickTime 동영상입니다. 이것은 표준화되고 현대적인 QuickTime 무비입니다. 파일 확장명이 ".mp4"인 파일은 ".mov"로 변경하면됩니다. 그러나 그렇게 할 이유가 없습니다. ".mp4"는 "QuickTime movie +"라고 말합니다. "저는 퀵타임 무비가 아니라 표준화되고 현대적인 QuickTime 무비입니다."라고 말합니다. 가장 중요한 것은 무비 컨테이너가 아니라 변환하는 것입니다 컨테이너 내 비디오 트랙의 즉, 구식 AVI 코덱 비디오 트랙을 현대 H.264 코덱 비디오 트랙으로 트랜스 코딩합니다. –

답변

1

그냥 빨리 촬영,하지만 당신은 다음 줄

set file_extension to "_export.mp4" 

이가 할 것 아니오를 생각

set file_extension to "_export.mov" 

에에게 변경을 시도 할 수 있습니다 트릭은 도움이 될 수 있습니다.

0

조합을 사용해야합니다.

file_extension을 .mov (Bjoern)로 변경하고 MPEG-4를 Quicktime Movie로 변경합니다.

변경 사항은 동영상을 MOV 파일로 내보내지만 파일 확장자는 변경하지 않습니다. 그냥 이전 설정을 사용하는 것보다 더 나은 제어하려면

1

,

건배 (당신은 MOV 전용 플레이어로를 열려고하면이 동영상을 재생할 수 있어야합니다), 당신은 수출을 절약 할 수 있습니다 설정. 당신이 그것을 원하는 방법을 설정 수출을 설정 한 다음이 아니라 응용 프로그램보다, 문서를 지정해야하는 이유 나도 몰라

tell quicktime player 
    tell movie 1 
     save export settings for Quick Time Movie to mysettingsfile--or whatever format you exported to 
    end tell 
end tell 

같은 것을 사용하지만 그것은 사전에 방법입니다.


MPEG Streamclip (무료) 또는 ffmpeg (FOSS, 명령 줄 전용이지만 GUI가있는 프로그램)을 사용하여 동일한 작업을 수행 할 수도 있습니다. MPEG Streamclip은 배치 목록 기능과 함께 제공되며 거의 모든 것을 다른 것으로 변환 할 수 있습니다. 휠을 재발견하지 않아도됩니다.

관련 문제