1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

doc/bitstream_filters: correct variable use in examples

Time has to be expressed as timestamp x time base

Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
This commit is contained in:
Gyan Doshi
2025-08-04 05:15:05 +00:00
parent c78195788d
commit 00be24c2d7

View File

@ -708,12 +708,12 @@ ffmpeg -i INPUT -c copy -bsf noise=1 output.mkv
Drop every video packet not marked as a keyframe after timestamp 30s but do not Drop every video packet not marked as a keyframe after timestamp 30s but do not
modify any of the remaining packets. modify any of the remaining packets.
@example @example
ffmpeg -i INPUT -c copy -bsf:v noise=drop='gt(t\,30)*not(key)' output.mkv ffmpeg -i INPUT -c copy -bsf:v noise=drop='gt(pts*tb\,30)*not(key)' output.mkv
@end example @end example
Drop one second of audio every 10 seconds and add some random noise to the rest. Drop one second of audio every 10 seconds and add some random noise to the rest.
@example @example
ffmpeg -i INPUT -c copy -bsf:a noise=amount=-1:drop='between(mod(t\,10)\,9\,10)' output.mkv ffmpeg -i INPUT -c copy -bsf:a noise=amount=-1:drop='between(mod(pts*tb\,10)\,9\,10)' output.mkv
@end example @end example
@section null @section null