2005-10-20 00:56 - RD-H1 ? Mac ? iTunes(2)

?RD-H1 ? Mac ? iTunes(1)?????

Apple ???????????Add to iTunes Library?????????????????Library????????????????????????????????????????……????????? AppleScript ??????????????????? iTunes ??????????????????????

import - RD vob to iTunes(MPEG4).scpt

--???????????
property results_foldername : "iPod Movies"
--???????????
property new_extension : "mp4"
--??????????????
property extension_list : "vob"
--ffmpeg Application Path
property ffmpeg_app : "/Applications/ffmpeg"
--ffmpeg Option
property ffmpeg_opt : "-hq -s 320x240 -vcodec mpeg4 -sameq -acodec aac -ac 2 -ab 96"
--??????? iTunes ???????
property playlist_name : "RD ????"

on adding folder items to this_folder after receiving these_items
 tell application "Finder"
  --???????????????????????????
  if not (exists folder results_foldername of this_folder) then
   make new folder at this_folder with properties {name:results_foldername}
  end if
  --?????????????????
  set the results_folder to (folder results_foldername of this_folder) as alias
 end tell
 try
  --??????????
  repeat with i from 1 to number of items in these_items
   --????????
   set this_item to item i of these_items
   set the item_info to the info for this_item
   --????????????????????
   if the name extension of item_info is the extension_list then
    --?????????UNIX????????
    set the ffmpeg_input to POSIX path of this_item
    --?????????UNIX????????
    set the ffmpeg_output to POSIX path of results_folder & the name of item_info & "." & new_extension
    
    --ffmepeg????
    --display dialog ffmpeg_app & " -i " & "'" & ffmpeg_input & "' " & ffmpeg_opt & " '" & ffmpeg_output & "'"
    do shell script ffmpeg_app & " -i " & "'" & ffmpeg_input & "' " & ffmpeg_opt & " '" & ffmpeg_output & "'"
    
    --????????? iTunes ????????
    tell application "iTunes"
     launch
     --activate
     --???????? iTunes ??????????????????
     if name of every playlist contains playlist_name then
      set inport_playlist to playlist playlist_name
     else
      set inport_playlist to make new playlist
      set the name of inport_playlist to playlist_name
     end if
     
     --POSIX Path??Mac???????????
     set filepath to ffmpeg_output as POSIX file
     set macpath to filepath as Unicode text
     --????????
     set this_track to add macpath to playlist "?????" of source "?????"
     --?????????
     duplicate this_track to inport_playlist
     
    end tell
   end if
  end repeat
 end try
end adding folder items to

????convert - RD vob to MPEG4.scpt???????????????

  • ???????????? vob ????? 320 × 240 ? MPEG4 ?????????iTunes ?????????? iPod with video ?????????????
  • ?????????????????????????????
  • ??????????

????????????RD-H1 ? PowerMac G5(1.8GHz Dual) ?????????????????????????????????????????????30 ????????? 31 ?????RD-H1 ? iBook G4(1.33GHz) ?????? 15 ????? 27 ????????? 1.5 ?????????

??? MPEG4 ??? H.264 ???????????????????????

[]

No.1877 Permalink

Keywords List

(17) (31) (3) (24) (4) (20) (47) (5) (7) (6) (2) (4) (2) (89) (5) (9) (4) (14) (1) (1) (4) (179) (1) (1) (2) (16) (1) (121) (9) (4) (1) (1) (61) (21) (54) (64) (29) (54) (1) (4) (3) (4) (31) (2) (1) (3) (1) (3) (11) (2) (4)

Acccess Counter

  • Total : 2,600,115 (since : 2004-02-22)
  • Today's visitors : 251
  • Yesterday's visitors : 242

feed meter

RSS feed meter for http://www.vitae.jp/malkuth/

Search

  • www.vitae.jp Search by Google

Contact me

  • Name : 御影 紫苑
  • Mail : webmaster at vitae.jp
  • MSN : s_mikage at hotmail.com
  • ICQ : 3501683