We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e80411f commit 9e95a81Copy full SHA for 9e95a81
src/ffmpeg-notes.md
@@ -134,7 +134,17 @@ ffmpeg -i input.mp4 -map 0 -vf "scale=1920:1080:force_original_aspect_ratio=decr
134
135
### Batch encode
136
137
-Bulk conversion using Windows batch scripting. Should probably use something better like PowerShell
+Bulk file conversion.
138
+
139
+#### PowerShell
140
141
+```powershell
142
+Get-ChildItem -Recurse -Filter *.mp3 | ForEach-Object { ffmpeg -i $_.FullName -b:a 48k (Join-Path $_.DirectoryName "$($_.BaseName).opus") }
143
+```
144
145
+#### Batch script
146
147
+Bulk conversion using Windows batch scripting. Should probably use something better like PowerShell.
148
149
```batch
150
FOR /F "tokens=*" %G IN ('dir /b *.mp3') DO ffmpeg -i "%G" -b:a 48k "%~nG.opus"
0 commit comments