#!/bin/bash

ffmpeg -i "$1" -vcodec libx264 -crf 18 -filter:v fps=fps=30 "x$1"

if test -f "x$1"; then
    rm "$1"
    mv "x$1" "$2$1"
    echo "$1 converted."
else
    echo Error occurred processing: $1
fi
