From a6123cd5679cc99e1eaf574d7157a2ff5b15657a Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Fri, 6 Jun 2025 02:46:27 -0400 Subject: [PATCH] [+] v0 --- powershell.ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/powershell.ps1 b/powershell.ps1 index c875925..dcee717 100644 --- a/powershell.ps1 +++ b/powershell.ps1 @@ -65,6 +65,23 @@ function cropv($file, $len) ffmpeg -i $file -filter:v "crop=$(len):1440:$([math]::floor((2560-$len)/2)):0" out.mp4 } +function mp3v0 { + param ( + [Parameter(Mandatory = $true)] + [string]$inputFile + ) + + # Extract file name without extension + $baseName = [System.IO.Path]::GetFileNameWithoutExtension($inputFile) + + # Set output filename + $outputFile = "$baseName.mp3" + + # Run ffmpeg with specified arguments + ffmpeg -i "$inputFile" -c:a libmp3lame -q:a 0 "$outputFile" +} + + # ls coloring if (Get-Module -ListAvailable -Name PSColor) { Import-Module PSColor