# Bien démarrer

## 1. Structure minimale

Commencez par cette forme :

```json
{
  "meta": {
    "version": "2.0.0",
    "width": 1920,
    "height": 1080,
    "fps": 30,
    "background": "#0b1020"
  },
  "tracks": [
    {
      "id": "main",
      "clips": []
    }
  ]
}
```

Requis :
- `meta.version`
- `meta.width`
- `meta.height`
- `meta.fps`
- `tracks`

## 2. Ajouter votre premier clip visible

```json
{
  "type": "text",
  "start": 0,
  "duration": 3,
  "text": "Hello, world",
  "transform": {
    "x": "50%",
    "y": "50%"
  },
  "style": {
    "fontSize": 72,
    "fontWeight": 700,
    "fill": "#ffffff",
    "textAlign": "center"
  }
}
```

Insérez ce clip dans `tracks[0].clips`.

## 3. Premier exemple complet

```json
{
  "meta": {
    "version": "2.0.0",
    "title": "My First Video",
    "width": 1920,
    "height": 1080,
    "fps": 30,
    "background": "#0b1020"
  },
  "tracks": [
    {
      "id": "main",
      "clips": [
        {
          "type": "text",
          "start": 0,
          "duration": 3,
          "text": "Hello, world",
          "transform": {
            "x": "50%",
            "y": "50%"
          },
          "style": {
            "fontSize": 72,
            "fontWeight": 700,
            "fill": "#ffffff",
            "textAlign": "center"
          },
          "animations": [
            {
              "type": "fadeIn",
              "duration": 0.5
            }
          ]
        }
      ]
    }
  ]
}
```

## 4. Que faire ensuite

- Vous voulez la structure et les règles : lisez [Concepts de base](https://renderingvideo.com/docs/tutorials/basic-concepts.md)
- Vous voulez un exemple de mouvement texte uniquement : lisez [Créer une animation de texte](https://renderingvideo.com/docs/tutorials/create-text-animation.md)
- Vous voulez une référence de champs : lisez [Structure JSON et règles des champs](https://renderingvideo.com/docs/json-spec.md)