From 10636e24e2d13001f5ee81e2b80d1caa76522410 Mon Sep 17 00:00:00 2001 From: Ashley Blewer Date: Sun, 10 Dec 2017 21:38:55 -0500 Subject: [PATCH 1/2] adds embedded subtitles command c/o @federicomenaquintero #289 --- index.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/index.html b/index.html index c24795b..e275644 100644 --- a/index.html +++ b/index.html @@ -1224,6 +1224,24 @@ + + + +
+

Embed a subtitle file into a movie file

+

ffmpeg -i input_file -i subtitles_file.srt -c copy -c:s mov_text output_file

+
+
ffmpeg
starts the command
+
-i input_file
path, name and extension of the input file
+
-i subtitles_file.srt
path to subtitles file
+
-c copy
enable stream copy (no re-encode)
+
-c:s mov_text
Encode subtitles using the mov_text codec. Note: The mov_text codec works for mp4 and mov containers. For the mkv container, acceptable formats are ass, srt, and ssa.
+
output_file
path, name and extension of the output file
+
+

Note: -c:s is a shortcut for -scodec

+ +
+

Create thumbnails or GIFs

From 42189e5b94976ba0253fb10d30df48693d1916b4 Mon Sep 17 00:00:00 2001 From: Ashley Blewer Date: Mon, 11 Dec 2017 09:22:22 -0500 Subject: [PATCH 2/2] capitalize container/sub formats --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index e275644..7480628 100644 --- a/index.html +++ b/index.html @@ -1229,19 +1229,20 @@

Embed a subtitle file into a movie file

-

ffmpeg -i input_file -i subtitles_file.srt -c copy -c:s mov_text output_file

+

ffmpeg -i input_file -i subtitles_file -c copy -c:s mov_text output_file

ffmpeg
starts the command
-i input_file
path, name and extension of the input file
-
-i subtitles_file.srt
path to subtitles file
+
-i subtitles_file
path to subtitles file, e.g. subtitles.srt
-c copy
enable stream copy (no re-encode)
-
-c:s mov_text
Encode subtitles using the mov_text codec. Note: The mov_text codec works for mp4 and mov containers. For the mkv container, acceptable formats are ass, srt, and ssa.
+
-c:s mov_text
Encode subtitles using the mov_text codec. Note: The mov_text codec works for MP4 and MOV containers. For the MKV container, acceptable formats are ASS, SRT, and SSA.
output_file
path, name and extension of the output file

Note: -c:s is a shortcut for -scodec

+

Create thumbnails or GIFs