A small JavaFX desktop app for sorting game-capture recordings. Point it at the folder your capture software writes to, and it moves the newest recording (plus any clip marks you made while it was recording) into your keepers or clips folder.
This is a JavaFX rewrite of the older Swing app, VideoCaptureProcessor. Every feature of that app has been ported; see Status for what works and which ideas beyond it are still open.
How to use it, with screenshots, is in the user manual.
- JDK 25 or newer
- Maven 3.9+ (JavaFX 27 is pulled in as a Maven dependency; no separate JavaFX install is needed)
mvn clean package
java --enable-native-access=javafx.graphics -p "target/video-capture-processor-1.0.jar;target/modules" -m com.wheezy.apps.vidcapproc/com.wheezy.apps.vidcapproc.VideoCaptureProcessor
The app is a Java module (module-info.java) and runs on the module path, which is how JavaFX is supported. mvn package copies the runtime dependencies into target/modules, so run the command above from the project folder. The JavaFX jars copied there match the building system: Windows by default, Linux (x64 or ARM64) through profiles in pom.xml. On Linux, separate the two module path entries with : instead of ;.
In Eclipse, run the shared Maven Build configuration video-capture-processor (javafx run) (it runs javafx:run with the project folder as the working directory, so it uses the project's CapProcConfig.xml). A plain Java Application launch cannot put the dependencies on the module path.
Run the tests with mvn test. To run one test: mvn test -Dtest=FileMoveTaskTest.
One script per system builds the app (including the tests) and uses jpackage to create an application folder with its own Java runtime, so the PC running it needs neither Java nor JavaFX. The building PC needs the requirements. Package on the system you want to run on: jpackage cannot build for another one.
Double-click package.cmd, or run it from the project folder:
.\package.cmd -Destination D:\AppsThis creates D:\Apps\VideoCaptureProcessor\VideoCaptureProcessor.exe. Options: -Destination <folder> (default: the project's dist folder), -JavaHome <jdk folder> (default: the newest JDK 25+ in JAVA_HOME, on the PATH or in the usual install folders) and -SkipTests. Don't put the app under Program Files, where it can't save anything. The .exe icon is packaging/VideoCaptureProcessor.ico, made from the app's PNG icon; replace the file to change it.
Install a JDK 25 or newer (a distro package, or a .tar.gz unpacked under /opt), Maven and binutils, then run in the project folder:
bash package.sh --destination ~/Apps --menu-entryThis creates ~/Apps/VideoCaptureProcessor. Start it with VideoCaptureProcessor.sh inside that folder, or from the applications menu if you passed --menu-entry. Options: -d/--destination (default: dist), -j/--java-home, -m/--menu-entry, -s/--skip-tests. The tests open windows, so run the script from a desktop session; from SSH or another place without a display, pass --skip-tests.
The check that refuses to move a recording still being written only works on Windows, so on Linux wait until recording has stopped.
The app keeps its data in the folder it is started from. For a packaged app that is the application folder (double-clicking the .exe, or using VideoCaptureProcessor.sh or the menu entry), so leave a Windows shortcut's "Start in" set to it. To keep your current setup, copy CapProcConfig.xml, SavedGames.xml, images/ and clips/ there. Folder paths saved in the settings are specific to one PC and system. Running a script again replaces only the program files, so the data stays. Close the app first.
Open Settings in the app to choose:
- Capture Folder: where your capture software saves recordings
- Keepers Folder: where Keepers moves captures
- Clips Folder: where Clips moves captures
- Always On Top
- Segment length: how many seconds before each clip mark its LosslessCut segment starts (30 unless changed)
Settings are saved to CapProcConfig.xml in the directory you launch the app from (it is gitignored). Start the app from the same directory each time, or it will create a fresh config.
The same directory also holds the rest of the app's data, all gitignored: SavedGames.xml (your games), images/ (game icons), and clips/ (clip marks). If you used the Swing app, copy its SavedGames.xml into this directory and your games appear in the game manager.
Every feature of the Swing app has been ported. Ideas that haven't been built are in FEATURE_REQUESTS.md.
Working:
- Settings dialog (capture, keepers and clips folders, always on top)
- Keepers and Clips find the newest file in the capture folder and move it to the keepers or clips folder, along with other files whose names start with its name (what follows it is kept, so
<name>-seg1.mp4stays…-seg1.mp4) and its.clipsmark file, on a background thread. Exports LosslessCut leaves in the capture folder (a video's name, a dash and more) and its project files are never picked as the newest recording. If a folder isn't set, the app tells you to configure it in Settings. Both buttons are disabled while a move runs, and problems are reported in a dialog and logged to the console. A missing destination folder is created, a file that is already in the destination is never overwritten (nothing is moved and you are told), a recording that is still open in your recorder is not moved (nothing is moved and you are told), and if a move fails part way the files already moved are put back. - Mark Clip records how far into the current recording you are, so you can find the moment later. It reads the recording's start time from its filename, so capture files must be named like
yyyy-MM-dd HH-mm-ss(for example2024-05-17 20-14-06.mp4, the OBS filename format). Type an optional label first, and it is saved with the mark, as in12:34 (nice shot). Other recorders' names work too (2024_5_17_20_14_6,20240517201406): Settings can detect the format (the default) or be set to one. Marks are appended toclips/<capture name>.clipsin the working directory, one per line, and move with the capture when you press Keepers or Clips. - Edit Clip Labels (File menu, Ctrl+E) adds or changes labels after the fact. The left side lists the
.clipsfiles, both those not saved yet and those in your Keepers and Clips folders (including each game's folder); the right side shows the chosen file's marks, each with a box for its label. Save writes them to the file. The top shows the game's icon and name if the file is in a game's folder or starts with its filename label. - LosslessCut projects: when a capture with clip marks is saved to Keepers or Clips (Cleanup's Save Clips First included), the app writes
<video name>-proj.llcbeside it. LosslessCut loads that file when you open the video, with a segment for each mark, named with the mark's label. A segment ends at its mark and starts 30 seconds before it (Segment length in Settings), or at the start of the video. Segments never overlap: when a mark comes less than that length after the previous one, its segment starts where the previous one ends. A mark at 0:00, or at the same second as the one before, is only a marker. A new project file gets the same dates as the.clipsfile, so it sorts by date beside its recording. The app never overwrites a project file. If you change labels in Edit Clip Labels, the project follows only if it is still as the app wrote it; once you or LosslessCut have changed it, it is left alone. Create LosslessCut Project in that window makes one for a capture saved without it. A project LosslessCut made while the capture was still in the capture folder moves with it. If you have set a separate working directory in LosslessCut, it looks there instead of beside the video. - Filename label (the box under Keepers): text typed there is added to the front of the saved file names by both Keepers and Clips, so
2024-05-17 20-14-06.mp4becomesace_2024-05-17 20-14-06.mp4. Characters that aren't safe in filenames become underscores, and the box is cleared after a successful move. It is separate from the Mark Clip label. - Cleanup (the trash button) deletes every file in the capture folder, permanently, after asking you to confirm (it shows the folder and the number of files). If you have marked clips, it then offers Save Clips First, which moves the marked captures and their marks to the Clips folder before deleting the rest, or Delete Everything. If saving a clip fails, nothing is deleted. Subfolders are never touched, it refuses to clean the top of a drive, and files still open in your recorder are reported as not deleted.
- Game selector: a collapsible panel on the right of the window, or on the left or below it (Games > Selector Position, remembered). Its narrow strip, or the game button at the top left, opens it, and the window grows to show an icon for each displayed game (the first icon, with a "?", means no game). Click a game to select it, with a red border and its name above the grid (right-click a game and choose Edit... to change its title, label or icon), then click the strip again to collapse the panel and shrink the window back. The main buttons stay where they are on the screen unless the window would go off the edge. The game button always shows the selected game's icon, and the choice and whether the panel is open are remembered. When a game is selected, its filename label goes at the very front of saved file names, so with the label
BF3a capture becomesBF3_ace_2024-05-17 20-14-06.mp4, and Cleanup's Save Clips First names the clips it keepsBF3_<name>. - Resizing: drag the window's edges or maximize it. It can be shrunk until the controls just fit, with the selector (when open) down to one column of icons. The main buttons and text boxes keep their size; extra room while the game selector is closed is left empty, and while it is open the selector takes the change, except that the height (or the width, with the selector below) is shared by both. Each size is kept when you open and close the selector, and saved with the maximized state for next time. Sizes too big for the screen, for example after moving to a smaller monitor or a lower resolution, are shrunk to fit, the selector first. The window's position is not saved.
- Game manager (the Manage Games... button at the bottom of the game selector): lists your games with their icons, filename labels and whether each is displayed. Add, edit, delete (after confirming), reorder with the arrows, and click a game to show or hide it. Sort by orders the games here and in the selector by Title, Date Added (newest first), Recently Used (the game you last saved a keeper or clip for comes first; just selecting a game doesn't count) or Custom, the order you arrange with the arrows. Between the arrows, a button shows the game's position in the current order; click it and type a number to move the game there, with the others closing up around it. Moving a game in another order, by arrow or number, asks first, because it replaces your custom order with the one shown. Archive puts a game away instead of deleting it: it leaves the game selector, and the manager lists it only while Show Archived Games (bottom left) is ticked, where Unarchive brings it back as it was. Archiving the selected game clears the selection. Games are saved to
SavedGames.xmlas soon as you change them, in the same format as the Swing app. The editor takes a title (unique), an optional filename label (letters, numbers, dashes, underscores and periods) and an icon, which is scaled to fit 64×64 and stored inimages/. A game whose icon file is missing shows a default icon. - Hotkeys: F1 presses Keepers, F2 presses Clips and F3 presses Mark Clip, anywhere in the main window (including while typing a label). A button flashes briefly whenever it is used. A hotkey does nothing while its button is disabled, for example during a file move.
- Progress and closing: while a move or cleanup runs, a thin progress bar at the bottom of the window shows how far along it is (it fills file by file, and stays animated until the first file is done and during cleanup), and the status line says what is happening. If you close the window during that, the app asks Close Anyway or Cancel. Closing anyway lets the work finish in the background, but you will not be told whether it succeeded.
- Settings options: Capture file names tells Mark Clip how your recorder names its files (detected automatically by default). Keep each game's keepers and clips in its own folder (off by default) saves into
<folder>/<game title>/when a game is selected, for Keepers, Clips and Cleanup's Save Clips First. - Game icon search: in the game editor, Search Online... looks the game up on SteamGridDB and shows its first square icons to pick from. It needs a free API key: make a SteamGridDB account, copy the key from its preferences page and paste it into Settings (SteamGridDB key). The key is saved in
CapProcConfig.xml, and the game's title is sent to SteamGridDB when you search. Find in Browser needs no key: it opens a Google Images search for square pictures of the game in your browser, and you save one and choose it with Browse.... - Tray icon: an icon in the notification area brings the window to the front when clicked, and its menu has Keepers, Clips, Mark Clip and Exit. Closing the window still quits the app.
- Menu bar: File has Always On Top (Ctrl+A), Set Folders... (opens Settings), Edit Clip Labels... (Ctrl+E) and Theme, Games has Show Game Selector (Ctrl+S), Selector Position (Left, Right or Bottom) and Manage Games... (Ctrl+G). Alt plus the underlined letter opens a menu. Always On Top applies at once and is remembered. While a text box has focus, Ctrl+A selects its text instead.
- Title bar: the main window's title bar and menu bar are one row, with File and Games beside the app's icon. On a screen of 1080p or lower it is shorter, and it changes shortly after you move the window to another screen. The title shows when the window is wide enough for it.
- Theme: File > Theme, or Theme in Settings, chooses Follow the System (the default), Light or Dark. The choice is remembered.
- Log file: problems are logged to
logs/CapProc.login the working directory (as well as the console), with stack traces. A log over 1 MB is set aside asCapProc.log.1the next time the app starts. Look there first if something goes wrong.
Known issues and gaps:
- Game modes, a clip manager with video review and an OBS plugin are feature requests, not built. Tags written into the video file were decided against, for the reasons given there.
src/main/java/com/wheezy/apps/vidcapproc/ application code (controllers, UI, data, utils)
src/main/java/com/wheezy/components/ reusable FXML controller/stage base classes
src/main/java/com/wheezy/utils/ reusable file, properties and dialog helpers
src/main/resources/.../ui/ FXML screens
com.wheezy.components and com.wheezy.utils are deliberately kept in their original packages so they can be pulled out into a shared library for future apps.
Public domain. See LICENSE.
The libraries and Java runtime a packaged app contains keep their own licenses, listed in THIRD-PARTY-NOTICES.txt. Both packaging scripts copy that file into the application folder.