VLC writes incorrect duration when converting to MKV
Symptom:
When converting from a file format (.mp4) to MKV, VLC gives the video track segment a duration which is much longer than the original duration.
- Reproducible: Yes
- Logs: No messages produced
- Pre-post duplicate search string: "~MKV duration" -- no results
To Reproduce:
- Convert a file from the .mp4 container format to .mkv using the following settings:
- Encapsulation: MKV
- Video codec: Video, Keep original video track
- Audio codec: Audio, Keep original audio track
- Add the MKV file and the original video to a playlist. Observe the durations reported.
Expected result:
The durations should be the same in the playlist.
Actual result:
The duration for the MKV version is roughly 600 times longer for the MKV version (even though the play time is the same). Another side effect of this is that playing the MKV version doesn't advance the slider. Advancing the slider manually while playing the MKV files just exits the video. Viewing the segment with mkvinfo shows a duration for the example movie (video_test.mkv) of 00:22:20.857--it should be around 2 seconds instead.
Test platform:
= Component = | = Info = |
---|---|
OS | Windows 7 Pro SP 1 32 bit |
CPU | Intel Core i7-3770 @3.40GHz |
RAM | 4GB |
VLC | 2.2.1 |