Created
October 13, 2022 17:01
-
-
Save tayiorbeii/460bb83d672f972f2b45d7ca7495c4c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| /* | |
| * Highlight the long video we are taking clips out of in Finder | |
| */ | |
| let longVideoFiles = await drop() | |
| /** | |
| * Tell kit we want to be working in the same directory as the source file | |
| */ | |
| cd(path.dirname(longVideoFiles[0].path)) | |
| for (let longVideoFile of longVideoFiles) { | |
| await exec(`ffmpeg -i "${longVideoFile.path}" -b:a 160k -vn "${longVideoFile.path.slice(0,-4)}.mp3"`) | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment