ffmpeg:subtitles:add_subtitles_from_a_srt_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_a_srt_file [2024/12/30 22:09] – peter | ffmpeg:subtitles:add_subtitles_from_a_srt_file [2024/12/30 22:10] (current) – peter | ||
---|---|---|---|
Line 6: | Line 6: | ||
ffmpeg -i input.mp4 -i subtitle.srt -c copy -c:s mov_text -metadata: | ffmpeg -i input.mp4 -i subtitle.srt -c copy -c:s mov_text -metadata: | ||
- | ffmpeg -i input.mp4 -i subtitle.ass -c copy -c:s srt -metadata: | + | ffmpeg -i input.mp4 -i subtitle.srt -c copy -c:s srt -metadata: |
</ | </ | ||
Line 14: | Line 14: | ||
* **-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 SRT file to MOV_TEXT format. | * **-c:s mov_text** sets the SRT file to MOV_TEXT format. | ||
+ | * **-c:s srt** sets the SRT file to SRT format for MKV. | ||
* **-metadata: | * **-metadata: | ||
* **language=eng** sets the subtitle language to English. | * **language=eng** sets the subtitle language to English. |
ffmpeg/subtitles/add_subtitles_from_a_srt_file.1735596561.txt.gz · Last modified: 2024/12/30 22:09 by peter