How to convert a whole directory with various formats to OGG 192kbps through ffmpeg? I tried all solutions in internet but they didnt worked for me or i dont understand them. I would like to make a batch file for that. Any suggestions? For any help i'll be grateful.
for /r %a in (*.*) do ffmpeg -i "%a" -acodec libvorbis -q:a 6 -f oga "%~pna.ogg"
Use '%%a' instead of '%a' in batch file.
Add '-y' switch if you want to overwrite existing ogg files.
Add '& del "%a"' if you want to delete original files.
I created a batch file with as explained above but it doesn't seem to work when i click on it. Where i have to place that batch file? That's what exist in that file: for /r %%a in (*.*) do ffmpeg -i "%%a" -acodec libvorbis -q:a 6 -f oga "%~pna.ogg"
The last percent sign needs to be doubled too.
plus ffmpeg will need to be in your path, otherwise you'll need to set it's location in the batch script and reference it accordingly.
OMG Thanks it helped.
But i got another question, how to convert using CBR and bitrate 192kbps?
so presumably something like: -b:a 192
I want constant 192kbps this method it gives various bitrate.
A constant bitrate with Vorbis is not possible.
"Vorbis is a free-form variable bit rate (VBR) codec and packets have no minimum size, maximum size, or fixed/expected size." source: Vorbis specification (https://www.xiph.org/vorbis/doc/Vorbis_I_spec.html)