Batch script ffmpeg to convert mp4 all files from a folder to mp3

preview_player
Показать описание
Batch script ffmpeg to convert mp4 all files from a folder to mp3
Рекомендации по теме
Комментарии
Автор

Adapted slightly: made the path to ffmpeg absolute, and to make prores movs. Works brilliantly. Thank you!

Loopyengineeringco
Автор

Thank you! This saved me tedious typing work converting one file at a time... xD

LordQueezle
Автор

Worked flawlessly for .xma Xbox 360 files to .mp3

Thank god dude, you deserve a medal

ScarLeRenard
Автор

I've successfully created a batch file for encode all my video files. Thank you very much!

nguyenvannam
Автор

Works, but doesn't seem to be able to handle special characters...
If anyone is having that problem, here's what I did:




#this is a comment
cd
for f in *;
do
ffmpeg -n -i "$f" -c:a libmp3lame #This is a relative path (the "../" will make it go back one folder (so, into the "Music" folder) and then will put it in the folder)
done


To make it executable it's a little different, here's what worked for me:
Make an empty .txt file, put the script in, change the extension to .sh, righ_click>Open with>Other application>Git Bash (and check the box that says "always use this application for .sh files"
if it doesn't work for you, you might have to search how to make "Git Bash script executable" or something like it
And you should be able to double click it to execute it


*EXPLANATION*:
The script will grab ALL the files in and try to convert into mp3 and put them in folder if it can convert it (like, it won't convert and put a .txt file for example)
the "-n" option makes it so it doesn't overwrite files with the same name, you can remove it and it will ask you what to do when there is a file with the same name.







Hope this helps someone

yeshey
Автор

I LOVE YOU <3 You just save me bro !! :)

MrLaglude
Автор

Cool.
what should I do, If I want to combine a list of video (20) files to a list of Audio (20)files and have 20 outputs?

faezehpourhashemi
Автор

Hi, how to merge a photo and an audio and export multiple files with each of their own?

PsLLinguas
Автор

is there any command to speed up encoding proccess? WAV to MP3 ?

dj.antaro
Автор

how to make multiple mp4 from single jpg and multiple mp3 files

mscreentime
Автор

Do you have the batch script for converting Webm to Mp3?

Orangemushroom
Автор

great man thanks alot ..but what -vn does in this command!

mustprince