title: ffmpeg set subtitles track as default
body: <p>By adding an .ass subtitles track to an mkv video with ffmpeg, it isn't set as default track, so on playback you have to manually turn on subtitles. Is it possible to set the default flag for the subtitles track?</p>
  
  <p>ffmpeg command used:</p>
  
  <pre><code>ffmpeg -i video.mp4 -i subtitles.ass -c:v libx264 -preset veryslow \
   -pix_fmt yuv420p10le -c:a copy -c:s copy output.mkv
  </code></pre>
  
  <p>Note that I want to keep .ass subtitle format, <strong>not</strong> convert the subtitles to mov_text like suggested in this similar question:
  <a href="https://stackoverflow.com/questions/17812725/how-to-set-default-streams-with-ffmpeg">How to set default streams with ffmpeg</a></p>
  
  <p>There is the possibility to set the default flag afterwards with mkvpropedit like this:</p>
  
  <pre><code>mkvpropedit output.mkv --edit track:s1 --set flag-default=1
  </code></pre>
  
  <p>But is it possible to do this directly with ffmpeg?</p>