Native Linux (Ubuntu) 360° viewer, keyframed reframer, YouTube 8K/4K MP4 exporter, and Local HTTP+JSON Agent API for DJI Avata 360 .OSV and .LRF footage — no DJI Studio required.
Built with C++20, Qt6, OpenGL 3.3 / EGL, FFmpeg (libav*), and NVIDIA NVDEC/NVENC (with automatic software fallback).
- Reads dual
3840×384010-bit HEVC (yuv420p10le) fisheye streams directly from.OSVcontainers. - Smart
.LRFProxy Pairing: Automatically uses the companion1920×960side-by-side.LRFfile (when in the same folder) for instant timeline scrubbing and 60fps preview — while Export always renders from the full 10-bit.OSV. One click switches between Proxy and Full.OSVpreview. - Factory Optical Calibration (
djmd): Automatically parses per-unit 5-term Kannala-Brandt fisheye distortion (k1..k5), focal lengths, optical centers, and factory 3D lens extrinsics directly from the embedded protobuf metadata. - Per-Frame IMU Stabilization: Decodes high-rate gyro-fused attitude quaternions for:
- Horizon + World Lock (flat horizon + north-locked yaw)
- Horizon Lock (Follow Drone Yaw) (flat horizon following drone flight direction)
- Raw FPV (un-stabilized body-locked view)
- Click-and-drag to pan/tilt 360°, mouse wheel or slider to adjust FOV from
80°to180°. - UltraView Auto Projection: Uses clean rectilinear projection around
80°and smoothly transitions into conformal stereographic projection up to180°(or pick Rectilinear / Stereographic manually). - Marked Flight Views: Press
K(or click + Mark View) anywhere on the timeline to drop a keyframe(time, yaw, pitch, roll, fov). Views interpolate smoothly using quintic ease-in-out with shortest-path angle wrapping and auto-save as<video>.avata360.json.
- YouTube 360° Panoramic MP4: Export in 8K (
7680×3840), 5.7K (5760×2880), or 4K (3840×1920),59.94/30 fps, 10-bit HEVC NVENC / H.264 NVENC / libx265, with automatic Google Spatial Media (uuid) spherical 360° metadata injection for YouTube and VLC. - Normal Reframed Video MP4: Export 4K or 1080p in 16:9 Landscape or 9:16 Vertical (Reels/Shorts) following your marked flight views.
- Runs automatically on
http://127.0.0.1:8765in GUI mode, or headlessly viaavata360-studio --serve --port 8765. - Lets coding agents and automation scripts probe, visually scout flights via timestamped contact sheets & directional snapshots, edit keyframes, render 360° or normal MP4s, and compose multi-clip edits with music, procedural sound effects (
whoosh,riser,impact,shimmer), smooth cross-dissolve/wipe transitions, cinematic color grades, and branded titles.
git clone https://github.com/DSPROPT/avata360-studio.git
cd avata360-studio
./install.shgit clone https://github.com/DSPROPT/avata360-studio.git
cd avata360-studio
./install-macos.shGuía paso a paso en español para MacBook Air M4 + Claude Code: docs/MACOS_CLAUDE_CODE_ES.md
sudo apt-get install -y \
build-essential cmake ninja-build pkg-config \
qt6-base-dev libgl1-mesa-dev libegl1-mesa-dev \
libavformat-dev libavcodec-dev libavutil-dev libswscale-dev ffmpeg
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
./build/avata360-studioLaunch Avata360 Studio from the Ubuntu Applications menu or terminal:
avata360-studio
avata360-studio /path/to/DJI_XXXX.OSV| Shortcut | Action |
|---|---|
Space |
Play / Pause |
K |
Mark Camera View (Keyframe) at current timestamp |
I / O |
Set Trim In / Trim Out |
← / → |
Step -1s / +1s (Shift for 0.1s) |
R / Double-click |
Reset Yaw / Pitch / Roll / FOV |
| Mouse Drag / Wheel | Look around 360° / Zoom FOV (80°–180°) |
# Export 8K YouTube 360° MP4 (with spherical metadata):
avata360-studio --cli --input flight.OSV --output flight_360_8K.mp4 --mode 360 --res 8k
# Export 4K YouTube 360° MP4 (trimmed 30s to 90s):
avata360-studio --cli --input flight.OSV --output flight_360_4K.mp4 --mode 360 --res 4k --start 30 --end 90
# Export Normal 4K 16:9 MP4 following saved Camera Views JSON:
avata360-studio --cli --input flight.OSV --output flight_normal_4K.mp4 --mode reframe --res 4k --views flight.avata360.jsonInstall as an AI Agent Skill (Antigravity, Claude Code, Codex, Grok):
# Universal one-command install (via open skills CLI): npx skills add DSPROPT/avata360-studio # Or install locally from this clone for Antigravity, Claude Code, Codex & Grok: ./install-skill.shSkill source:
skills/avata360-studio/SKILL.md· Full API guide: AGENT_API.md.
Start headlessly (works over SSH / without X11 or Wayland):
avata360-studio --serve --port 8765| Method & Path | Description |
|---|---|
GET /api/health |
Health & version check |
GET /api/schema |
Self-describing JSON API schema for agents |
POST /api/probe |
Inspect .OSV/.LRF streams, duration, fps, calibration, and companion proxy |
POST /api/contact-sheet |
Render a timestamped 360°/reframe grid with altitude & yaw-angle ticks |
POST /api/snapshot |
Render a single GPU preview JPEG at any timestamp & (yaw, pitch, roll, fov) |
POST /api/project/save · /load |
Save or load .avata360.json camera view keyframes |
POST /api/render |
Start an async GPU render job (360 4K/5.7K/8K or reframe 4K/1080p) |
POST /api/compose |
Multi-clip compose with xfade transitions, music (bgm), SFX (whoosh/riser/impact/shimmer), grades, and titles |
GET /api/jobs · /api/jobs/{id} |
Poll job progress (percent, fps, etaSec, output) |
DELETE /api/jobs/{id} |
Cancel a running job |
# 1. Scout a flight in one 9-frame 360° contact sheet:
curl -s -X POST http://127.0.0.1:8765/api/contact-sheet \
-H 'Content-Type: application/json' \
-d '{"input":"/path/to/flight.OSV","output":"/tmp/sheet.jpg","count":9,"cols":3,"mode":"360"}'
# 2. Render a keyframed 4K reframed shot:
curl -s -X POST http://127.0.0.1:8765/api/render \
-H 'Content-Type: application/json' \
-d '{
"input": "/path/to/flight.OSV",
"output": "/tmp/shot1.mp4",
"mode": "reframe", "res": "4k", "aspect": "16:9",
"start": 90, "end": 98,
"keyframes": [
{"time": 90, "yaw": -20, "pitch": -10, "fov": 90, "ease": "smooth"},
{"time": 98, "yaw": 25, "pitch": -15, "fov": 145, "ease": "smooth"}
]
}'
# 3. Compose clips + music + SFX + cinematic grade + titles:
curl -s -X POST http://127.0.0.1:8765/api/compose \
-H 'Content-Type: application/json' \
-d '{
"output": "/tmp/final.mp4",
"clips": [
{"path": "/tmp/shot1.mp4", "transition": "smoothleft", "transitionDur": 0.8},
{"path": "/tmp/shot2.mp4"}
],
"bgm": {"path": "/path/to/music.mp3", "volume": 0.85, "fadeIn": 1.5, "fadeOut": 2.5},
"sfx": [{"type": "whoosh", "atSec": 7.0, "volume": 0.7}],
"grade": "cinematic",
"titles": [{"text": "AERIAL 360", "subtitle": "CAPTURED ON AVATA 360", "start": 1.0, "duration": 4.0}]
}'src/
├── main.cpp # GUI, --cli, and --serve entry points
├── core/
│ ├── Math3D.h # Vec3, Mat3, Quat (SLERP, view rotations)
│ ├── DjmdParser.{h,cpp} # Protobuf wire parser (KB5 calibration + IMU quaternions)
│ ├── KeyframeTrack.{h,cpp} # Camera view interpolation & JSON project persistence
│ ├── OsvMediaReader.{h,cpp} # Dual-stream .OSV & side-by-side .LRF reader (NVDEC/SW)
│ └── SpatialMetadata.{h,cpp} # Streaming Google Spatial Media v1 (uuid) MP4 injector
├── render/
│ ├── Shaders.h # Unified OpenGL 3.3 KB5 stitch + UltraView reframe shader
│ └── OffscreenExporter.{h,cpp} # Headless EGL GPU renderer (snapshots, sheets, NVENC export)
├── api/
│ └── LocalApiServer.{h,cpp} # Qt6Network HTTP+JSON server & FFmpeg multi-clip composer
└── ui/
├── Viewport360Widget.{h,cpp} # 60fps interactive OpenGL 360° viewport + HUD
├── TimelineWidget.{h,cpp} # Scrubbing timeline with trim handles & keyframe diamonds
├── ExportDialog.{h,cpp} # YouTube 360° (8K/5.7K/4K) & Normal Reframe export dialog
└── MainWindow.{h,cpp} # Dark studio NLE main window
This is an independent open-source project and is not affiliated with, endorsed by, or associated with DJI. All product names and trademarks belong to their respective owners.
Released under the MIT License.