Repository navigation
Command Line
Diffractor can be started with a folder or file to open and switches that change how it runs. It can also run one of its tools from a script and print the answer.
| Edition | Run |
|---|---|
| Windows installer | %LOCALAPPDATA%\Diffractor\diffractor64.exe |
| Microsoft Store |
diffractor, the alias the Store edition puts on the path |
In PowerShell, start it with & and pipe it into Out-Host, which makes PowerShell wait for Diffractor and show what it writes:
& "$env:LOCALAPPDATA\Diffractor\diffractor64.exe" D:\Photos
& diffractor -tool:help topic=dfv 2>&1 | Out-Host| Argument | Opens |
|---|---|
D:\Photos |
The folder |
D:\Photos\** |
The folder with all its subfolders |
D:\Photos\IMG_0042.jpg |
The file, selected in its folder |
A file goes to the Diffractor window already running, unless Options turns that off or another switch is given. Quote a path that has a space in it: "D:\My Photos".
A switch starts with -, -- or /, and is not case-sensitive.
| Switch | Does |
|---|---|
-new-window |
Opens a window of its own rather than reusing the running one |
-no-gpu |
Draws without hardware acceleration |
-no-indexing |
Starts without indexing the collection in the background |
-profile:<folder> |
Keeps settings, the index, the face database and map tiles in that folder rather than your own. See where Diffractor keeps its data |
-collection:<folder> |
Makes one folder the whole collection, and opens on it. Without -profile, its settings are kept in <folder>-profile, so your own are never replaced |
-mcp |
Serves Diffractor's tools to an AI assistant: see AI agents |
-mcp-ui:<where>, -mcp-allow:<tiers>
|
Where an assistant's window is, and what it may do: see AI agents |
-tool:<name> name=value ... |
Runs one tool once and prints its answer: below |
-no-gpu and -no-indexing help when Diffractor does not start properly; after two failed starts in a row it also starts in a safe state by itself, with hardware acceleration off.
For developers, /test runs the test suite and -validate-po checks the translations; the testing document describes them.
-tool:<name> runs one of the tools an AI assistant uses, once, without opening a window, and exits. Arguments follow as name=value pairs:
- A value is read as the tool expects it: a number,
trueorfalse, a list split at commas, or text. - Quote a pair whose value has a space:
"projects=D:\My Projects". - What the tool reports as it works goes to stderr, and its answer to stdout: JSON where the tool gives structured results, otherwise text.
- The exit code is 0 for an answer, 1 for an error the tool reports, and 2 for a call that could not be made, such as an unknown tool or argument.
The tools that need Diffractor's window - searching the library, faces, screenshots and the window's own controls - need an assistant's session instead. These work from the command line:
| Tool | Does |
|---|---|
movie_check projects=<file or folder> [skip_missing=true] |
Checks Movie projects without rendering them: see Movie projects |
movie_render projects=<file or folder> [output=<folder>] [overwrite=true] [skip_missing=true] |
Renders them to MP4 |
help [topic=search|dfv|tiers] |
Explains the search language, the .dfv format or the permission tiers |
status |
Says what the program was started with |
Examples:
# Render every project in a folder into another folder, replacing movies already there
& "$env:LOCALAPPDATA\Diffractor\diffractor64.exe" -tool:movie_render projects=D:\Projects output=D:\Movies overwrite=true 2>&1 | Out-Host
# Check one project, and stop a script when it is not ready
& diffractor -tool:movie_check "projects=D:\My Projects\trip.dfv" 2>&1 | Out-Host
if ($LASTEXITCODE -ne 0) { throw "trip.dfv is not ready to render" }Using Diffractor
- Search reference
- Formats and codecs
- Metadata
- Name templates
- Faces
- Lossless video editing
- Movie projects (.dfv)
- Commodore 64
Automating
Behind the scenes