Quick setup¶
Before using VidiCore, make sure to create and configure a storage and thumbnail location, and to configure the transcoder.
- Create a storage.
POST API/storage
Content-Type: application/xml
<StorageDocument xmlns="http://xml.vidispine.com/schema/vidispine">
<type>LOCAL</type>
<method>
<uri>file:///path/to/files/</uri>
<read>true</read>
<write>true</write>
<browse>true</browse>
<type>NONE</type>
</method>
<autoDetect>true</autoDetect>
</StorageDocument>
- Create a thumbnail resource.
POST API/resource/thumbnail
Content-Type: application/xml
<ResourceDocument xmlns="http://xml.vidispine.com/schema/vidispine">
<thumbnail>
<path>file:///path/to/thumbnails/</path>
</thumbnail>
</ResourceDocument>
- Configure a transcoder. For example, with VidiCore and the transcoder on the same server:
POST API/resource/transcoder
Content-Type: application/xml
<ResourceDocument xmlns="http://xml.vidispine.com/schema/vidispine">
<transcoder>
<url>http://localhost:8888/</url>
</transcoder>
</ResourceDocument>
Tip
Use curl, HTTPie or the HTTP client of your choosing to make the requests. For example, using HTTPie:
$ http post "localhost:8080/API/storage" @storage.xml
$ http post "localhost:8080/API/resource/thumbnail" @thumbnail.xml
$ http post "localhost:8080/API/resource/transcoder" @transcoder.xml