Setting output path format
Creating output files that will have more meaningful names
Custom output path formats helps you store output files in a more organized way by creating keywords-driven folders structures, which can look like this:
my-path/:video_id/:profile/:id- will create subfolders with names based on video id, profile name and encoding id.my-path/:original/:date/:id- this example would add subfolders named after source file name, upload date and encoding id
You can set the path format either at a Factory or Profile level. When using API you can also use path_format for Video object to achieve the same goal.
The following keywords can be combined to create a path format:
| Keyword | Description |
|---|---|
| id | ID of the encoding. |
| video_id | ID of the video. |
| original | Original filename of the uploaded video |
| date | Upload date in YYYY-MM-DD format |
| profile | Profile name used by the encoding. For the source video original keyword is used. |
| type | Video type, original or encodings |
| resolution | Resolution of the video or the encoding (e.g. 1280x720) |
By default, if path_format is not being set anywhere, it is set to :id.
Path formats should be unique for each encoding.
By default outputs_path_format/path_format is not set for Video, Factory, Profile objects. Since there are a number of ways to set this, here is the order in which path format is being applied:
- Video
path_format - Profile
outputs_path_format - Factory
outputs_path_format
If it is empty for the Video object, we are checking if it is set for Profile etc.
Updated over 3 years ago
