Skip to content

Instantly share code, notes, and snippets.

@eugrus
Created September 19, 2025 08:14
Show Gist options
  • Save eugrus/a3de213d17e0c6221f78aa7b78d2bd93 to your computer and use it in GitHub Desktop.
Save eugrus/a3de213d17e0c6221f78aa7b78d2bd93 to your computer and use it in GitHub Desktop.
wrapper for ffmpeg
param([Parameter(Mandatory=$true)][string]$InputFile)
if (-not (Test-Path $InputFile)) { Write-Error "No '$InputFile'"; exit 1 }
ffmpeg -i "$InputFile" -vn -b:a 64k $("$( [System.IO.Path]::ChangeExtension($InputFile, '.mp3') )")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment