Update README.md
Browse files
README.md
CHANGED
|
@@ -1,91 +1,170 @@
|
|
| 1 |
---
|
| 2 |
-
title: Pocket Video Trimmer
|
| 3 |
tags:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
-
# Pocket
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
-
#
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|---|---|
|
| 25 |
-
| MP4 / H.264 Β· MOV Β· WebM Β· most MKV | AVI Β· exotic codecs |
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
-
1
|
| 34 |
-
2. Double-click to open it in **Chrome or Edge**
|
| 35 |
-
3. Drag a video onto the page
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
**
|
| 48 |
|
| 49 |
-
**
|
| 50 |
|
| 51 |
-
**
|
| 52 |
|
| 53 |
-
**
|
| 54 |
-
- *Auto storyboard* β NΓN frames spread evenly across the selection
|
| 55 |
-
- *Manual storyboard* β pick the exact frames yourself, with thumbnails
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
-

|
| 60 |
|
| 61 |
-

|
| 62 |
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
| | Format |
|
| 68 |
-
|---|---|
|
| 69 |
| Video | MP4 (H.264 + AAC), WebM fallback |
|
| 70 |
| Pictures | PNG |
|
| 71 |
| Animation | GIF |
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
-
|
| 74 |
|
| 75 |
---
|
| 76 |
|
| 77 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
---
|
| 85 |
|
| 86 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
-
|
| 89 |
|
| 90 |
---
|
| 91 |
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
tags:
|
| 3 |
+
- video
|
| 4 |
+
- video-editing
|
| 5 |
+
- image-editing
|
| 6 |
+
- gif
|
| 7 |
+
- browser
|
| 8 |
+
- offline
|
| 9 |
+
- no-install
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Pocket Tools
|
| 13 |
|
| 14 |
+
Three self-contained editors, each a **single HTML file**. Download one, double-click it, drop your files on the page. No install, no upload, no account, no internet β every file makes **zero network requests**, so your media never leaves the machine.
|
| 15 |
|
| 16 |
+
| Chapter | File | For |
|
| 17 |
+
| --- | --- | --- |
|
| 18 |
+
| [1. Pocket Video Trimmer](#1-pocket-video-trimmer) | `Pocket_Video_Trimmer_vX.X.html` | Cutting, cropping, resizing, storyboards |
|
| 19 |
+
| [2. Pocket Video Joiner](#2-pocket-video-joiner) | `Pocket_Video_Combiner_vX.X.html` | Joining clips, side-by-side comparisons, notes |
|
| 20 |
+
| [3. Pocket Image Editor](#3-pocket-image-editor) | `Pocket_Image_Editor_vX.X.html` | Batch conversion, captions, GIFs |
|
| 21 |
+
|
| 22 |
+
Also in this repo: `Pocket_Auto_Splitter_(beta)_vX.X.html`, still in beta.
|
| 23 |
+
|
| 24 |
+
**Contents**
|
| 25 |
+
|
| 26 |
+
- [1. Pocket Video Trimmer](#1-pocket-video-trimmer)
|
| 27 |
+
- [Trimming and cropping](#trimming-and-cropping)
|
| 28 |
+
- [Pictures and storyboards](#pictures-and-storyboards)
|
| 29 |
+
- [Exact frame counts](#exact-frame-counts)
|
| 30 |
+
- [Trimmer inputs and outputs](#trimmer-inputs-and-outputs)
|
| 31 |
+
- [2. Pocket Video Joiner](#2-pocket-video-joiner)
|
| 32 |
+
- [Joining clips end to end](#joining-clips-end-to-end)
|
| 33 |
+
- [Side-by-side comparison](#side-by-side-comparison)
|
| 34 |
+
- [Notes on a video](#notes-on-a-video)
|
| 35 |
+
- [3. Pocket Image Editor](#3-pocket-image-editor)
|
| 36 |
+
- [Batch converting](#batch-converting)
|
| 37 |
+
- [Captions, labels and memes](#captions-labels-and-memes)
|
| 38 |
+
- [Working with GIFs](#working-with-gifs)
|
| 39 |
+
- [Requirements](#requirements)
|
| 40 |
+
- [Privacy](#privacy)
|
| 41 |
|
| 42 |
---
|
| 43 |
|
| 44 |
+
# 1. Pocket Video Trimmer
|
| 45 |
|
| 46 |
+
A whole video trimmer in one file. Drop in a video and cut it up.
|
| 47 |
|
| 48 |
+

|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
## Trimming and cropping
|
| 51 |
|
| 52 |
+
**Trim** β scrub a filmstrip timeline, drag the in/out handles, step frame by frame, or type exact times. A slim bar under the timeline slides the whole selection without changing its length.
|
| 53 |
|
| 54 |
+
**Multi-clip** β queue several cuts from one video and export them all at once into a folder you choose.
|
| 55 |
|
| 56 |
+
**Crop** β a draggable box with ratio presets: 16:9, 9:16, 1:1, 4:5, 2:3, 21:9 or custom.
|
|
|
|
|
|
|
| 57 |
|
| 58 |
+
**Resize and frame rate** β percentage presets or exact pixels, at any frame rate.
|
| 59 |
|
| 60 |
+
**Compression** β one slider from smaller file to bigger file, with a live size estimate.
|
| 61 |
|
| 62 |
+
**Extract audio only** β pull the selection's audio out on its own as a WAV, without exporting any video.
|
| 63 |
|
| 64 |
+

|
| 65 |
|
| 66 |
+
## Pictures and storyboards
|
| 67 |
|
| 68 |
+
**Snapshot** β save the frame you are parked on as a PNG.
|
| 69 |
|
| 70 |
+
**Animated GIF** β 256 colours per frame with dithering, so gradients don't band.
|
| 71 |
|
| 72 |
+
**Auto storyboard** β a grid of frames spread evenly across the selection, up to 10 Γ 10.
|
| 73 |
|
| 74 |
+
**Manual storyboard** β pick the exact frames yourself, with thumbnails, up to 25 of them.
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
Either sheet can number its cells 1, 2, 3β¦ in the top-left corner, which is useful when you are referring to specific frames later.
|
| 77 |
|
| 78 |
+

|
| 79 |
|
| 80 |
+

|
| 81 |
|
| 82 |
+
## Exact frame counts
|
| 83 |
+
|
| 84 |
+
**Fixed frame rate** hands frames to the encoder one at a time on a steady clock instead of letting the browser sample the canvas whenever it likes. The count corrects itself as it goes, so a busy machine doesn't drift.
|
| 85 |
|
| 86 |
+
**H3-compliant frame count** builds on that and rounds the total up to 17n + 5 frames β 5, 22, 39, 56, 73 and so on β taking the extra frames from real video after your out point. If there isn't enough video left, it steps down to the next valid count rather than inventing frames.
|
| 87 |
+
|
| 88 |
+
Worth knowing: the browser does the actual encoding, so treat the frame count as close rather than guaranteed. Check one output before trusting a whole batch.
|
| 89 |
+
|
| 90 |
+
**Background work** keeps storyboards and GIFs running while you are in another tab. Video export still pauses when the tab is hidden, because browsers stop decoding video for a background tab and you'd get one frozen frame with audio over the top.
|
| 91 |
+
|
| 92 |
+
## Trimmer inputs and outputs
|
| 93 |
+
|
| 94 |
+
| Works | Usually won't |
|
| 95 |
+
| --- | --- |
|
| 96 |
+
| MP4 / H.264 Β· MOV Β· WebM Β· most MKV | AVI Β· exotic codecs |
|
| 97 |
+
|
| 98 |
+
Any resolution or aspect ratio, portrait or landscape.
|
| 99 |
|
| 100 |
| | Format |
|
| 101 |
+
| --- | --- |
|
| 102 |
| Video | MP4 (H.264 + AAC), WebM fallback |
|
| 103 |
| Pictures | PNG |
|
| 104 |
| Animation | GIF |
|
| 105 |
+
| Audio | WAV |
|
| 106 |
+
|
| 107 |
+
Files are named from the source, timestamp and settings, for example `holiday_1m37s_1280x720_30fps.mp4`.
|
| 108 |
|
| 109 |
+
Export runs in real time β a 30-second clip takes about 30 seconds β and it re-encodes, so the output isn't bit-identical to the source. The compression slider controls that trade-off. GIFs grow quickly; a smaller width at 10β15 fps usually works best.
|
| 110 |
|
| 111 |
---
|
| 112 |
|
| 113 |
+
# 2. Pocket Video Joiner
|
| 114 |
+
|
| 115 |
+
For putting clips together, or setting them next to each other to compare.
|
| 116 |
+
|
| 117 |
+
## Joining clips end to end
|
| 118 |
|
| 119 |
+
Queue several videos and write them out as one continuous file, in the order you choose.
|
| 120 |
+
|
| 121 |
+
## Side-by-side comparison
|
| 122 |
+
|
| 123 |
+
Play two videos next to each other in the same frame. Handy for before-and-after: an original against a re-encode, two different settings, or two takes of the same shot.
|
| 124 |
+
|
| 125 |
+
## Notes on a video
|
| 126 |
+
|
| 127 |
+
Burn text onto a clip to mark what you are looking at β which settings produced it, what changed, what to look for. The note becomes part of the picture, so it survives being shared or re-uploaded.
|
| 128 |
+
|
| 129 |
+
---
|
| 130 |
+
|
| 131 |
+
# 3. Pocket Image Editor
|
| 132 |
+
|
| 133 |
+
Convert, label and resize images in batches, and edit GIFs.
|
| 134 |
+
|
| 135 |
+
## Batch converting
|
| 136 |
+
|
| 137 |
+
Drop in a pile of images β or a whole folder β and convert them all in one pass.
|
| 138 |
+
|
| 139 |
+
**Reads** HEIC/HEIF, WebP, JFIF, AVIF, PNG, JPEG, GIF, BMP and TIFF.
|
| 140 |
+
|
| 141 |
+
**Writes** PNG, JPEG, WebP, AVIF or GIF. AVIF output depends on your browser: Chrome and Edge support it, Safari and Firefox may not.
|
| 142 |
+
|
| 143 |
+
Resize by longest side, exact width and height, scale, or a maximum file size that auto-tunes quality to hit it. Sideways iPhone photos are straightened automatically. Output names take a prefix, a suffix and a starting number, so a batch comes out in sequence.
|
| 144 |
+
|
| 145 |
+
HEIC decoding works out of the box. For a guaranteed-offline setup, drop `heic2any.min.js` in the same folder as the HTML file and it will be picked up automatically.
|
| 146 |
+
|
| 147 |
+
## Captions, labels and memes
|
| 148 |
+
|
| 149 |
+
Add text layers to an image and drag them where you want.
|
| 150 |
+
|
| 151 |
+
Styles: WhatsApp-style bubble, meme text, a black box above, or a black box below. Each layer takes its own font, size, colour, background, padding, opacity, outline, position and rotation. Bubbles can be dragged, resized and rotated directly on the preview.
|
| 152 |
+
|
| 153 |
+
Emoji work in the text box β copy one from anywhere and paste it in. Whether it draws depends on the emoji your operating system has, so a very new one may come out as an empty box.
|
| 154 |
+
|
| 155 |
+
## Working with GIFs
|
| 156 |
+
|
| 157 |
+
Load an existing GIF and change its playback speed, its looping, and its transparency with an adjustable alpha cutoff. Labelled images can be written straight out as a GIF, which is a quick way to turn a set of stills into a captioned animation.
|
| 158 |
|
| 159 |
---
|
| 160 |
|
| 161 |
+
# Requirements
|
| 162 |
+
|
| 163 |
+
Chrome or Edge is the best bet. Firefox mostly works but falls back to WebM for video. No server, no dependencies, no build step, no sign-in.
|
| 164 |
+
|
| 165 |
+
# Privacy
|
| 166 |
|
| 167 |
+
Everything happens inside the browser tab. The files make no network requests at all β you can open one, disconnect from the internet, and it will still work exactly the same.
|
| 168 |
|
| 169 |
---
|
| 170 |
|