diff options
author | Sami Hult <sami.hult@gmail.com> | 2016-07-08 12:53:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-07-10 00:36:49 +0200 |
commit | d4c8e931903a2b13cf0ccf454a705f688d3d467b (patch) | |
tree | 25afb58e8c02374ffd722b5b5462d665608ccb8a /doc | |
parent | e98ab799be9c5f0ab001729dc0ce2737cc2ae7da (diff) |
Changed metadata print option to accept general urls
This is an - once again - updated patch, that uses avio_write instead
of avio_puts to stream clean text output without null characters. Works
now for me as intended.
Changes metadata filter to accept general urls as file argument without
breaking former behaviour. As a byproduct, it also allows for writing to
file "-" if specified as "file:-".
Example:
ffmpeg -i test.wav -filter_complex "silencedetect=n=-40dB:d=0.1,ametadata=mode=print:file='pipe\:4'" -f null
Signed-off-by: Sami Hult <sami.hult@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index a8c2c8799d..42341ea9f3 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -9390,13 +9390,14 @@ Float representation of @code{value} from metadata key. @item VALUE2 Float representation of @code{value} as supplied by user in @code{value} option. -@end table @item file -If specified in @code{print} mode, output is written to the named file. When -filename equals "-" data is written to standard output. -If @code{file} option is not set, output is written to the log with AV_LOG_INFO -loglevel. +If specified in @code{print} mode, output is written to the named file. Instead of +plain filename any writable url can be specified. Filename ``-'' is a shorthand +for standard output. If @code{file} option is not set, output is written to the log +with AV_LOG_INFO loglevel. +@end table + @end table @subsection Examples @@ -9406,8 +9407,18 @@ loglevel. Print all metadata values for frames with key @code{lavfi.singnalstats.YDIF} with values between 0 and 1. @example -@end example signalstats,metadata=print:key=lavfi.signalstats.YDIF:value=0:function=expr:expr='between(VALUE1,0,1)' +@end example +@item +Print silencedetect output to file @file{metadata.txt}. +@example +silencedetect,ametadata=mode=print:file=metadata.txt +@end example +@item +Direct all metadata to a pipe with file descriptor 4. +@example +metadata=mode=print:file='pipe\:4' +@end example @end itemize @section mpdecimate |