Script Kit Logo
Script Kit
by John Lindquist
Vercel OSS Program

Scripts by thoncs

Trim Video Head/Tail

thoncs's avatar
Christopher Thon
// Name: Trim Video Head/Tail // Description: Select a video file and export a new one with the first 9s and last 5s removed. // Author: thoncs // GitHub: thoncs import "@johnlindquist/kit" const HEAD_TRIM = 9 const TAIL_TRIM = 5 // Ensure ffmpeg/ffprobe are available if (!which("ffmpeg") || !which("ffprobe")) { await div(md(`# Missing ffmpeg/ffprobe Please install ffmpeg (which includes ffprobe) and try again. - macOS: brew install ffmpeg - Windows: winget install Gyan.FFmpeg or choco install ffmpeg - Linux: sudo apt-get install ffmpeg `)) exit(1) }

Trim Video Head/Tail

thoncs's avatar
Christopher Thon
// Name: Trim Video Head/Tail // Description: Select a video file and export a new one with the first 9s and last 5s removed. // Author: thoncs // GitHub: thoncs import "@johnlindquist/kit" const HEAD_TRIM = 9 const TAIL_TRIM = 5 // Ensure ffmpeg/ffprobe are available if (!which("ffmpeg") || !which("ffprobe")) { await div(md(`# Missing ffmpeg/ffprobe Please install ffmpeg (which includes ffprobe) and try again. - macOS: brew install ffmpeg - Windows: winget install Gyan.FFmpeg or choco install ffmpeg - Linux: sudo apt-get install ffmpeg `)) exit(1) }