From 0c03f57df6a8568860b14df27df35a7b6a80cd57 Mon Sep 17 00:00:00 2001 From: Peter B Date: Thu, 18 May 2017 10:24:13 +0200 Subject: [PATCH] Added printf-number examples and fixed requested changes. --- index.html | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 65fa26a..90093db 100644 --- a/index.html +++ b/index.html @@ -1570,19 +1570,29 @@ e.g.: ffmpeg -f concat -safe 0 -i mylist.txt -c copy output_fileSplit file into segments

ffmpeg -i input_file -c copy -map 0 -f segment -segment_time 60 -reset_timestamps 1 output_file-%03d.mkv

-
ffmpeg
starts the command
-
-i input_file
takes in a normal file
-
-c copy
use stream copy mode to re-mux instead of re-encode.
+
ffmpeg
Starts the command.
+
-i input_file
Takes in a normal file.
+
-c copy
Use stream copy mode to re-mux instead of re-encode.
-map 0
Tells ffmpeg to map all streams of the input to the output.
-
-f segment
use segment muxer for generating the output.
+
-f segment
Use segment muxer for generating the output.
-segment_time 60
Set duration of each segment (in seconds). This example creates segments with max. duration of 60s each.
-reset_timestamps 1
Reset timestamps of each segment to 0. Meant to ease the playback of the generated segments.
output_file-%03d.mkv
- path, name and extension of the output file.
- In order to have an incrementing number in each segment filename, FFmpeg supports printf-style syntax for a counter. - In this example, '%03d' means: 3-digits, zero-padded
- For example: output_file-000.mkv, output_file-001.mkv, etc. +

+ Path, name and extension of the output file.
+ In order to have an incrementing number in each segment filename, FFmpeg supports printf-style syntax for a counter. +

+ +

+ In this example, '%03d' means: 3-digits, zero-padded
+ Examples: +

    +
  • %03d: 000, 001, 002, ... 999
  • +
  • %05d: 00000, 00001, 00002, ... 99999
  • +
  • %d: 0, 1, 2, 3, 4, ... 23, 24, etc.
  • +
+

@@ -1590,7 +1600,7 @@ e.g.: ffmpeg -f concat -safe 0 -i mylist.txt -c copy output_file - +