Introduction
Configuration files are all in user's directory under ~/.openveo/publish
- ~/.openveo/publish/publishConf.json
- ~/.openveo/publish/videoPlatformConf.json
- ~/.openveo/publish/loggerConf.json
- ~/.openveo/publish/watcherConf.json
Nb : You must restart OpenVeo servers after modifications.
Configure the plugin
Open ~/.openveo/publish/publishConf.json
{
"videoTmpDir" : "/tmp/videos", // Temporary directory to stock uploading videos (video is removed after the upload)
"maxConcurrentPublish" : 3, // Maximum number of videos to upload simultaneously
"timecodeFileName" : "synchro.xml", // Name of the file containing images synchronization in tar package
"metadataFileName" : ".session" // Name of the video metadata file in a tar package
}
Configure video platform credentials
Uploading to Vimeo requires oauth credentials.
Open ~/.openveo/publish/videoPlatformConf.json
{
"vimeo" : { // Vimeo platform configuration
"clientId" : "vimeo client id (available on vimeo application page https://developer.vimeo.com/apps)",
"clientSecret" : "vimeo client secret (available on vimeo application page https://developer.vimeo.com/apps)",
"accessToken" : "vimeo access token (available on vimeo application page https://developer.vimeo.com/apps)"
},
"youtube": {
"uploadMethod": "uploadResumable", // (uploadResumable or uploadClassic; default: uploadResumable)
"googleOAuth": {
"clientId": "Youtube API client Id (available in your Google Developper Console )",
"clientSecret": "Youtube API client secret (available in your Google Developper Console )",
"redirectUrl": "http://SERVER_HOST_NAME:SERVER_PORT/be/publish/configuration/googleOAuthAssosiation"
},
"privacy": "public" // (public, private or unlisted; default: public)
}
}
Configure the logger
Open ~/.openveo/publish/loggerConf.json
{
"watcher": { // Watcher logger
"fileName" : "/var/log/openveo-watcher.log", // Path to log file
"level" : "info", // Log level
"maxFileSize" : 1048576, // Maximum log file size (in Bytes)
"maxFiles" : 2 // Maximum number of files archived
}
}
Configure the watcher
Open ~/.openveo/publish/watcherConf.json
{
"hotFolders" : [ // List of folders to watch
{
"type" : "vimeo", // Video platform to upload to for this hot folder (only vimeo or youtube is supported)
"path" : "/user/box/hot1" // Path to the hot folder
},
{
"type" : "vimeo", // Video platform to upload to for this hot folder (only vimeo or youtube is supported)
"path" : "/user/box/hot2" // Path to the hot folder
},
{
"type" : "youtube", // Video platform to upload to for this hot folder (only vimeo or youtube is supported)
"path" : "/user/box/hot3" // Path to the hot folder
}
...
]
}
Nb : If type is missing for a hot folder, videos won't be automatically uploaded to the platform. Videos can be uploaded to the platform from the catalogue of videos in the back end.