summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-09 20:26:30 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-12-28 11:17:22 +0100
commit0156dd6530b998923405e0b21f31bc1fbe68e009 (patch)
treeabae6a5fe92faa8377904b1b3984e6f837e418dd /doc
parent7a8face9fb8ddcf7a26042a1c8019e1419a72951 (diff)
downloadffmpeg-streaming-0156dd6530b998923405e0b21f31bc1fbe68e009.zip
ffmpeg-streaming-0156dd6530b998923405e0b21f31bc1fbe68e009.tar.gz
lavf/segment: add segment_frames option
This is meant to address trac ticket #1483.
Diffstat (limited to 'doc')
-rw-r--r--doc/muxers.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi
index 03d2ef8..f3406eb 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -608,6 +608,14 @@ the specified time and the time set by @var{force_key_frames}.
Specify a list of split points. @var{times} contains a list of comma
separated duration specifications, in increasing order.
+@item segment_frames @var{frames}
+Specify a list of split video frame numbers. @var{frames} contains a
+list of comma separated integer numbers, in increasing order.
+
+This option specifies to start a new segment whenever a reference
+stream key frame is found and the sequential number (starting from 0)
+of the frame is greater or equal to the next value in the list.
+
@item segment_wrap @var{limit}
Wrap around segment index once it reaches @var{limit}.
@@ -652,6 +660,13 @@ In order to force key frames on the input file, transcoding is
required.
@item
+Segment the input file by splitting the input file according to the
+frame numbers sequence specified with the @var{segment_frame} option:
+@example
+ffmpeg -i in.mkv -codec copy -map 0 -f segment -segment_list out.csv -segment_frames 100,200,300,500,800 out%03d.nut
+@end example
+
+@item
To convert the @file{in.mkv} to TS segments using the @code{libx264}
and @code{libfaac} encoders:
@example
OpenPOWER on IntegriCloud