Repository navigation
The repository has no issues yet, so these are the questions the README, the code and the verification runs raised.
TrailerClipper has two overloads that take a list, one with an optional string? configFileOutputPath and one with an optional bool saveOptionsToFile, both from 1.1.0. A call with only the list matches both:
var clipper = new TrailerClipper();
clipper.RemoveTrailers(new[] { new TrailerClipperOptions("Episodes", 2000m) });error CS0121: The call is ambiguous between the following methods or properties: 'TrailerClipperLib.TrailerClipper.RemoveTrailers(System.Collections.Generic.IEnumerable<TrailerClipperLib.TrailerClipperOptions>, bool)' and 'TrailerClipperLib.TrailerClipper.RemoveTrailers(System.Collections.Generic.IEnumerable<TrailerClipperLib.TrailerClipperOptions>, string?)'
Pass the second argument, by name if you like:
var clipper = new TrailerClipper();
clipper.RemoveTrailers(new[] { new TrailerClipperOptions("Episodes", 2000m) { OutputToConsole = false } }, saveOptionsToFile: false);That one compiles and clips the four media files.
The library never touches the network: it runs the ffmpeg and ffprobe it finds, and throws ToolNotFoundException when there are none. tclipper --install-ffmpeg asks your package manager (winget, Homebrew, apt or dnf) to install ffmpeg, and that downloads (Commands).
In a clipped folder beside each original: for Episodes, in Episodes/clipped. With OutputDirectoryPath set (in code or in a settings file), in that folder, relative to the current folder (How files are clipped).
Only m4b, wav, mp3, mp4, flv, avi, mpg and mov are clipped by default, and other files are skipped without a message. Set ProcessEveryFile, or pass -a to tclipper.
ffmpeg writes whole audio frames, so formats with large frames can come out slightly long: a 10-second M4B cut by 2 seconds came out 8.011 s; MP4, MP3 and WAV came out exact (How files are clipped). The duration TrailerClipper starts from is rounded to hundredths of a second.
It re-encodes, with ffmpeg's defaults for the output's extension; it does not copy streams. For lossy formats that is a second generation of compression. TrailerClipper has no setting for codecs or bit rates.
No. It cuts the lengths you give it from the start and the end, the same for every file in a folder. Use one options entry per folder when the lengths differ (Recipes).
In code, TrailerClipperOptions.FFmpegDirectory. For the tool, the TRAILERCLIPPER_FFMPEG environment variable, PATH, or install it where the package managers put it (Configuration).
2.0.0 does; 1.x ran on Windows only. These pages were verified on Windows 11 and on Ubuntu 26.04; macOS was not tested here, but the repository's CI runs the tests and the tool on macOS. File names with a double quote, legal on Linux and macOS, are refused.
No, the command is tclipper. The help text is 1.1.0's and still names the old console app; on Linux and macOS, where case matters, type tclipper (Commands).
-o takes the next argument as the file name. There it took the folder Episodes, clipped the files, and then failed to write the settings into a folder, with an unhandled exception instead of a message (Commands). Put a file name after -o.
They are 1.1.0's names, kept so that existing code with named arguments and existing settings files keep working. Settings files are read with any letter case.
On .NET Framework 4.8, yes: it gave the same 148 answers today as when they were recorded. It needs its bundled 2015 ffmpeg and Windows, and it is not maintained. On .NET 10 its clipping calls fail (Versions and upgrading).
This wiki describes TrailerClipper and TrailerClipper.Tool 2.0.0 and was last updated on 2026-09-30. Both packages are MIT licensed. Report problems in the issues. On NuGet: TrailerClipper and TrailerClipper.Tool.
Using it
- Getting started
- Commands
- Configuration
- How files are clipped
- Errors and edge cases
- API reference
- Recipes
- FAQ
The releases
Contributing
Elsewhere