Skip to content

Versions and Upgrading

m4bwav edited this page Oct 1, 2026 · 1 revision

Every release of TrailerClipper, what 1.x was, and what changes when you move to 2.0.0, with the evidence from replaying 1.1.0's recorded behaviour.

Releases

From nuget.org, read on 2026-10-01 (UTC). 1.0.6 was never published.

Version Published Downloads Notes
2.0.0 2026-09-27 36 (library), 36 (tool) current; both packages
2.0.0-beta.1 2026-09-27 39 (library), 31 (tool) the release rehearsal of 2.0.0, same changes
1.1.0 2016-09-29 1840 added -z; last 1.x
1.0.9 2015-10-20 1608
1.0.8 2015-10-06 1923
1.0.7 2015-10-05 1724
1.0.5 2015-09-30 1665
1.0.4 2015-09-30 1625
1.0.3 2015-09-29 1594
1.0.2 2015-09-29 1621
1.0.1 2015-09-29 1644
1.0.0 2015-09-29 1674

TrailerClipper.Tool exists only as 2.0.0-beta.1 and 2.0.0. Every version is listed and none is deprecated yet. The 1.x downloads are spread almost evenly over the versions, which looks like mirrors rather than users. The GitHub releases start at v2.0.0-beta.1; the CHANGELOG has 2.0.0 in full and one line for 1.1.0.

What 1.x was

1.1.0 is a .NET Framework 4.0 library for Windows. Its package declares no dependencies but carries MediaToolkit.dll, with a 2015 build of ffmpeg inside it, and System.Net.Http.dll. Its TrailerClipper class needs System.Web.Extensions from .NET Framework, for the settings file. The tclipper console app was in the repository but never published.

Installed from nuget.org today, 1.1.0 still runs on .NET Framework 4.8: the repository's recording of 148 calls (tests/Golden/1.1.0.json, made on 2026-09-27) replayed against it with 148 of 148 identical. On .NET 10 it loads, and its command-line interpreter, options and help text work, but every TrailerClipper call throws:

## golden: 1.1.0 on net10.0
runtime: .NET 10.0.12
ffprobe: ffprobe version 9.0.1-full_build-www.gyan.dev Copyright (c) 2007-2026 the FFmpeg developers
cases: recorded 148, replayed 148
identical: 114 of 148
differing, by named exception: E10 6, needs System.Web.Extensions 28

The 28 are every call on TrailerClipper, each throwing FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, ...'; the 6 differ only in how .NET words an argument exception. Versions 1.0.0 to 1.0.9 were not tested.

Moving from 1.x to 2.0.0

The namespace (TrailerClipperLib), every public type, and every method with its parameter names stay as they were, so code that compiled against 1.1.0 compiles against 2.0.0. What to do:

  1. Install ffmpeg once (Getting started). 2.0.0 carries no ffmpeg; without one, the first media file throws ToolNotFoundException.
  2. Target .NET Framework 4.6.2 or later, or any .NET Core or .NET 5+ (1.1.0 targeted 4.0). The library now runs on Linux and macOS too (Linux tested here; macOS not tested).
  3. Expect exceptions where 1.1.0 was silent: a missing path, a negative length, and files ffmpeg cannot read now throw (Errors and edge cases). ToolNotFoundException and the read failures are InvalidOperationExceptions.
  4. Check hand-written settings files: single-quoted strings and unquoted property names are refused now (Errors and edge cases). Files 1.1.0 wrote read back unchanged, and 2.0.0 writes the same text.
  5. For the command line, install the tool (Getting started); it adds exit codes and --install-ffmpeg.

What changed in the answers

The repository's capture program (tests/Golden/Capture) was run again today against 1.1.0 and 2.0.0 from nuget.org, each as a child process, one after the other, with ffmpeg 9.0.1 on Windows. Only the pinned version changed in the copy (and System.Text.Json 9.0.9 to 10.0.12, which 2.0.0's netstandard2.0 build requires). Each answer was compared with the 1.1.0 recording by parsed value:

Run Identical to the 1.1.0 recording Differing, with the CHANGELOG entry that names each
1.1.0 on .NET Framework 4.8 148 of 148 none
2.0.0 on .NET Framework 4.8 121 of 148 E1 3, E2 1, E3 4, E4 3, E5 4, E6 2, E7 1, E9 9
2.0.0 on .NET 10 113 of 148 the same 27, and E10 8 (argument messages worded the .NET Core way)

Every difference is one the CHANGELOG lists; none is unexplained. E8 (paths joined for Linux and macOS) and E11 (settings files) do not show in this recording, which was made on Windows and has no bad settings files. Some of the differences, as the comparison printed them ("recorded" is 1.1.0, "today" is 2.0.0 on .NET Framework 4.8; <work> is the capture's scratch folder):

E1, RemoveIntros on a single file: 1.1.0 refused every existing file; 2.0.0 clips it.

#130 RemoveIntros(file, 1500)|en-US|null [E1]
    result recorded: {"$throws":"ArgumentOutOfRangeException: File or directory at: media/a.wav does not exist, nothing to clip.\nParameter name: media/a.wav"}
    result today:    "(void)"
    console recorded: ""
    console today:    "Starting on file: media/a.wav\nFinished on trimming file, output: <work>\\c130\\media\\clipped\\a.wav\n"
    files recorded: {"media/a.wav":10000,"media/b.mp3":10000,"media/notes.txt":9}
    files today:    {"media/a.wav":10000,"media/b.mp3":10000,"media/clipped/a.wav":8500,"media/notes.txt":9}

E3, an intro alone on the command line: 1.1.0 took the intro length for the path.

#15 ParseCommandLineArgs|en-US|["-i","1500","media"] [E3]
    result recorded: null
    console recorded: "Incorrect parameter, input directory or file: '1500' does not exist\n"
    console today:    ""

E6, a negative trailer: 1.1.0 treated it as none and copied the whole file; 2.0.0 refuses it before touching anything.

#126 RemoveTrailers(file, -1000)|en-US|null [E6]
    result recorded: "(void)"
    result today:    {"$throws":"ArgumentOutOfRangeException: Trailer length must not be negative: -1000\nParameter name: options"}

E9, MP3 length: 1.1.0's bundled ffmpeg left the encoder's padding in (lengths in milliseconds, measured by ffprobe 9.0.1).

#121 RemoveTrailers(file mp3, 2000)|en-US|null [E9]
    files recorded: {"media/a.wav":10000,"media/b.mp3":10000,"media/clipped/b.mp3":8033,"media/notes.txt":9}
    files today:    {"media/a.wav":10000,"media/b.mp3":10000,"media/clipped/b.mp3":8000,"media/notes.txt":9}

The rest, in short:

  • E2: a missing path threw nothing in 1.1.0.
  • E4: 2000,5 was read as 20005 under en-US, and 2000.5 as 20005 under de-DE.
  • E5: an empty argument list and a bad intro length threw instead of printing a message.
  • E6: a cut longer than the file wrote a copy nothing could read.
  • E7: a file ffmpeg could not read was reported as "Finished" and silently not written. The repository's own test (GoldenTests.cs) holds the same exceptions as a table, so a new difference fails the build.

Clone this wiki locally