ffmpeg:subtitles:add_subtitles_from_an_ass_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ffmpeg:subtitles:add_subtitles_from_an_ass_file [2024/12/30 21:45] – peter | ffmpeg:subtitles:add_subtitles_from_an_ass_file [2024/12/30 22:08] (current) – peter | ||
---|---|---|---|
Line 10: | Line 10: | ||
* SRT is more popular than ASS. | * SRT is more popular than ASS. | ||
+ | ASS files have INI-style sections. | ||
+ | |||
+ | * Each section is preceded by a line containing the sections name, in square brackets. | ||
+ | * Aside from this, each line is generally composed of: a line descriptor, which tells about what the line is about; a colon; and the line data itself. | ||
+ | * Any whitespace between these parts are allowed. | ||
+ | * Blank lines are also allowed. | ||
+ | * Hard comment lines are preceded by either a semicolon or !: (with " | ||
+ | * Unrecognized and incorrect line formats are ignored. | ||
---- | ---- | ||
Line 17: | Line 25: | ||
<code bash> | <code bash> | ||
ffmpeg -i input.mp4 -i subtitle.ass -c copy -c:s mov_text -metadata: | ffmpeg -i input.mp4 -i subtitle.ass -c copy -c:s mov_text -metadata: | ||
+ | |||
+ | ffmpeg -i input.mp4 -i subtitle.ass -c copy -c:s srt -metadata: | ||
</ | </ | ||
- | **NOTE:** | + | <WRAP info> |
+ | **NOTE: | ||
* **-c** copy specifies that the video is not to be re-encoded. | * **-c** copy specifies that the video is not to be re-encoded. | ||
- | * **-c:s mov_text** sets the ASS file to MOV_TEXT format. | + | * **-c:s mov_text** sets the ASS file to MOV_TEXT format |
+ | * **-c:s srt** sets the ASS file to SRT format for MKV. | ||
* **-metadata: | * **-metadata: | ||
* **language=eng** sets the subtitle language to English. | * **language=eng** sets the subtitle language to English. | ||
* The value for this option uses the [[https:// | * The value for this option uses the [[https:// | ||
+ | |||
+ | </ | ||
---- | ---- |
ffmpeg/subtitles/add_subtitles_from_an_ass_file.1735595123.txt.gz · Last modified: 2024/12/30 21:45 by peter