Feature Request:
The option in post processing to automatically optimize downloaded .mkv files for streaming with mkclean.
Why is this necessary:
Some devices with built in media-players such as smart tv’s, blu-ray players etc. are unable to play some mkv files which are muxed in a certain way (about 50% of the online content). There are two ways to fix this, one way is to remux the mkv file, the other is to “clean” the mkv file. The cleaning is more practical since it takes much less time and cpu power and can be done with a small standalone opensource program called mkclean, made available by the matroska group. After the file is cleaned it is playable again for any player that vaguely supports mkv files. It also improves the stream-ability of mkv files (less stutter).
What is mkclean (from the matroska website):
mkclean is a command line tool to clean and optimize Matroska (.mkv / .mka / .mks / .mk3d) and WebM (.webm / .weba) files that have already been muxed. It reorders the elements with the Cues at the front, so your Matroska files are ready to be streamed efficiently over the web. It also removes elements not found in the Matroska specs and the extra Meta Seek list of Clusters that some program add to their file. It can also optionally remux the Cluster blocks to start each boundary with a keyframe and the matching audio/subtitle blocks for that keyframe.
source: http://www.matroska.org/downloads/mkclean.html
Why would it be awesome if it’s integrated in Sonarr:
The beauty about programs like Sonarr is that everything goes automatic, the only thing I still have to do with my downloaded series/movies is checking if the file can be played. As I said with 50% of the downloaded files this is not the case, then I need to download the file from my NAS to my computer, run mkclean and re-upload it to my NAS. Which gets annoying…
An argument could be made that you can make a script that refers to mkclean, but i don’t have the knowledge to do it and i don’t know how to run mkclean on my NAS. Besides, if you would go that route, you’ll probably need 2 blackhole folders which isn’t the cleanest method.
Anyway, I don’t know if it’s easy or very hard to implement, but I would appreciate it if you could at least determine if it’s easy or hard and then go from there. If it’s hard and it takes too much time I fully understand. I will keep using Sonarr either way .
source code mkclean: