I am trying to rip correctly my Lady Gaga Monster Ball Tour BD because my audio receiver can't correctly decode DTS lossless formats so I usually remux my BDs with the original video stream + lpcm audio and have them stored in my NAS to stream on plex.
Usually no problems occurs, but with this rip I noticed heavy jittering in the streaming. This happens in 2 of the 3 valid BD titles ripped with makemkv on my macbook m1 pro.
I found out these 2 titles causes a ton of "Non-monotonous DTS" errors when I try to decode TrueHD tracks in ffmpeg, but I'm almost sure it's not a problem related to audio since one of the three contents on this BD with TrueHD (the behind the scenes video) works a charm without this error and it's played with no jitter by plex. The command I use to reencode the MakeMKV output for my use case is:
Code: Select all
ffmpeg -i title_00.mkv -map 0:v -map 0:a:0 -map 0:a:2 [I skip AC3 tracks] -map 0:s -c:v copy -c:s copy -c:a pcm_s24le -f matroska out.mkv
Code: Select all
[matroska @ 0x7fe465feccc0] Non-monotonous DTS in output stream 0:1; previous: 6499260, current: 6499170; changing to 6499261. This may result in incorrect timestamps in the output file.
Code: Select all
ffmpeg -i 00054.m2ts -map 0:v -map 0:a -c:v copy -c:a copy out.ts
Another four interesting things:
1. VLC macos can play every MakeMKV output fine with no jitter.
2. If I copy TrueHD tracks only in m2ts when I do the m2ts -> ts conversion, DTS errors occurs as well, so I have to copy all tracks mandatory, eventually converting the AC3 tracks to whatever .ts supports, for example mp2 or mp3
4. Those DTS errors occurs even if I copy the mkv from MakeMKV with no audio/sub in a separate .ts file.
3. Reencoding solves the problem
How can I properly do this?