2ちゃんねる ★スマホ版★ ■掲示板に戻る■ 全部 1- 最新50  

■ このスレッドは過去ログ倉庫に格納されています

MacでiPod用の動画を作るスレ 2

33 :名称未設定:2005/11/10(木) 16:51:07 ID:VC2ZuFkz
フォルダーアクションで起動、変換、登録、同期!!
on doFiles(theFile)
set ffmpeg to "/usr/local/bin/ffmpeg"
set opt1 to " -y -threads 2 -maxfr 30 -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 13 -fixaspect -s 352x264 -croptop 12"
set opt2 to " -cropbottom 12 -cropleft 16 -cropright 16 -b 384 -maxrate 768 -qmin 2 -qmax 51 -deinterlace -acodec aac -ac 2 -ar 48000 -ab 64 -f mp4 "
tell application "Finder"
set fileIn to POSIX path of theFile
set fileOut to "/tmp/" & (name of theFile as string) & ".m4v"
end tell
set theCommand to ffmpeg & " -i '" & fileIn & "'" & opt1 & opt2 & " '" & fileOut & "' >& /dev/null"
with timeout of 99999 seconds
--display dialog theCommand
do shell script theCommand
end timeout
try
tell application "iTunes" to open fileOut as POSIX file
--tell application "iTunes" to update "MyVideoiPod"
--tell application "Finder" to delete fileOut as POSIX file
end try
end doFiles

on open theFiles
repeat with theFile in theFiles
doFiles(theFile)
end repeat
end open

on run
doFiles(choose file)
end run

242 KB
★スマホ版★ 掲示板に戻る 全部 前100 次100 最新50

read.cgi ver 05.02.02 2014/06/23 Mango Mangüé ★
FOX ★ DSO(Dynamic Shared Object)