
If ffmpeg isn't in your path, and it's actually in the directory you're currently in, write. You could take this a step further and add Remove-Item to the end to automatically delete the old files. That will convert all ".avi" files into ".mp3" files through FFmpeg, just replace the three things in quotes to decide what type of conversion you want, and feel free to add any other arguments to FFmpeg within the ForEach. Can be run when the target file exists, prompting before overwritingįfmpeg-batch-convert.sh: sourceExtension=$1 # e.g.Works with files with multiple spaces and multiple dots in the name.



The video converter feature in VLC media player is good enough. Part 3: Best VLC Alternative to Convert AVI to MP4. The following script works well for me in a Bash on Windows (so it should work just as well on Linux and Mac). Then VLC media player will begin to convert AVI to MP4 on Mac computer for free.
