Skip to content

Movie Projects

Zac Walker edited this page Nov 26, 2026 · 1 revision

Movie mixer saves its timeline as a project: a .dfv file of plain UTF-8 text, one item per line in the order they play. You can write one in any text editor, or have a script or an AI assistant write it, then open it in Movie mixer or render it from the command line. The website shows Movie mixer at work.

An example

# Diffractor video: one item per line, played in order.
t 4 'Hiking to Everest\nOctober 2019'
c 12.5-31 2019/kathmandu.mp4 'Kathmandu'
s 1:02-1:20.5 "2019/day 3/climb.mp4"
c -6 2019/lukla.jpg 'The airstrip at Lukla' !narration/lukla.wav
c #3 music/commando.sid
t 3 'The End'

This movie opens on a four-second title of two lines, plays 18.5 seconds of one video with a caption and part of another marked to be stabilized, shows a photo for six seconds while a narration plays, plays the whole of the third tune in a SID file with its monitor, and ends on a three-second screen.

Lines

Line Is
t <length> ['<text>'] A screen of text on black, shown for <length>
c <part> <file> ['<caption>'] [!<sound file>] A clip of a video, photo or audio file, with an optional caption, and an optional sound file played in place of its own sound
s <part> <file> ['<caption>'] [!<sound file>] The same, marked to be stabilized. Rendering does not stabilize yet; the mark is kept for when it does
short The word alone on its line: the movie is a YouTube Short
# ... A comment. Blank lines are ignored too

The letter may be either case, spaces around a line are ignored, and a byte order mark and Windows line endings are accepted.

Parts and times

A part says which stretch of the file plays: <from>-<to>.

Part Plays
12.5-31 From 12.5 seconds to 31 seconds
1:02-1:20.5 From 1 minute 2 seconds to 1 minute 20.5 seconds
1:01:23- From 1 hour 1 minute 23 seconds to the end
-45 From the start to 45 seconds
- The whole file
#3 The whole of tune 3 of a SID file
30-90#2 Tune 2 of a SID file, from 30 to 90 seconds

A time is seconds (83.5), minutes and seconds (1:23.5) or hours, minutes and seconds (1:01:23.5). Only the last part has a fraction, and the parts after the first are below 60. A part left open follows its source whatever its length turns out to be. A SID file without a tune number plays the tune it starts on.

A photo shows for its part's length: -6 is six seconds, and a photo with no end shows for four seconds. A photo or a text screen is held to between 0.1 and 60 seconds.

Text, captions and quotes

Fields are separated by spaces. Quote a field that has spaces in it:

  • 'single quotes' suit text: \n is a new line, and \', \" and \\ are those characters.
  • "double quotes" suit paths: everything up to the next " is taken as it stands, backslashes included.

A closing quote must be followed by a space or the end of the line. A single word needs no quotes. An item holds at most 2,000 bytes of text.

A caption belongs to its clip. It appears once the crossfade bringing its clip in has finished, and stays as long as it takes to read: two seconds, then fifteen characters a second, between three and twelve seconds. A caption longer than its clip runs on over the next clips until another caption, a text screen or the end. Text is white Segoe UI over a soft shadow, sized to the frame, so an upright movie's text reads as well as a landscape one's.

Files and sound files

A file is a full path, or a path relative to the project's folder, with either / or \ between its folders. Movie mixer saves a file beneath the project's folder relative to it, with /, so the project and its media can move together; any other file is saved with its full path.

A field starting with ! names a sound file: an audio file, or a video for its sound. It plays from its own start, in place of the clip's own sound, for as long as the clip shows: a shorter one falls silent and a longer one is cut where the clip ends. It comes after the clip's file, before or after the caption, once at most, and a text screen takes none. Quote a path with a space straight after the !: !"voice over.wav". A caption that starts with ! must be quoted. Movie mixer's panel cannot set a sound file: only a project can.

How the movie is made

Every rule is fixed, so a project makes the same movie wherever it is rendered:

  • Neighbouring items crossfade for one second, or half the shorter item, and the movie fades in from black and out to black.
  • When the item coming in is silent, the clip going out keeps its sound to its own end, so words said as the crossfade begins are heard.
  • Size: the shape most of the movie is in, by how long each item shows, fitted within 1920 x 1080, or 1080 x 1920 for an upright movie. Pictures are fitted, never stretched or cropped. A movie of text screens alone is 1920 x 1080.
  • Frame rate: 24, 25 or 30 frames a second, whichever most of the video was filmed for.
  • Audio clips show the file as Diffractor plays it: a SID tune's monitor or a tracker module's pattern following the music, or the visualizer beside the cover art.
  • Output: MP4 with H.264 video and AAC sound at 48 kHz, encoded by Windows' own Media Foundation. Your source files are never changed.

A project with short is a YouTube Short: 1080 x 1920 at up to 60 frames a second, ending by 2:59.5, with captions and titles kept clear of what YouTube lays over the picture. A picture of another shape stands whole over a blurred copy of itself, and a Short of one SID tune that repeats ends where it starts again, so it loops seamlessly. Render each item as its own Short is in Movie mixer's panel, not in the file.

When a line cannot be read

A line Movie mixer cannot use is skipped: opening the project says how many in the panel, and checking it from the command line names each line, its number and why. A project with a line that could not be read is not rendered, since that line is part of the movie. An empty file, or one with no line Movie mixer could use, is not a project; a file of comments alone is an empty one.

A clip whose file is missing stays in the timeline, marked, and is saved as it was written. Relink missing files in Movie mixer finds them by name in a folder you choose; it does not look for sound files.

Checking and rendering from the command line

movie_check and movie_render check and render projects without opening a window. Each takes the full path of one project, or of a folder whose .dfv files it takes, as projects:

& "$env:LOCALAPPDATA\Diffractor\diffractor64.exe" -tool:movie_check projects=D:\Projects 2>&1 | Out-Host
& "$env:LOCALAPPDATA\Diffractor\diffractor64.exe" -tool:movie_render "projects=D:\My Projects\trip.dfv" output=D:\Movies 2>&1 | Out-Host

For the Microsoft Store edition, use diffractor in place of the path.

Argument Does
projects The project, or the folder of projects. Required
output The folder movies are written to. Without it, each movie goes beside its project, named for it with .mp4
overwrite=true Replaces a movie already there; without it, an existing movie is skipped
skip_missing=true Renders what remains when a clip's file is missing or unreadable, rather than refusing the project

movie_check reports each line it could not read, what the movie holds, how long it runs, the size and frame rate it would be made at, which files are missing, each clip whose part starts past the end of its file, and each sound file its clip cuts short. movie_render reports the same, then renders. A render that is stopped or fails leaves no movie behind. The exit code is 0 when every project is ready or rendered, 1 when the tool reports an error, and 2 when the call itself could not be made. Piping into Out-Host makes PowerShell wait for Diffractor and show what it writes.

An AI assistant connected to Diffractor can write a project and call the same tools.

Clone this wiki locally