Created
January 6, 2024 01:13
-
-
Save Luis0Antonio/4c891bd487bb3dad48167446f4b73a98 to your computer and use it in GitHub Desktop.
This file contains 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
// Name: mov to mp4 | |
// Description: Drop one mov file and it will export it to mp4 in the same directory | |
// Author: Luis Arce | |
// Twitter: @LuisArceParedes | |
import "@johnlindquist/kit" | |
let fileRef = await drop() | |
const targetExtension = ".mp4"; | |
const { path } = fileRef[0]; | |
const pathWithOutExtension = path.split(".")[0]; | |
await $`ffmpeg -i ${path} ${pathWithOutExtension}${targetExtension}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment