FFMPEG - Real Proper Hard-Burn Subtitle Onto A Video

Posted at

Full Hebrew Support. No gibberish.



  1. CONVERT.
    Use Subtitle-Workshop📎︎ and save your subtitle as .ass(Advanced SubStation Alpha).


  2. Resolve Gibberish.
    Open the .ass file using either:
    - Notepad2 📎︎ and click File→Encoding→UTF-8
    or
    - Notepad++ 📎︎ and click Encoding→Encode in UTF-8 without BOM.


  3. Better Presentation.
    Open the .ass file using Notepad2 or Notepad++, and replace:
    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
    Style: Default,Tahoma,24,&H00FFFFFF,&H00FFFFFF,&H00FFFFFF,&H00C0C0C0,-1,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,1
    

    with
    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
    Style: Default,Tahoma,20,&H00FFFFFF,&H00FFFFFF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,1,0,2,10,10,20,1
    

    You may change the font-family, font-size, border color, etc.. to your liking..


  4. Run:
    ffmpeg -i video.mp4 -vf "ass=subtitle.ass" out_video.mp4
    or : ffmpeg -hide_banner -y -i "video.mp4" -filter_complex "[0:v]ass=subtitle.ass[VIDEO];" -map "[VIDEO]" -preset veryslow -crf 21 -pix_fmt yuv420p -movflags "+faststart" out_video.mp4 (advance filtering example).