VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. 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
    Image
    [Attachment 67311 - Click to enlarge]



    Thanks
    Quote Quote  
  2. 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
    Quote Quote  
  3. Originally Posted by codehound View Post
    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.

    Image
    [Attachment 67318 - Click to enlarge]
    Quote Quote  
  4. @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
    Image
    [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
    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.

    Image
    [Attachment 67391 - Click to enlarge]

    Image
    [Attachment 67392 - Click to enlarge]


    Thanks

    Jawz22
    Last edited by Jawz22; 28th Oct 2022 at 13:23. Reason: editing labels in code
    Quote Quote  
  5. Anonymous84
    Guest
    --
    Last edited by Anonymous84; 8th May 2024 at 18:13. Reason: --
    Quote Quote  
  6. Originally Posted by tuskacz View Post
    Originally Posted by Jawz22 View Post
    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
    Image
    [Attachment 67311 - Click to enlarge]



    Thanks
    If you're fine with mkv format, mkvtoolnix has option to name tracks whatever way you want.
    Thanks, I'm aware of mkvtoolnix, nice program. But ideally want to keep the files to mp4.

    Cheers
    Quote Quote  
  7. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Thread moved to the Editing forum where you can get more help.
    I think,therefore i am a hamster.
    Quote Quote  
  8. 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.

    Image
    [Attachment 67451 - Click to enlarge]
    Quote Quote  
  9. Originally Posted by ProWo View Post
    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.
    Thank you very much, great work on the GUI
    Quote Quote  
  10. Originally Posted by johns0 View Post
    Thread moved to the Editing forum where you can get more help.
    thank you
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!