Skip to main content

JSON-driven video composition engine for the Trollfabriken FX ecosystem

Project description

video-compose

JSON-driven video composition engine for the Trollfabriken FX ecosystem.

Define a presentation or video as a TVCS (Trollfabriken Video Composition Spec) JSON file and render it to MP4 or PNG frames. The JSON can be authored by hand or generated by an AI via the APISuite VideoComposeProvider.

Quick start

pip install video-compose[all]
video-compose render my_presentation.json

Spec example

{
  "tvcs": "1.0",
  "output": { "width": 1280, "height": 720, "fps": 30, "formats": ["mp4"] },
  "theme": { "palette": "neon", "background": "#0d0d1a" },
  "segments": [
    { "id": "intro", "type": "mathviz", "duration": 4.0, "effect": "matrix_rain" },
    { "id": "chart", "type": "chart", "duration": 6.0, "chart_type": "bar",
      "data": { "title": "Revenue", "categories": ["Q1","Q2"], "series": [{"name":"2024","values":[420,580]}] } }
  ],
  "transitions": { "default": { "type": "dissolve", "duration": 0.5 } }
}

CLI

video-compose render   spec.json            Render to MP4
video-compose validate spec.json            Validate without rendering
video-compose preview  spec.json intro      Render single segment
video-compose schema                        Print full JSON Schema

Optional dependencies

Extra Enables
[mathviz] mathviz-fx background generators
[chart] chart-fx animated charts
[geomap] geo-map-fx choropleth maps
[shape] shape-fx particle/geometric effects
[fractal] fractal-fx generative backgrounds
[audio] talk-cast voiceover + audio-arrange mixing
[data] CSV, Excel, SQL, REST API data sources
[web] web-overlay HTML overlays (requires Playwright)
[all] Everything above

Ecosystem

video-compose is the composition layer for the Trollfabriken FX suite. It orchestrates: mathviz-fx · chart-fx · geo-map-fx · shape-fx · fractal-fx · text-fx · color-fx · cut-fx · talk-cast · audio-arrange · slide-render · still-motion · web-overlay

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video_compose-0.7.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video_compose-0.7.0-py3-none-any.whl (13.1 MB view details)

Uploaded Python 3

File details

Details for the file video_compose-0.7.0.tar.gz.

File metadata

  • Download URL: video_compose-0.7.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"AMD64","implementation":{"name":"CPython","version":"3.13.7"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.0.16 11 Feb 2025","python":"3.13.7","system":{"name":"Windows","release":"11"}} HTTPX2/2.5.0

File hashes

Hashes for video_compose-0.7.0.tar.gz
Algorithm Hash digest
SHA256 768e273693c424d1413ec62f63ee7873f75ba841f016e0b0c9d47a9b14362aeb
MD5 7a99b9cb2d2aa8fea703cde14972cfd4
BLAKE2b-256 c29c51d7ad53914137e7360fdc0f01b3c9752f7c51abf61d5936aa4eb57a4d64

See more details on using hashes here.

File details

Details for the file video_compose-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: video_compose-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"AMD64","implementation":{"name":"CPython","version":"3.13.7"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.0.16 11 Feb 2025","python":"3.13.7","system":{"name":"Windows","release":"11"}} HTTPX2/2.5.0

File hashes

Hashes for video_compose-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76f8726bc816c22871f726e87a2e6f092f5f4ac3ee10a556ddef22da5dc4085e
MD5 6a26a41ec61c9b42cb034c786b57a0c3
BLAKE2b-256 24e5fcb9583ecfc6d039ac5d304287172984a4312660b3f4ee0d03f927b31f48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page