mimoLive® - Manuel de l'utilisateur

Sélecteurs génériques
Correspondance exacte uniquement
Recherche dans le titre
Recherche dans le contenu
Sélecteurs de type de message

Manuel - Table des matières

Types de données

Table des matières

Réduire la API répond avec le filtrage spartiate

Si le API est trop important, vous pouvez restreindre les données que vous souhaitez récupérer en effectuant un filtrage clairsemé (Sparse Filtering). Pour le filtrage clairsemé, vous disposez de deux champs qui vous aideront dans cette tâche :

- "include=", décrira les catégories de la base de données de l JSON doit être inclus. Vous pouvez spécifier plusieurs chemins séparés par des virgules.
- champ[]=" décrira les valeurs à inclure dans cette catégorie spécifique. Vous pouvez définir plusieurs champs pour spécifier des valeurs différentes pour chaque catégorie.

Exemple : Vous voulez savoir si un certain Enregistrement de fichiers Destination de sortie est en cours d'enregistrement ou non. Dans ce cas, nous sommes intéressés par la valeur "live-state" de la catégorie "attributes" dans la catégorie racine "data". Cela signifie que nous devons spécifier le chemin de la catégorie d'inclusion comme étant "data.attributes". La catégorie "attributs" contient plusieurs valeurs, mais nous ne voulons voir que la valeur "live-state" dans les réponses, c'est pourquoi nous la réduisons par "fields[attributes]=live-state"

Cela donne la commande curl suivante : (Veillez à remplacer les et par vos propres valeurs !)

curl "http://192.168.0.107:8989/api/v1/documents//output-destinations/?include=data.attributes&fields[attributes]=live-state"

Les réponses se présentent comme suit :

{"data":{"attributes":{"live-state":"preview"}}}

Documents

Le type "documents" correspond à l'objet document que mimoLive écrit sur le disque sous forme de fichiers ".tvshow".

{
  // Unique Identifier of the document
  "id": String,
  // Always "documents" (see the JSON-API documentation for more information on this field)
  "type": "documents",
  // See the JSON:API specification for more information on this field
  "relationships": {
    // The layer contained in the document
    "layers": Relationship,
    // The sources used by the document
    "sources": Relationship,
    // The output destinations used by this document
    "output-destinations": Relationship
  },
  // The link to the resource itself (see the JSON:API specification for more information on this field)
  "links": Object,
  // This is probably the data you are after
  "attributes": {
    // The name of the document
    "name": String,
    // Metatdata of the document
    "metadata": {
      // Comments as entered in the show metadata panel in mimoLive
      "comments": String,
      // The height of the document in pixels
      "height": Integer,
      // The width of the document in pixels
      "width": Integer,
      // The author of the document as entered in the show metadata panel in mimoLive
      "author": String,
      // The title of the show as entered in the show metadata panel in mimoLive
      "title": String,
      // The proposed show length (timer) as entered in the show metadata panel inmimoLive (in seconds)
      "duration": Integer,
      // The framerate of the document in frames per second
      "framerate": Float,
      // The generic show name as entered in the show metadata panel in mimoLive
      "show": String,
      // The audio samplerate of the document in hz
      "samplerate": Integer
    },
    // The live state of the document/show (see LiveState for possible values and their meaning)
    "live-state": LiveState,
    // If the show is currently live, the current length of the show in seconds
    "duration": Integer,
    // If the show is currently live, timestamp when the show went live (can be used together with "metadata.duration" and "duration" to compute a countdown)
    "show-start": Integer
  }
}

Couches

Le type "couches" représente les couches utilisées dans le pipeline de rendu pour générer la sortie vidéo de mimoLive.

{
  // Unique identifier of the layer
  "id": String,
  // Always "layers" (see the JSON-API documentation for more information on this field)
  "type": "layers",
  // See the JSON:API specification for more information on this field
  "relationships": {
    // The document this layer is part of
    "document": Relationship,
    // All the layer variants for this layer
    "variants": Relationship,
    // The variant that is currently live (null otherwise)
    "live-variant": Relationship,
    // The variant that is active/selected for that layer
    "active-variant": Relationship
  },
  // The link to the resource itself (see the JSON:API specification for more information on this field)
  "links": Object,
  // Attributes of the layer (this is probably the data you are after)
  "attributes": {
    // The composition identifier for the layer, this can be used to differentiate the various layer types
    "composition-id": String,
    // The live state of the layer (see LiveState for possible values and their meaning)
    "live-state": LiveState,
    // The name of the layer as displayed in the mimoLive layer stack
    "name": String,
    // The user-controlled volume of the layer, as seen in the layer stack
    // where 0.0 means silence and 1.0 is full volume.
    // If the layer has no volume control, the value is null.
    "volume": Float | null,
    // The inputs used for the layer (composition). The keys come directly from the underlying QuartzComposition. Check out the custom layer protocol for more information on the key names and their meaning. The layer reports the "input-values" from either "live-variant" or the "active-variant" if the layer is not live.
    "input-values": Object,
    // Description object for each of the keys returned in "input-values"
    "input-descriptions": {
      (String): {
        // Whether the input is currently hidden in the mimoLive user interface
        "hidden": Bool,
        // The type of the input ("string", "number", "index", "bool", "color", "image", "structure")
        "type": String,
        // If applicable: The minimum value the input accepts
        "value-min": Float,
        // If applicable: The maximum value the input accepts
        "value-max": Float,
        // For dropdowns a list of names for the individual values
        "value-list": Array,
        // By which ammount a value should be increased or decreased
        "value-step": Float,
        // String that declares in which unit the value is (eg. "°C")
        "value-unit": String,
        // Label that is shown next to the input
        "label": String,
        // The index of the input (for sorting)
        "index": Integer
    	}
    },
    // Outputs from the last render cycle that were returned from QuartzComposer, including the original keys
    "output-values": Object,
    // The index of the layer in the layer stack (zero relates to the top of the stack)
    "index": Integer 
  }
}

*L'attribut "volume" a été ajouté dans mimoLive 5.2.

Variantes

Le type "variantes" modélise une instance de la configuration d'une couche. La plupart des couches n'ont qu'une seule variante, mais pour certaines couches (par exemple Lower Thirds), il est courant d'avoir plusieurs variantes avec des contenus textuels différents.
Les variantes partagent de nombreuses informations avec le type "couches". En fait, une couche agit principalement comme un proxy de sa variante active.

{
  // Unique identifier of the variant
  "id": String,
  // Always "variants" (see the JSON-API documentation for more information on this field)
  "type": "variants",
  // See the JSON:API specification for more information on this field
  "relationships": {
    // The layer this variant belongs to
    "layer": Relationship
  },
  // The link to the resource itself (see the JSON:API specification for more information on this field)
  "links": Object,
  // Attributes of the variant (this is probably the data you are after)
  "attributes": {
    // The live state of the variant (see LiveState for possible values and their meaning). If the layer is not live, the value will always be "off".
    "live-state": LiveState,
    // The name of the variant as displayed in the mimoLive layer stack
    "name": String,
    // The inputs used for the variant (composition). The keys come directly from the underlying QuartzComposition. Check out the custom layer protocol for more information on the key names and their meaning. The layer reports the "input-values" from either "live-variant" or the "active-variant" if the layer is not live.
    "input-values": Object,
    // Description object for each of the keys returned in "input-values"
    "input-descriptions": {
    	(String): {
        // Whether the input is currently hidden in the mimoLive user interface
        "hidden": Bool,
        // The type of the input ("string", "number", "index", "bool", "color", "image", "structure")
        "type": String,
        // If applicable: The minimum value the input accepts
        "value-min": Float,
        // If applicable: The maximum value the input accepts
        "value-max": Float,
        // For dropdowns a list of names for the individual values
        "value-list": Array,
        // By which ammount a value should be increased or decreased
        "value-step": Float,
        // String that declares in which unit the value is (eg. "°C")
        "value-unit": String,
        // Label that is shown next to the input
        "label": String,
        // The index of the input (for sorting)
        "index": Integer
      }
    },
    // Outputs from the last render cycle that were returned from QuartzComposer, including the original keys
    "output-values": Object
  }
}

Sources d'information

Le type "sources" modélise les sources utilisées dans les calques, les filtres et les autres sources, qui fournissent des entrées audio et vidéo à mimoLive.

{
  // Unique identifier of the source
  "id": String,
  // Always "sources" (see the JSON-API documentation for more information
  // on this field).
  "type": "sources",
  // See the JSON:API specification for more information on this field
  "relationships": {
    // The document this source is part of
    "document": Relationship,
    // The filters that process this source's video
    "filters": Relationship
  },
  // The link to the resource itself (see the JSON:API specification for
  // more information on this field).
  "links": Object,
  // Attributes of the variant (this is probably the data you are after)
  "attributes": {
    // The tally state of the source (see tally-state for possible values
    // and their meaning)
    "tally-state": TallyState,
    // The name of the source as displayed in mimoLive
    "name": String,
    // Whether the source supplies video
    "video": Bool,
    // [optionally] If the associated video hardware is currently connected
		// (Available since 5.5)
    "video-device-connected": Bool,
    // Whether the source supplies audio
    "audio": Bool,
    // [optionally] If the associated audio hardware is currently connected
		// (Available since 5.5)
    "audio-device-connected": Bool,
    // Summary text of the source as displayed in mimoLive
    "summary": String,
    // The identifier of the composition if the source is based on a QuartzComposition
    "composition-id": String,
    // The gain that is applied to audio comming from this source, as
    // controlled in the source settings view where 0.0 means silence,
    // 1.0 is the default and 2.0 means doubled volume.
    // Null if a source has no audio.
    "gain": Float | null,
    // The inputs used for the underlying composition (if it is a composition
    // source). Check out the custom layer protocol for more information on
    // the key names and their meaning.
    "input-values": Object,
    // Description object for each of the keys returned in "input-values"
    "input-descriptions": {
      (String): {
        // Whether the input is currently hidden in the mimoLive window
        "hidden": Bool,
        // The type of the input ("string", "number", "index", "bool",
        // "color", "image", "structure")
        "type": String,
        // If applicable: The minimum value the input accepts
        "value-min": Float,
        // If applicable: The maximum value the input accepts
        "value-max": Float,
        // For dropdowns a list of names for the individual values
        "value-list": Array,
        // By which ammount a value should be increased or decreased
        "value-step": Float,
        // String that declares in which unit the value is (eg. "°C")
        "value-unit": String,
        // Label that is shown next to the input
        "label": String,
        // The index of the input (for sorting)
        "index": Integer
      }
    },
    // Outputs from the last render cycle that were returned from
    // QuartzComposer, including the original keys
    "output-values": Object
  }
}
*

*L'attribut "gain" a été ajouté dans mimoLive 5.2.

Filtres

Le type "filtres" représente les filtres qui peuvent être assignés aux sources vidéo pour traiter la vidéo avant de l'utiliser dans les calques.

{
  // Unique identifier of the filter
  "id": String,
  // Always "filters" (see the JSON-API documentation for more information on this field)
  "type": "filters",
  // See the JSON:API specification for more information on this field.
  "relationships": {
    // The source that this filter belongs to
    "source": Relationship
  },
  // The link to the resource itself (see the JSON:API specification for more information on this field)
  "links": Object,
  // Attributes of the variant (this is probably the data you are after)
  "attributes": {
    // The name of the filter as displayed in mimoLive
    "name": String,
    // The identifier of the filter's QuartzComposition
    "composition-id": String,
    // The inputs used for the underlying composition (if it is a composition source). Check out the custom layer protocol for more information on the key names and their meaning.
    "input-values": Object,
    // Description object for each of the keys returned in "input-values"
    "input-descriptions": {
      (String): {
        // Whether the input is currently hidden in the mimoLive user interface
        "hidden": Bool,
        // The type of the input ("string", "number", "index", "bool", "color", "image", "structure")
        "type": String,
        // If applicable: The minimum value the input accepts
        "value-min": Float,
        // If applicable: The maximum value the input accepts
        "value-max": Float,
        // For dropdowns a list of names for the individual values
        "value-list": Array,
        // By which ammount a value should be increased or decreased
        "value-step": Float,
        // String that declares in which unit the value is (eg. "°C")
        "value-unit": String,
        // Label that is shown next to the input
        "label": String,
        // The index of the input (for sorting)
        "index": Integer
      }
    },
    // Outputs from the last render cycle that were returned from QuartzComposer, including the original keys
    "output-values": Object
  }
}

Destinations de sortie

Disponible depuis : mimoLive 4.2
Le type "output-destinations" modélise les différentes destinations de sortie qu'un spectacle mimoLive peut avoir, y compris l'enregistrement, la diffusion en continu et plus encore.

{
  // Unique identifier of the output destination
  "id": String,
  // Always "output-destinations" (see the JSON-API documentation for more information on this field)
  "type": "output-destinations",
  // See the JSON:API specification for more information on this field
  "relationships": {
    // The document that this output destination belongs to
    "document": Relationship
  },
  // The link to the resource itself (see the JSON:API specification for more information on this field)
  "links": Object,
  // Attributes of the variant (this is probably the data you are after)
  "attributes": {
    // The name of the output destination as displayed in mimoLive
    "title": String,
    /*
     The concrete type of output destination:
     - "File Recording"
     - "Audio Aux"
     - "Live Streaming"
     - "Virtual Camera"
     - "Fullscreen"
     - "Blackmagic Design"
     - "NDI®" (including the "®")
     */
    "type": String,
    // A summary containing the most important settings
    "summary": String,
    // Whether the output destination is properly configured
    "ready-to-go-live": Bool,
    // Whether the output destination is set to start when the mimoLive show starts
    "starts-with-show": Bool,
    // Whether the output destination is set to stop when the mimoLive show ends
    "stops-with-show": Bool,
    // Individual settings depending on the "type" of output destination (see below for reference)
    "settings": Object,
    // The current live state of the output destination (see below for how to interpret the values)
    "live-state": LiveState
  }
}

Réglages individuels

Les différents types de destination de sortie ont des paramètres différents.
Vous trouverez ci-dessous les différents types d'objets "paramètres". Pour les types de destinations de sortie qui ne sont pas répertoriés, le dictionnaire sera vide.

{
  // Path to the folder that will contain the recording. Can be set to "null" to reset to initial value ("~/Movies').
  "location": String,
  // Filename that will be given to the recording. See below for placeholder values. Can be set to "null" to reset to initial value ("%document %year-%month-%day %hour-%minute-%second.%extension").
  "filename": String
}
{
  // Available since: mimoLive 5.5:
  // Ofuscated URL of the streaming endpoint.
  "rtmpurl": String,
  // Ofuscated steaming key.
  "streamingkey": String,
   // Public broadcast URL.
  "publicurl": String
}
*

Même si les valeurs "rtmpurl" et "streamingkey" sont obscurcies, vous pouvez toujours définir ces valeurs par une requête PATCH.

Valeurs de remplacement pour l'attribut "filename" de l'enregistrement de fichier

PlaceholderExplication
1TP9Documentnom du document, y compris l'extension .tvshow (en fonction des paramètres du système de l'utilisateur)
%shownom de l'émission
%extensionmov, sans le préfixe .
%annéeAnnée à 4 chiffres, par exemple 2018
1TP10Mois2 chiffres pour le mois, par exemple 01 pour janvier
yJour à 2 chiffres, par exemple 31
%hour2 chiffres pour l'heure (horloge de 24 heures), par exemple 15
%minute2 chiffres pour les minutes, par exemple 45
%second2 chiffres pour les secondes, par exemple 50

Jeux de couches

Disponible depuis : mimoLive 4.8
Le type "ensembles de couches" modélise les ensembles de couches que l'utilisateur peut créer et gérer dans mimoLive.

{
  // Unique identifier of the layer set
  "id": String,
  // Always "layer-sets" (see the JSON-API documentation for more information on this field)
  "type": "layer-sets",
  // See the JSON:API specification for more information on this field
  "relationships": {
    // The document that this layer set belongs to
    "document": Relationship
  },
  // The link to the resource itself (see the JSON:API specification for more information on this field)
  "links": Object,
  "attributes": {
    // The name of the layer set as displayed in mimoLive
    "name": String,
    // Wheter the layer stack currently matches the configuration represented by the layer set
    "active": Bool
  }
} 

État vivant

Le type "LiveState" représente l'état dans lequel un document, une couche ou une variante peut se trouver. Les valeurs possibles sont les suivantes :

ValeurExplication
éteintCalque : Le calque est désactivé et ne sera pas rendu.
 Document : Le spectacle n'est pas en cours.
 Destination de sortie : La destination de sortie ne peut pas être mise en service car elle n'est pas correctement configurée.
vivreCouche : Le calque est actif et sera rendu. Dans le cas d'une variante, cela signifie que le calque est actif et que la variante est active.
 Document : L'émission est en cours.
 Destination de sortie : La destination de sortie est active et transmet/enregistre des données.
aperçuCouche : La couche est affichée dans la colonne de prévisualisation et pourrait être mise en ligne prochainement.
 Destination de sortie : La destination de sortie est prête à être mise en service et attend les commandes.
arrêtCouche : La couche est actuellement active, mais elle est en train de s'arrêter (par exemple, une transition sortante).
démarrageDestination de sortie : La destination de sortie est en cours de démarrage (par exemple, connexion à un service externe).

TallyState

Un "TallyState" représente l'état dans lequel une source peut se trouver. Le degré d'activité est ordonné et seule l'utilisation la plus élevée sera signalée. Les valeurs possibles (de faible à élevé) sont les suivantes :

ValeurExplication
éteintLa source n'est actuellement pas utilisée par mimoLive
en serviceLa source est actuellement utilisée quelque part dans mimoLive
effetLa source est actuellement utilisée pour être rendue dans un aperçu de filtre.
aperçuLa source est actuellement utilisée dans la sortie de prévisualisation
programmeLa source est actuellement utilisée dans l'édition du programme

Votre avis

Comment évaluez-vous votre expérience avec cette fonction de mimoLive ?

Dernière mise à jour Pages du manuel

Bulletin d'information par courriel

Français

Participez à la démonstration Live Zoom® 24/7

*obligatoire

Vous devez charger le contenu de {{nom}} pour soumettre le formulaire. Veuillez noter que ce faisant, des données seront partagées avec des providers tiers.

Plus d'informations