Skip to main content

Trim End Credits

FFmpeg Builder: Trim End Credits

This flow element analyzes the end of a video to detect whether it contains an end credits sequence. If found, it adjusts the planned encoding duration to cut the video before or at the start of the credits.

It does not immediately cut the file. Like all FFmpeg Builder flow elements, it updates the FFmpeg Builder model used later in the flow. This allows you to combine this element with other trimming, filtering, or encoding steps in a single FFmpeg command.


Specifically, this flow element:

  • Analyzes the last portion of the video to detect typical end credits patterns.
  • Requires that the detected credits sequence meets a minimum duration threshold you define.
  • Optionally adds padding to the cut point so that some credits remain, preventing an abrupt ending.
  • If valid credits are found, updates the FFmpeg Builder model’s output duration so encoding will stop before or at the credits.

This is especially useful for automatically removing long rolling credits or black screens at the end of movies, TV episodes, or other videos.


Fields

Minimum Duration

The minimum length of the credits sequence (in seconds) required to trigger trimming.

Only credits of at least this length will be considered for cutting, preventing accidental trimming of short text overlays or quick logos.

Padding

Optional number of seconds to add as padding before the cut point.

This allows you to keep a bit of the credits instead of cutting immediately, resulting in a smoother, less abrupt ending.


Outputs

  1. Credits detected
    End credits were detected. The FFmpeg Builder model has been updated to trim the video at this point when the FFmpeg Builder Executor runs.

  2. Not detected
    No end credits were detected. The encoding settings remain unchanged, so the entire video will be preserved when the FFmpeg Builder Executor runs.