Time has to be expressed as timestamp x time base
Unified · Split
| @@ -708,12 +708,12 @@ ffmpeg -i INPUT -c copy -bsf noise=1 output.mkv · 707 unmodified lines | ||
| 708 | 708 | Drop every video packet not marked as a keyframe after timestamp 30s but do not |
| 709 | 709 | modify any of the remaining packets. |
| 710 | 710 | @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 | |
| 712 | 712 | @end example |
| 713 | 713 | |
| 714 | 714 | Drop one second of audio every 10 seconds and add some random noise to the rest. |
| 715 | 715 | @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 | |
| 717 | 717 | @end example |
| 718 | 718 | |
| 719 | 719 | @section null |