🎬 ByteSize
A portable Windows screen recorder with a file size target.
Why ByteSize | Getting started | Recording | GIFs | Build
I wanted a recorder in the spirit of GifCam for the little things. A bug that's easier to show than explain. A quick demo for a friend. A GIF that somehow came out at 8.1 MB when the upload limit is 8.
With ByteSize, you put a frame around the bit you want, record it, and trim it down. Give the encoder a size to aim for and you can look at the actual file before you save it. The recording and encoding happen on your machine.
🏴 Software belongs in the commons
People should be able to share the tools they use. If you fix something in ByteSize or make it work better for your community, you can pass along your version too.
I'm tired of seeing everyday jobs like recording your own screen turned into another place to charge rent. A company gets to decide which features you can use and what it costs to export a file you made. Keeping a copy of the program in a folder you control gives you a say in how you use it. Putting the code in the public domain means you can give that same freedom to someone else.
That's what mutual aid looks like here. Send a friend a copy, share a fix, or take whatever's useful for something you're making. I like the idea that a little tool I needed might save somebody else an afternoon.
📦 Getting started
- Put
bytesize.exein a folder you can write to and run it. ByteSize uses the Windows WebView2 Runtime. - Let the first-run setup download and verify FFmpeg. If you already have a build you want to use, put
ffmpeg.exein thebinfolder beside ByteSize and choose Use existing FFmpeg. - Set shortcuts for start, stop, and pause or resume. These work while another app has focus, so you can stay in whatever you're recording.
🎥 Recording
| Mode | What it captures |
|---|---|
| Display | The primary display. |
| Window | A capture region fitted to the window you pick. |
| Region | The area inside the floating frame. Move it by the grip and resize it from a corner. |
The region controls have 720p and 1080p presets, plus wide, square, and portrait ratios. Enter exact values for position and size if you know them. For smaller adjustments you can use the plus and minus buttons or drag the number itself.
Auto resolution caps the longest side at 1920 pixels. Use Full to keep more detail when you're recording something like small text. You can record at the display rate or pick a capture frame rate. The export frame rate is set separately in the editor.
The pointer and system audio each have their own switch. If you record audio, you can still turn Keep audio off for an MP4 or WebM export. Pause and resume let you wait for something to load without including the wait in your clip. Handy if the bit you're trying to demonstrate takes three attempts to happen again.
✂️ Trimming a recording
When you stop recording, ByteSize opens Trim with the original recording and a filmstrip. Play it back or scrub to the moment you want to keep.
- Drag the yellow handles to set the start and end. While holding a handle, move the pointer farther above or below the timeline to slow it down. You can make a small correction without finding the exact pixel on a long timeline.
- Enter the start or end time directly if you already know it. You can also park the playhead where you want it and set either end to that point.
- Use Crop for anything around the edges that you want to leave out of the saved picture.
🎞️ Working with GIFs
Cutting frames out of the middle
Open Remove frames beneath the trim bar. The detailed filmstrip follows the playhead. Drag it to browse, flick it to move farther, or scroll while the pointer is over it. The side markers and the bar underneath help you see where you are in the trimmed clip.
Click a frame to inspect it. Shift-click to select a range or Ctrl-click to pick individual frames. Remove selected cuts the selection and closes the gaps in the export. Use Restore selected or Restore all if you change your mind. The cuts stay at the same times in the source when you change the export FPS.
Good for getting rid of the one frame where you opened the wrong menu.
Transparency and compression
Use the eyedropper on the recording preview to pick the background colour. The tolerance controls how close a pixel needs to be to that colour to become transparent. Render the GIF to check the result. The review view uses a checkerboard behind the image, so you can see what actually became transparent.
The palette size and dithering settings let you decide how to handle colour. Choose Floyd-Steinberg, Bayer, or turn dithering off. If the size limit is tight, use the GIF budget setting to favour resolution or frame rate, or leave it on Balanced.
📤 Reviewing and saving
| Format | Export options |
|---|---|
| GIF | Frame cuts, palette size, dithering, and colour key transparency. |
| WebM | VP9 or AV1, depending on what's available in your FFmpeg build. |
| MP4 | H.264 or H.265, depending on what's available in your FFmpeg build. |
Set a target size and render a preview. Review output shows the encoded file's size, dimensions, frame rate, and duration. It tells you if the file landed over the target. You can switch between the recording and the encoded result before choosing whether to change the settings.
When you save from Review output, ByteSize copies that exact file to your chosen destination. That's rather satisfying when you've spent a few goes getting a GIF just right.
You can also save directly from Trim. Set the filename and destination in the app either way.
🔒 Portability and privacy
Keep the executable in a folder you control. ByteSize puts its settings, FFmpeg, the WebView2 profile, and working files beside it. Move the folder to a USB stick and your settings come with you. You can choose a different folder for exports.
bytesize.exe
config.toml Settings and shortcuts
bin/ffmpeg.exe Encoder
output/ Default save folder
temp/ Temporary recordings and previews
temp/webview/ WebView2 profile
logs/ Diagnostic logs
The FFmpeg setup downloads an encoder, and the updater checks Gitea for new releases. You can turn off the launch check in Settings. Recordings and previews are processed locally.
🔧 If something gets stuck
| What happened | What to check |
|---|---|
| FFmpeg setup comes back after moving the app | Check that bin/ffmpeg.exe is beside the executable in its original folder layout. |
| A shortcut won't register | Pick a different combination in Settings > Shortcuts. Another app may have it. |
| An encoder is marked unavailable | Check Settings > Export for the codecs present in the installed FFmpeg build. |
| The result is bigger than the target | Check the actual output size in Review. For a GIF, try a lower frame rate or change the budget priority, then render another preview. |
The Diagnostics pane shows the app and FFmpeg versions and can open the log folder.
🛠️ Building from source
You'll need Node.js with npm, Rust 1.94 or newer, and the Windows C++ build tools. Use a Windows SDK with fxc.exe so the capture shaders can be compiled.
git clone https://git.lashman.live/lashman/bytesize.git
cd bytesize
npm ci
npm run tauri dev
Portable build
npm run tauri build -- --no-bundle
The executable lands at src-tauri/target/release/bytesize.exe. Run powershell -File verify.ps1 from the repository root to check the frontend build and types, then the Rust checks, lints, and tests.
How it's put together
The desktop app uses Tauri v2 with a Rust backend and a Svelte 5 frontend.
| Part | Where to look |
|---|---|
| App, trim controls, and filmstrip | src/lib/ has the views, GSAP motion, and Tabler icons. |
| Screen capture and system audio | src-tauri/src/capture.rs uses Windows Graphics Capture. src-tauri/src/audio.rs records system audio. |
| Floating frame | src/lib/Overlay.svelte draws the controls, with native window handling in src-tauri/src/overlay_chrome.rs. |
| Preview and export | The Rust backend runs FFmpeg in src-tauri/src/encode.rs and handles review and save in src-tauri/src/lib.rs. |
🤝 Feedback and patches
If something looks off, open an issue with what you were trying to record, which output format you used, and what happened. A short clip of the bug helps me see what you saw.
If you make a fix or adapt the app for a group you work with, feel free to share it back. Thanks for giving it a go!
📜 Licence
ByteSize is dedicated to the public domain. Copy it, change it, or pass it on to someone who needs it. CC0 1.0 Universal
The FFmpeg build you install is licensed separately. FFmpeg licensing