Set shellCommand to "rm -f " & origFilepath Set the label to green in case file deletion fails Set shellCommand to "nice /Applications/HandBrakeCLI -i " & origFilepath & " -o " & newFilepath & " -e x264 -q 18.0 -a 1,1 -E faac,copy:ac3 -B 160,160 -6 dpl2,none -R Auto,Auto -D 0.0,0.0 -audio-copy-mask aac,ac3,dtshd,dts,mp3 -audio-fallback ffac3 -f mp4 -4 -decomb -loose-anamorphic -modulus 2 -m -x264-preset medium -h264-profile high -h264-level 4.1" Set newFilepath to (characters 1 thru -5 of origFilepath as string) & "mp4'" Set origFilepath to quoted form of POSIX path of (currentFile as text) Set to gray label to indicate processing Repeat with i from 1 to number of items in allFiles Set allFiles to every file of entire contents of (folder “Multimedia:TV”) whose ((name extension is “avi” or name extension is “mkv”) and label index is 0) -Repeat for all files in above folder –Get all AVI and MKV files that have no label color yet, meaning it hasn’t been processed –on adding folder items to this_folder after receiving these_items But I can’t “see” what I need to do to get it to work as needed. Here is the script I’ve been using on my old mac mini. But it uses Handbrake and is very slow, and I still loose some of the quality. I’ve got this old script, I’ve been using for years. Users are not your personal search engine.I need a script that searches a folder for mkv files and remux them to mp4 container using ffmpeg.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |