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
708708 Drop every video packet not marked as a keyframe after timestamp 30s but do not
709709 modify any of the remaining packets.
710710 @example
711−ffmpeg -i INPUT -c copy -bsf:v noise=drop='gt(t\,30)*not(key)' output.mkv
711+ffmpeg -i INPUT -c copy -bsf:v noise=drop='gt(pts*tb\,30)*not(key)' output.mkv
712712 @end example
713713
714714 Drop one second of audio every 10 seconds and add some random noise to the rest.
715715 @example
716−ffmpeg -i INPUT -c copy -bsf:a noise=amount=-1:drop='between(mod(t\,10)\,9\,10)' output.mkv
716+ffmpeg -i INPUT -c copy -bsf:a noise=amount=-1:drop='between(mod(pts*tb\,10)\,9\,10)' output.mkv
717717 @end example
718718
719719 @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