Changed metadata print option to accept general urls
authorSami Hult <sami.hult@gmail.com>
Fri, 8 Jul 2016 12:53:15 +0000 (12:53 +0000)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Jul 2016 22:36:49 +0000 (00:36 +0200)
commitd4c8e931903a2b13cf0ccf454a705f688d3d467b
tree25afb58e8c02374ffd722b5b5462d665608ccb8a
parente98ab799be9c5f0ab001729dc0ce2737cc2ae7da
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>
Changelog
doc/filters.texi
libavfilter/f_metadata.c