Covert ogg file and change properties by using ffmpeg in windows


We need a tools called ffmpeg , it can be installed in windows through msys2 packages mingw-w64-x86_64-ffmpeg.

Remember , Add C:\msys64\mingw64\bin to Environment Variables PATH
if you want to use it as a commands in PowerShell

This is some usefull commands using ffmpeg in powershell :

  1. convert mp3 to ogg :

ffmpeg -i file.mp3 -ar 22050 -vn -c:a libvorbis -q:a 4 file.ogg

2. cut ogg from 0.6 s to 1.07 s

ffmpeg.exe -ss 0.6 -i .\file.ogg -to 1.07 -c copy newfile.ogg

3. Increase volume

ffmpeg -i file.ogg -filter:a "volume=4.0" newfile.ogg


Leave a Reply

Your email address will not be published. Required fields are marked *