Skip to content
m4bwav edited this page Oct 1, 2026 · 1 revision

The repository has no issues yet, so these are the questions the README, the code and the verification runs raised.

Why does RemoveTrailers(list) not compile?

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.

Does it download ffmpeg, or anything else?

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).

Where are my clipped files?

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).

Why was my .mkv file not 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.

Why is a copy a few milliseconds longer than I asked?

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.

Does it keep the quality of the original?

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.

Can it find the intro by itself, or cut adverts from the middle?

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).

How do I tell it where ffmpeg is?

In code, TrailerClipperOptions.FFmpegDirectory. For the tool, the TRAILERCLIPPER_FFMPEG environment variable, PATH, or install it where the package managers put it (Configuration).

Does it work on Linux and macOS?

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.

The help says TClipper. Is that the command?

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).

Why did tclipper -o Episodes 2000 crash?

-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.

Why TrailerLengthInMilliSeconds with a capital S, and introLenghtInMilliseconds?

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.

Does 1.1.0 still work?

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).

Clone this wiki locally