[FFmpeg-devel] [PATCH] doc/bitstream_filters: correct variable use in examples (PR #20110)

Gyan Doshi code at ffmpeg.org
Mon Aug 4 08:18:16 EEST 2025


PR #20110 opened by Gyan Doshi (GyanD)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20110
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20110.patch

Time has to be expressed as timestamp x time base

Signed-off-by: GyanD <ffmpeg at gyani.pro>


>From fb2038dc3e6bbcab1f73e2e39ece95588b1bccf4 Mon Sep 17 00:00:00 2001
From: GyanD <ffmpeg at gyani.pro>
Date: Mon, 4 Aug 2025 05:15:05 +0000
Subject: [PATCH] doc/bitstream_filters: correct variable use in examples

Time has to be expressed as timestamp x time base

Signed-off-by: GyanD <ffmpeg at gyani.pro>
---
 doc/bitstream_filters.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi
index 1e625ac913..28152de6fa 100644
--- a/doc/bitstream_filters.texi
+++ b/doc/bitstream_filters.texi
@@ -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
 modify any of the remaining packets.
 @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
 
 Drop one second of audio every 10 seconds and add some random noise to the rest.
 @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
 
 @section null
-- 
2.49.1



More information about the ffmpeg-devel mailing list