I always have trouble converting mkv to mp4, even with ffmpeg.
ffmpeg -c copy -i file.mkv file.mp4
Try it. Maybe it'll work for you. But if not...
HandBrakeCLI -Z "Vimeo YouTube 720p30" -s scan -F --subtitle-burned -N eng -i file.mkv -o file.mp4
for f in *; do cp "$f" ~/work -P; HandBrakeCLI -Z "Vimeo YouTube 720p30" -s scan -F --subtitle-burned -N eng -i "$f" -o ~/work/"${f%.*}.mp4"; rm ~/work/*; rclone move ~/work plex:720 -P; done
Explained Line-By-Line
for f in *.mkv; do Apply the following to all MKV files in the current directory, using a for loop
rclone copy "$f" ~/work -P; using rclone instead of cp because I can easily see the progress with -P
HandBrakeCLI -Z "Vimeo YouTube 720p30" -s scan -F --subtitle-burned -N eng -i "$f" -o ~/work/"${f%.mkv}.mp4"; Actual Conversion... Stripping out the .mkv filename so that it doesn't end up being movie.mkv.mp4
rm ~/work/*.mkv; because I don't want to upload the old junkins MKV file
rclone move ~/work plex:Transcoded -P; Get it to the cloud where I want it
done close the for loop
In particular, the directory I ran this in is my rclone mount, which is why I moved the files to ~/work before conversion.
You're supposed to use
ffmpeg -i file.mkv file.mp4, notffmpeg -c copy -i file.mkv file.mp4