One of the most awesome helpers I carry around in my ~/bin
since
the early '00s is the
sanity.pl
script written by Andreas Gohr. It just recently came back to use
when I started to archive some awesome Corona enforced live
session music with youtube-dl.
Update: Francois Marier pointed out that Debian contains the detox package, which has a similar functionality.