From b406f387c80956a4f04ad69f524b7092660ff823 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sat, 8 Jul 2017 12:37:59 +0200 Subject: avcodec/noise_bsf: add support for dropping packets Signed-off-by: Marton Balint --- doc/bitstream_filters.texi | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'doc/bitstream_filters.texi') diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 926610ca7b..2dffe021f9 100644 --- a/doc/bitstream_filters.texi +++ b/doc/bitstream_filters.texi @@ -220,19 +220,27 @@ ffmpeg -i INPUT.avi -codec copy -bsf:v mpeg4_unpack_bframes OUTPUT.avi @section noise -Damages the contents of packets without damaging the container. Can be -used for fuzzing or testing error resilience/concealment. +Damages the contents of packets or simply drops them without damaging the +container. Can be used for fuzzing or testing error resilience/concealment. Parameters: +@table @option +@item amount A numeral string, whose value is related to how often output bytes will be modified. Therefore, values below or equal to 0 are forbidden, and the lower the more frequent bytes will be modified, with 1 meaning every byte is modified. +@item dropamount +A numeral string, whose value is related to how often packets will be dropped. +Therefore, values below or equal to 0 are forbidden, and the lower the more +frequent packets will be dropped, with 1 meaning every packet is dropped. +@end table +The following example applies the modification to every byte but does not drop +any packets. @example ffmpeg -i INPUT -c copy -bsf noise[=1] output.mkv @end example -applies the modification to every byte. @section null This bitstream filter passes the packets through unchanged. -- cgit v1.2.3