@frkntmbs/strapi-plugin-video-optimizer 1.0.2 → 1.0.3
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.
- package/README.md +44 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -257,7 +257,50 @@ Real-world encode runs on a Strapi 5 project with default plugin settings (`maxC
|
|
|
257
257
|
|
|
258
258
|
> **Note:** Optimization controls encoding — it does **not** guarantee a smaller file. Re-encoding an already compressed source at the same resolution may increase size. For size reduction, raise CRF, lower resolution, or stay on H.264 instead of switching to WebM.
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
### Test 1 — `video-2.mp4` (Custom → MP4, downscale)
|
|
261
|
+
|
|
262
|
+
**Source file**
|
|
263
|
+
|
|
264
|
+
| Property | Value |
|
|
265
|
+
|----------|-------|
|
|
266
|
+
| File | `video-2.mp4` |
|
|
267
|
+
| Resolution | 1080×1920 (9:16 portrait) |
|
|
268
|
+
| Duration | ~14.2 s |
|
|
269
|
+
| Video codec | H.264 |
|
|
270
|
+
| File size | 43.9 MB (46,009,883 bytes) |
|
|
271
|
+
| Bitrate | ~26 Mbps |
|
|
272
|
+
|
|
273
|
+
**Optimization profile**
|
|
274
|
+
|
|
275
|
+
| Setting | Value |
|
|
276
|
+
|---------|-------|
|
|
277
|
+
| Mode | **Custom** |
|
|
278
|
+
| Output format | **MP4 (H.264)** |
|
|
279
|
+
| Output dimensions | **432×768** (exact) |
|
|
280
|
+
|
|
281
|
+
**Result**
|
|
282
|
+
|
|
283
|
+
| Metric | Value |
|
|
284
|
+
|--------|-------|
|
|
285
|
+
| Output format | `.mp4` |
|
|
286
|
+
| Output resolution | 432×768 |
|
|
287
|
+
| Output size | 2.8 MB (2,897,316 bytes) |
|
|
288
|
+
| Size change | **−94%** (43.9 MB → 2.8 MB) |
|
|
289
|
+
| Encode time | ~22 s (first progress → completed) |
|
|
290
|
+
| Realtime factor | ~0.63× (14.2 s video in ~22 s on test host) |
|
|
291
|
+
|
|
292
|
+
**Server log (excerpt)**
|
|
293
|
+
|
|
294
|
+
```
|
|
295
|
+
[video-optimizer] Job … progress 9% (encoding, mp4) 01:10:44
|
|
296
|
+
[video-optimizer] Job … progress 52% (encoding, mp4) 01:10:55
|
|
297
|
+
[video-optimizer] Job … progress 95% (encoding, mp4) 01:11:06
|
|
298
|
+
[video-optimizer] Job … progress 98% (finalizing, mp4) 01:11:06
|
|
299
|
+
[video-optimizer] File 2 updated in Media Library (45MB → 3MB, .mp4)
|
|
300
|
+
[video-optimizer] Job … completed for file 2 → .mp4 (2897316 bytes)
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Downscaling a high-bitrate portrait clip produced a large file-size win. Log MB values are rounded (`Math.round`); actual sizes are in the table above. `ECONNRESET` lines in the server log came from the browser closing preview range requests while encoding continued in the background — the job still completed successfully.
|
|
261
304
|
|
|
262
305
|
## Permissions
|
|
263
306
|
|
package/package.json
CHANGED