youtube-dl
Link
https://ytdl-org.github.io/youtube-dl/
Resources
FAQ
Requested formats are incompatible for merge
If however you are really keen to get the best quality video and the best quality video audio but only in an mp4 container (thus bypassing the mkv warning and subsequent Matrosk container output from youtube-dl) you can use something like the following:
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' URL
Source: https://askubuntu.com/questions/806258/requested-formats-are-incompatible-for-merge
Do not stop downloading when one of the files fails
- Add
-i
to the command line parameters to continue downloading after a failing file