Hi, I have recently been trying to improve my knowledge using FFmpeg and have been playing around with adding more than one audio stream to a video. I successfully managed to add two different English audio streams to my video, 6-channel, and 2-channel. I'm wondering if there is a way to name the channels something like English 6 channel and English 2 channel?
Command Line I'm using:
Code:ffmpeg -i v_dec.mp4 -i a_dec.mp4 -i a1_dec.mp4 -map 0 -map 1 -map 2 -metadata:s:a:0 language=eng -metadata:s:a:1 language=eng -c copy final.mp4
[Attachment 67311 - Click to enlarge]
Thanks
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 10 of 10
			
		- 
	
- 
	Not tested but try: 
 
 Code:ffmpeg -i v_dec.mp4 -i a_dec.mp4 -i a1_dec.mp4 -map 0 -map 1 -map 2 -metadata:s:a:0 title="EN6ch" -metadata:s:a:1 title="EN2ch" -c copy final.mp4 
- 
	Thank you, this worked a treat. With Quotation marks, you can name them anything you like. So I named them English 6-Channel and English 2-Channel.  
 
 
 [Attachment 67318 - Click to enlarge]
- 
	@codehound was wondering if you could help me combine these 2 command lines into one. 
 
 This one I'm using this like the above to name the two sound channels:
 
 Code:ffmpeg -i v_dec.mp4 -i a_dec.mp4 -i a1_dec.mp4 -map 0 -map 1 -map 2 -metadata:s:a:0 title="[English 6-Channel]" -metadata:s:a:1 title="[English 2-Channel]" -c copy final.mp4 
 [Attachment 67390 - Click to enlarge]
 
 and this one I'm using to add subtitles to the mp4 video and also name the language of the subtitles:
 
 I want to combine them if possible because when I run them one after another, the naming of audio channels is taken over by the naming of the subtitles when I run the second command. So my sound channels are no longer named as I wanted.Code:ffmpeg.exe -i final.mp4 -sub_charenc ISO-8859-1 -i a.vtt -map 0:v -map 0:a -map 1 -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng New.mp4 
 
 
 [Attachment 67391 - Click to enlarge]
 
 [Attachment 67392 - Click to enlarge]
 
 Thanks
 
 Jawz22Last edited by Jawz22; 28th Oct 2022 at 14:23. Reason: editing labels in code 
- 
	
- 
	Thread moved to the Editing forum where you can get more help. I think,therefore i am a hamster.
- 
	Use clever FFmpeg-GUI. 
 Portable, no installation, small.
 You can simply add the audiostreams you want and edit/change/insert the language, and stream title tag, the delay and the default tag.
 
 
 [Attachment 67451 - Click to enlarge]
Similar Threads
- 
  mkvmerge /mkvtoolnix ts streams no audio detectedBy Chris91 in forum Newbie / General discussionsReplies: 5Last Post: 5th Feb 2022, 22:54
- 
  How to replace video & audio streams with other in .ts file?By VetalSai in forum Video ConversionReplies: 0Last Post: 14th Jul 2019, 10:15
- 
  HLS with multiple audio streamsBy Derel in forum Video Streaming DownloadingReplies: 16Last Post: 1st Jul 2019, 21:05
- 
  adding audio files to exist video with ffmpeg make the video curraptedBy yanshof in forum Video ConversionReplies: 2Last Post: 21st Jan 2018, 15:37
- 
  adding audio files to exist video with ffmpeg make the video curraptedBy yanshof in forum ProgrammingReplies: 1Last Post: 21st Jan 2018, 14:56


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote
 
			
 
 
			
			