Strange Problem with mkvtoolnix

Hi
I have a very strange problem with MKVToolNix, Jellyfin and android TV devices.
I did use MakeMKV to rip my DVD collection. Then I used Handbrake to create h.264 files. Sadly MakeMKV did add default and force to the 1st subtitle track and Handbrake kept these, so I did:

find /folder/ -iname "*.mkv" -type f -execdir mkvpropedit {} --edit track:s1 --set flag-default=0 --edit track:s1 --set flag-forced=0 \;

on my Deb 12 Server. Basically I did remove forced and default flags from the 1st subtitle. So far, everything worked fine with one very, very strange exception: I no longer can stream the files in Jellyfin to my Fire TV or my waiputv. Everything else works fine, Jellyfin Windows and Linux client, Jellyfin in the Browser and even using VLC on the Fire TV stick, all except the Jellyfin Fire TV client.
Now here is another strange thing, if I reduce the bitrate of the Fire TV to 1 MBit/s (and it has to be 1, not 2, 5 or anything else will not work) it will work just fine. Quality is terrible though. Another strange thing, if I use MKVToolNix GUI, don’t change anything and simply click “Multiplex starten” (start multiplex?) the newly created file works fine in Jellyfin on Fire TV also.
Long story short: Any Idea what might cause this very strange behaviour and how I can fix this without using the GUI and having to edit every single file by hand?
Thanks in advance
Regards, Dieter

Welcome!

Please read this FAQ entry; it explains the background of why you’re experiencing what you’re experiencing.

1 Like

Thanks, that helps.
This is the command I came up with that does it all in one. Recursively goes through your folder (You might want to change /folder), looks for mkv files, create a new file and delete the old one by renaming the new one. You might need to install rename and if you want the chmod is up to you:

find /folder/ -iname "*.mkv" -execdir mkvmerge -o {}_ {} \; -execdir rename -f 's/.{1}$//' {}_ \; -execdir chmod 764 {} \;