Thank you, I had this problem for a while, without actively looking to fix it. Your message gave me everything I needed to reprocess all my failed imported emails!
It seems to have it as it’s based on yt-dlp.
Looks good, I’ll need to give it a try!
Handbrake has a CLI version: https://handbrake.fr/downloads2.php