I am batch converting .mkv files using ffmpeg
I have 2 drives, one with the raw files the second is the target drive
all is well apart from I need to move the original source file to another folder on the same drive
Code: Select all
#!/bin/bash
for i in *.mkv;
do
ffmpeg -i "$i" -c:v libx264 -preset medium -crf 15 -c:a copy /media/dvdrip_2/Film/conv_"$i"
mv "$i" /media/dvdrip_1/Converted/"$i"
done