From d12d13aaaa51461ad21d3b62b16b84e4fedaebab Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Sat, 2 Jul 2016 07:22:41 +0200 Subject: [PATCH 1/3] MKV to MP4 added: MP4 cannot contain PCM sound --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index c56f479..e96be46 100644 --- a/index.html +++ b/index.html @@ -289,6 +289,7 @@
-i input_file
path and name of the input file
-c:v copy
re-encodes using the same video codec
-c:a aac
re-encodes using the AAC audio codec
+ Note that sadly MP4 cannot contain sound encoded by a PCM (Pulse-Code Modulation) audio codec.
For silent videos you can replace -c:a aac by -an.
output_file
path and name of the output file
From f32ad1930bfd9e2c743dc44cf0a5f73423976a00 Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Sat, 2 Jul 2016 07:34:00 +0200 Subject: [PATCH 2/3] added: extensions for containers --- index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index e96be46..bb7ee04 100644 --- a/index.html +++ b/index.html @@ -87,7 +87,8 @@
-vf yadif
Runs a deinterlacing video filter (yet another deinterlacing filter) on the new file
-c:a pcm_s16le
Tells ffmpeg to encode the audio stream in 16-bit linear PCM
-
output_file
path, name and extension of the output file
+
output_file
path, name and extension of the output file
+ The extension for the QuickTime container is .mov.
@@ -286,12 +287,14 @@

This will convert your Matroska (MKV) files to MP4 files.

ffmpeg
starts the command
-
-i input_file
path and name of the input file
+
-i input_file
path and name of the input file
+ The extension for the Matroska container is .mkv.
-c:v copy
re-encodes using the same video codec
-c:a aac
re-encodes using the AAC audio codec
Note that sadly MP4 cannot contain sound encoded by a PCM (Pulse-Code Modulation) audio codec.
For silent videos you can replace -c:a aac by -an.
-
output_file
path and name of the output file
+
output_file
path and name of the output file
+ The extension for the MP4 container is .mp4.
From 2845cbc14ffca2ee4813d2db5e2486cf02c077bc Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Sat, 2 Jul 2016 08:04:09 +0200 Subject: [PATCH 3/3] HTML5 housekeeping indents should now be nice on any HTML editor --- index.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index bb7ee04..17ecb9b 100644 --- a/index.html +++ b/index.html @@ -442,15 +442,15 @@
ffmpeg
starts the command
-i input_file
path, name and extension of the input file
-ss 00:02:00
sets in point at 00:02:00
-
-to 00:55:00
sets out point at 00:55:00
+
-to 00:55:00
sets out point at 00:55:00
-c copy
use stream copy mode (no re-encoding)
- Note: watch out when using -ss with -c copy if the source is encoded with an interframe codec (e.g., H.264). Since ffmpeg must split on i-frames, it will seek to the nearest i-frame to begin the stream copy.
+ Note: watch out when using -ss with -c copy if the source is encoded with an interframe codec (e.g., H.264). Since ffmpeg must split on i-frames, it will seek to the nearest i-frame to begin the stream copy.
output_file
path, name and extension of the output file
- +

Variation: trim video by setting duration, by using -t instead of -to

-

ffmpeg -i input_file -ss 00:05:00 -t 10 -c copy output_file

-
-
-ss 00:05:00 -t 10
Beginning five minutes into the original video, this command will create a 10-second-long excerpt.
+

ffmpeg -i input_file -ss 00:05:00 -t 10 -c copy output_file

+
+
-ss 00:05:00 -t 10
Beginning five minutes into the original video, this command will create a 10-second-long excerpt.
@@ -789,14 +789,14 @@ e.g.: ffmpeg -f concat -safe 0 -i mylist.txt -c copy output_fileffplay -framerate 5 input_file_%06d.ext

ffplay
starts the command
-
-framerate 5
plays image sequence at rate of 5 images per second
- Note: this low framerate will produce a slideshow effect.
+
-framerate 5
plays image sequence at rate of 5 images per second
+ Note: this low framerate will produce a slideshow effect.
-i input_file
path, name and extension of the input file
This must match the naming convention used! The regex %06d matches six-digit-long numbers, possibly with leading zeroes. This allows the full sequence to be read in ascending order, one image after the other.
- The extension for TIFF files is .tif or maybe .tiff; the extension for DPX files is .dpx (or even .cin for old files). Screenshots are often in .png format.
+ The extension for TIFF files is .tif or maybe .tiff; the extension for DPX files is .dpx (or even .cin for old files). Screenshots are often in .png format.

Notes:

-

If -framerate is omitted, the playback speed depends on the images’ file sizes and on the computer’s processing power. It may be rather slow for large image files.

+

If -framerate is omitted, the playback speed depends on the images’ file sizes and on the computer’s processing power. It may be rather slow for large image files.

You can navigate durationally by clicking within the playback window. Clicking towards the left-hand side of the playback window takes you towards the beginning of the playback sequence; clicking towards the right takes you towards the end of the sequence.