My question, I think, is pretty simple...
Sometimes I like to download large MKV files from a webserver of mine, and play them back while they are downloading. However, if I do this on MKV files I've transcoded, often the file will show that it is much shorter than it actually is, and after it gets to the end it will just keep playing and display an incorrect time...e.g. it will display 2:50/2:50 but keep playing, however if I try to seek backwards with the arrow keys the player will either crash or skip back to the beginning of the file.
So, how can I move all the metadata to the beginning of the file while encoding so that the player will know how long the file is without having the whole thing? You can do this with the mp4 format by using -movflags faststart, but how to do it for mkv?
I'm sorry if this is already asked and answered elsewhere, I could not think of better keywords than I used and the ones I used produced no results.