Hey Alex, thanks for another thorough response. I’ve run some tests and here are results:
Variations key via REST API
Passing the UUID of an original file that has been processed with the video API but the response doesn’t seem to contain the variations
key:
https://api.uploadcare.com/files/8ea55942-8437-417b-b594-9988842670de/
{
"datetime_removed": null,
"datetime_stored": "2020-02-05T17:14:32.411554Z",
"datetime_uploaded": "2020-02-05T17:14:32.253949Z",
"image_info": null,
"is_image": false,
"is_ready": true,
"mime_type": "video/quicktime",
"original_file_url": "https://ucarecdn.com/8ea55942-8437-417b-b594-9988842670de/divbox1.mov",
"original_filename": "div-box (1).mov",
"size": 601914,
"url": "https://api.uploadcare.com/files/8ea55942-8437-417b-b594-9988842670de/",
"uuid": "8ea55942-8437-417b-b594-9988842670de",
"source": null
}
video_info via REST API
The REST API doesn’t seem to return the video_info
key of a processed file: https://api.uploadcare.com/files/8e8cf6b2-2bdd-434c-aef8-fac328280c7b/
{
"datetime_removed": null,
"datetime_stored": "2020-02-05T17:14:43.957407Z",
"datetime_uploaded": "2020-02-05T17:14:33.085303Z",
"image_info": null,
"is_image": false,
"is_ready": true,
"mime_type": "video/mp4",
"original_file_url": "https://ucarecdn.com/8e8cf6b2-2bdd-434c-aef8-fac328280c7b/video.mp4",
"original_filename": "video.mp4",
"size": 181412,
"url": "https://api.uploadcare.com/files/8e8cf6b2-2bdd-434c-aef8-fac328280c7b/",
"uuid": "8e8cf6b2-2bdd-434c-aef8-fac328280c7b",
"source": null
}
video_info via Upload API
Where as passing the UUID of the processed video to the UPLOAD API does: https://upload.uploadcare.com/info/?pub_key=1d4eaa7670d5df023abd&file_id=8e8cf6b2-2bdd-434c-aef8-fac328280c7b
{
"is_stored": true,
"done": 181412,
"file_id": "8e8cf6b2-2bdd-434c-aef8-fac328280c7b",
"total": 181412,
"size": 181412,
"uuid": "8e8cf6b2-2bdd-434c-aef8-fac328280c7b",
"is_image": false,
"filename": "video.mp4",
"video_info": {
"duration": 6417,
"bitrate": 223,
"audio": {
"channels": null,
"sample_rate": null,
"codec": null,
"bitrate": null
},
"video": {
"width": 1000,
"codec": "h264",
"bitrate": 223,
"frame_rate": 60,
"height": 568
},
"format": "mpeg4"
},
"is_ready": true,
"original_filename": "video.mp4",
"image_info": null,
"mime_type": "video/mp4"
}
I hope I haven’t simply mixed things up, but I am not getting the results I’d expect based on the info provided! Thanks again.