#!/bin/bash
mkdir old
mkdir -p old/1
mkdir -p new/1
mv "Season 1"/*mkv old/1/.

find old -name '*S01E*.mkv' -exec sh -c '
    for file do
        ffmpeg -i "${file}" -map 0:v:0 -map 0:a:0 -map -0:a:1 -map 0:s:0 -map -0:s:1 -map 0:t? -c copy -disposition:a:0 default -disposition:s:0 default "new/1/${file##old/*/}"
        done
 ' exec-sh {} +

mv new/1/* "Season 1"/.
rm -r new
mv old older
clear
echo 
echo 
echo "DONE!!!"
echo "You can close this window."
echo "Bye :)"
read
