~/blog / hello-editing

Did I say editing wasn't important?

It turned out I needed to do simple edits quite often. A 16GB file is a too much if you only need a couple minutes of it. I just need to trim down some native files, nothing fancy.

But I had some particular requirements:

  • the trimmed files must be importable into their native editors (DJI Studio, GoPro Player, and Insta360 Studio)
    • that includes full image stabilization & export there
  • ideally these are lossless edits; no transcoding, no generation loss please

Why is that tricky? Part 1: MPEG GoP’s

Okay, how about we do a group-of-picture (G.o.P) aware edit of the file? A GoP is technical grouping of video frames in MPEG land, from 1/2 second to 2 seconds. Video encoding groups video into arbitrary segments, and optimizes video in those segments.

A GoP consists of

  • a single starting Intraframe; a stand alone image. Like a .jpg or .png.
  • Interframes; frames that describe changes from a base Intraframe

Why is that tricky? Part 2: Meta data. Ohh, yeah let’s cut that too

Since I’d like the cut files to still be valid native-camera files (because reasons), we’ll need to preserve their metadata. Metadata is where important data is kept, alongside the audio & video. Think image stabilization, GPS, camera temperature, and other data. That’s in each of the cameras (DJI, GoPro, and Insta360), in their full rate & proxy files.

Trucating off the end isn’t so hard, but if you want to trim the start time, now you’ve got some complexity: many of the fields containtain time offsets, and these must be updated.

I believe we got all the fields, but these formats aren’t well documented so we may have missed some.

The secret sauce: Save-As Self Contained

After you’ve edited your clips, there’s a new File > Save As Self-Contained option. It gives you a couple of options (whether to include high datarate files, or low datarate ‘proxies’).

But this is where the magic happens: your media files are copied into the .r360 file, trimmed down to only the segments you need. Yes, that .360 is going to be huge! But it’ll only have the parts of the file in your edit.

All of this shipped in Recap360 version 1.6!

That’s right, it’s doing GoP-aware lossless edits, metadata included, across all supported file types (DJI Osmo 360, Insta 360, GoPro MAX / MAX2)

Astute observers might wonder if the .r360 file is itself a macOS Package file, and that your trimmed files might be in there for you to copy out and do with what you want, such as open in the native players and edit / export further. That would certainly be unsupported, and I couldn’t possibly comment on it.

— David

© 2026 Mindful Bear Apps · recap360.app · Privacy