[FFmpeg-user] the trim filter
Paul B Mahol
onemda at gmail.com
Thu Jul 4 21:22:18 EEST 2024
On Thu, Jul 4, 2024 at 8:05 PM Mark Filipak <markfilipak.imdb at gmail.com>
wrote:
> Is there some secret to the trim filter?
>
> --filter_complex "split=2[i5][i6],
> [i5]trim=start_frame=481:end_frame=134047[o5],
> [i6]trim=start_frame=138745:end_frame=246719[o6],
> [o5][o6]concat=n=2"
>
> I get "dup=481", instead, and wind up with 20.061708[3..] seconds of black
> frames preceding the
> segment I want, and the frame rate is 19.181 FPS.
>
>
You need to rewrite audio timestamps, otherwise you get 'empty' gaps.
> Thanks -- Mark.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-user
mailing list