@ponderdev/justfits 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,18 @@
7
7
  font:13px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
8
8
  h1 { font-size:18px; margin:0 0 4px; }
9
9
  h2 { font-size:14px; margin:26px 0 6px; }
10
- pre.notices { white-space:pre-wrap; font:inherit; color:#c3c8d8; }
10
+ .notices { color:#c3c8d8; }
11
+ .notices h2 { font-size:14px; margin:26px 0 6px; color:#eceef5; }
12
+ .notices h3 { font-size:13px; margin:18px 0 4px; color:#eceef5; }
13
+ .notices h2:first-child { font-size:15px; margin-top:0; }
14
+ .notices p, .notices ul, .notices ol { margin:6px 0; }
15
+ .notices li { margin:3px 0; }
16
+ .notices code { font:11.5px ui-monospace, Menlo, monospace; background:#191b24; padding:1px 4px; border-radius:4px; }
17
+ .notices pre.code { background:#191b24; border:1px solid #2c2f3d; border-radius:9px; padding:10px 14px; overflow:auto; font:11.5px/1.5 ui-monospace, Menlo, monospace; }
18
+ .notices hr { border:0; border-top:1px solid #2c2f3d; margin:20px 0; }
19
+ .notices table { border-collapse:collapse; width:100%; margin:8px 0; font-size:12px; }
20
+ .notices th, .notices td { border:1px solid #2c2f3d; padding:6px 9px; text-align:left; vertical-align:top; }
21
+ .notices th { background:#191b24; }
11
22
  details { border:1px solid #2c2f3d; border-radius:9px; margin:8px 0; background:#191b24; }
12
23
  summary { padding:9px 14px; cursor:pointer; font-weight:600; }
13
24
  details pre { margin:0; padding:0 14px 14px; max-height:340px; overflow:auto;
@@ -15,116 +26,38 @@
15
26
  </style></head>
16
27
  <body>
17
28
  <h1>Licences and credits</h1>
18
- <pre class="notices"># Third party notices
19
-
20
- Just Fits is built on other people's work. This file records what it uses,
21
- under what terms, and where to get the original source. Full licence texts are
22
- in the `licenses/` folder and are also shown inside the app under
23
- **Licences and credits** in the footer.
24
-
25
- Just Fits itself is GPL-3.0-or-later. See `LICENSE`.
26
-
27
- ---
28
-
29
- ## FFmpeg
30
-
31
- Does all of the actual work: reading the file, deciding nothing, and encoding
32
- what it is told to. `ffprobe` from the same project reads the duration,
33
- resolution, frame rate and stream layout that `src/plan.js` does its
34
- arithmetic on.
35
-
36
- - Project: &lt;https://ffmpeg.org&gt;, source at &lt;https://github.com/FFmpeg/FFmpeg&gt;
37
- - FFmpeg's core is **LGPL v2.1 or later**. The builds shipped here are
38
- configured with `--enable-gpl` and `--enable-version3`, which pulls in the
39
- GPL-licensed parts and moves the whole binary to **GPL v3 or later**.
40
- - Full text: `licenses/ffmpeg-license.txt`, and the GPL itself in
41
- `licenses/gpl-3.0.txt`.
42
-
43
- **On the command line, FFmpeg is not bundled at all.** The `justfits` command
44
- uses whatever `ffmpeg` and `ffprobe` are on your PATH, so the terms that apply
45
- are those of the build your system installed, not of anything shipped here.
46
- Only the desktop app carries its own copy.
47
-
48
- **The bundled binaries are not built here and are not modified.** They are
49
- published builds, taken as-is:
50
-
51
- | Platform | Source |
52
- | --- | --- |
53
- | macOS | [evermeet.cx/ffmpeg](https://evermeet.cx/ffmpeg/) |
54
- | Windows | [BtbN/FFmpeg-Builds](https://github.com/BtbN/FFmpeg-Builds) |
55
-
56
- `scripts/fetch-ffmpeg.mjs` is what downloads them, and it is the complete
57
- record of where they came from. To see exactly how the copy on your machine
58
- was configured, including every library compiled into it:
59
-
60
- ```sh
61
- "/Applications/Just Fits.app/Contents/Resources/ffmpeg/ffmpeg-x64" -version
62
- ```
63
-
64
- ## x264
65
-
66
- The H.264 encoder. Every video Just Fits produces comes out of it, and the
67
- two-pass rate control that makes a file land on a target size is x264's.
68
-
69
- - Project: &lt;https://www.videolan.org/developers/x264.html&gt;
70
- - **Licence: GNU GPL v2 or later.** Full text: `licenses/gpl-2.0.txt`
71
- - Compiled into the FFmpeg builds above, unmodified.
72
-
73
- ## x265
74
-
75
- The H.265 encoder. Compiled into the same builds. Just Fits does not currently
76
- encode H.265, but the binary carries it, so it is listed.
77
-
78
- - Project: &lt;https://www.videolan.org/developers/x265.html&gt;
79
- - **Licence: GNU GPL v2 or later.** Full text: `licenses/gpl-2.0.txt`
80
-
81
- ## Everything else inside FFmpeg
82
-
83
- These builds also carry libopus, libvpx, libaom, libvorbis, libmp3lame,
84
- libwebp, libass, dav1d, libtheora, libspeex and around twenty more, each under
85
- its own terms, mostly BSD, LGPL or MIT. They are not listed individually here
86
- because the list belongs to the build rather than to this app, and it changes
87
- when the build does. `ffmpeg -version` prints the exact configuration of the
88
- copy you have, which is the authoritative answer for your binary.
89
-
90
- ## Electron
91
-
92
- The application shell: Chromium for the window, Node for the file handling.
93
-
94
- - Project: &lt;https://www.electronjs.org&gt;
95
- - **Licence: MIT.** Electron bundles Chromium and Node.js, whose combined
96
- licence text ships inside the app as `LICENSES.chromium.html`.
97
-
98
- ---
99
-
100
- ## Meeting the GPL terms
101
-
102
- FFmpeg as shipped here is GPL v3. Distributing it inside an application carries
103
- obligations, and Just Fits meets them like this:
104
-
105
- 0. **Compatibility.** Just Fits is GPL-3.0-or-later, the same licence, so there
106
- is no combination problem to solve.
107
- 1. **Notice.** This file, plus the in-app credits screen, names each component
108
- and its licence.
109
- 2. **Licence texts.** Shipped in full, both in `licenses/` and inside the app.
110
- 3. **Source.** Linked above. Nothing was modified for Just Fits; published
111
- builds are used as-is, so the upstream source is the complete source.
112
- 4. **Replacing them.** The binaries live in `vendor/ffmpeg` and are found by
113
- name at runtime. Drop your own GPL build in with the same filenames and the
114
- app uses it. Nothing is statically linked and nothing is patched.
115
-
116
- If you would rather have the source on a disk than a link, ask and it will be
117
- sent.
118
-
119
- ## A note on H.264 patents
120
-
121
- H.264 is covered by patents in some countries. Just Fits encodes H.264 with
122
- x264, an independent open source encoder, and the licence above covers the
123
- copyright in that software and nothing else. Patent licensing is a separate
124
- matter from the software licence. If you are redistributing Just Fits
125
- commercially or at scale, take your own advice on what that means where you
126
- operate.
127
- </pre>
29
+ <p>Built with the PonderDev kit 1.1.0, the parts every Just tool shares.</p>
30
+ <div class="notices"><h2>Third party notices</h2>
31
+ <p>Just Fits is built on other people's work. This file records what it uses, under what terms, and where to get the original source. Full licence texts are in the <code>licenses/</code> folder and are also shown inside the app under <strong>Licences and credits</strong> in the footer.</p>
32
+ <p>Just Fits itself is GPL-3.0-or-later. See <code>LICENSE</code>.</p>
33
+ <hr>
34
+ <h3>FFmpeg</h3>
35
+ <p>Does all of the actual work: reading the file, deciding nothing, and encoding what it is told to. <code>ffprobe</code> from the same project reads the duration, resolution, frame rate and stream layout that <code>src/plan.js</code> does its arithmetic on.</p>
36
+ <ul><li>Project: https://ffmpeg.org, source at https://github.com/FFmpeg/FFmpeg</li><li>FFmpeg's core is <strong>LGPL v2.1 or later</strong>. Every build shipped here is configured with <code>--enable-gpl</code>, which pulls in the GPL-licensed parts and moves the whole binary to the GPL. Builds that also carry <code>--enable-version3</code> are <strong>GPL v3 or later</strong>; builds without it are <strong>GPL v2 or later</strong>. The table below says which is which.</li><li>Full text: <code>licenses/ffmpeg-license.txt</code>, and the GPL itself in <code>licenses/gpl-3.0.txt</code> and <code>licenses/gpl-2.0.txt</code>.</li></ul>
37
+ <p><strong>On the command line, FFmpeg is not bundled at all.</strong> The <code>justfits</code> command uses whatever <code>ffmpeg</code> and <code>ffprobe</code> are on your PATH, so the terms that apply are those of the build your system installed, not of anything shipped here. Only the desktop app carries its own copy.</p>
38
+ <p><strong>The bundled binaries are not built here and are not modified.</strong> They are published builds, taken exactly as the publisher shipped them. The publishers differ per platform, and so do their configure lines, so the effective licence is stated per build rather than once for all of them:</p>
39
+ <table><thead><tr><th>Platform and arch</th><th>Publisher</th><th>Licence, from the configure line</th></tr></thead><tbody><tr><td>macOS x86_64</td><td>evermeet.cx/ffmpeg (https://evermeet.cx/ffmpeg/)</td><td><code>--enable-gpl --enable-version3</code>, so <strong>GPL v3 or later</strong></td></tr><tr><td>macOS arm64</td><td>osxexperts.net (https://www.osxexperts.net)</td><td><code>--enable-gpl</code>, no <code>--enable-version3</code>, so <strong>GPL v2 or later</strong></td></tr><tr><td>Windows x86_64</td><td>BtbN/FFmpeg-Builds (https://github.com/BtbN/FFmpeg-Builds) (the <code>win64-gpl</code> build)</td><td><code>--enable-gpl --enable-version3</code>, so <strong>GPL v3 or later</strong></td></tr><tr><td>Linux x86_64</td><td>BtbN/FFmpeg-Builds (https://github.com/BtbN/FFmpeg-Builds) (the <code>linux64-gpl</code> build)</td><td><code>--enable-gpl --enable-version3</code>, so <strong>GPL v3 or later</strong></td></tr></tbody></table>
40
+ <p>All four were read out of the builds those sources served, last on 15 November 2026. Publishers change their configure lines, so the copy on your machine is the authoritative answer for your copy.</p>
41
+ <p><code>scripts/fetch-ffmpeg.mjs</code> is what downloads them, and it is the complete record of where they came from. To see exactly how the copy on your machine was configured, including every library compiled into it:</p>
42
+ <pre class="code">"/Applications/Just Fits.app/Contents/Resources/ffmpeg/ffmpeg-x64" -version</pre>
43
+ <h3>x264</h3>
44
+ <p>The H.264 encoder. Every video Just Fits produces comes out of it, and the two-pass rate control that makes a file land on a target size is x264's.</p>
45
+ <ul><li>Project: https://www.videolan.org/developers/x264.html</li><li><strong>Licence: GNU GPL v2 or later.</strong> Full text: <code>licenses/gpl-2.0.txt</code></li><li>Compiled into the FFmpeg builds above, unmodified.</li></ul>
46
+ <h3>x265</h3>
47
+ <p>The H.265 encoder. Compiled into the same builds. Just Fits does not currently encode H.265, but the binary carries it, so it is listed.</p>
48
+ <ul><li>Project: https://www.videolan.org/developers/x265.html</li><li><strong>Licence: GNU GPL v2 or later.</strong> Full text: <code>licenses/gpl-2.0.txt</code></li></ul>
49
+ <h3>Everything else inside FFmpeg</h3>
50
+ <p>These builds also carry libopus, libvpx, libaom, libvorbis, libmp3lame, libwebp, libass, dav1d, libtheora, libspeex and around twenty more, each under its own terms, mostly BSD, LGPL or MIT. They are not listed individually here because the list belongs to the build rather than to this app, and it changes when the build does. <code>ffmpeg -version</code> prints the exact configuration of the copy you have, which is the authoritative answer for your binary.</p>
51
+ <h3>Electron</h3>
52
+ <p>The application shell: Chromium for the window, Node for the file handling.</p>
53
+ <ul><li>Project: https://www.electronjs.org</li><li><strong>Licence: MIT.</strong> Electron bundles Chromium and Node.js, whose combined licence text ships inside the app as <code>LICENSES.chromium.html</code>.</li></ul>
54
+ <hr>
55
+ <h3>Meeting the GPL terms</h3>
56
+ <p>FFmpeg as shipped here is GPL v3 or later, or GPL v2 or later on Apple Silicon (the table above). Distributing it inside an application carries obligations, and Just Fits meets them like this:</p>
57
+ <ol start="0"><li><strong>Compatibility.</strong> Just Fits is GPL-3.0-or-later, the same licence, so there is no combination problem to solve.</li><li><strong>Notice.</strong> This file, plus the in-app credits screen, names each component and its licence.</li><li><strong>Licence texts.</strong> Shipped in full, both in <code>licenses/</code> and inside the app.</li><li><strong>Source.</strong> Linked above. Nothing was modified for Just Fits; published builds are used as-is, so the upstream source is the complete source.</li><li><strong>Replacing them.</strong> The binaries live in <code>vendor/ffmpeg</code> and are found by name at runtime. Drop your own GPL build in with the same filenames and the app uses it. Nothing is statically linked and nothing is patched.</li></ol>
58
+ <p>If you would rather have the source on a disk than a link, ask and it will be sent.</p>
59
+ <h3>A note on H.264 patents</h3>
60
+ <p>H.264 is covered by patents in some countries. Just Fits encodes H.264 with x264, an independent open source encoder, and the licence above covers the copyright in that software and nothing else. Patent licensing is a separate matter from the software licence. If you are redistributing Just Fits commercially or at scale, take your own advice on what that means where you operate.</p></div>
128
61
  <h2>Full licence texts</h2>
129
62
  <details><summary>ffmpeg-license</summary><pre># License
130
63