Answers.Body: <p>It's not the container that 'knows' that, it is a player. And it is a good question how it managed to find the file in the different directory.</p>
  
  <p>The only thing that the container does to help the player to identify the blocks is storing the Previous UID and Next UID for the files. It also stores the UID for the current file. So my guess would be that you have a player with some sort of 'library' capability, the player has scanned your drive and recorded the UIDs of the MKV files that it found, it then encounters the Next UID field in a file that it's playing and it will know where to look for the next one.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-11-10T15:07:16.997Z
Answers.LastActivityDate: 2013-11-10T15:07:16.997Z
Answers.UserDisplayName: v010dya
Answers.Body: <p>Like Volodya said its not the file but the player looking for files that have the same file name but a suffix that helps it to identify the correct order. In that case you have a number after the file name and the player knows file1 comes before file2. Many such players support alphabetic ordering aswell.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-04T07:01:41.887Z
Answers.Text: Oh, i didn't think about the suffix at all. I suppose it could be that as well.
Answers.UserDisplayName: v010dya
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-03T23:39:30.080Z
Answers.LastActivityDate: 2014-06-03T23:39:30.080Z
Answers.UserDisplayName: timonsku
Body: <p>I downloaded a file vid1 that is in C:\dir1\ which links to another file vid2 in a subdirectory C:\dir1\dir2\ and it works if I move that file to dir1 (so both files are in dir1). I figure that it'll work as long as it's in the same directory or any subdirectory of dir1 but it also works if I move vid2 to C:\ or C:\dir3\ or C:\dir3\dir4.. </p>
  
  <p>So how does an MKV file look for other MKV file segments even when I move them all over the place in different directories?</p>
  
Tags: <video><file-formats>
Title: How does MKV segment linking work?
UserDisplayName: Jack
ThreadText: # How does MKV segment linking work?
  
  (Asked by: username_0 on 2011-10-02)
  
  I downloaded a file vid1 that is in C:\dir1\ which links to another file vid2 in a subdirectory C:\dir1\dir2\ and it works if I move that file to dir1 (so both files are in dir1). I figure that it'll work as long as it's in the same directory or any subdirectory of dir1 but it also works if I move vid2 to C:\ or C:\dir3\ or C:\dir3\dir4..
  
  So how does an MKV file look for other MKV file segments even when I move them all over the place in different directories?
  
  **Tags:** video, file-formats
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2013-11-10. Score: 1
  
  It's not the container that 'knows' that, it is a player. And it is a good question how it managed to find the file in the different directory.
  
  The only thing that the container does to help the player to identify the blocks is storing the Previous UID and Next UID for the files. It also stores the UID for the current file. So my guess would be that you have a player with some sort of 'library' capability, the player has scanned your drive and recorded the UIDs of the MKV files that it found, it then encounters the Next UID field in a file that it's playing and it will know where to look for the next one.
  
  
  ---
  
  ### Answer by username_2 on 2014-06-03. Score: 0
  
  Like Volodya said its not the file but the player looking for files that have the same file name but a suffix that helps it to identify the correct order. In that case you have a number after the file name and the player knows file1 comes before file2. Many such players support alphabetic ordering aswell.
  
  > **Comments:**
  > **username_1**: Oh, i didn't think about the suffix at all. I suppose it could be that as well.  
  
  ---
  
  