Navigation Menu

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 April 23, 2024 09:24
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'