History

doc/bitstream_filters: correct variable use in examples

Time has to be expressed as timestamp x time base

Gyan Doshi committed 1 year ago

Commit 00be24c1 parent c7819571 file · +2 −2Browse files

Unified · Split

doc/bitstream_filters.texi+2−2
@@ -708,12 +708,12 @@ ffmpeg -i INPUT -c copy -bsf noise=1 output.mkv · 707 unmodified lines
708Drop every video packet not marked as a keyframe after timestamp 30s but do not708Drop every video packet not marked as a keyframe after timestamp 30s but do not
709modify any of the remaining packets.709modify any of the remaining packets.
710@example710@example
711ffmpeg -i INPUT -c copy -bsf:v noise=drop='gt(t\,30)*not(key)' output.mkv711ffmpeg -i INPUT -c copy -bsf:v noise=drop='gt(pts*tb\,30)*not(key)' output.mkv
712@end example712@end example
713 713
714Drop one second of audio every 10 seconds and add some random noise to the rest.714Drop one second of audio every 10 seconds and add some random noise to the rest.
715@example715@example
716ffmpeg -i INPUT -c copy -bsf:a noise=amount=-1:drop='between(mod(t\,10)\,9\,10)' output.mkv716ffmpeg -i INPUT -c copy -bsf:a noise=amount=-1:drop='between(mod(pts*tb\,10)\,9\,10)' output.mkv
717@end example717@end example
718 718
719@section null719@section null

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t