VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Psychology student CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Mainland China
    Search Comp PM
    Hi guys,
    I'm meeting a problem of using ffmpeg to emerge different videos and audios and subtitles together so I came here to find some answers.

    Here's what I've got:
    1 Video: v_dec.mp4
    2 Audios: a_eng.mp4 & a_zho.mp4
    2 Subtitles: CHI.srt & ENG.srt
    and how to put them together in a new mp4 file using ffmpeg?

    Thank you in advance.

    Image
    [Attachment 67503 - Click to enlarge]
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  2. Psychology student CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Mainland China
    Search Comp PM
    Below is the code that I tried typing in, and I'm wondering what would be the reason of the failure:
    Code:
    ffmpeg -i v_dec.mp4 -i a_eng.mp4 -i a_zho.mp4 -i CHI.srt -i ENG.srt -map 0:v:0 -map 1:a -map 2:a -map 3:s -map 4:s final_new.mp4
    Any suggestion or advice is highly appreciated.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  3. Psychology student CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Mainland China
    Search Comp PM
    P.S. I tried emerging video and audios——without the subtitle part, and it worked.
    Code:
    ffmpeg -i v_dec.mp4 -i a_eng.mp4 -i a_zho.mp4 -map 0:v:0 -map 1:a -map 2:a final.mp4
    But I don't really know how to deal with the subtitle stuff.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  
  4. Use clever Ffmpeg-GUI.
    Load the video file, click main, click multiplex, click add stream, add your audio and subtitle files, select all streams on the left side, select the container you want (mp4 or mkv), click multiplex.
    Done.
    Quote Quote  
  5. Psychology student CrymanChen's Avatar
    Join Date
    Apr 2022
    Location
    Mainland China
    Search Comp PM
    Originally Posted by ProWo View Post
    Use clever Ffmpeg-GUI.
    Load the video file, click main, click multiplex, click add stream, add your audio and subtitle files, select all streams on the left side, select the container you want (mp4 or mkv), click multiplex.
    Done.
    It is so nice of you. Thank you for your advice, it worked.
    twitter @Cryman_Chen
    email crymanchen@gmail.com
    Quote Quote  



Similar Threads

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