Skip to content

About

Free, open-source player for action-camera footage: log plays as HDR, Gyroflow-steady while it plays (under water too), with depth and speed from the camera, Live Photos from your clips. DJI, GoPro, Insta360; macOS, Windows, Linux.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Action Footage Player

Your action camera's best footage, the way it should look. Just double-click the clip.

A free, open-source video player for footage from action cameras (drones are next). Clips shot in the camera's log color mode play in full color and HDR, shaky clips are steadied as they play (under water too), and what the camera measured, like depth or speed, shows on screen. No import, no editing, nothing to render first, no account or cloud; your original files are never changed. When a moment is worth sharing, one key saves exactly that part, ready for your phone.

Status: early (alpha). In daily use with the DJI Osmo Action 6 on Macs with Apple Silicon, and tried on a GoPro HERO12 Black. Other DJI cameras, other GoPros and Insta360 are built for but not yet tried on real footage. Windows has an app of its own and Linux the plugins, neither tried yet. What works with your camera · Help it work with yours

What you get

  • Log footage in full color, straight away. Log (D-Log M on DJI, GP-Log on GoPro, I-Log on Insta360) is the camera's mode that records the most, but its clips come out flat and grey and normally need color grading. Here they play in HDR, or with the camera maker's own standard look. The clip says it's log (Osmo Action 6, Osmo 360, recent GoPros), so there's nothing to set up; for other cameras, one key picks the log curve. Normal clips play as usual.
  • Shaky clips steadied as they play, from the motion data the camera records when its own stabilization is off, with Gyroflow's engine, at the same time as the log conversion.
  • Steady footage under water. Yes, really. Every diver knows in-camera stabilization gives up under water. Turn it off, and the clip plays steady here: stabilized from the camera's own motion data, corrected for how water bends light (on a test clip, the jitter between frames went from 0.16 px to 0.02 px).
  • What the camera measured, on screen: depth under water, GPS and speed, exposure.
  • The moments you marked, a key away. Press the camera's highlight button while it records (GoPro's HiLight; on a DJI Osmo Action, the quick switch button or the remote): the marks show on the seek bar, and Ctrl+] / Ctrl+[ jump to the next one and back, a couple of seconds before it.
  • One key to share: mark the moment, press Shift+E, and get a file as it plays, stabilized or not, that an iPhone, a Mac or YouTube shows in HDR.

Who it's for

You just want your footage to look its best, without learning to grade. An action camera's best picture is usually hidden behind a "pro" mode, because on an ordinary screen it needs creative grading to look good. On a screen with HDR (MacBook Pro, recent iPhones and flagship phones) a technical conversion is enough, the same for every clip, so it's done automatically: log looks good straight away. So you can shoot in the best mode and simply watch and share. Why that works

You dive. Shoot in D-Log M with EIS off: back on the boat, the clips play steady, in HDR, with the depth in the corner, and the turtle is on everyone's phone the same evening. Back from the dive

You already shoot log and grade. This is the step between the card and your editor. Stabilization and the log-to-HDR conversion happen together, while the clip plays, and Shift+E exports exactly that in one pass: no project, no render, no separate grading step. In Gyroflow, stabilization is a render of its own, and the color comes later in an editor. Go through a card's worth of clips with a fixed technical transform (D-Log M → Rec.2100 HLG, no creative look), or DJI's own Rec.709 LUT; open a clip in Gyroflow with one key to fine-tune it and see the result back in playback when you save; batch-export ProRes 422 HQ from the command line. 10-bit stays 10-bit, the originals are never re-encoded, and log is recognized from the camera's metadata, not the file name. Prefer your own mpv? The plugins work on their own, on any system. How it works

Quick start (Mac with Apple Silicon, DJI Osmo Action 6)

  1. On the camera: set the color mode to D-Log M. Under water, turn EIS off: the camera then records the motion data the stabilization uses.
  2. Install: download ActionFootagePlayer-<version>-macos-arm64.dmg from the latest release, open it and drag the app onto Applications. It carries its own mpv and ffmpeg: nothing else to install (macOS 15 or later).
  3. Open it once. The first time, macOS blocks it, because it isn't signed with a paid Apple developer account: System Settings → Privacy & Security → Open Anyway. Accept its setup: it becomes the player for MP4 videos.
  4. Copy the clips off the card and double-click one.

l twice marks a part, Shift+E exports it, Ctrl+s goes through HDR and the SDR looks, Ctrl+g goes through the stabilization, a wider view of it, and off. All keys · Install in detail

Example: back from the dive

You shot the dive in D-Log M, with EIS off because under water it doesn't hold. In the hotel, you copy the card to the laptop and double-click the first clip: it plays stabilized, in HDR, with the depth in the corner. You skip through the hour to the 15 seconds with the turtle, press l at the start, l at the end, Shift+E, type "Turtle", and pause for half a minute. The fragment is _Exports/Turtle.mov in the trip's folder, ready to AirDrop to the group the same evening, in HDR, and the turtle is a moment too, to play again in full quality later. The originals are untouched for proper editing later.

Why log, and why HDR

The log mode records the most the camera can: often more than its own HDR mode (GoPro's HERO12 makes HDR by merging two exposures, while its log is a single one, which holds up better with motion and in low light), and on some cameras, the Osmo Action 6 among them, log is the only way to HDR at all. On an ordinary (SDR) screen, log needs a colorist to decide what to keep and what to leave out of SDR's narrow range: a creative job. An HDR screen has room for all of it, so the conversion becomes a technical one, the same for every clip, and can be automatic. That turns the "pro" mode into the one to use for everyday footage.

On a Mac without an HDR screen (MacBook Air, most external monitors), clips start in HLG with Dolby Vision as macOS shows it (HDR, HLG+DV): macOS tones the HDR down for that screen with trims fitted to NBCUniversal's HLG → SDR conversion (no scene-level offsets, so an HDR screen still gets HDR), the way QuickTime and Apple's devices show the export, and shows it in HDR on an HDR screen. Ctrl+s goes through the video outputs: HDR, HLG (macOS tones it down on an SDR screen), HDR, HLG+DV, SDR, HLG+DV (toned down by the trims on an HDR screen too: what an SDR screen shows), mpv's tone mapping, NBCUniversal's neutral HDR → SDR conversion and the camera maker's own Rec.709 LUT (DJI's, for D-Log M); on an HDR screen the SDR ones show as an SDR screen would. Exports still play in HDR on an iPhone. Each frame's light levels go along with it (Dolby Vision's L1: its darkest, average and brightest, measured on the GPU as it plays, on the picture macOS gets), so macOS maps every scene for what's in it rather than for a typical one: a dark dive and a sunlit beach each get their own room. The Dolby Vision trims go on top of that; they're the author's, to taste, fitted to NBCUniversal's conversion with each frame's levels. The side panel's Dolby Vision has them as sliders, with a way back to the author's and to neutral ones (Dolby Vision's own mapping, nothing added). Exports take what's set there and measure each of their frames the same way, so an Apple device shows them as the player does.

After an HDR display (an HDR TV, say) has been connected to the Mac, macOS can keep its settings for the SDR monitor plugged in where it was, until the Mac restarts, and shows HDR on it about a stop darker. The player tells when it sees that, the first time HDR plays on such a monitor: restarting the Mac sets it right.

Help it work with your camera

Everything was worked out on one camera, and each maker, often each model, records its metadata differently. Most useful right now:

  • A few seconds of footage from a GoPro other than the HERO12 Black, an Insta360, another DJI camera or a DJI drone, straight from the card. What to shoot and how to share it; if you can't share the video, its metadata alone helps.
  • Trying it on Linux or Windows, and telling how it went.
  • Knowing Insta360's 8-bit I-Log well, or GP-Log on a MAX2: their transforms are the missing piece for those cameras (D-Log, GP-Log2 and 10-bit I-Log are done from their makers' formulas, GP-Log from Zeb Gardner's LUT).
  • Code: Lua (the plugins), Rust (vs-gyroflow/), GLSL shaders. Issues and pull requests welcome.

What works, camera by camera

In the Mac app, with clips straight from the camera (an app that exports or trims them drops the metadata this reads):

Log in color: HDR, Rec.709 LUT ¹ Stabilized from the camera's gyro, no project ² Stabilized with a Gyroflow project ² Telemetry ³ Highlights ³ Export what you see ²
DJI Osmo Action 6 verified (D-Log M) verified (EIS off) verified verified: depth, in water. Should work: the rest; GPS not seen should work verified: HDR. Should work: Rec.709 (Ctrl+s)
DJI Osmo 360 (single-lens MP4) should work (D-Log M) should work (EIS off) should work should work none: the camera doesn't mark them should work
Other DJI cameras (Action 4, Action 5 Pro, Pocket 3, ...) not yet should work (EIS off) should work not yet should work: Action 4, Action 5 Pro should work
DJI drones by hand (Ctrl+l): HDR from D-Log M or D-Log ⁴ not yet should work not yet should work, with a project
GoPro verified: HDR from GP-Log (HERO12 Black on firmware 1.20+). Should work: HERO13 Black, and GP-Log2 (MISSION 1) ⁴ verified: HERO12 Black (HyperSmooth off). HyperSmooth on: HERO12 Black rendered from the command line (on top of it, half the crop), not yet played in the app; should work: HERO13 Black. HERO11 and older: HyperSmooth off only should work should work: GPS and speed; exposure on one without GPS should work: HERO5 and later should work
Insta360 single-lens MP4 (Ace Pro, GO 3, ...) by hand (Ctrl+l): HDR from 10-bit I-Log (X6, Luna) ⁴. Not yet: 8-bit I-Log should work (FlowState off) should work not yet not yet should work
Other cameras Gyroflow supports not yet should work not yet should work, with a project

verified: played in the app on a Mac, on real footage. should work: built for it, from the maker's published metadata layout or sample clips, but not tried on real footage yet. not yet: doesn't work yet. Export covers what plays: stabilized, in color, or both. Details, and how clips from your camera would help: Other cameras, and how to help.

The table is for the Mac app (Apple Silicon). The Windows app has been tried only a little (an alpha), Linux not at all yet: the Windows app carries the same plugins, and on Linux they're in an mpv of your own:

  1. D-Log M is plain Lua and GPU shaders, for any mpv on any system. Whether HDR reaches the screen there depends on mpv and the system. The Rec.709 LUT is baked in from a checkout of this repo (install.sh does it on Linux).
  2. The stabilization needs mpv 0.42 or later (the app's own is) with vo=gpu-next, and binaries for macOS on Apple Silicon, Linux x86-64 or Windows x86-64: see Linux and Windows. Projects are made in Gyroflow.
  3. Plain Lua, any mpv on any system.
  4. From the makers' published formulas, or for GP-Log Zeb Gardner's LUT (Other log curves), checked against the makers' own LUTs; on footage, so far only GP-Log, on a HERO12 Black. HDR only (no Rec.709 LUT yet), in exports too. Ctrl+l picks the curve for a clip whose metadata doesn't say it.

Install

From the latest release, take:

For File
a Mac with Apple Silicon (macOS 15 or later) ActionFootagePlayer-<version>-macos-arm64.dmg: the app, with all the plugins and their menu, mpv and ffmpeg in it, and a sample dive clip (or the same app as -macos-arm64.zip)
a Windows 10 or 11 PC (x86-64) ActionFootagePlayer-<version>-windows-x86_64-setup.exe: the app, with all the plugins and their menu, mpv and ffmpeg in it
a Windows 11 PC with an ARM processor (Snapdragon) ActionFootagePlayer-<version>-windows-arm64-setup.exe: the same, built for it (the x86-64 one runs there too, emulated and slower). Exports encode on the CPU (x265)
all the plugins in your own mpv, in one zip mpv-plugins-<version>-macos-arm64.zip (Homebrew's mpv), -linux-x86_64.zip, -windows-x86_64.zip, -windows-arm64.zip
D-Log M and telemetry in your own mpv, on any system mpv-dlogm-<version>.zip, mpv-dji-telemetry-<version>.zip
stabilization and export in your own mpv (0.42 or later) mpv-gyroflow-<version>-macos-arm64.zip (Homebrew's mpv), -linux-x86_64.zip, -windows-x86_64.zip, -windows-arm64.zip
a NAS (x86-64 with Intel or AMD graphics, Docker): collaboration in one library, streams, links for Jellyfin ActionFootageNASHelper-<version>-linux-x86_64.tar.gz (the Docker image) with ActionFootageNASHelper-<version>-compose.yaml: the NAS Helper

The app carries its own mpv (built for it, with the stabilization's shader support) and ffmpeg (for exporting), with Homebrew's libraries: nothing else to install. It needs macOS 15 or later, the oldest macOS those builds are made for.

Open the disk image, drag ActionFootagePlayer onto Applications and open it from there (from the zip: unzip it and move it to Applications). It's signed ad hoc, not by an Apple developer account, so the first time macOS won't open it: System Settings → Privacy & Security → Open Anyway. The first time it opens, it offers its setup:

  • it becomes the default app for MP4 videos (what DJI cameras record): double-clicking one plays it with all of this, and any other video simply plays in mpv. macOS asks you to confirm the change in a dialog of its own; it applies once you do;
  • Finder gets the Quick Actions Play Stabilized and Stabilize + LUT (see Opening files);
  • DJI's Rec.709 LUT is downloaded from DJI (it isn't redistributed here) and checked, for DJI's SDR look and its Rec.709 exports. HDR and NBCU's SDR work without it.

Coming from Steady Player, as the app was called up to 0.3.0: see Upgrading.

On Windows, run the installer: it needs nothing else installed and no admin rights (it installs for you alone, in %LOCALAPPDATA%\Programs\ActionFootagePlayer). It isn't signed, so Windows SmartScreen warns about it the first time: More info → Run anyway. It puts ActionFootagePlayer in Open With for MP4 and MOV videos, and Explorer's menu for them gets Play in ActionFootagePlayer and Stabilize + LUT (on Windows 11 under Show more options). It downloads DJI's Rec.709 LUT, and, if you leave that ticked, opens Settings to make it the default app for MP4 videos: Windows doesn't let an app do that itself. See The Windows app.

The plugins: unzip them into mpv's scripts/ folder (~/.config/mpv/scripts/, %APPDATA%\mpv\scripts\ on Windows); nothing goes in mpv.conf or input.conf. DJI's Rec.709 LUT and the stabilization take a step more: see Plugins in your own mpv and Linux and Windows.

Using it

Opening files

Once ActionFootagePlayer is set up, double-clicking an MP4 plays it in mpv with the plugins; for other videos, open them with ActionFootagePlayer from Finder's Open With, or right click → Quick Actions:

  • Play Stabilized opens the selected videos in ActionFootagePlayer.
  • Stabilize + LUT exports them (see Exporting) in the background, with a notification as each one is done.

On Windows, the same two are in Explorer's menu for MP4 and MOV videos: Play in ActionFootagePlayer, and Stabilize + LUT, which exports in a window of its own that shows how it goes (videos sent while it runs are exported after the others, in the same window).

The menu

With the side panel there (the app, and the plugins' zip), right click is mpv's own menu and the settings are in the panel. Without it (footage_menu.conf: menu=yes for it in any case), right-click the video for the plugins' menu: everything the keys do, with the keys beside it, and what has no key. At the top, what the clip is (the camera, its log curve, whether it has motion data and telemetry, how many highlights); then playing, marking a part and exporting it; Highlights (the next, the previous, or any one by its time); Look (HDR, the maker's SDR, NBCU's SDR, as recorded, the log curve by hand); Stabilization (on, the wider view, the level, the horizon level or free, the lens under water with a flat port or not, what fills the edges, Gyroflow); Telemetry (where it shows, the units, which fields); Export (in SDR, the last export in Finder); Clip (the next and previous clip in the folder, Finder, the path, a still); Player (speed, tracks, fullscreen); and Note for the agent… (see Notes for an AI agent), Keys…, Help and Report this camera…, which opens an issue on GitHub with what the plugins found in the clip. In the app, that last submenu has the version beside its name: ActionFootagePlayer 0.6.4.

Look and Telemetry have Remember as default, Stabilization Use as default: the settings as they are become the plugin's options (see Options), for the next start. A clip without motion data has Stabilize in Gyroflow (optical flow)… instead: see Stabilization.

The menu is mpv's own, so it needs mpv 0.41 or later (Homebrew's is); with an older mpv, right click pauses as it always did. It's the footage-menu plugin, which shows only the plugins that are there.

The panel

The settings are in a panel at the right of the window, beside the video (the video moves over for it, nothing is covered), as in a photo editor: a rail of icons at the edge, one for each part, and the panel of the one chosen, with switches and buttons, scrolled with the wheel:

  • Project, where it opens: the trip's moments, marks and albums, with their keys beside them. At the top, the project: with none yet, what one is and Initialize the project here in a folder you choose from the clip's folder up to the top of the disk (a project covers every folder in it); then its counts, Open in Action Footage Library (where the trip's batches are made: moments and photos of all marks, exports of all moments; its albums are kept there), Show all clips and Show all moments in Finder. Below, this clip: its marks (the one where it plays highlighted, Add or Remove the mark here), its moments (a click plays one; ⋯: play, rename, remove, show in Finder) and Mark this clip as not interesting. At the bottom, the part marked now, with Save as moment (or Update, on a moment whose ends were moved).
  • Source: what the clip is, Finder and its path, and how to read it right (its input): its color as recorded (log and its curve, HDR in HLG or PQ with or without Dolby Vision, or SDR), the log curve, the turn it was recorded with, the lens (the camera, its lens profile and where it comes from, whether there's motion data, and whether it was under water with a flat port). Save to the source and Revert to saved, its own: a change is for viewing until saved. Its marks.
  • Transform: how it's shown (its transform): where that's defined, Save, Revert to saved, Use as default, Auto save, a moment's or clip preview's Settings of its own; the stabilization (on, wider, off), the level, the horizon (level or free), the Lens (corrected, with its projection, linear or a fisheye; or as recorded), the Frame (its ratio, drawn, and as is, landscape or portrait), the water's color aberration and the temporal denoise (on, and Stronger for a very noisy clip). The dot in a corner marks what's saved, beside what's chosen. With a Gyroflow project, what the project has is shown as its values, with Edit in Gyroflow….
  • Output: Display, the video output on this screen (HDR, HLG; HDR, HLG+DV; SDR, HLG+DV; mpv's tone mapping; NBCU's and the maker's SDR); and Export, a file of what plays (the part marked, in SDR, the last export).
  • Source and Output have In the folder at the bottom: the previous and next clip, Autoplay next, Loop the clip.
  • Playlist: the videos in the clip's folder, the one playing marked (▶); a click plays one. F8 opens it.
  • Performance & Quality: the size it's stabilized at, the temporal denoise (Full, Light, Off), what fills the edges, skipping the color aberration correction on this screen, whether it asks when the GPU can't keep up. They make playback lighter on this computer; what's saved, exports and photos stay as they are, but for the temporal denoise: exports have it as it plays here (Full, Light, or none with Off).
  • Telemetry: whether it shows, the corner, the units, the fields.
  • Dolby Vision (Mac, the app): the trims, as sliders; back to the author's, or neutral ones.
  • 360° view, for a 360° clip: looking around on or off, the projection, the field of view, the horizon, Look ahead again, and what the view follows (it needs the camera's motion in the frames, which a stitched clip doesn't have: for raw clips, later).
  • Support, at the bottom: the version, Keys…, Note for the agent…, Report this camera…, Set up again…, and links to the website and GitHub.

The keys are beside what they do. Look, Stabilization, Quality and Telemetry have Make these the defaults at the bottom, as the menu's Remember as default. Tab hides the panel and its rail, and shows them again; clicking the chosen icon, or the arrow at the top of the panel, leaves only the rail.

The navigation bar at the bottom of the video (in place of mpv's own controls, docs/design/navigation-bar.md): the track, with the camera's highlights (amber) and your marks (white) over it, the part marked with l behind it and the project's moments under it. Over the track, the time under the mouse in hundredths; near a mark it lands on the mark, and says its name. A click goes to that exact frame; dragging is quick (keyframes), the frame where it's let go exact. The wheel or a sideways swipe over the bar steps frame by frame. Its buttons: previous clip, play, next clip; a frame back, the time (a click: the time left), a frame on; previous mark, mark here (M), next mark; the part (l); the speed, looping the clip, the sound, fullscreen. With the panel closed it's over the video and shows as the mouse moves; with the panel open it's below the video, always there. It's the side-panel plugin (side_panel.conf: shown=, open=, tab=); its Clip and Support buttons run footage-menu's commands.

Keys

Key script-binding
Ctrl+g Stabilization on → on with a wider view (no zoom: the stabilized picture covers about as much of the window as the frame, whatever the lens; the edges show at times, filled as Ctrl+b says) → off. On or wider sticks for the next clips without a project; a clip with a .gyroflow starts in it as Gyroflow has it (the menu's On (Gyroflow project)), unless On, Wider or Off is saved for it gyroflow/toggle
Ctrl+k The level of a clip without a project: weak → medium → strong (10, 20, 30 % cropped, half that on top of a GoPro's HyperSmooth; smoothness 50, 75, 100 %; see Stabilization). It sticks for the next clips; a clip with a .gyroflow has the project's own gyroflow/level
Ctrl+b What fills the edges the stabilized frame doesn't cover: the project's background, what was seen in that direction with the colors around spread in where nothing was yet, or only the frame's own colors spread out (see Stabilization); it sticks for the next clips gyroflow/edges
Ctrl+u The lens above water or behind a dome port (no refraction), and back to under water with a flat port, as the camera says or set by hand, whichever it was (Source → Lens). The source's input: Source → Save to the source keeps it. A clip with a Gyroflow project has the project's gyroflow/above-water
Ctrl+a Color fringes under water taken out, or left as recorded (Stabilization → Lens in the menu). Only where the lens is under water: above water no color moves either way, and the lens stays as Ctrl+u has it. It sticks for the next clips gyroflow/fringes
Ctrl+s The clip's next video output: HDR (HLG), HLG with Dolby Vision in HDR and in SDR (macOS), SDR tone-mapped by mpv, SDR through NBCUniversal's HLG → SDR conversion (the same for every camera), then SDR through the maker's LUT (DJI's, for D-Log M). Only the ones the clip has: an HDR clip (an export) has HDR as it is and NBCU's SDR. What you choose is what the next clips start in on that kind of screen, HDR or SDR, for the session (Look → Remember as default keeps it); an SDR look chosen on either becomes the SDR screen's. A clip starts in HDR on an HDR screen, in the SDR look last chosen on an SDR one. On an SDR screen HDR shows as macOS tones it down; on an HDR screen SDR shows as an SDR screen would dlogm/sdr
Ctrl+h Straight to HDR, as Ctrl+s would choose it dlogm/hdr
L Log handling off for this clip: the file as it is, flat as the camera recorded it (an HDR clip: in HDR) dlogm/off
Ctrl+l The source's log curve, by hand: D-Log M, D-Log, GP-Log, GP-Log2, I-Log (10-bit) in turn. For clips whose metadata doesn't say. The source's input: Source → Save to the source keeps it, for all its moments and clips dlogm/curve
Ctrl+p Temporal denoise on/off (none with Performance & Quality's Temporal denoise off): each frame, while it plays and paused, from it and the 5 frames on each side of it (3 with Light), each moved onto it by the motion between them, so its noise and the particles in the water mostly go and the detail stays (the stabilization must be on; the picture shows 5 frames later, the sound follows). It's the clip's: kept with its transform (the panel's Save), so a clip it harms (the water's surface) keeps it off; clips with nothing saved play with the session's. Exports have it too (not fully tested yet: measured headless, not tried in the app or on Windows/Linux) (Shift+E, moments, the Library's batches, a Live Photo's video): each frame cleaned from the frames on both sides of it by the player's own shader (Full or Light as Performance & Quality has it, and Stronger), which gyroflow-export runs offline gyroflow/still
c Save frame (the side panel's camera): a frame over the video for a photo of this frame — the whole video's crop is Gyroflow's (Ctrl+e) (16:9, 4:3, 1:1, 4:5, 3:4, 9:16 or the video's own; a changes it), what's around it dimmed, and the picture moved under it. A drag, or two fingers on a trackpad, pans; the mouse wheel or a pinch zooms; Alt+drag or a two-finger rotation levels the horizon; a double click puts it back. Where the clip is stabilized, panning turns the stabilized camera (Gyroflow re-renders the frame looking that way) and zoom is its field of view; elsewhere it moves and scales the picture. Enter saves it as a photo; c or Esc leaves gyroflow/crop
Alt+s The frame on screen as a photo link, in a project: a small picture of the frame as it shows (at most 1280 px, Save frame's crop) with its link inside (the clip, the time, the crop and camera), _Stills/Generated/<clip>_<time>s.afplink.jpg, made at once with nothing rendered. The Library shows it in its albums and its Share renders the photo when it's shared (HEIC with a gain map). Outside a project, as Alt+Shift+s gyroflow/photo
Alt+Shift+s The frame on screen as a full photo, rendered now, in the project's _Stills/ folder (beside _Exports/; with no project, stabilized/ next to the clip): stabilized as it plays, cleaned up from the frames around it (as Ctrl+p does), with Save frame's frame and camera. The SDR look is the image, with a gain map to the HDR one (HLG), so an HDR screen shows it brighter: a HEIC on macOS, an Ultra HDR JPEG elsewhere (Android, Chrome and Apple read its ISO gain map). With 3 s of the video around it, as a phone's (the Save frame panel's Still / Live Photo / Motion Photo), exported as Shift+E would, at most 1920 wide or high: a Live Photo for Apple's devices (macOS: a .mov next to the HEIC; Photos and the iPhone take the two as one) or a Motion Photo for Android's (<name>.MP.jpg, an Ultra HDR JPEG with the video inside it, as Android's cameras write it) gyroflow/photo-full
Shift+E Export the clip as it plays; with an A-B loop (l), only that part. On a clip being exported, twice: cancel gyroflow/export
k Save the A-B part (l) as a moment, asking its name; on a moment whose part was moved: update it workspace/moment
M A mark here; on a mark (within half a second), the camera's too: remove it highlights/mark
P / X / U Culling (how): Accept / Reject the original or the moment playing (again: neither) / neither. A clip preview playing culls its original; an export isn't culled. Kept with it as the Library keeps it, and as Finder tags when the library has them on (Project settings → Tags, both ways). X used to remove the clip preview: that's the menu's Remove this clip's preview now workspace/accept, workspace/reject, workspace/unpick
1–5, 0 That many stars on the original or moment playing (the same again: none); 0: none. These keys were mpv's contrast, brightness, gamma and volume up workspace/rate-1 … workspace/rate-0
K A tag of your own on the original or moment playing: type it to put it on, or one it has to take it off (-name off, +name on, commas for several; Tab completes the tags used last). The Project tab has Accept / Reject, the stars, its tags and the recent ones a click away workspace/tags
(menu, the Project tab) This clip out of its album: its link in _Clips/ to the Trash (the clip stays) workspace/not-interesting
Ctrl+x Cut the A-B part out of a clip spoiled in part, without re-encoding, after asking: the original to the Trash, its marks and moments following (how) workspace/cut-out
Ctrl+e Open the clip's project in Gyroflow (written next to the clip first when it has none); saving it there reloads the stabilization here. A clip without motion data opens in Gyroflow as it is, to stabilize it from the picture gyroflow/edit
Ctrl+t Telemetry off/on; it sticks for the next clips dji_telemetry/toggle
v Subtitles off/on: the clip's own, or the camera's data that DJI's drones write as subtitles, which is off when a clip starts (see Telemetry); the camera's turned on sticks for the next clips dji_telemetry/subtitles
Ctrl+] / Ctrl+[ The next highlight the camera marked, and the one before, landing a couple of seconds before it (before=); Ctrl+[ again right after goes on to the one before that. mpv's chapter keys, Page Up / Page Down, go to them too, at the mark itself highlights/next, highlights/prev
Ctrl+r A note for an AI agent: the areas of the frame you mean and a comment, saved with what's on the screen and what the player is doing (see Notes for an AI agent) agent/report
Alt+b Something's wrong here: with the usage trace on (off by default, docs/design/usage-trace.md), a marker in this computer's journal with a picture of the window and a line about it, for filing a bug later side_panel/mark
drag, wheel On a 360° clip (stitched, with spherical metadata: Insta360 Studio's, DJI Studio's, GoPro Player's exports), the view to look around in: a drag, or two fingers on a trackpad, turns your head, what's under the mouse staying under it; the wheel or a pinch zooms; Alt+drag or a two-finger rotation turns the horizon; a double click or Backspace looks ahead again. Paused as playing. The window isn't dragged by the video meanwhile
Alt+v A 360° clip: the view to look around in, or the sphere as recorded, unrolled flat view360/toggle
Alt+p A 360° clip: the projection, auto (straight lines straight up to 100°, the whole sphere from 160°) → rectilinear → stereographic → little planet view360/projection
right click The plugins' menu, when there's no side panel (mpv's own menu with it) footage_menu/menu
Tab The panel beside the video, hidden or shown side_panel/toggle
F8 The panel's Playlist: the videos in the clip's folder side_panel/playlist
wheel over the bar A frame on (up, or a swipe right) or back (down, left)

To use other keys, bind the names in input.conf, e.g. Ctrl+d script-binding dlogm/sdr. What the menu sets without a key, a key can too, with the plugins' script messages (listed at the top of each plugin's main.lua), e.g. Ctrl+j script-message-to gyroflow horizon-lock toggle or Ctrl+2 script-message-to gyroflow view wide.

In detail

Options

In ActionFootagePlayer, ~/Library/Application Support/ActionFootagePlayer/mpv/script-opts/<plugin>.conf (Windows: %LOCALAPPDATA%\ActionFootagePlayer\mpv\script-opts\); with the plugins in your own mpv, ~/.config/mpv/script-opts/<plugin>.conf, or on the command line as --script-opts=dlogm-mode=sdr (a value with commas: --script-opts-append=dji_telemetry-fields=depth,pressure). The menu's Remember as default writes them there:

dlogm.conf: mode=hdr what D-Log M clips start in: hdr, or sdr (DJI's Rec.709 LUT)
dlogm.conf: dv_live_l1=yes Mac, the app: HLG+DV measures each frame's light levels as it plays and sends them with it (--macos-dovi-live-l1); no: the trims' fixed ones, and the side panel's scene-level sliders back
dlogm.conf: denoise=no yes: the noise reduction while it plays (no key or menu item any more: at playback rates the eye evens the noise out, and Ctrl+p cleans the paused frame). How strong it is: glsl-shader-opts=denoise_strength=2 in mpv.conf
gyroflow.conf: hwdec=yes decode the clips it stabilizes on the GPU (hwdec=auto) whatever mpv's hwdec is (software decoding doesn't keep up with 4K); no leaves it to hwdec
gyroflow.conf: ask_when_slow=yes when the stabilization keeps dropping frames (more than 2 s), playback pauses and offers a smaller resolution, a lighter denoise or edge fill; what's picked is kept here. no: it plays on as it can
gyroflow.conf: view=normal what clips without a project start in: normal, or wide (the wider view)
gyroflow.conf: level=medium the level clips without a project start in: weak, medium or strong (Ctrl+k)
gyroflow.conf: horizon_lock=project the default horizon: yes, level (Gyroflow's horizon lock at 100 %, in exports too); no: free; project: as the preset has it. A clip with a .gyroflow plays with the project's
gyroflow.conf: underwater=auto the lens of sources without a correction of their own: yes under water with a flat port, no above water (or a dome port), auto as the camera says (its In water / Out of water; for cameras that don't record it, as the preset says). A clip with a .gyroflow plays with the project's. See Stabilization
gyroflow.conf: chromatic=yes the water's color fringes taken out where the lens is under water (Ctrl+a), or no: as recorded
gyroflow.conf: chromatic_skip=no yes: the color aberration correction skipped on this screen, for smooth playback (Performance & Quality); the clips' transforms keep it, exports and photos have it
gyroflow.conf: aspect=original, orientation=as-is, projection=linear the default frame: original or a ratio landscape-wise (16:9, 4:3, 5:4, 1:1), its orientation (as-is, landscape, portrait), and the projection (linear, stereographic, equidistant, equisolid, orthographic); Use as default writes them
gyroflow.conf: lens=corrected the default lens: corrected (Gyroflow's lens correction and the projection, with the stabilization off too: the lens alone) or as-recorded; Use as default writes it
gyroflow.conf: edges=sphere what fills the edges the stabilized frame doesn't cover: sphere (what was seen in that direction of the world; where nothing was yet, the colors around spread in), smooth (only the frame's own colors spread out from its edge), or off (the project's background color)
gyroflow.conf: edges_blur=2 blur of the edge fill (% of the frame height)
gyroflow.conf: resolution=auto the stabilized frame rendered as big as the window shows it (a 1080p display: a quarter of 4K's pixels to stabilize and shade), mpv scaling it to the screen; at most 1080p while the temporal denoise (Ctrl+p) is on: at a Retina screen's size it drops frames full screen. display: the display's size, denoise or not. video: at the video's own size (up to 4K). 1080 or 720: no bigger than the display, and its short side no longer than that. Right click > Quality, or the panel's Performance & Quality › Size, sets it
gyroflow.conf: still=yes, temporal_denoise=full, denoise_strong=no, still_delay=0.4, still_grain=0.25 the temporal denoise (Ctrl+p): on or off by default (a clip's transform has its own; the panel's Use as default sets this), how much of it this computer does (off leaves it out whatever a clip's says) (full: 5 frames on each side, light: 3, off: none; Performance & Quality), Stronger by default (a clip's transform has its own: no grain kept, open water smoothed), how long after pausing the paused frame is cleaned (s), and how much of the grain stays (0: none, 1: all)
gyroflow.conf: live_photo=yes photos with the motion around them: live (Live Photo, macOS), motion (Motion Photo), no (the still alone); yes: Live Photos on macOS, Motion Photos elsewhere. The Save frame panel sets it
gyroflow.conf: workers, lookahead, max_fps, fps_limit, edge_fill_rate, paused_full_size, zoom_margin, sphere_max_fps, sphere_cache_mb, gpu the VapourSynth path's (taken out, 2026-11): read and ignored
gyroflow.conf: gyroflow_app= Linux, Windows: the Gyroflow executable Ctrl+e opens projects with
dji_telemetry.conf: fields= what to show, in that order; not set: what the clip has (see Telemetry)
dji_telemetry.conf: units=metric or imperial: feet, mph, °F
dji_telemetry.conf: position=bottom-left top-left, top-right, bottom-right (top left has mpv's messages, top right the exports' progress)
dji_telemetry.conf: font_size=28 at a 720-pixel-high window; it scales with the window
dji_telemetry.conf: visible=yes no: shown only after Ctrl+t
highlights.conf: before=2 seconds before each highlight a jump lands: the button is pressed once the moment has happened
highlights.conf: chapters=yes the highlights as chapters too, which mpv's seek bar shows as marks; no: only the keys and the menu
footage_menu.conf: setup= a setup script the menu offers to run again (ActionFootagePlayer sets its own)
footage_menu.conf: version= the version the menu shows beside the app's name (ActionFootagePlayer sets its own)
agent.conf: socket= the IPC socket an agent reaches the player by, when mpv has none (input-ipc-server); empty: see Notes for an AI agent

The telemetry plugin's file is dji_telemetry.conf, with an underscore: mpv names a script after its folder, with anything but letters and digits made _ (the menu's: footage_menu.conf). The menu's Remember as default writes these files, keeping whatever else is in them.

Stabilization

Make the project in Gyroflow and save it next to the clip (Ctrl+S in Gyroflow): mpv uses it. Or start from what's playing: Ctrl+e pauses the clip and opens its project in Gyroflow. A clip that plays without a .gyroflow next to it (it plays with the default preset) gets one first, written by the plugin from what it renders: the same lens profile, smoothing, zoom and refraction, so Gyroflow starts from what you saw. The view and the horizon lock go into it as they are: from the wider view, the project has Gyroflow's zoom off at that view's FOV, so it looks the same there, and here once it's saved (a clip with a project starts in it as it is: On (Gyroflow project)). A .gyroflow that's already there is opened as it is, never overwritten. Each time you save in Gyroflow (Cmd+S overwrites the project it opened), mpv reloads the stabilization with it, at the same spot in the clip. The project then stays next to the clip, and mpv plays the clip with it from then on. The project Ctrl+e writes has the level as Gyroflow's Smoothness and FOV with its zoom off (Gyroflow's Default second pass measures against the clip's largest drift, not the crop, so it smooths a little differently there), and the motion data in it, as Gyroflow's own Save writes it: Gyroflow opens it without reading the motion data from the video again.

A clip without motion data (shot with the camera's stabilization on, or by a camera that records none) can be stabilized from the picture: Ctrl+e (or the menu's Stabilize in Gyroflow) opens the video itself in Gyroflow, where its motion is found by optical flow. Save the project next to the clip there, and the clip loads again where it was, stabilized with it. On Linux and Windows this needs gyroflow_app (Options).

A clip with a project plays as the project says. It was made in Gyroflow on purpose, so the clip starts with its own horizon lock and lens (under water or not, keyframed or not), whatever the menu had for the clip before and whatever gyroflow.conf says: those are for clips without a project, which play with the default preset. Set from the menu or the keys while a clip with a project plays, they're for that clip only; the next one starts with its project's again. The edge fill (Ctrl+b) isn't Gyroflow's, so it's the player's for every clip; the color fringes (Ctrl+a) and the temporal denoise (Ctrl+p) are the clip's transform's.

The menu's Stabilization → Horizon: Locked level keeps the horizon level, whatever the project says (Gyroflow's horizon lock at 100 %, its roll and pitch as the project has them); Not locked; or As the project says (as the preset says, for a clip without one), what a clip with a project starts with. Locked needs more zoom, so the edges show more.

The project is always the .gyroflow next to the clip: the video file itself is never written to, so a backup of it stays as it is.

Clips with gyro data of their own, recorded with the camera's stabilization off, play stabilized even without a project: DJI with EIS off, GoPro with HyperSmooth off (tried on a HERO12 Black), and (not yet tried on a real clip, see Other cameras) Insta360 with FlowState off in the camera, when Gyroflow's database has their lens. Only when the camera recorded that it was off: footage the camera stabilized already gets worse stabilized again, so a clip that doesn't say plays as it is. One exception: a GoPro HERO12 or later with HyperSmooth on (any mode: On, Boost, AutoBoost, horizon leveling) records with each frame how HyperSmooth turned the picture, so its motion data is the picture's own and the player stabilizes what HyperSmooth left, with half the level's crop (HyperSmooth cropped for itself already: vs-gyroflow/src/in_camera.rs). The HERO11 and older play as they are with HyperSmooth on: Gyroflow's GoPro page lists HyperSmooth as supported from the HERO8, but here it's taken only from the HERO12 on, the one tried (the HERO5-7 Black don't record the turn at all). These clips get Gyroflow's default preset and then default.gyroflow: yours in ~/Library/Application Support/ActionFootagePlayer/gyroflow/ if you put one there, else the plugin's (~/.config/mpv/scripts/gyroflow/, or in ActionFootagePlayer). Why a clip isn't stabilized is in mpv's log (--msg-level=gyroflow=v; for D-Log M, --msg-level=dlogm=v).

The lens profile comes from the clip when the camera recorded its lens there (DJI with EIS off, newer GoPros: the HERO12 Black does). Otherwise the player takes a lens by itself only when it's made for exactly the clip's mode: the same camera, lens mode, in-camera stabilization (GoPro's HyperSmooth, DJI's EIS), resolution and frame rate, with its rolling-shutter readout. A lens that only nearly fits is not taken (Anton's rule: the readout matters most on old cameras). Where it looks, in order:

  1. a lens type chosen for the clip;
  2. the lens in the file;
  3. the player's own lens database: profiles estimated from footage (built in, shown as "built in": HERO4 Black, HERO3 White, HERO7 Black and Osmo Action 6 modes, Anton's lens_profiles#41) and lenses you assigned to a mode;
  4. the curated list's type for the mode;
  5. Gyroflow's database, only a profile whose identifier is exactly the clip's, with a readout, not voted down.

Otherwise Source → Lens says No ready lens and offers the camera's lenses under Lens for the mode, the ones made for exactly this mode first. The Library's Info has the same choice. A lens chosen there is kept for every clip of that mode in lenses/ beside your own lens list (below), with an "afp" block naming the mode; Forget the lens assigned to this mode takes it away. gyroflow-probe --lens <clip> shows where the lens came from (from), the clip's mode (mode_key) and the lenses to choose from (candidates); --assign-lens <clip> <id> and --forget-lens <clip> do the same as the panel.

The lens dialog. Source → Lens → Choose lens… in the Library, and Source → Lens for the mode → Choose… in the player's side panel, open the same dialog: the lenses of the clip's camera mode, each with what Find and Estimate said of it on the clip (fits / not checked / not reliable / doesn't fit / not tried, its readout, how far the lens moved), Find lens and Estimate lens run from there on the clip (the player runs them itself, no Library needed), Try on this clip (this clip alone takes it, measured again with it and played so; its mode's other clips keep theirs) and Use for the mode (every clip of the mode takes it; the selected ones measured again). A lens tried on a clip is kept in its own file (source.lens in <clip>.afp.json, with its readout) and wins over its mode's wherever its lens is decided: the probe, measuring, playing, the GPU table and exports. Source → Lens says "Tried on this clip only"; in the dialog Use for the mode makes it the mode's, Forget the lens tried on this clip goes back to the mode's. One click selects a lens; in the player Up/Down move, Enter uses it for the mode, Esc closes. gyroflow-optical --lenses <clip> prints what it lists; --try-lens <clip> keep <n> | assign <id> | forget and --promote-lens <clip> do the same from the command line.

Find lens / Estimate lens (Gyroflow's own "lens from the video", gyroflow/gyroflow#1296):

  • Quick (on by default; the dialog's switch, remembered; gyroflow.conf lens_quick in the player; --quick on the command line): Find stops at the first lens that fits, a "good" verdict with a readout, trying the nearest first (the lens in use, then those made for this frame size, then others). GOPR1585: 5 s instead of 15.
  • Find lens tries the known lenses of each clip's camera on three parts of it, in air and under water. Where a lens has no readout, it measures one on the clip. About 15 s a clip.
  • Estimate lens makes a lens and its readout from one clip, then checks it on the other parts of the clip. Under a minute.
  • What fits is listed, in Source → Lens and in the task's entry under Tasks, with Use for this mode and measure again: it becomes the lens of every clip of that mode, and the selected clips of that mode measured from the picture (or with no motion data) are measured again with it. A lens that fits only loosely is shown as not reliable and isn't kept. Find leaves out a GoPro's Max Lens Mod profiles for a clip recorded without the mod, and Estimate doesn't start from a lens Find found not to fit.
  • Not for a clip with its lens in the file (a GoPro from the HERO11, a DJI where the player takes the file's): that is the camera's own calibration of the clip, so no lens is chosen, found or estimated for it (Source → Lens says so, and the commands refuse).
  • From the command line: gyroflow-optical --find-lens <clip>..., --estimate-lens <clip>, --keep-lens <clip> <n>. The stars are a snapshot taken at build time (tools/update_lens_ratings.sh); the player reads nothing online.

Lens types, for cameras the database has nothing for. Gyroflow's database has no Osmo Action 4/5/6 profiles; the Action 6 carries its lens in the file only in Wide with EIS off. Another Action camera's profile fits it, so a curated list (vs-gyroflow/resources/curated_lenses.json) gives the Action 6's lens types a profile chosen by hand. Today Normal has the original Osmo Action's standard lens, and Wide uses the lens in the file. The type is the one the camera recorded (the Action 6 writes its FOV mode in every clip, EIS on or off), unless one was chosen for the clip (source.lens_type in its .afp.json; the Library sets it for the clips selected). Source → Lens shows "Normal, from the curated list: …". A mode the list doesn't name yet shows as "Unknown (mode 6)": the camera's own number for it (DJI's fov_type), so a lens tried on such clips can be given that mode once it fits; a named type without a profile (Wide with EIS on) as "Unknown (Wide)".

The GoPro HERO4 Black is in the list too. It records no GPMF, so Gyroflow can't tell its lens mode, but its file's settings box (udta/SETT) has the mode: 0 is Wide and 2 is Medium (lenses estimated from Anton's footage confirm both); 4 (Narrow?) isn't named yet. Its types have no profile of their own: their lenses come from the player's own database, for exactly the clip's size and frame rate (Wide 1080p 59.94, 2.7K 59.94, 4K 29.97; Medium 2.7K at 23.98, 29.97 and 59.94), else No ready lens.

The drones are in it as well, with a focal length alone, since a drone straightens its picture itself and the gimbal holds it: the Mini 4 Pro and the Mavic Air 2 (FC3170) at 24 mm equivalent and the Mavic Pro (FC220) at 26 mm, from DJI's specs. Each has one type, Main camera, that its clips take by default ("default"). Gyroflow's database has nothing good for them (a 720p screen profile of the Mini 4 Pro; Mavic Pro and Mavic Air 2 4K profiles voted down).

Your own lens list. The same list can be kept outside the app, so a profile can be tried without a new build: curated_lenses.json in the app's data folder (macOS: ~/Library/Application Support/ActionFootagePlayer/; Windows: %APPDATA%\ActionFootagePlayer\; Linux: ~/.config/ActionFootagePlayer/), or the file $AFP_CURATED_LENSES names. What it has for a camera is laid over the built-in list: its modes and its types (by id) win, and a new type is added after the others. It's read again as soon as it changes (a clip opened next takes it). If it can't be read, the built-in list is used and gyroflow-probe --lens <clip> says why (curated_error).

{ "cameras": {
    "DJI OsmoAction6": {
      "recorded": { "6": "wide", "0": "straight" },
      "types": [
        { "id": "wide", "label": "Wide", "profile": null,
          "sizes": { "4:3": "DJI/DJI_Osmo Action___4k_4by3_4000x3000-29.97fps.json" } },
        { "id": "straight", "label": "Straight", "profile": { "focal_35mm": 20 } },
        { "id": "mine", "label": "My calibration", "profile": "my_action6_wide.json" } ] },
    "GoPro HERO4 Black": { "recorded": { "0": "wide" } },
    "DJI Mini4 Pro": { "default": "main",
      "types": [ { "id": "main", "label": "Main camera", "profile": { "focal_35mm": 24 } } ] } } }
  • A camera's key is its brand and model as gyroflow-probe --lens <clip> prints them ("camera"); case and spaces don't matter. Where Gyroflow doesn't know the model (a Mini 4 Pro reads as just "DJI") or the camera at all (a Mavic Pro, a HERO3), it's the name the Library gives it too: DJI's own header ("DJI Mini 4 Pro"), DJI's camera code in udta/©mdl ("FC220" is "DJI Mavic Pro"), for a clip DJI's muxer saved again ("Lavf56") the drone's photos in the same folder ("DJI Mavic Air 2", else "DJI drone"), or an older GoPro's firmware ("GoPro HERO3 Black").
  • recorded: the camera's own number for its lens mode (DJI's fov_type and the HERO4's SETT, the number in "Unknown (mode 6)"), or Gyroflow's name for the mode ("Wide", "Linear" on GoPros with GPMF) → a type's id.
  • default: the type of a clip that wasn't given one in the Library and didn't record one the list names: for a camera that records no mode at all, such as a drone. A type chosen in the Library still wins.
  • profile: a key of Gyroflow's database (its file path under camera_presets, as in the built-in list); a lens profile file (.json, as Gyroflow's calibrator saves it): a full path, or a name next to the list; null: the lens in the file, else what the database gives; or a focal length only: no distortion, the picture taken as a plain (pinhole) camera's, for clips the camera already straightened (in-camera stabilization, distortion correction). {"focal_35mm": 20} is its 35 mm equivalent (on the diagonal, as camera specs give it); {"hfov": 100} is how wide the picture is across, in degrees. That corrects nothing in the picture, so the player doesn't add the filter for it on a clip it can't stabilize; it's what stabilization (Library → Stabilize optically) needs to know to turn the picture right.
  • sizes: another profile for one resolution ("3840x2880") or aspect ratio ("4:3"), either way round. An exact resolution wins over an aspect ratio, which wins over the type's own profile.
  • file_first: true makes the lens in the file (an Action 6 in Wide with EIS off, newer GoPros) come before the type's profile, unless the clip was given the type by hand in the Library.

A lens from a Gyroflow project, kept for the rest. In the Library, select a clip that has a Gyroflow project beside it: Info → Clip shows the lens the project uses ("In its Gyroflow project") and a button, Save as the default for DJI Osmo Action 6 · Mode 6 · 3840 × 2160. It writes that lens into this list as the one for the clip's camera, the lens mode the camera recorded it in, and its resolution (types[...].sizes["3840x2160"], the type marked file_first). A mode the list doesn't name yet gets a type of its own ("mode-6", or by Gyroflow's name for the mode, "wide") and recorded names it; a camera that records no mode gets it as its default. The profile is the key of Gyroflow's database when the project's lens is one of its profiles (matched by its calibration), else the lens is written next to the list as lenses/<name>-<checksum>.json. The Library then reads that camera's clips again, and those of the mode and size without a lens of their own show it as known. Clips with their own Gyroflow project, another type chosen by hand, or the lens in the file keep theirs. Once saved, the button says The default for ….

The default preset is made for underwater footage. In air, DJI's in-camera stabilization (EIS) works well, so there's little reason to turn it off. Under water it doesn't (as of today's firmware), likely because water bends light and the lens then behaves like a longer one than EIS is tuned for. So under water you shoot with EIS off, the camera records gyro data (it only does with EIS off), and those are the clips this stabilizes without a project. The plugin's default.gyroflow is mpv/scripts/gyroflow/underwater.gyroflow (install.sh keeps one you've changed in ~/.config/mpv/scripts/gyroflow/):

  • lens underwater: light refraction 1.33 (Gyroflow: Lens profile → Advanced → "Lens is underwater"). Without it the rotation is corrected by the wrong amount and part of the shake stays: on a test clip, jitter between frames went from 0.16 px to 0.02 px with it.
  • smoothing 0.5, zoom limit 140 %, horizon lock off: what Gyroflow opens it with. Here, the level's smoothing and crop take their place (below).

How strongly: the level. A clip without a project plays at one of three levels (Ctrl+k, the menu's Stabilization → Level), each a crop and a smoothness, all known when the clip opens: weak crops 10 % of the distance from the frame's center to its edge and smooths at 50 % (Gyroflow's Smoothness), medium (the default) 20 % at 75 %, strong 30 % at 100 %. The crop is taken from the widest view the frame covers while the camera holds still (from the lens alone; the log has it), with Gyroflow's zoom off. The smoothing is Gyroflow's Default, with its second pass held to the crop: where the camera turns further than the crop has room for, the picture follows it sooner, so the edges show only when it turns that far, filled as Ctrl+b says. The wider view of Ctrl+g smooths as the level does. Switching levels smooths the clip again in a few milliseconds, while it plays (vs-gyroflow/src/levels.rs, smoothing.rs). On top of a GoPro's HyperSmooth (above) the crops are half as large: 5, 10 and 15 %.

Because nothing in it depends on the whole clip, each moment only on the few seconds around it, a clip without a project plays from its first seconds of motion data: from a NAS in about a second, where reading all of it first took 5-10 s. The rest comes in as it plays: not read from the file in between the video's reads (on a NAS that breaks the read-ahead macOS does for the video: its reads slowed from under a millisecond to 34-45 ms), but taken from the file cache, where the video's own reads put it, the motion data of a moment sitting next to its video. What's played is as it would be with all of the motion data once 4 s more are known (measured on clips from the NAS: p99 0.02-0.9 px at the frame's center, the most in the first seconds, and the video's reads as fast as without it). After a seek past what's read, the seconds there are read from the file: the frames play uncorrected meanwhile (about 2 s from the NAS), and the correction comes in over half a second. While it's paused, the rest is read (vs-gyroflow/src/motion.rs). A project's clip, whose motion data the project has, reads only a tenth of its samples for In water / Out of water (25 s for a 5-minute clip from the NAS before).

Lens under water, above it, as the camera says, or as the project says. The menu's Stabilization → Lens sets the refraction for any clip, a project's too: Under water (1.33, or the project's own when it has one), Above water (none), As the project says (as the preset says, for a clip without one), what a clip with a project starts with, or Auto, the default for clips without one: as the camera says over the clip, its In water / Out of water (the telemetry's water: the barometer's flag, or the camera's underwater confidence). A clip that goes in and out of the water then has the refraction where it's in and none where it's out, changing over the one frame between. Only a camera that records it has Auto (the Osmo Action 6); for clips from other cameras it's greyed, and the clip plays as its project or preset says (the default preset: under water). A project that keyframes the refraction itself keeps its keyframes in Auto. It sticks for the next clips without a project, like the horizon lock, and goes into exports and into the project Ctrl+e writes (Auto as keyframes, which Gyroflow shows on its timeline: so a project made that way keeps the camera's In water / Out of water).

For clips from a camera without Auto shot with EIS off in air, pick Above water, or use a preset without the refraction (save one from Gyroflow: Export → Create settings preset, as default.gyroflow in one of the places above), or give those clips a project of their own.

Color fringes under water. Water bends blue more than red, so behind the flat glass of an action camera red and blue land apart from green towards the edges of the frame (lateral chromatic aberration): red inwards, blue outwards, 1-2 px of a 4K frame halfway out and more further out. The camera takes out its lens's own fringes, but knows nothing of the water. Wherever the stabilization has the lens under water (its refraction, frame by frame: as the camera's In water / Out of water says, or the project or preset, or as Stabilization → Lens / Ctrl+u sets it), each color is taken from where its own ray lands, with water's index for that color: blue, which lands furthest out, stays, and red and green are moved out to it, so nothing is taken from past the picture's edge. It's done on the GPU in RGB, inside the warp (shaders/gyroflow/warp.glsl; the export's pipes path runs mpv/scripts/gyroflow/chromatic.glsl), with where the lens's axis is in each stabilized frame (vs-gyroflow/src/dispersion.rs). How far each color goes is physics only, nothing fitted to footage (tools/water_dispersion.py): the lens profile gives each pixel's angle to the flat port, and water's index for each channel is averaged over its spectrum, for a grey object in daylight through 3 m of water. On Osmo Action 6 dive clips red's fringe at the edges of the frame, up to 3-7 px, goes to within about a pixel; blue's, up to 2-4 px, turns over to about 1-1.5 px the other way. Where the frame's own border shows (the wider view), it stays as recorded, against the edge fill or the background alike. Out of the water nothing moves. Ctrl+a leaves the fringes as recorded, and takes them out again; it switches nothing on above water (the lens stays as it is). Exports and photos have it too (not fully tested yet in video exports: measured headless only), as the clip plays (Shift+E, moments, the Library's batches, Alt+s): gyroflow-export runs the same shader on each stabilized frame (vs-gyroflow/src/user_shader.rs; --chromatic yes|no), whatever Performance & Quality skips on this screen. It needs vo=gpu-next (mpv's default).

Edges. When the project's zoom isn't enough to hide them (a fixed zoom, or zooming off), the stabilized frame leaves parts of the window empty, which Gyroflow fills with the project's background color. Here they're filled with something less noticeable, blurred and blended into the picture over a soft edge; Ctrl+b switches between them while playing, and edges_blur (Options) sets how blurred:

  • sphere, the default: what was last seen in that direction, by the gyro. It's taken from the whole source frame, not just what the output shows, so it also has what the zoom crops away and what the camera saw while shaking with no edges showing, and it stays where it was in the world, so it lines up with the picture through a pan. Only the camera's turning is known: near things that moved past it, or by themselves, are off (half-life 5 s). Where a direction wasn't seen yet, the colors around spread in, smoother the farther they go, a little desaturated and darker, as a lens's periphery falls off; that's made up on the sphere too, from all it has, so it stays put in the world and changes slowly instead of flickering with what passes the edge. Where what the sphere has just past the frame's edge no longer matches the edge (something moved, the light changed), it's taken away for what's made up from the edge as it is, so it doesn't show as a seam.
  • smooth: only the frame's own colors spread out from its edge the same way: nothing of earlier frames, so nothing that can be off, and the cheapest.
  • off: the project's background color, as Gyroflow renders it.

Where nothing is known, the colors around rather than a copy of the frame (scaled up, or unstabilized): its content moves at another scale than the world, and the eye catches that at the side even blurred.

A project's zoom limit can lower its smoothing rather than show edges, so such a clip may have none. Whether a clip with a project does is Gyroflow's own measurement when it loads: where the frame it renders is wider than the part the stabilized picture covers. A clip without one plays before the rest of its motion data is read, so it's ready to fill edges wherever they show. A clip with edges anywhere gets the sphere written as it plays, edges showing or not, so it has what to fill them with when they show. That's on a thread of its own, and only while the GPU has room: the frames come first, and where they need all of it the sphere is written less often, what it has fades into the trail by place, and every frame still plays. A clip without any has no sphere to write. The wider view of Ctrl+g shows more of the picture and has edges throughout: it turns the zoom off and picks Gyroflow's FOV for the clip so the stabilized picture covers about as much area as the frame, what falls outside the frame and the edges inside it taken together. That's the area of the frame's outline after the lens correction (the one Gyroflow's zoom fits its rectangle in), FOV = √(area / frame's area), the median over the clip (vs-gyroflow/src/lib.rs, wide_fov; the log has it). On an M1 Pro, 4K60 in the wider view, the filter keeps up with ~84 fps with the sphere as with the trail (it was ~75 with the sphere written with each frame), and plays at 60 with the sphere written ~57 times a second; with the GPU short of room (two workers instead of three), every frame still plays and the sphere is written ~25 times a second, where it used to drop frames.

Exporting

Shift+E exports the clip that's playing, the way it plays: the same project or default preset (or none, when it plays without stabilization: after Ctrl+g turned it off, or with nothing to stabilize it with), the wider view of Ctrl+g, the edges filled as Ctrl+b has them, the horizon locked or not and the lens under water or not as the menu has them, and the same log curve (Ctrl+l's too, none after L) with the same LUT: HDR, or Rec.709 in an SDR look (Ctrl+s): DJI's LUT for D-Log M, or NBCU's conversion for any curve (the menu's Export in SDR does that whatever plays, in the SDR look last chosen). With an A-B loop set (l twice), only that part. For YouTube (untested: no file has been uploaded to YouTube yet, so how YouTube reads the LUT inside is still to be seen) (the Export button's list, the menu's Export for YouTube) makes HDR10 for YouTube that carries the SDR look too: YouTube makes the SDR version people see on SDR screens itself, and a 3D LUT inside the file (as YouTube's own hdr_metadata tool attaches it) makes that version DJI's LUT or NBCU's conversion, as the player shows it, instead of YouTube's own conversion: Turtle (YouTube).mkv.

It asks the export's name first, as a moment does (Enter alone takes the suggestion), and the file goes to the trip's _Exports folder: _Exports/Turtle.mov, with the look in parentheses unless it's HDR (Turtle (SDR).mov, Turtle (Dolby Vision).mov), and 2 when the name is taken. A part that's a moment (played from its file or the menu, or the same part to the frame) is named after it; any other part is also saved as the moment export_Turtle, so it can be found and played in full quality after the export is deleted to make room. Inside the export is its link to the original: opened in the player, it plays as it is, and the menu's Open the original goes to its part of the clip. Without the workspace plugin (your own mpv with only some of the plugins) it doesn't ask, and the file is named as below.

Playback goes on meanwhile, with the progress in the top right corner (several clips can export at once, a line each); a notification says where the file went. Shift+E twice on a clip being exported cancels it: the export stops and the unfinished file is removed. Quitting mpv cancels the exports too.

The export and playback share the GPU and the video encoder/decoder. At the same priority a 4K60 clip stabilized in mpv plays at half speed during an export (on an M1 Pro: 480 frames dropped in 20 s instead of 40). So while the video plays, the export runs at background priority, macOS's lowest for CPU, disk and GPU: playback is as smooth as without it, but the export nearly stops ("slowed while playing"). Pause, and it goes on at full speed. In short: start the export, then pause to let it run, or keep watching and let it catch up whenever you pause.

The same from a terminal, for one clip or many:

~/.config/mpv/scripts/gyroflow/gyroflow-export DJI_0007_D.MP4 DJI_0008_D.MP4
~/.config/mpv/scripts/gyroflow/gyroflow-export --from 1:20 --to 1:45 DJI_0007_D.MP4

The result goes to the _Exports/ folder of the clip's project (the trip folder with Project.afproject in it above the clip, as the player initializes it), or with none to a stabilized/ folder next to the clip, as <name>_stab.mov (a part: <name>_stab_<from>-<to>s.mov). --out <folder> puts it elsewhere, --output <file> names the file.

Up to 0.7, exports went to a stabilized/ folder next to the clip. Those folders are left as they are, and nothing reads them back; a script of yours that expects new exports there passes --out stabilized (or the folder's full path).

What it renders:

  • Log (D-Log M, D-Log, GP-Log, GP-Log2, 10-bit I-Log: the curve the camera's metadata says, as the dlogm plugin reads it, or --curve dlogm|dlog|gplog|gplog2|ilog): HEVC Main10, Rec.2100 HLG (the same LUTs as playback, luts/<curve>_hlg.cube), tagged so macOS, iOS and YouTube show it as HDR. --sdr makes D-Log M Rec.709 with DJI's LUT instead, --nbcu any curve Rec.709 through NBCU's HLG → SDR conversion (the curve's LUT and NBCU's, made into one for the export).
  • --youtube maker|nbcu|auto (log, HLG or PQ clips): for YouTube, an MKV in HDR10: PQ in BT.2020 (log and HLG made PQ for BT.2100's 1000-nit reference display, as BT.2408 does it), the mastering display (the BVM-X300's, as YouTube's tool writes it) and the MaxCLL/MaxFALL measured, and a 65-point .cube attached (application/x-cube) that maps that PQ to the SDR look: DJI's LUT (D-Log M; made on your computer from the LUT you downloaded) or NBCU's conversion. YouTube honors such a LUT for PQ uploads, not HLG ones (users' reports), and doesn't document its levels: --youtube-lut full (the default, 0 black and 1 white, as grading apps write LUTs) or data (0..1 the 10-bit codes).
  • Other clips (and --curve none): HEVC Main10 in the colors they were recorded in.
  • --level weak|medium|strong: a clip without a project at that level (Ctrl+k; default medium).
  • --wide renders the wider view of Ctrl+g, --fov <x> at a FOV of your own; --edges sphere|smooth|off fills the edges as playback does (--edges-blur <%>); without them, as the project says, edges in its background color. A clip whose frame covers the output throughout has nothing to fill, and isn't.
  • --underwater yes|no|auto|project: the lens under water, above it, (the default) as the camera says over the clip, or as the project or preset says, as the menu's Lens has it (see Stabilization).
  • --chromatic yes|no: the water's color fringes taken out where the lens is under water (the default), as Ctrl+a does it, or left as recorded. --denoise light|full (--denoise-strong, --grain <0-1>): the temporal denoise as Ctrl+p plays it, each frame from the 3 or 5 frames on each side of it, the frames before and after the part decoded for it; off by default. Both run the player's own shaders on the stabilized frame (chromatic.glsl, warp.glsl's denoise) on the GPU, as Shift+E passes them for the clip.
  • --prores: ProRes 422 HQ instead of HEVC, for editing. The bit rate of HEVC follows the source's.
  • Log clips with nothing to stabilize them with (D-Log M shot with EIS on, say), and any clip with --no-stabilize (what Shift+E passes after Ctrl+g turned the stabilization off): the color conversion only, as <name>_color.mov in the same folder, at the clip's own size. Clips with neither, nothing to stabilize and not log, are skipped: there's nothing to change.
  • Audio is copied as it is, and the file keeps the clip's dates. An existing output is kept unless --force.
  • Ctrl+C stops it and removes the unfinished file. --background runs it at background priority, to keep working while it runs; kill -USR1 <pid> / kill -USR2 <pid> switch that later. --progress <file> writes the progress there as JSON twice a second (that's how mpv shows it).
  • --output <file> writes that file instead (one clip).

Previews are what the player's moments are made of (Moments, docs/design/moments-and-workspaces.md): a small MP4 that Finder, Explorer and a phone show and play, in SDR whatever the clip is.

~/.config/mpv/scripts/gyroflow/gyroflow-export --preview still --from 20 --to 30 --at 26.4 \
    --dates 2026-10-24T09:46:07+03:00 --output _Moments/Turtle.afplink.mp4 DJI_0093_D.MP4
  • --preview still: the frame at --at (else the middle of --from to --to), stabilized as an export would be with the same options, held for --from to --to (the whole clip without them): H.264 at 960 pixels on the long side, 10 fps, one keyframe, its frame also the cover art, so the frame is the file's icon. 150-350 KB for a camera's frame. D-Log M goes through DJI's Rec.709 LUT, other log curves and HLG through NBCU's conversion; a clip with nothing to stabilize or convert gets a preview too. Without --output, <name>.afplink.mp4 next to the clip (or in --out): the double extension says it's a link, and it opens as an MP4 anywhere.
  • --preview flipbook: the clip at a glance (the clip previews made before albums; the Library no longer asks for them): a frame at each of --at t1,t2,… (else about a dozen, 10 s apart at least), the keyframe at or before it, from the .LRF or .LRV beside the clip when there is one, in the same SDR look and not stabilized, 2 a second; --cover <t> makes the nearest frame its icon. It has the clip's own date.
  • --link <json>: the link to the original the player keeps in it, an MP4 key (ch.actionfootageplayer.link) that copying, renaming and tags keep, and a remux without -map_metadata 0 loses.
  • --dates <time>: its date, with the time zone: the MP4's creation time, QuickTime's creation date (the day Photos files it under) and the file's dates, so a folder of them sorts by when it happened. Without it, the clip's file dates.

Exports play back in HDR in the player too, as they are: a file tagged HDR (HLG or PQ: an export, a phone's or an action camera's HDR video) switches the screen to HDR the way a log clip does, with no LUT, and is never taken for log and graded a second time, whatever camera metadata or _D name it carries. Output → Display offers what its format allows: HDR as recorded; with Dolby Vision as macOS shows it, in HDR or toned down to SDR (its own Dolby Vision when it has one, profile 8.4 on HLG or 8.1 on PQ; else the player's trims, as an RPU of profile 8.4 for HLG and 8.1 for PQ: HDR10 underneath); in SDR by mpv's tone mapping or NBCU's HLG or PQ → SDR conversion (NBCU's for BT.2020 only). On a screen without HDR it starts in SDR, as log clips do. Export follows the look: Export in SDR through NBCU's conversion, and with Dolby Vision the player's RPU in the file (a file's own isn't carried: it's for the frames as they were). An SDR file has one look, as recorded.

A 4K60 clip exports at ~35 fps on an M1 Pro (Lanczos interpolation; --interpolation bicubic is what playback uses), without edges to fill. Filling them costs more: the export writes the sphere with every frame, where playback writes it as the GPU has room. The video is decoded once and encoded once: ffmpeg decodes it, the plugin's own engine stabilizes it on the GPU, the LUT is applied on the GPU too (vs-gyroflow/src/gpu_lut.rs, the shader's math), and ffmpeg encodes it with VideoToolbox.

Telemetry

DJI cameras record, next to the video, a message per frame with what the camera knew at that moment, and GoPro cameras about a second of it at a time (GPMF). The dji-telemetry plugin reads all of it when a clip opens and shows it bottom left. Each field shows when the clip has it:

fields=
depth under water: the barometer's altitude below the surface, in 0.1 m steps, about once a second. The camera starts recording it a second or two after it goes in
water In water / Out of water: the barometer's flag, or the camera's own underwater confidence, which comes from the picture and so also works in a dive housing. The lens's refraction follows it (Stabilization: Lens → Auto)
pressure hPa, ~100 more per meter of water
altitude the barometer's altitude out of water. It's relative and drifts by meters, so it's a rough guide
height a drone's height above where it took off
gps position, when the camera has a fix (DJI: a remote or Mimo connected)
speed ground speed from the GPS (Osmo 360 on an e-bike: the bike's)
temperature Osmo 360's image sensor, not the water
heartrate from a device paired with an Osmo 360
exposure ISO, shutter, aperture, EV (when it isn't 0), white balance

Without fields=, each clip shows what it has of depth, water, gps and speed, and exposure only when it has none of them (a drone's: height, gps and speed): a DJI clip shows the depth and whether the camera is in the water, a GoPro one the position and speed once the GPS has a fix (GoPro has no barometer), and a GoPro without GPS (HERO12 Black), or with it off, the exposure. Exposure isn't shown next to the others by default: it's a long line that changes all the time, so it's there for the asking (fields=, or the right-click menu). A fields= you set is shown as it is, in every clip, and so are fields picked in the menu, from then on (Remember as default keeps them).

In a dive housing the depth isn't recorded. The barometer then measures the air in the housing (1050-1100 hPa whatever the depth), and the camera doesn't set its in-water flag; water still shows In water, from the picture. The Osmo Action 6 records no temperature at all: no clip had any.

Models: the Osmo Action 6 (its schema isn't published; the layout was worked out from its recordings with tools/dji_meta_dump.py, below) and the Osmo 360 (from its schema). No Action 6 clip here had a GPS fix, so its gps and speed follow the Osmo 360's layout and haven't been seen working yet. GoPro: checked on GoPro's own sample clips (HERO5 to 8, MAX, Fusion), against what telemetry-parser reads from them. Clips from other cameras, and files that aren't from a camera at all (exports included), show nothing.

DJI's drones (Mini, Air, Mavic) write each frame's camera data as text instead: ISO, shutter, aperture, EV, white balance, GPS, height, as an .SRT next to the clip (the Mini 4 Pro's) or a subtitle track in it. It's read into the fields above, the speed worked out from the GPS (over a second) where the line doesn't give it. mpv also loads that text as subtitles and would show it in big letters over the picture; here a subtitle track that reads as a camera's data is off when a clip starts, and v, or Show the camera's text in the side panel (Output), shows it as it is. Other subtitles play as usual, and v turns them off and on too. Checked on a Mini 4 Pro's clips; the comma-separated lines of the older drones (Mavic Air 2, Mavic 2) from their published format only.

To look at what a clip recorded, or to work out another model's layout:

python3 tools/dji_meta_dump.py summary DJI_0072_D.MP4                       # every field: min, max, how often
python3 tools/dji_meta_dump.py timeline DJI_0072_D.MP4 3.2.13.2 3.2.13.3 -s 2  # some fields over time

Highlights and marks

A press of the camera's highlight button while it records marks that moment in the clip, and the highlights plugin reads the marks when the clip opens: they show on the seek bar as chapters ("Highlight 1", ...), Ctrl+] and Ctrl+[ jump to the next and the previous one, and the menu's Highlights lists them all by time. A jump lands two seconds before the mark (before= in highlights.conf): by the time the button is pressed, the moment has usually happened.

  • DJI Osmo Action 4, Action 5 Pro and Action 6: the quick switch button, or the GPS Bluetooth remote, while recording (in video, slow motion and hyperlapse; 190 at most). DJI's other cameras (Osmo 360, Pocket 3, the drones) don't mark highlights. Whether the ones added later, in the camera's playback, go into the file isn't known yet.
  • GoPro HERO5 and later: the HiLight button (the mode button, while recording), the voice command "GoPro, HiLight", or the remote.

Your own marks: M adds one where the video is, and on a mark (within half a second) removes it, a camera's too. The first change writes the marks into the clip's own file beside it, <clip>.afp.json (which also keeps its input and transform), with the camera's marks copied in and flagged as the camera's; from then on that list is the clip's marks. Marks need no project. Delete the file, and the camera's are back. The menu's Marks lists them by time, the camera's as "DJI quick switch" or "GoPro HiLight". A file left from another clip with the same name (GoPro reuses them on every card) is renamed .afp.json.old rather than shown on the wrong clip. A <clip>.marks.json from 0.8 is read, and becomes the .afp.json at the next change.

Each file of a recording the camera split has its own. None of it has been tried on a real clip yet: the layouts come from ExifTool (DJI, from an Action 4) and from a HERO7 Black's header (GoPro); see Highlights and marks in the architecture. A clip with a few marked, and the seconds they were marked at, would settle it: Other cameras, and how to help.

Source and transform

What the player keeps about a clip comes in two kinds, and the panel has a tab for each.

The source's input (the Source tab): how to read the source right, set once. The log curve (as the camera says, or one picked by hand), the turn it was recorded with (on top of what the file itself says), and the lens under water with a flat port (Auto: as the camera's telemetry says; Yes; No, above water or behind a dome port). It's kept only with the source, in its own file beside it (<clip>.afp.json, with its marks). A change, from wherever (the source, or one of its moments or clip previews, which all read it there), is for viewing until Save to the source on the Source tab writes it; Revert to saved goes back. The Transform tab's Save never touches it. The tab also shows what the source is: its color as recorded, the camera and the lens profile Gyroflow takes (from the file, its database, the Gyroflow project, or unknown) and whether it has motion data.

The transform (the Transform tab): how it's shown, a matter of taste. The stabilization (on, wider, off), the level, the horizon (level or free), the lens (corrected, or as recorded) and its projection, the color aberration under water, and the frame's ratio and orientation. It's kept only whole, every setting at once, never one alone:

  • Where it's defined, from the top: what's chosen while it plays (for viewing only, until it ends); a moment's or clip preview's own (with Settings of its own); the source's own (in its file); the session's, which starts as the defaults and changes only by hand; the defaults. The topmost one there is plays, and they never mix.
  • What sticks: a change on a clip that plays with the session's (nothing saved for it) is the session's too, for the next clips. On a clip with its own saved, a change is for viewing only, and Revert to saved goes back.
  • Save writes what plays, whole, where it's defined: a moment's or clip preview's own, else the source's. Auto save (this session) writes as you go: a clip with nothing saved gets what plays as it opens (even unchanged), and every change after. That's for a fresh card: look through it and set each clip as it seems right, without a button. Off, to try things on footage already set. Use as default makes what plays the defaults and the session's.
  • Moments are made with their own, whole, and a copy of the source's Gyroflow project when it has one: nothing changes a moment later but you. k takes what plays; Moments for marks in none takes the source's own, else the defaults (not the session's: a moment is kept as made). A clip preview starts without its own and plays as its source; switched on, it keeps its own too. A transform written before a setting existed is filled with what it plays with as it opens.
  • A clip with a Gyroflow project: the project decides the smoothing, horizon, frame and projection, and of the input the turn and the lens. They're shown as the project has them; change them in Gyroflow (Ctrl+e). The stabilization itself is yours and is saved with the clip like any other setting: On plays the project as it is, Wider plays it without its zoom (the whole picture; the edges show at times), and Off leaves a project that came out badly unused without deleting it (the lens is still corrected as the project has it). With none saved, a clip with a project starts On. What was saved beside the clip before stays in its file, not played, and comes back if the project goes.
  • Lens: apart from the stabilization. Corrected (Gyroflow's lens correction, and the projection below) or As recorded. It needs a lens profile (Source → Lens), not motion data: the stabilization off with the lens corrected shows the lens alone corrected, nothing smoothed, and so does a clip with a lens profile and no motion data (an underwater rig that's steady already). A clip whose camera recorded no lens (an Osmo Action 6 with its own stabilization on records neither) can't have it corrected yet: picking a lens by hand comes later. A transform saved before the lens was a setting of its own plays as it did: off with the lens as recorded.
  • Frame: the ratio (the video's own, 16:9, 4:3, 5:4, 1:1) and its orientation (As is: as the source is, a vertical clip's 16:9 is 9:16; Landscape; Portrait), and the projection: linear (straight lines straight), or a fisheye, its edges more and more compressed (Gyroflow's stereographic, equidistant, equisolid and orthographic), for Wide footage above water. The player shows it as it'll be, and exports, moments, clip previews and photos are made in it. Where Gyroflow doesn't make the frame (no lens correction, no stabilization), mpv crops it; the projection needs the lens corrected.
  • Not in either: the video output (Output → Display: it depends on the screen) and Performance & Quality (this computer's), which make playback lighter without changing what's saved or exported.

Moments

A moment is a part of a clip you want to keep: the turtle, the jump. Mark it with l at its start and l at its end, press k, type its name (Enter alone takes the one suggested: the last name with the next number, "Turtle 2", or the date and time), and it's saved as a small file in a _Moments folder of the trip: _Moments/Turtle.afplink.mp4.

  • It's a link, not a copy. The file is one frame of the moment, in color and stabilized, held for its length, some 150-350 KB. Finder shows that frame as its icon, and the double extension says it's a link (it still opens as an MP4 anywhere). Inside it is where its part of the original clip is.
  • Opening it in the player plays its part of the original as a video of its own, in full quality, with the original's stabilization, look and telemetry: the seek bar is the moment's, from 0:00 to its length, and the panel shows the moment (its marks, Rename, Remove). Then the next moment in the folder, and at the last one it stops. Opening the _Moments folder plays all of them one after another, in the order they happened.
  • Its whole clip: Open the whole clip in the panel (or a moment's ⋯: In its clip) opens the clip at the moment's start, its part marked but not looped, to see what came before and after. Moving its start or end there and k updates that moment; inside the moment, marking a part of it and k trims it.
  • Where: in the trip's project. A project is never made by itself: the first time something needs one (a moment, an export, clip previews), the side panel's Project tab opens and asks you to initialize it, in the folder you choose among those above the clip (the trip's, say, so that every day's folder is in it). It's a Project.afproject file there (a double click opens the trip in Action Footage Library), and _Moments/, _Clips/, _Exports/ and _Stills/ (photos) once there's something to keep. A project from before 0.9 has an _ActionFootagePlayer folder instead: the player moves it into Project.afproject the first time it opens one of its clips. A clip under a folder that has one belongs to it. A card or folder that can't be written isn't supported yet.
  • On the seek bar a moment is two chapters, its start and its end ("Turtle", "Turtle end"). The menu's Moments lists the clip's moments, to play, rename, remove (to the Trash) or show in Finder.
  • Viewed as it was made: a moment keeps the transform it was made with, whole (its own settings, which can be switched off to play as its source does); the input (curve, turn, lens) is always its source's. A clip with a Gyroflow project gives the moment a copy, _Moments/Turtle.gyroflow, trimmed to it, so the clip's project changed later doesn't change the moment. Stabilized on its own (the Project tab, for the moment playing; New moments stabilized on their own in the project's ⋯): its smoothing and crop from its own motion, not the clip's around it. Ctrl+e on a moment opens its own project in Gyroflow, made then from what it plays with if it has none; a trim changed there becomes the moment's ends. Changed while it plays, its transform is for viewing only; Save (the Transform tab) writes it into the moment.
  • Changing one: play it (or open it in its whole clip), move its start or end with l, press k, and Enter updates it; a new name saves a new moment instead. Its Finder tags stay.
  • All the marks at once (Action Footage Library): Moments of all marks makes a moment of each mark of the trip's clips that is in no moment yet, 2 s on each side (marks closer together share one), named by the time it happened, each with its source's transform, else the defaults; Photos of all marks saves a photo at each mark into _Stills/ (stills, Live or Motion Photos, chosen there), once: Project.afproject keeps which, so a photo deleted isn't made again.
  • Sort a _Moments folder by date in Finder: the files have the moment's own date and time, so they come in the order things happened, whatever their names.

Albums: clips as light links

An album is a folder of links in the project's _Clips folder: _Clips/Egypt/DJI_0068_D.afplink.mp4. You make them in Action Footage Library: select clips in Originals, then Add to an album… (a new album or one you have). The originals stay where they are.

  • What a link is: a small file (about 20 KB) with one thumbnail of the clip and the link to it, nothing else. Finder and Quick Look show the thumbnail, and a double click plays the original in the player.
  • Where the thumbnail comes from: the picture the system or the camera already has for the clip (Finder's, the camera's .THM or low-resolution file). No frame is searched for in the original. When the clip's log curve is known already, the thumbnail is turned to normal color with the LUTs the player uses; a clip not read yet keeps the thumbnail as it is.
  • How long it takes: about 15 ms a clip on local files (300 clips in 4.5 s; 2.6 s when their thumbnails were shown already). Nothing runs in the player.
  • Arranging: albums can hold albums. In the Library's Albums tab: New album, rename, Move to an album…, Add to another album… (a second link to the same clip), Remove from the album (the link goes to the Trash; the original is untouched). X in the player takes the clip playing out of its album.
  • Rename and move them in Finder as you like: a link is found by what's inside it. (Renaming the clips themselves, the originals, is followed by the Library's Find moved files.)
  • Variants: a link plays as its clip is saved to. Settings of its own (the panel, while it plays) gives it its own view, and a copy of the clip's Gyroflow project when it has one.
  • Clip previews made before (a flipbook of the clip, made by a batch in the player) stay where they are and work as album items. New ones aren't made: the batch took about a second a clip and gave no more than the thumbnail.

Action Footage Library

The player plays; what's made for a whole trip is made in Action Footage Library, an app beside it (ActionFootageLibrary.app next to the player in Applications; ActionFootageLibrary.exe in the player's folder on Windows). It's a download of its own, from the same release: ActionFootageLibrary-<version>-macos-arm64.dmg, or ActionFootageLibrary-<version>-windows-<arch>-setup.exe, run after the player's installer. It opens a project: double-click the trip's Project.afproject, drop it on its window, choose it with Open…, or Open in Action Footage Library in the player (the side panel's Project tab, or right click → Project). Then, as buttons:

  • Add to an album… (Originals, Albums): links to the selected clips, made at once by the Library itself;

  • Make moments: moments of all marks, with Stabilized on their own;

  • Make photos: photos of all marks, as stills, Live Photos (macOS) or Motion Photos;

  • Export: every moment not exported yet into _Exports/, each with its own settings, in HDR as recorded or in SDR, as Shift+E exports one.

  • Source Settings (Albums, Originals, the side panel): how each selected original is read, as a list of its attributes, each with what it is now (Mixed for several): the turn, the log curve, the underwater colour, the lens (a lens chosen for the whole mode, Find / Estimate lens), the lens type, the lens under water, the motion data. Change any of them and Save: for all the selected clips at once, where it applies. Each is a filter too.

  • Stabilize optically (Source Settings' Motion data): for the selected clips whose motion the player can't take from the camera (none recorded, or recorded with the camera's own stabilization on: HyperSmooth on a HERO11 or older, RockSteady), the motion is measured from the picture (Gyroflow's own analysis, run by the player: no Gyroflow app needed) and kept beside each clip in <clip>.afp-motion, where the player plays with it. One clip at a time, about a third as long as the clip plays. Left out, and listed with why: clips with motion data the player uses, with a Gyroflow project (the project plays), with their motion measured already (Measure again does those), 360° clips, and clips whose lens isn't known (no lens profile for that camera and mode). Lens type (Source Settings) chooses the lens type for the selected clips where their camera has types (Osmo Action 6: Wide, Normal; a DJI drone: its main camera, taken by itself), kept with each clip (the player uses it too); Measure again measures the motion again. Lens types of your own: Your own lens list.

    Motion measured from the picture, without a project: <clip>.afp-motion beside the clip keeps what Gyroflow's analysis measured, with the lens, the rolling shutter and the water it was measured with. With one and no Gyroflow project, the clip plays stabilized like a clip with gyro: the player's levels, frame and projection, its own settings saved with it. The horizon lock is off and can't be turned on: motion measured from the picture has no gravity in it. A Gyroflow project beside the clip still wins, and so does the clip's own motion data where the player uses it (gyro with the camera's stabilization off, or a HERO12+ with HyperSmooth on): the .afp-motion is then left aside, and the Library says so. Exports, moments and photos of such a clip are stabilized with it too. A clip measured without its lens's rolling shutter (readout 0 while the lens has one: a built-in lens's readout went unused before) says Measured without the rolling shutter: measure again (Source Settings and the Motion data filter); tools/list_readout_left_out.py <folder> lists them without writing anything. gyroflow-optical --from-project <clip>... writes one from the clip's project (nothing measured again), gyroflow-optical --show <clip>... prints what's in it. Ctrl+m in the player (or the panel's Measure motion from the picture) measures the clip playing, and Library's Stabilize optically the selected ones: Gyroflow's own analysis, run by the player, no Gyroflow app needed, about three times faster than the clip plays. Design: docs/design/optical-without-gyroflow.md.

They wait in a queue and run one at a time, each with how far it is, what it's on and Stop (an export stops at once and leaves no half-written file; the others after the one being made); what failed is listed with why. The player can play meanwhile. Closing the window while some are queued asks first; on a Mac it keeps the Mac awake while they run.

The Library plays and renders nothing itself: each batch is the player run without a window (its plugins, its settings, the same code as the menu used to run), so what it makes is what the player would. Its settings for the trip are in Project.afproject, which the player reads too. Not on Linux yet: there the batches aren't reachable until it is.

With the project on a NAS, the NAS Helper (tools/nas-helper), a Docker container there, lets several people work in one library together: what one of them changes reaches everyone else's player and Library in about a second; streams every clip and moment, stabilized and in HDR as the player shows them, to a browser, a phone or a TV; and, if you want, puts the moments (or the clips, or both) in a Jellyfin library.

Notes for an AI agent

For working on the player together with an AI agent (Claude Code, in this repository): what you see, and what the player is doing as you see it, saved for the agent to read. Ctrl+r (or the menu's ActionFootagePlayer → Note for the agent…) pauses the video; drag a rectangle round what you mean (Shift+drag adds another, a plain drag starts again), press Enter, write a line, Enter. Esc in the comment goes back to the rectangles; Esc there leaves without saving. Each note is a folder of its own in ~/Library/Application Support/ActionFootagePlayer/agent/reports/ (Windows: %LOCALAPPDATA%\ActionFootagePlayer\agent\reports\; the plugins in your own mpv: ~/.config/mpv/agent/reports/), named by date, time and clip:

report.json the comment; the areas, in the frame's pixels, the window's, and 0..1 of the frame; the clip, the time and the frame number; and the state when the note started: every plugin's (user-data/) and the player's (the video before and after the filters, the filters and shaders, the window, the display, dropped frames)
screen.png the window as it was, with what was over the video (telemetry, messages)
marked.png the same with the areas drawn on it, numbered
frame.png the frame at its own size (after the stabilization), with nothing over it
log.txt mpv's last 2000 lines of log (verbose)

Then ask the agent to go through the notes. While the player runs, an agent can also reach it live, through mpv's JSON IPC: the socket's path is in agent/session.json (socket, pid), script-message-to agent snapshot [<file>] writes the state as report.json has it (to agent/state.json by default), and script-message-to agent say <text> [<seconds>] shows a line over the video. The socket is mpv's input-ipc-server when one is set (the Windows app's pipe, an mpv.conf); otherwise agent/mpv.sock (Windows: \\.\pipe\ActionFootagePlayer-agent), or socket= in agent.conf.

Installing, in detail

Plugins in your own mpv

mpv-plugins-<version>-<os>-<arch>.zip has them all, as the folders below: unzipped into mpv's scripts/ folder (unzip mpv-plugins-*.zip -d ~/.config/mpv/scripts; on Windows %APPDATA%\mpv\scripts\), with what each one needs as below. Or one at a time:

Each plugin is a folder in mpv's scripts/ folder (~/.config/mpv/scripts/) and works without the others:

  • mpv-dlogm-<version>.zip, on any system (%APPDATA%\mpv\scripts\ on Windows). It has the HDR shaders and NBCU's SDR ones; DJI's Rec.709 one (Ctrl+s) is made from DJI's LUT: download it from DJI (Osmo Action 6 downloads page) and bake it in from a checkout of this repo:

    python3 tools/cube_to_glsl.py shaders/dlogm_lut3d.glsl.in "DJI OSMO Action 6 D-LogM to Rec.709 LUT-11.17.cube" \
        ~/.config/mpv/scripts/dlogm/shaders/dlogm_lut3d.glsl
  • mpv-dji-telemetry-<version>.zip, on any system: plain Lua.

  • mpv-highlights-<version>.zip, on any system: plain Lua.

  • mpv-footage-menu-<version>.zip, on any system with mpv 0.41 or later: the right-click menu (plain Lua). It shows the plugins that are there.

  • mpv-side-panel-<version>.zip, on any system: the settings in a panel beside the video (plain Lua), with footage-menu for its Clip buttons.

  • mpv-workspace-<version>.zip, on any system: the project a clip belongs to, for the other plugins (plain Lua).

  • mpv-gyroflow-<version>-macos-arm64.zip, for Homebrew's mpv on Apple Silicon (brew install mpv ffmpeg), with its binaries, and view360 (360° clips as a view to look around in) beside it, which uses its probe and gestures. Downloaded with a browser, they carry the quarantine flag, and macOS would refuse them: xattr -dr com.apple.quarantine ~/.config/mpv/scripts/gyroflow. Linux's and Windows': below.

With install.sh

From the release's tarball (prebuilt, no Rust needed) or from source (needs Rust, rustup; the first build takes 5-10 minutes):

# ActionFootagePlayer-<version>-macos-arm64.tar.gz from the latest release, then:
tar -xzf ActionFootagePlayer-*-macos-arm64.tar.gz
cd ActionFootagePlayer-*-macos-arm64     # or: git clone https://github.com/anton-belkin/ActionFootagePlayer.git
./install.sh --apps

./install.sh alone installs the plugins and their menu into ~/.config/mpv/scripts/ (and an mpv.conf with a few recommended settings, when there's none yet); --apps also builds ActionFootagePlayer into ~/Applications and runs its setup, and once it's installed, later runs update it too. It downloads DJI's LUT and checks it, bakes the LUTs into shaders and installs everything; existing files it replaces are kept as *.bak-<date> (for scripts/, in scripts-backup/, where mpv doesn't load them).

The app from a checkout, as the release builds it

To try a branch or a fix in the app without waiting for a release, from a checkout on a Mac with Homebrew and Xcode (brew install ffmpeg rustup):

tools/build_mpv.sh
tools/dev_app.sh

tools/build_mpv.sh builds the app's mpv once (a few minutes): the commit in tools/mpv.lock, with libplacebo linked in, the other libraries Homebrew's (it installs mpv's dependencies with Homebrew first; --no-deps skips that). tools/dev_app.sh then builds ActionFootagePlayer the way the release does: the plugins, that mpv, and Homebrew's ffmpeg and Python (for the setup) in the app (so it needs no Homebrew to run). Without tools/build_mpv.sh's mpv it takes Homebrew's (brew install mpv); MPV_BIN names another. Then it puts it in ~/Applications in place of the one there, which it keeps as build/ActionFootagePlayer-previous.app, and runs the setup (the default app for MP4, the Quick Actions, DJI's LUT).

  • What it builds: uncommitted changes too, and ~/.config/mpv isn't touched. The version says what it is: 0.6.2 on a release's tag, else e.g. 0.6.2-dev.3+1a2b3c4 (.dirty with uncommitted changes).
  • How long: a few minutes, most of it the first cargo build.
  • How it differs from the release: ffmpeg and the libraries mpv links are this Mac's Homebrew ones, where the release's build gets the latest (brew upgrade ffmpeg, then tools/build_mpv.sh again, first). Each build is signed anew (ad hoc), so macOS may ask again for access to a folder like Downloads.
  • --no-install only builds build/ActionFootagePlayer.app.

Linux and Windows

The gyroflow plugin runs there too, with binaries of its own; dlogm, dji-telemetry and highlights are the same zips as on a Mac. None of it has been tried there by hand yet (the release builds it on Linux and Windows). It needs:

  • mpv 0.42 or later, with vo=gpu-next (its default): the stabilization is Gyroflow's warp as an mpv shader, which finds each frame by its time stamp, and mpv gives shaders that from 0.42. On Windows, the usual builds (shinchiro's) are recent enough. On Linux, it depends on the distribution: one whose mpv is older plays the clips as recorded, with a card saying so (install.sh warns).
  • A GPU with Vulkan (on Windows DirectX 12 or Vulkan), which the stabilization renders on.
  • ffmpeg for exporting: in PATH, or on Windows ffmpeg.exe and ffprobe.exe copied next to gyroflow-export.exe.

Unzip mpv-gyroflow-<version>-linux-x86_64.zip or mpv-gyroflow-<version>-windows-x86_64.zip (-arm64.zip) into mpv's scripts/ folder (~/.config/mpv/scripts/, %APPDATA%\mpv\scripts\), with mpv-dlogm-<version>.zip next to it for D-Log M. On Linux, ./install.sh from a checkout also builds and installs all the plugins (with DJI's LUT, as on a Mac). With --apps it also puts ActionFootagePlayer in the applications menu: the same mpv, by its own name and icon (~/.local/share/applications/), made the default app for MP4 videos. On Windows, the app has all of it: The Windows app.

What differs from macOS:

  • Decoding is mpv's hwdec=auto (VAAPI, NVDEC, D3D11...) for clips it stabilizes.
  • Ctrl+e starts gyroflow from PATH on Linux, and on Windows the app .gyroflow files open with (Gyroflow's installer sets it). Another one: gyroflow_app=<path> in gyroflow.conf.
  • Exports are encoded with the first of NVENC, VAAPI (Linux), Quick Sync and AMF (Windows) that works, else x265 on the CPU (much slower); --prores is ffmpeg's prores_ks. While the video plays, an export runs at a few frames a second rather than at a background priority. Notifications are notify-send on Linux; on Windows, mpv's own message.
  • The log is ~/.local/state/vs-gyroflow.log on Linux and %LOCALAPPDATA%\vs-gyroflow.log on Windows.

The Windows app

The installer (tools/make_windows_app.sh, windows/) puts everything in the app's folder, so nothing else needs installing: mpv (shinchiro's build, with the app's icon), Python for the setup, a Vulkan loader for a PC whose graphics driver hasn't installed one (mpv can't start without), ffmpeg and ffprobe for exports (Gyan's build), and the plugins. ActionFootagePlayer.exe (windows/launcher/) starts that mpv with the plugins, and plays a video opened while one plays in its place. Like the Mac app, it's whole by itself: its own plugins only, and its own mpv settings and config folder, not an mpv you may also have (%APPDATA%\mpv). What's yours is in %LOCALAPPDATA%\ActionFootagePlayer\: what you set in the plugins (mpv\script-opts\), DJI's LUT and its shader (dlogm\, fetched in the background if the installer couldn't), and your own default preset if you make one (gyroflow\default.gyroflow); uninstalling leaves it. The stabilization renders on DirectX 12 or Vulkan.

What the app keeps where

ActionFootagePlayer is whole by itself: it plays with the plugins it carries (Contents/Resources/plugins/) and no others, with its own mpv settings (Contents/Resources/app.conf: hardware decoding, the window at most 85% of the screen, a playlist of the folder's videos) and a config folder of its own. An mpv you may also have isn't read: its ~/.config/mpv (mpv.conf, input.conf, scripts), and the plugins install.sh puts there, are for that mpv. To put the plugins together with other scripts of your own, take the plugins instead of the app (see Plugins in your own mpv). The app is read-only once signed; what's yours is in ~/Library/Application Support/ActionFootagePlayer/: what you set in the plugins (mpv/script-opts/, with Remember as default), DJI's LUT and its shader (dlogm/), your own default preset if you make one (gyroflow/default.gyroflow, see Stabilization), and the notes for an AI agent (agent/reports/, see Notes for an AI agent).

ActionFootagePlayer is mpv itself, as an app of its own: the app's executable (macos/player.sh) starts the mpv it carries (Contents/Helpers/, or Homebrew's in an app built without it) with the plugins, as the app of the bundle (mpv's MPVBUNDLE), so it's ActionFootagePlayer in the Dock, with its icon, and gets the videos Finder opens with it. A video opened while one plays takes its place. mpv's own menu items still say mpv (About mpv, Quit mpv). The setup is offered from inside mpv (macos/setup-offer.lua), once it runs.

Upgrading

From 0.6.4, a project stored inside a video (gyroflow-embed --move) isn't read any more: the project is the .gyroflow next to the clip, and the video file is never written to. Such a clip plays with the default preset. Before updating, take its project back out with 0.6.4's command, which also restores the file as the camera wrote it:

~/.config/mpv/scripts/gyroflow/gyroflow-embed --extract DJI_0009_D.MP4  # DJI_0009_D.gyroflow next to it
~/.config/mpv/scripts/gyroflow/gyroflow-embed --remove DJI_0009_D.MP4

gyroflow-embed is now gyroflow-project, which writes the project a clip plays with (what Ctrl+e runs).

From 0.6.0, the app no longer reads mpv's own config (~/.config/mpv, %APPDATA%\mpv) nor the plugins in it: it plays with its own plugins and settings only. The first time it starts, the plugins' settings (script-opts/dlogm.conf, gyroflow.conf, dji_telemetry.conf, footage_menu.conf) are copied over to its own config folder; the rest of mpv's config stays with that mpv. Plugins install.sh put in ~/.config/mpv/scripts/ are only for mpv in a terminal now: delete them if that's not how you use it.

From 0.3, when the app was called Steady Player (its files were Steady-Player-<version>-macos-arm64.zip and dlogm-gyroflow-player-<version>-macos-arm64.tar.gz), install.sh --apps replaces it with ActionFootagePlayer: the old app goes, the new one becomes the default for MP4 videos, and what was yours in ~/Library/Application Support/Steady Player/ (DJI's LUT, your default.gyroflow) moves to ~/Library/Application Support/ActionFootagePlayer/. With the app alone, the new one moves it the first time it plays or sets up; delete Steady Player from Applications yourself.

From 0.2, install.sh --apps removes Steady Router: MP4 goes to ActionFootagePlayer, MOV back to the player it was taking videos from. gyroflow-router is gone with it.

From 0.1, install.sh moves the old setup over: the loose scripts go to scripts-backup/, the D-Log M keys come out of input.conf (the rest of it stays), the mpv.conf with the D-Log M profiles is replaced (kept as a .bak), and ~/.config/mpv/gyroflow/ is emptied into the plugin, your default.gyroflow included. The commands moved with it: gyroflow-embed and gyroflow-export are now in ~/.config/mpv/scripts/gyroflow/.

Other cameras, and how to help

Everything here was worked out on clips from an Osmo Action 6. The camera's metadata says what the plugins need (whether the camera stabilized the picture itself, the color profile, the telemetry), but each maker, and often each model, writes it differently, and without clips there's nothing to check a guess against. What each camera's metadata is read from (what has been tried: What works, camera by camera):

Stabilization without a project Log footage (HDR, Rec.709 LUT) Telemetry Highlights
DJI Osmo Action 6 yes D-Log M yes the hglg box, as ExifTool reads it from an Action 4, not seen
DJI Osmo 360 EIS off (eis_status), single-lens MP4, not seen D-Log M, from its schema, not seen from its schema, not seen none
Other DJI (Action 4, Action 5 Pro, Pocket 3, Osmo 360 II, ...) EIS off (eis_status), not seen not yet: ColorMode is read only where it was checked against the model's schema no Action 4, Action 5 Pro: as the Action 6, not seen
GoPro HyperSmooth off (EISA/EISE), lens from Gyroflow's database; played in the app on HERO12 Black clips, checked on GoPro's own sample clips. HyperSmooth on, from the HERO12 (MINF) when the clip records how it turned the picture (IORI next to CORI; a HERO7 Black's has neither; HERO8-11 record it but play as recorded): its motion data is the picture's (CORI × IORI), stabilized with half the level's crop; rendered with gyroflow-export on HERO12 Black clips (HS EIS, HS AutoBoost), above and under water, not yet played in the app GP-Log2: the Protune color, PTCL in udta's GPMF, is GPLOG2 (gpmf-parser's list; read as NATURAL on a HERO12, a GP-Log2 clip not seen). GP-Log is LOG, used with the camera (MINF) and firmware (FIRM): HERO12 Black on 1.20 or later and HERO13 Black, where GoPro's own LUTs put 18 % grey where Zeb Gardner's does (HERO12 Black 2.32 read from a clip; GP-Log played in the app on a HERO12 Black clip) GPS, speed, exposure; checked on GoPro's sample clips, and the exposure on a HERO12 clip HMMT in udta (HERO5, HERO6), HLMT in udta's GPMF (HERO7 and later): checked on a HERO7 Black's header, no clip seen
Insta360 single-lens MP4 (Ace Pro, GO 3, ...) FlowState off in the camera (is_flowstate_online), not seen 10-bit I-Log by hand (Ctrl+l): where Insta360 records it isn't known. 8-bit I-Log: no transform yet no not yet (telemetry-parser reads them)

The stabilization errs on the safe side: a clip is stabilized only when the camera recorded that its own was off (or, a GoPro, how it turned the picture), so a wrong guess about a camera means its clips play as they are, not worse.

Clips that would help, straight from the camera (not exported or trimmed by an app: that drops the metadata):

  • a few seconds each, any resolution, the camera moving (walking with it is enough);
  • the camera's stabilization off, and the same on (DJI: EIS/RockSteady; GoPro: HyperSmooth; Insta360: FlowState);
  • in the log profile (D-Log M, GP-Log, I-Log) and in the normal one;
  • under water, if the camera records depth or a "wet" flag;
  • with a few highlights marked while recording, and the seconds you marked them at;
  • the model, firmware and settings (lens/FOV, frame rate) in a word.

Share them through a link (Google Drive, Dropbox, WeTransfer, ...) in a new issue. The clips are used only to work out the camera's metadata; if anything from them goes into the repo, it's the metadata alone as test data (a few kB, no picture), and only if you're fine with that. The files carry the camera's serial number, and the place they were shot if the camera had GPS, so shoot somewhere you don't mind showing.

If you can't share the video, its metadata alone helps a lot:

python3 tools/dji_meta_dump.py summary DJI_0001_D.MP4 > dji.txt            # DJI
gyro2bb --dump GX010001.MP4 > gopro.txt                                     # any camera, telemetry-parser's tool

gyro2bb is telemetry-parser's command-line tool (built from its bin/gyro2bb). telemetry-parser is the library Gyroflow, and through it the stabilization here, reads camera metadata with; what a clip shows about the camera's motion or lens goes there too, so Gyroflow gets it as well. The color profile, the telemetry and the highlights are read in plain Lua by the dlogm, dji-telemetry and highlights plugins, which don't depend on Gyroflow, so they work in any mpv on any system.

How it works

The player is mpv with twelve plugins of ours (mpv/scripts/) and Rust programs beside them (vs-gyroflow/): the stabilization's warp runs on the GPU as a libplacebo shader, the looks are shaders too. Action Footage Library (library/) is an app of its own that keeps a trip's project and runs the player without a window for what it makes. How the parts fit, the layout of this repository and how a frame is drawn: docs/reference/architecture.md. Everything else for developers, the formats, the contracts between the parts, the tests and the release, is listed in docs/README.md.

License

GPL-3.0 (the plugin builds on Gyroflow, which is GPL-3.0). DJI's LUT belongs to DJI and is downloaded from DJI's site at install.

ActionFootagePlayer.app also carries mpv (GPL; built by tools/build_mpv.sh from the commit in tools/mpv.lock, with libplacebo, LGPL, linked in) and ffmpeg, Python, MoltenVK and the libraries they use, as Homebrew builds them, each under its own license (GPL, LGPL, PSF, Apache, MIT, BSD and others). The app's Contents/Resources/ThirdParty/ has each one's license files (and for Homebrew's, the formula it was built by), and SOURCES.txt there lists the version of each and where its source is (tools/bundle_runtime.py writes them at build). The sources are also available from this project on request.

Credits

Camera metadata (motion data, lens, in-camera stabilization) is read by Adrian Eddy's telemetry-parser, through Gyroflow.

Where the cameras keep their highlights: DJI's from Phil Harvey's ExifTool (HighlightMarkers), GoPro's HMMT as VLC and FFmpeg read it, and its GPMF HLMT from Juan Irache's gopro-telemetry and the HERO7 Black header among its samples.

luts/dlogm_hlg.cube (D-Log M → Rec.2100 HLG, 1000-nit, no DaVinci DRT) was composed in DaVinci Resolve from Zeb Gardner's free D-Log M → DaVinci Wide Gamut/Intermediate shaper LUT (DLOGM_DWG_I_SHAPER_ZRG_V1); the HLG output stage and the bake are this project's. Thanks to Zeb Gardner for the underlying transform.

luts/gplog_hlg.cube (GoPro GP-Log → Rec.2100 HLG) is made by tools/make_hdr_lut.py from Zeb Gardner's GP-Log → DaVinci Wide Gamut/Intermediate shaper LUT (GP_LOG to DWG_I ZRG V1, from his GoPro Log accuracy testing).

His site states no license for his LUTs; Zeb Gardner has agreed to their use here, with this credit. The HDR rendering of the other log curves is fitted to dlogm_hlg.cube, so it builds on his work too.

The NBCU LUTs (luts/3-NBCU_HLG2SDR_DL_v1.2.cube, luts/5-NBCU_PQ2SDR_DL_v1.2.cube, and the shaders made from them, nbcu_hlg2sdr.glsl and nbcu_pq2sdr.glsl) were developed by NBCUniversal Media, LLC, with Cromorama and Nick Shaw, and are from NBCU's UHD HDR-SDR Single-Master Production Workflow Recommendation. NBCU distributes them publicly and freely, without warranty, on an "as is" basis, to encourage UHD single-master HDR-SDR production with consistent media exchange; as NBCU asks, their names keep "NBCU" and their headers are unaltered.

The other log curves are decoded from their makers' own publications (tools/make_hdr_lut.py, which says the same in every LUT it writes):

  • DJI D-Log and D-Gamut: DJI's ACES input transform Dlog_DGamut_to_ACES_AP0_cat02_v1, from DJI's "ACES Workflow Guide" (2023).
  • GoPro GP-Log2: GoPro Labs' GP-Log2 LUT Generator (gopro/labs, Copyright GoPro, Inc., Apache License 2.0); its formulas are reimplemented, no code copied. GoPro's Protune color tag, PTCL, is documented in GoPro's gpmf-parser.
  • Insta360 10-bit I-Log: Insta360's "10-bit I-Log White Paper" (v1.0, June 2026).
  • DaVinci Wide Gamut and DaVinci Intermediate (for --from-dwgi): as Blackmagic Design publishes them.

Known issues

Each goes from here once it's fixed.

None at the moment.

About

Free, open-source player for action-camera footage: log plays as HDR, Gyroflow-steady while it plays (under water too), with depth and speed from the camera, Live Photos from your clips. DJI, GoPro, Insta360; macOS, Windows, Linux.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages