Created
September 19, 2025 08:14
-
-
Save eugrus/a3de213d17e0c6221f78aa7b78d2bd93 to your computer and use it in GitHub Desktop.
wrapper for ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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