After repacking MPG>MKV out of sync appears
I created files, after repackaging them into mkvtoolnix, players (VLC, SMPlayer) have a desync. After ffmpeg everything is fine.
ffmpeg -fflags +genpts -i input.mpg -c copy output.mkv
This is because mkvtoolnix ignores timecodes in MPG/VOB containers.
Download test files https://www.mediafire.com/file/00xxb3xsuxra5yn/mpg-gaps.7z/file