#!/bin/sh

extension="out"
read -p "Pick extension to convert from: " extension
outfolder="out"
outext="mp4"
read -p "Output folder: " outfolder
read -p "Output extension: " outext

mkdir $outfolder
for file in *.$extension; do
    ffmpeg -i "$file" "$outfolder/${file%.$extension}.$outext"
    echo "\n\n==> Conversion complete\n\n"
done
