[PATCH] doc/ffmpeg: note that -t is also an input option
--- doc/ffmpeg.texi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 8d646f5..3b09c8e 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -272,8 +272,13 @@ ffmpeg -i INPUT -map 0 -c copy -c:v:1 libx264 -c:a:137 libvorbis OUTPUT will copy all the streams except the second video, which will be encoded with libx264, and the 138th audio, which will be encoded with libvorbis. -@item -t @var{duration} (@emph{output}) -Stop writing the output after its duration reaches @var{duration}. +@item -t @var{duration} (@emph{input/output}) +When used as an input option (before @code{-i}), limit the @var{duration} of +data read from an input file. + +When used as an output option (before an output filename), stop writing the +output after its duration reaches @var{duration}. + @var{duration} may be a number in seconds, or in @code{hh:mm:ss[.xxx]} form. -to and -t are mutually exclusive and -t has priority. -- 1.9.0
On Mon, 7 Apr 2014 11:59:51 -0800, Lou Logan wrote:
--- doc/ffmpeg.texi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 8d646f5..3b09c8e 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -272,8 +272,13 @@ ffmpeg -i INPUT -map 0 -c copy -c:v:1 libx264 -c:a:137 libvorbis OUTPUT will copy all the streams except the second video, which will be encoded with libx264, and the 138th audio, which will be encoded with libvorbis.
-@item -t @var{duration} (@emph{output}) -Stop writing the output after its duration reaches @var{duration}. +@item -t @var{duration} (@emph{input/output}) +When used as an input option (before @code{-i}), limit the @var{duration} of +data read from an input file.
s/an/the nit fixed locally.
+When used as an output option (before an output filename), stop writing the +output after its duration reaches @var{duration}. + @var{duration} may be a number in seconds, or in @code{hh:mm:ss[.xxx]} form.
-to and -t are mutually exclusive and -t has priority.
On Mon, Apr 07, 2014 at 12:03:56PM -0800, Lou Logan wrote:
On Mon, 7 Apr 2014 11:59:51 -0800, Lou Logan wrote:
--- doc/ffmpeg.texi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 8d646f5..3b09c8e 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -272,8 +272,13 @@ ffmpeg -i INPUT -map 0 -c copy -c:v:1 libx264 -c:a:137 libvorbis OUTPUT will copy all the streams except the second video, which will be encoded with libx264, and the 138th audio, which will be encoded with libvorbis.
-@item -t @var{duration} (@emph{output}) -Stop writing the output after its duration reaches @var{duration}. +@item -t @var{duration} (@emph{input/output}) +When used as an input option (before @code{-i}), limit the @var{duration} of +data read from an input file.
s/an/the nit fixed locally.
LGTM [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Its not that you shouldnt use gotos but rather that you should write readable code and code with gotos often but not always is less readable
participants (2)
-
Lou Logan -
Michael Niedermayer