VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. how to embedded subtitles in mp4 container format using ffmpeg
    I am trying to embedded srt file into mp4 container.
    Is this possible?
    Is there any way i can encode subtitles in mp4 container
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    One thread is enough. Post all your ffmpeg questions in this thread. And this is not latest news. Moving you.
    Quote Quote  
  3. To embed srt subs, first convert to substation alpha (ssa) or advanced substation alpha (ass) format
    ffmpeg -i input_subfile.srt -y output_subfile.ass

    Then embed using video filter ass:

    ffmpeg -i inputvideo.mp4 -sameq -vf ass=output_subfile.ass -y subtitled_output.mp4

    To encode srt into mp4 use mov_text filter:

    ffmpeg -i inputvideo.mp4 -vcodec copy -acodec copy -i input_subfile.srt -scodec mov_text -map 0:0 -map 0:1 -map 1:0 -y subtitled_output.mp4
    Quote Quote  



Similar Threads

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