I had a video stream and an audio stream that didn't match each other. To match them required for the audio stream delay 1000ms and stretch by 1.123456.
I joined the streams in matroska container with mkvmerge which gives the possibility to put delay and stretch on any stream.
The result runs correctly in Media Player Classic but not in VLC or MX Player. In VLC after some time sound cranks and stop. In MX player plays correctly but it seems that skips the stretching of audio stream.
The correct behavior based on what I did is to run correctly or not?
If not, is there another way to sync the 2 streams lossless?