User Tools

Site Tools


ffmpeg:subtitles:add_subtitles_from_an_ass_file

This is an old revision of the document!


ffmpeg - Subtitles - Add subtitles from an ASS file

An ASS (Advanced SubStation Alpha) file is a subtitle format that supports text styling, animation, and karaoke-like graphics.

  • ASS is a text-based subtitle format.
  • Any text editor can open .ass files.

ASS is a more advanced subtitle format than SRT since ASS allows for more advanced display features such as text positioning, fonts, animation, and graphics besides the plain text styling.

  • SRT is more popular than ASS.

Adding Soft Subtitles


Adding Hard Subtitles

ffmpeg -i input.mp4 -vf ass=subtitle.ass output.mp4

NOTE: The subtitles will be added to the video using the default font styles.

  • -vf is an alias for -filter:v.
  • ass=subtitle.ass is the name of the filter followed by the name of the ASS subtitle file.

References

ffmpeg/subtitles/add_subtitles_from_an_ass_file.1735594837.txt.gz · Last modified: 2024/12/30 21:40 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki