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:
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 13: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 detected
By Chris91 in forum Newbie / General discussionsReplies: 5Last Post: 5th Feb 2022, 21:54 -
How to replace video & audio streams with other in .ts file?
By VetalSai in forum Video ConversionReplies: 0Last Post: 14th Jul 2019, 09:15 -
HLS with multiple audio streams
By Derel in forum Video Streaming DownloadingReplies: 16Last Post: 1st Jul 2019, 20:05 -
adding audio files to exist video with ffmpeg make the video currapted
By yanshof in forum Video ConversionReplies: 2Last Post: 21st Jan 2018, 14:37 -
adding audio files to exist video with ffmpeg make the video currapted
By yanshof in forum ProgrammingReplies: 1Last Post: 21st Jan 2018, 13:56