Skip to content

Instantly share code, notes, and snippets.

View sampalmer's full-sized avatar

sampalmer

View GitHub Profile
@sampalmer
sampalmer / splitvideo.ps1
Last active January 4, 2026 19:43
PowerShell script to split video into multiple files using ffmpeg
param (
[Parameter(Mandatory=$true)]
[string]$inVideoPath,
[Parameter(Mandatory=$false)]
[string]$outVideoDirectory
)
$ErrorActionPreference = "Stop"
$ffmpegCommand = 'ffmpeg'