Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/diffusionstudio/examples

Programmatic video editing examples.
https://github.com/diffusionstudio/examples

Last synced: 3 days ago
JSON representation

Programmatic video editing examples.

Awesome Lists containing this project

README

        




Library Icon

Diffusion Studio


Static Badge
powered by vite
discord
Static Badge



# Diffusion Studio Examples

This repository contains example projects built using [Diffusion Studio](https://github.com/diffusionstudio/core). This is an ideal starting point for exploring Diffusion Studio, if you prefer learning from code examples rather than detailed documentation.

## `/simple`

This project is powered by Vite (vanilla TypeScript). To begin, navigate to the project directory:

```sh
cd simple
```

Install the required dependencies:

```sh
npm install
```

Next, start the development server:

```sh
npm run dev
```

You can now open `http://localhost:5173/` in your browser (preferably Chromium-based).

In the `/src/compositions` directory, you will find an example script that you can modify. You can comfortably load assets by placing them in the `/public` directory. For instance:

```typescript
const video = await VideoSource.from('/drone_footage_1080p_25fps.mp4');
```

> Since Vite supports hot module reloading, your composition will automatically update as you save your changes.