Project file format (.s2mproj)Format du fichier projet (.s2mproj)
A project is a JSON file written by the program (ShaderToMP4 --dump-reference=project). Paths inside the project folder are written relative to it, so the folder can be moved. Example, as the program writes it:
{
"format": "ShaderToMP4 project",
"version": 1,
"name": "example",
"general": [
"width=1920",
"fps=30"
],
"shaders": [
{
"path": "clip.glsl",
"batch": 1,
"priority": 1,
"settings": [
"fps=60"
],
"passes": [
"clip.bufferA.glsl"
],
"media": [
"texture.png"
]
}
]
}
| Field | Type | Description |
|---|---|---|
format | string | Always ShaderToMP4 project. |
version | number | Format version; a newer file than the program is refused, an older one is migrated. |
name | string | Name of the project. |
general | string[] | The general settings, one key=value line each (the same lines as config.ini). |
shaders | object[] | The shaders of the list, in rendering order. |
shaders[].path | string | File of the shader (relative when it is inside the project folder). |
shaders[].batch | number | Batch number from 1 to 4; absent: none. |
shaders[].priority | number | 1 high, -1 low; absent: normal. |
shaders[].settings | string[] | Settings of this shader only ("This shader only"), key=value lines. |
shaders[].passes | string[] | Pass files that exist (Buffer A to D, Common, ...). |
shaders[].media | string[] | Images, sounds and videos of the channels iChannel0 to iChannel3. |
Format version written and read by this program: 1.
Un projet est un fichier JSON écrit par le programme (ShaderToMP4 --dump-reference=project). Les chemins situés dans le dossier du projet y sont relatifs : le dossier peut être déplacé. Exemple, tel que le programme l'écrit :
{
"format": "ShaderToMP4 project",
"version": 1,
"name": "example",
"general": [
"width=1920",
"fps=30"
],
"shaders": [
{
"path": "clip.glsl",
"batch": 1,
"priority": 1,
"settings": [
"fps=60"
],
"passes": [
"clip.bufferA.glsl"
],
"media": [
"texture.png"
]
}
]
}
| Champ | Type | Description |
|---|---|---|
format | string | Toujours ShaderToMP4 project. |
version | number | Version du format ; un fichier plus récent que le programme est refusé, un plus ancien est migré. |
name | string | Nom du projet. |
general | string[] | Les réglages généraux, une ligne clé=valeur chacun (les mêmes lignes que config.ini). |
shaders | object[] | Les shaders de la liste, dans l'ordre de rendu. |
shaders[].path | string | Fichier du shader (relatif quand il est dans le dossier du projet). |
shaders[].batch | number | Numéro de lot de 1 à 4 ; absent : aucun. |
shaders[].priority | number | 1 haute, -1 basse ; absent : normale. |
shaders[].settings | string[] | Réglages de ce shader seulement (« Ce shader seul »), lignes clé=valeur. |
shaders[].passes | string[] | Fichiers des passes qui existent (Buffer A à D, Common, ...). |
shaders[].media | string[] | Images, sons et vidéos des canaux iChannel0 à iChannel3. |
Version du format écrite et lue par ce programme : 1.