Skip to content

Instantly share code, notes, and snippets.

@Luis0Antonio
Created January 6, 2024 01:13
Show Gist options
  • Save Luis0Antonio/4c891bd487bb3dad48167446f4b73a98 to your computer and use it in GitHub Desktop.
Save Luis0Antonio/4c891bd487bb3dad48167446f4b73a98 to your computer and use it in GitHub Desktop.
// 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