Answers.Body: <p>FFmpeg, by default, only picks one stream of each type (video, audio, subtitles). The user needs to set map option to select tracks for an output.</p>
  <pre><code>ffmpeg -i /sdcard/input.mkv -vf subtitles=/sdcard/input.ass -map 0 -c:a copy /sdcard/hrdcoded.mp4
  </code></pre>
  <p>See <a href="https://ffmpeg.org/ffmpeg.html#Stream-selection" rel="nofollow noreferrer">https://ffmpeg.org/ffmpeg.html#Stream-selection</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-29T06:26:37.877Z
Answers.LastActivityDate: 2020-11-29T06:26:37.877Z
Answers.UserDisplayName: Gyan
Body: <p>I have a video and a soft subtitle of the video.The video had 3 audio(track1 track2 track3) I use this command</p>
  <p>ffmpeg -i /sdcard/input.mkv -vf subtitles=/sdcard/input.ass /sdcard/hrdcoded.mp4</p>
  <p>In this command I not only hardcode subtitles but also convert the video to mp4. The process start properly but when it finished I saw I was have 3 audio track(track1 track2 track3) now it have audio track1. Other tracks are missing. What command should i use to have all audio track</p>
  
Tags: <ffmpeg>
Title: After subtitle video one of my audio track is missing
UserDisplayName: Md.Rakibul Islam
ThreadText: # After subtitle video one of my audio track is missing
  
  (Asked by: username_0 on 2020-11-29)
  
  I have a video and a soft subtitle of the video.The video had 3 audio(track1 track2 track3) I use this command
  
  ffmpeg -i /sdcard/input.mkv -vf subtitles=/sdcard/input.ass /sdcard/hrdcoded.mp4
  
  In this command I not only hardcode subtitles but also convert the video to mp4. The process start properly but when it finished I saw I was have 3 audio track(track1 track2 track3) now it have audio track1. Other tracks are missing. What command should i use to have all audio track
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-11-29. Score: 0 | Accepted answer
  
  FFmpeg, by default, only picks one stream of each type (video, audio, subtitles). The user needs to set map option to select tracks for an output.
  
  ```
  ffmpeg -i /sdcard/input.mkv -vf subtitles=/sdcard/input.ass -map 0 -c:a copy /sdcard/hrdcoded.mp4
  
  ```
  
  See <https://ffmpeg.org/ffmpeg.html#Stream-selection>
  
  
  ---
  
  