Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 24
    Yes, good to mention trim and atrim. I usually use these when filtering, but users should note that filtering requires re-encoding.
    – llogan
    Commented Apr 7, 2015 at 17:28
  • You are my hero. I badly needed a filter that did this.
    – fahadash
    Commented Dec 24, 2016 at 5:55
  • Is this losless or does this re-encode the video?
    – fap
    Commented Dec 8, 2021 at 19:10
  • 1
    @fap The comment above yours literally answers this. Commented Jul 22, 2022 at 15:44
  • The trim filter also takes named arguments start and end. Using named arguments lets you omit the others, as in trim=end=X (from start to X) and trim=start=X (from X to end). If you want a colon in X (e.g., the time 5:39), you need to escape it, as in trim=end=5\:39 so that it doesn't get interpreted as the field separator. Commented Jun 22, 2023 at 20:31