Since the transcoded media gets extended mime type like "audio/L16:channels=2;" the code that checks against mime-types mismatches. This simply patch fixes that although it probably needs to be C++:ified to fit with the coding style of the project. With this patch, my Panasonc equipment finally accepts transcoded audio files.
substring mimeType at ';
Did not use your patch directly, but understood the problem and mostly did the same in C++, thanks for figuring this out.