Answers.Body: <p>Only extract the relevant channel using channelsplit.</p>
  <p>Use</p>
  <p><code>ffmpeg -i &quot;input.mkv&quot; -filter_complex &quot;channelsplit=channel_layout=5.1:channels=FC[FC]&quot; -map '[FC]' -map 0 -c copy -c:a:0 aac &quot;output [Background Removed].mkv&quot;</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-03T04:47:00.803Z
Answers.Text: Thanks. I need at least 15 reputation to up-vote. Your answer is really useful. Please mention how to set the language of the new track to Malayalam, so that I can select this as the correct answer.
Answers.UserDisplayName: Kalyani
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-03T10:49:24.527Z
Answers.Text: Add `-metadata:s:a:0 language=mal`
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-05T12:52:44.590Z
Answers.Text: Up-voted and Selected, although it would be useful for everybody to describe each part of the command.
Answers.UserDisplayName: Kalyani
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-02T18:44:15.030Z
Answers.LastActivityDate: 2021-08-02T18:44:15.030Z
Answers.UserDisplayName: Gyan
Body: <p>I have an MKV video file with 5.1 channel audio. I want to use the third channel (FC) as AAC Audio Track 1 (with language label Malayalam), the whole audio file copied as Audio Track 2  (also with language label Malayalam), and save the video as MKV. I don't want to reencode the video.</p>
  <p>How can I do that?</p>
  <p>I tried this:</p>
  <pre><code>ffmpeg -i &quot;input.mkv&quot; -filter_complex &quot;channelsplit=channel_layout=5.1[FL][FR][FC][LFE][BL][BR]&quot; -map '[FC]' -acodec aac -map 0 -vcodec copy &quot;output [Background Removed].mkv&quot;
  </code></pre>
  <p>It gave me the error:</p>
  <pre><code>Filter channelsplit:BR has an unconnected output
  </code></pre>
  
Tags: <ffmpeg><tracks>
Title: FFMPEG Extract Front Centre Channel as an audio track
UserDisplayName: Kalyani
ThreadText: # FFMPEG Extract Front Centre Channel as an audio track
  
  (Asked by: username_0 on 2021-08-02)
  
  I have an MKV video file with 5.1 channel audio. I want to use the third channel (FC) as AAC Audio Track 1 (with language label Malayalam), the whole audio file copied as Audio Track 2 (also with language label Malayalam), and save the video as MKV. I don't want to reencode the video.
  
  How can I do that?
  
  I tried this:
  
  ```
  ffmpeg -i "input.mkv" -filter_complex "channelsplit=channel_layout=5.1[FL][FR][FC][LFE][BL][BR]" -map '[FC]' -acodec aac -map 0 -vcodec copy "output [Background Removed].mkv"
  
  ```
  
  It gave me the error:
  
  ```
  Filter channelsplit:BR has an unconnected output
  
  ```
  
  **Tags:** ffmpeg, tracks
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-08-02. Score: 2 | Accepted answer
  
  Only extract the relevant channel using channelsplit.
  
  Use
  
  `ffmpeg -i "input.mkv" -filter_complex "channelsplit=channel_layout=5.1:channels=FC[FC]" -map '[FC]' -map 0 -c copy -c:a:0 aac "output [Background Removed].mkv"`
  
  > **Comments:**
  > **username_0**: Thanks. I need at least 15 reputation to up-vote. Your answer is really useful. Please mention how to set the language of the new track to Malayalam, so that I can select this as the correct answer.  
  > **username_1**: Add `-metadata:s:a:0 language=mal`  
  > **username_0**: Up-voted and Selected, although it would be useful for everybody to describe each part of the command.  
  
  ---
  
  