Created
October 8, 2020 20:58
-
-
Save kylenstone/b99e4f4954cb1a3c7361ff2142f9446f to your computer and use it in GitHub Desktop.
Example Get Asset response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"shared": true, | |
"transcoded_at": "2020-09-25T15:44:02.325115Z", | |
"public_item_count": 0, | |
"webm_540": null, | |
"project_id": "c3400a30-d17a-479d-9f4e-467f1882f43e", | |
"filetype": "video/mp4", | |
"view_count": 1, | |
"hls_manifest": "https://stream.frame.io/manifest/hls/master?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOnsidmlkZW8iOlsiczM6Ly9mcmFtZWlvLWFzc2V0cy1wcm9kdWN0aW9uL2VuY29kZS8zNmVjYWFkYy02NGRjLTQ3OTgtODhiYy1mMjYxYWY3ODA0NmQvaDI2NF8zNjAubXA0IiwiczM6Ly9mcmFtZWlvLWFzc2V0cy1wcm9kdWN0aW9uL2VuY29kZS8zNmVjYWFkYy02NGRjLTQ3OTgtODhiYy1mMjYxYWY3ODA0NmQvaDI2NF81NDAubXA0IiwiczM6Ly9mcmFtZWlvLWFzc2V0cy1wcm9kdWN0aW9uL2VuY29kZS8zNmVjYWFkYy02NGRjLTQ3OTgtODhiYy1mMjYxYWY3ODA0NmQvaDI2NF8xMDgwX2Jlc3QubXA0Il0sInVzZXJfY29uZmlnIjp7InRlYW1faWQiOiJhYTg5MTY4Ny00YjFlLTQxNTAtOWI2ZC05ZTQ5MTFjNWI0MzYiLCJzZXNzaW9uX2lkIjoiRmp3ZjRyeXFMLV9qMEFjQXdYd0ciLCJyZXZpZXdfbGlua19pZCI6bnVsbCwicHJvamVjdF9pZCI6ImMzNDAwYTMwLWQxN2EtNDc5ZC05ZjRlLTQ2N2YxODgyZjQzZSIsInByZXNlbnRhdGlvbl9pZCI6bnVsbCwicGxheWVyX3R5cGUiOiJpbnRlcm5hbCIsImFzc2V0X2lkIjoiMzZlY2FhZGMtNjRkYy00Nzk4LTg4YmMtZjI2MWFmNzgwNDZkIiwiYWNjb3VudF9pZCI6Ijk2NTM2MzJkLTEzOTQtNGZhYi05MWE0LWQzOWQxMjcyY2NhOCJ9LCJpZCI6IjM2ZWNhYWRjLTY0ZGMtNDc5OC04OGJjLWYyNjFhZjc4MDQ2ZCIsImF1ZGlvIjpbInMzOi8vZnJhbWVpby1hc3NldHMtcHJvZHVjdGlvbi9lbmNvZGUvMzZlY2FhZGMtNjRkYy00Nzk4LTg4YmMtZjI2MWFmNzgwNDZkL2gyNjRfMzYwLm1wNCJdfSwiZXhwIjoxNjAyMjc3MDI2fQ.GXgisTVxe0ccCFq7viGvkzfHW-iI5KZacr4lKQBEiKE", | |
"archived_at": null, | |
"image_high": null, | |
"is_session_watermarked": false, | |
"properties": null, | |
"metadata": { | |
"_type": "asset_metadata", | |
"asset_id": "36ecaadc-64dc-4798-88bc-f261af78046d", | |
"blob": { | |
"asset": { | |
"id": "36ecaadc-64dc-4798-88bc-f261af78046d", | |
"storage": { | |
"bucket": "frameio-uploads-production", | |
"etag": "8f23a9ea39809ab0e3e574ef408c8492-21", | |
"key": "uploads/36ecaadc-64dc-4798-88bc-f261af78046d/original.mp4", | |
"provider": "aws.s3", | |
"size": 431311050, | |
"uploaded_at": 1601044709 | |
} | |
}, | |
"audio_codec": "AAC", | |
"codec": "HEVC", | |
"duration": "3246.4", | |
"format": { | |
"bit_rate": "1062866", | |
"duration": "3246.400000", | |
"format_long_name": "QuickTime / MOV", | |
"format_name": "mov,mp4,m4a,3gp,3g2,mj2", | |
"nb_programs": 0, | |
"nb_streams": 2, | |
"probe_score": 100, | |
"size": "431311050", | |
"start_time": "0.000000", | |
"tags": { | |
"compatible_brands": "mp42mp41", | |
"creation_time": "2020-09-24T00:34:31.000000Z", | |
"major_brand": "mp42", | |
"minor_version": "0" | |
} | |
}, | |
"format_name": "MPEG-4", | |
"fps": 25.0, | |
"frames": "81159", | |
"has_audio": "true", | |
"height": 1080, | |
"interlaced": false, | |
"is_audio": "false", | |
"is_hdr": false, | |
"is_image": "false", | |
"is_video": "true", | |
"streams": [ | |
{ | |
"avg_frame_rate": "25/1", | |
"bit_rate": "741295", | |
"codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)", | |
"codec_name": "hevc", | |
"codec_tag": "0x31637668", | |
"codec_tag_string": "hvc1", | |
"codec_time_base": "1/25", | |
"codec_type": "video", | |
"coded_height": 1088, | |
"coded_width": 1920, | |
"color_primaries": "bt709", | |
"color_range": "tv", | |
"color_space": "bt709", | |
"color_transfer": "bt709", | |
"disposition": { | |
"attached_pic": 0, | |
"clean_effects": 0, | |
"comment": 0, | |
"default": 1, | |
"dub": 0, | |
"forced": 0, | |
"hearing_impaired": 0, | |
"karaoke": 0, | |
"lyrics": 0, | |
"original": 0, | |
"timed_thumbnails": 0, | |
"visual_impaired": 0 | |
}, | |
"duration": "3246.360000", | |
"duration_ts": 81159000, | |
"has_b_frames": 2, | |
"height": 1080, | |
"index": 0, | |
"level": 153, | |
"nb_frames": "81159", | |
"nb_read_frames": "25", | |
"pix_fmt": "yuv420p", | |
"profile": "Main", | |
"r_frame_rate": "25/1", | |
"refs": 1, | |
"start_pts": 0, | |
"start_time": "0.000000", | |
"tags": { | |
"creation_time": "2020-09-24T00:34:31.000000Z", | |
"encoder": "HEVC Coding", | |
"handler_name":"Mainconcept Video Media Handler", | |
"language": "eng" | |
}, | |
"time_base": "1/25000", | |
"width": 1920 | |
}, | |
{ | |
"avg_frame_rate": "0/0", | |
"bit_rate": "317375", | |
"bits_per_sample": 0, | |
"channel_layout": "stereo", | |
"channels": 2, | |
"codec_long_name": "AAC (Advanced Audio Coding)", | |
"codec_name": "aac", | |
"codec_tag": "0x6134706d", | |
"codec_tag_string": "mp4a", | |
"codec_time_base": "1/48000", | |
"codec_type": "audio", | |
"disposition": { | |
"attached_pic": 0, | |
"clean_effects": 0, | |
"comment": 0, | |
"default": 1, | |
"dub": 0, | |
"forced": 0, | |
"hearing_impaired": 0, | |
"karaoke": 0, | |
"lyrics": 0, | |
"original": 0, | |
"timed_thumbnails": 0, | |
"visual_impaired": 0 | |
}, | |
"duration": "3246.360000", | |
"duration_ts": 155825280, | |
"index": 1, | |
"max_bit_rate": "317625", | |
"nb_frames": "152175", | |
"nb_read_frames": "38", | |
"profile": "LC", | |
"r_frame_rate": "0/0", | |
"sample_fmt": "fltp", | |
"sample_rate": "48000", | |
"start_pts": 0, | |
"start_time": "0.000000", | |
"tags": { | |
"creation_time": "2020-09-24T00:34:31.000000Z", | |
"handler_name": "#Mainconcept MP4 Sound Media Handler", | |
"language": "eng" | |
}, | |
"time_base": "1/48000" | |
} | |
], | |
"timecode": "00:00:00:00", | |
"video_codec": "HEVC", | |
"width": 1920 | |
}, | |
"ffprobe_metadata": "https://frameio-assets-production.s3-accelerate.amazonaws.com/analysis/36ecaadc-64dc-4798-88bc-f261af78046d/ffprobe.json.gz?x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=10409915-3280-441e-9fb4-b9c19933c85f&x-amz-meta-resource_type=asset_metadata&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=ee804fd60609085ec81c235c3023a0bd69632905a590b0280aa65d5cea9fafbb", | |
"id": "10409915-3280-441e-9fb4-b9c19933c85f", | |
"source_timecode": "00:00:00:00", | |
"timecode": "00:00:00:00" | |
}, | |
"status": "transcoded", | |
"frames": 81159, | |
"hard_deleted_at": null, | |
"team_id": "aa891687-4b1e-4150-9b6d-9e4911c5b436", | |
"upload_completed_at": "2020-09-25T14:38:29.520055Z", | |
"checksums": { | |
"id": "cbfb66bb-9691-405f-95b3-730feff0dc7b", | |
"xx_hash": "494aaa62c5140feb" | |
}, | |
"fps": 25.0, | |
"account_id": "9653632d-1394-4fab-91a4-d39d1272cca8", | |
"resource_id": "5fe80f8a-a730-4c49-a1fc-fce31062db42", | |
"metadata_flags": { | |
"id": "1ab64614-309e-41e5-b3e7-bce726da13ed", | |
"is_360": false, | |
"is_hdr": false | |
}, | |
"required_transcodes": [ | |
"cover", | |
"h264_1080_best", | |
"h264_360", | |
"h264_540", | |
"h264_720", | |
"image_full", | |
"thumb", | |
"thumb_540", | |
"thumb_orig_ar_540", | |
"thumb_scrub" | |
], | |
"h264_2160": null, | |
"page_small": null, | |
"index": -1.0, | |
"parent_id": "5b30085f-da8f-48c2-8611-0a78b27403db", | |
"comment_count": 0, | |
"h264_720": null, | |
"rating": null, | |
"h264_1080_best": "https://frameio-assets-production.s3-accelerate.amazonaws.com/encode/36ecaadc-64dc-4798-88bc-f261af78046d/h264_1080_best.mp4?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=06a31ea889aa7411d4aeff968ea277283d86f46df8a950cd9a5cb1e5789d91e6", | |
"thumb": "https://frameio-assets-production.s3-accelerate.amazonaws.com/video-thumbnail/36ecaadc-64dc-4798-88bc-f261af78046d/thumb.jpg?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=15a0d9db083054d5ca8c8f2f1e011315b18d0951b4acad71472f7360d382f39c", | |
"original": "https://frameio-uploads-production.s3-accelerate.amazonaws.com/uploads/36ecaadc-64dc-4798-88bc-f261af78046d/original.mp4?response-content-disposition=attachment%3B%20filename%3D%22Custom%20Actions%20Webinar_HEVC.mp4%22%3B%20filename%2A%3D%22Custom%20Actions%20Webinar_HEVC.mp4%22&x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=caa98b66c529fdb1258c109a25b73fd46f96f5ab87ddb96898402718d1487c49", | |
"subtitle_tracks": null, | |
"name": "Custom Actions Webinar_HEVC.mp4", | |
"asset_type": "stream", | |
"user_permissions": { | |
"can_download": true, | |
"can_modify_template": false, | |
"can_public_share_presentation": true, | |
"can_public_share_review_link": true, | |
"can_share_downloadable_presentation": true, | |
"can_share_downloadable_review_link": true, | |
"can_share_unwatermarked_presentation": true, | |
"can_share_unwatermarked_review_link": true | |
}, | |
"archive_from": "2020-09-25T14:32:23.480357Z", | |
"_type": "file", | |
"page_full": null, | |
"source": null, | |
"transcode_statuses": { | |
"audio_track": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": null, | |
"error": null, | |
"filesize": null, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": null, | |
"width": null | |
}, | |
"cover": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": null, | |
"error": null, | |
"filesize": 5602, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": null, | |
"width": null | |
}, | |
"h264_1080_best": { | |
"codec": "avc1.4d4028", | |
"duration": 3246.422, | |
"encode_status": "success", | |
"encode_time": 3897, | |
"error": null, | |
"filesize": 356885587, | |
"fps": null, | |
"height": 1080, | |
"language": "eng", | |
"num_channels": 2, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": { | |
"id": "16066a57-5918-43aa-9b75-c90d350dee79", | |
"image": false, | |
"text": false | |
}, | |
"width": 1920 | |
}, | |
"h264_360": { | |
"codec": "avc1.4d401e", | |
"duration": 3246.422, | |
"encode_status": "success", | |
"encode_time": 1299, | |
"error": null, | |
"filesize": 117769156, | |
"fps": null, | |
"height": 360, | |
"language": "eng", | |
"num_channels": 2, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": { | |
"id": "c8b2178b-6e4b-47e4-993a-0b69cce8c0f5", | |
"image": false, | |
"text": false | |
}, | |
"width": 640 | |
}, | |
"h264_540": { | |
"codec": "avc1.4d401f", | |
"duration": 3246.422, | |
"encode_status": "success", | |
"encode_time": 1949, | |
"error": null, | |
"filesize": 159923947, | |
"fps": null, | |
"height": 540, | |
"language": "eng", | |
"num_channels": 2, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": { | |
"id": "dde62e26-fbab-403e-958b-a898920ea21c", | |
"image": false, | |
"text": false | |
}, | |
"width": 960 | |
}, | |
"h264_720": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "failure", | |
"encode_time": 2598, | |
"error": null, | |
"filesize": null, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": null, | |
"width": null | |
}, | |
"image_full": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": null, | |
"error": null, | |
"filesize": 6802, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": { | |
"id": "4df506b9-8805-4135-9b1a-a5b04660cb5d", | |
"image": false, | |
"text": false | |
}, | |
"width": null | |
}, | |
"image_small": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": null, | |
"error": null, | |
"filesize": 765, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": { | |
"id": "67ae473a-9ff4-4fcf-8261-c9ad943a08b7", | |
"image": false, | |
"text": false | |
}, | |
"width": null | |
}, | |
"thumb": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": null, | |
"error": null, | |
"filesize": 6850, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": null, | |
"width": null | |
}, | |
"thumb_540": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": null, | |
"error": null, | |
"filesize": 146987, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": null, | |
"width": null | |
}, | |
"thumb_orig_ar_540": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": null, | |
"error": null, | |
"filesize": 64488, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": null, | |
"width": null | |
}, | |
"thumb_scrub": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": null, | |
"error": null, | |
"filesize": 187314, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": null, | |
"width": null | |
}, | |
"video_h264_180": { | |
"codec": null, | |
"duration": null, | |
"encode_status": "success", | |
"encode_time": 975, | |
"error": null, | |
"filesize": 22450036, | |
"fps": null, | |
"height": null, | |
"language": null, | |
"num_channels": null, | |
"num_frames": null, | |
"storage_class": "regular", | |
"watermark": null, | |
"width": null | |
} | |
}, | |
"creator": { | |
"_type": "user", | |
"account_id": "9653632d-1394-4fab-91a4-d39d1272cca8", | |
"bio": "Senior Developer Relations, Worldwide Customers", | |
"context": null, | |
"deleted_at": null, | |
"digest_frequency": "*/5 * * * *", | |
"email": "[email protected]", | |
"email_confirm_by": null, | |
"email_preferences": null, | |
"features_seen": null, | |
"first_login_at": "2020-05-05T14:33:06.515000Z", | |
"from_google": true, | |
"id": "59c9ade1-311b-4c3b-8231-b9d88e9a1a85", | |
"image_128": "https://picture.frame.io/image/convert/frameio-uploads-production/users/59c9ade1-311b-4c3b-8231-b9d88e9a1a85/image_1588695202?width=128&height=128&resize=fill&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2Vycy81OWM5YWRlMS0zMTFiLTRjM2ItODIzMS1iOWQ4OGU5YTFhODUvaW1hZ2VfMTU4ODY5NTIwMiIsImV4cCI6MTYwNDg2Nzk5OH0.hwVMnKBS-hejjoXeEKqPv75_owmfma30DnljRj_-xb0", | |
"image_256": "https://picture.frame.io/image/convert/frameio-uploads-production/users/59c9ade1-311b-4c3b-8231-b9d88e9a1a85/image_1588695202?width=256&height=256&resize=fill&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2Vycy81OWM5YWRlMS0zMTFiLTRjM2ItODIzMS1iOWQ4OGU5YTFhODUvaW1hZ2VfMTU4ODY5NTIwMiIsImV4cCI6MTYwNDg2Nzk5OH0.hwVMnKBS-hejjoXeEKqPv75_owmfma30DnljRj_-xb0", | |
"image_32": "https://picture.frame.io/image/convert/frameio-uploads-production/users/59c9ade1-311b-4c3b-8231-b9d88e9a1a85/image_1588695202?width=32&height=32&resize=fill&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2Vycy81OWM5YWRlMS0zMTFiLTRjM2ItODIzMS1iOWQ4OGU5YTFhODUvaW1hZ2VfMTU4ODY5NTIwMiIsImV4cCI6MTYwNDg2Nzk5OH0.hwVMnKBS-hejjoXeEKqPv75_owmfma30DnljRj_-xb0", | |
"image_64": "https://picture.frame.io/image/convert/frameio-uploads-production/users/59c9ade1-311b-4c3b-8231-b9d88e9a1a85/image_1588695202?width=64&height=64&resize=fill&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2Vycy81OWM5YWRlMS0zMTFiLTRjM2ItODIzMS1iOWQ4OGU5YTFhODUvaW1hZ2VfMTU4ODY5NTIwMiIsImV4cCI6MTYwNDg2Nzk5OH0.hwVMnKBS-hejjoXeEKqPv75_owmfma30DnljRj_-xb0", | |
"inserted_at": "2020-05-05T14:32:35.160701Z", | |
"joined_via": "team_member", | |
"last_seen": "2020-10-08T20:22:02.518558Z", | |
"location": "Brooklyn, NY", | |
"name": "Kyle Stone", | |
"next_digest_date": "2020-10-08T18:15:00.000000Z", | |
"phone": null, | |
"profile_image": "https://frameio-uploads-production.s3-accelerate.amazonaws.com/users/59c9ade1-311b-4c3b-8231-b9d88e9a1a85/image_1588695202?x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=59c9ade1-311b-4c3b-8231-b9d88e9a1a85&x-amz-meta-resource_type=user&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=74f97283434dfcdd997006dcdbbe2332d6f3ee16da7d0ebe15172b7130f2257d", | |
"profile_image_original": null, | |
"roles": { | |
"admin": false, | |
"id": "860061e4-a92f-42d9-972b-c7ac8dba81a2", | |
"sales": false, | |
"support": true | |
}, | |
"timezone_value": "America/New_York", | |
"updated_at": "2020-10-08T20:22:02.518599Z", | |
"upload_url": "https://frameio-uploads-production.s3-accelerate.amazonaws.com/users/59c9ade1-311b-4c3b-8231-b9d88e9a1a85/image_1588695202?x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=59c9ade1-311b-4c3b-8231-b9d88e9a1a85&x-amz-meta-resource_type=user&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=content-type%3Bhost%3Bx-amz-acl&X-Amz-Signature=5bce7a6b6a592c5f1ac9042bde7e398c30432441cef1423c05780bea109b132c", | |
"user_default_color": "#ff9c40" | |
}, | |
"cover": "https://frameio-assets-production.s3-accelerate.amazonaws.com/video-cover/36ecaadc-64dc-4798-88bc-f261af78046d/cover.jpg?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=87443f2b94e09e5eb24e0a6b805df380a75ca9dd0a67ab7f86dbf32b5a459ed7", | |
"inserted_at": "2020-09-25T14:32:23.480357Z", | |
"webm_360": null, | |
"waveform": null, | |
"thumb_scrub": "https://frameio-assets-production.s3-accelerate.amazonaws.com/scrub/36ecaadc-64dc-4798-88bc-f261af78046d/thumb_scrub.jpg?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=94cb0537837c474719da129649894c737ef3d47f6f687559e7c71c94326d0b50", | |
"description": null, | |
"h264_540": "https://frameio-assets-production.s3-accelerate.amazonaws.com/encode/36ecaadc-64dc-4798-88bc-f261af78046d/h264_540.mp4?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=60e92f6e6b5ed554f5ddf10bead6db6f991773655250c3b57c5a35d72968979c", | |
"updated_at": "2020-09-25T15:44:02.325228Z", | |
"is_hls_required": false, | |
"video_h264_180": "https://frameio-assets-production.s3-accelerate.amazonaws.com/encode/36ecaadc-64dc-4798-88bc-f261af78046d/video_h264_180.mp4?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=6c09248abf0c1ff4dfed7b24d70b00624d0f7dc1ca5945cddd984a394f2171c8", | |
"label": "none", | |
"thumb_540": "https://frameio-assets-production.s3-accelerate.amazonaws.com/video-thumbnail/36ecaadc-64dc-4798-88bc-f261af78046d/thumb_540.png?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=8a67107acf2a61b4a2b35621f7dc1bde7260aa2fb9f88728077e6c2c8e744450", | |
"includes": [ | |
"video", | |
"audio" | |
], | |
"deleted_at": null, | |
"webm_720": null, | |
"downloads": { | |
"h264_1080_best": "https://frameio-assets-production.s3-accelerate.amazonaws.com/encode/36ecaadc-64dc-4798-88bc-f261af78046d/h264_1080_best.mp4?response-content-disposition=attachment%3B%20filename%3D%22Custom%20Actions%20Webinar_HEVC.mp4%22%3B%20filename%2A%3D%22Custom%20Actions%20Webinar_HEVC.mp4%22&x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=acb53366194afc350f2be7378dda79af7be1e82ade3ba89502331b50f484af8f", | |
"h264_2160": null, | |
"h264_360": "https://frameio-assets-production.s3-accelerate.amazonaws.com/encode/36ecaadc-64dc-4798-88bc-f261af78046d/h264_360.mp4?response-content-disposition=attachment%3B%20filename%3D%22Custom%20Actions%20Webinar_HEVC.mp4%22%3B%20filename%2A%3D%22Custom%20Actions%20Webinar_HEVC.mp4%22&x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=3d7ee1f6d928a88c2860c6de3777b2fa4c638ad1862c6ebb5e96964d54866b66", | |
"h264_540": "https://frameio-assets-production.s3-accelerate.amazonaws.com/encode/36ecaadc-64dc-4798-88bc-f261af78046d/h264_540.mp4?response-content-disposition=attachment%3B%20filename%3D%22Custom%20Actions%20Webinar_HEVC.mp4%22%3B%20filename%2A%3D%22Custom%20Actions%20Webinar_HEVC.mp4%22&x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=555ca648e200a348000dc301534f1f67cc640f93ce00e16a05b3765ed1b42256", | |
"h264_720": null, | |
"image_full": "https://frameio-assets-production.s3-accelerate.amazonaws.com/image/36ecaadc-64dc-4798-88bc-f261af78046d/image_full.jpg?response-content-disposition=attachment%3B%20filename%3D%22Custom%20Actions%20Webinar_HEVC.jpg%22%3B%20filename%2A%3D%22Custom%20Actions%20Webinar_HEVC.jpg%22&x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=9185335500ae3ea1ba84f840093f00ebf3551c335163b60eb8ad703af429fd8a", | |
"image_high": null, | |
"image_small": "https://frameio-assets-production.s3-accelerate.amazonaws.com/image/36ecaadc-64dc-4798-88bc-f261af78046d/image_small.jpg?response-content-disposition=attachment%3B%20filename%3D%22Custom%20Actions%20Webinar_HEVC.jpg%22%3B%20filename%2A%3D%22Custom%20Actions%20Webinar_HEVC.jpg%22&x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=7b0130fecbeafe981ae9937b18b43ea2a16bf1866ec77d36ade01b76d7e872c6" | |
}, | |
"image_full": "https://frameio-assets-production.s3-accelerate.amazonaws.com/image/36ecaadc-64dc-4798-88bc-f261af78046d/image_full.jpg?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=0954fd51c201ab47c4a62f4ef6fc3d045aa8c9335731ecf0f7d3f288964e392a", | |
"thumb_orig_ar_540": "https://frameio-assets-production.s3-accelerate.amazonaws.com/video-thumbnail/36ecaadc-64dc-4798-88bc-f261af78046d/thumb_orig_ar_540.jpg?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=95304ac8a1d73c7457e34c90a6d319086b7abb4d6128ab0782a7133cc07cbfc7", | |
"uploaded_at": "2020-09-25T14:32:23.478617Z", | |
"private": false, | |
"webm_1080_best": null, | |
"type": "file", | |
"transcodes": { | |
"_type": "transcode_state", | |
"codec": "HEVC", | |
"id": "accbd1c2-6d79-4918-b1b8-b335222d186b", | |
"original_height": 1080, | |
"original_width": 1920, | |
"resolutions": [ | |
360, | |
540, | |
720, | |
1080 | |
], | |
"thumb_height": 135, | |
"thumb_state": "media", | |
"thumb_width": 240, | |
"thumbs": 50, | |
"total_audio_tracks": 1 | |
}, | |
"h265_hdr_2160": null, | |
"image_small": "https://frameio-assets-production.s3-accelerate.amazonaws.com/image/36ecaadc-64dc-4798-88bc-f261af78046d/image_small.jpg?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=7f5adccce09841900e719efa94048b49f941c5ddceba539ad07c49f986f67ed8", | |
"h264_360": "https://frameio-assets-production.s3-accelerate.amazonaws.com/encode/36ecaadc-64dc-4798-88bc-f261af78046d/h264_360.mp4?x-amz-meta-project_id=c3400a30-d17a-479d-9f4e-467f1882f43e&x-amz-meta-request_id=Fjwf4ryqL-_j0AcAwXwG&x-amz-meta-resource_id=36ecaadc-64dc-4798-88bc-f261af78046d&x-amz-meta-resource_type=asset&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZ5BPIQ3GAUMFD6OL%2F20201008%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201008T205706Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=f5ee5443a58b4371e66b7dc24d32ce64b505ea1c0595b8da83c160a262d7d023", | |
"is_360": false, | |
"duration": 3246.4, | |
"page_thumb": null, | |
"frame_cover": null, | |
"page_high": null, | |
"h265_hdr_1080": null, | |
"versions": 0, | |
"archive_scheduled_at": null, | |
"frame_custom": null, | |
"audio_tracks": null, | |
"id": "36ecaadc-64dc-4798-88bc-f261af78046d", | |
"cover_asset_id": null, | |
"copy": false, | |
"filesize": 431311050, | |
"timecode": "00:00:00:00", | |
"archive_status": null, | |
"upload_failed_at": null, | |
"item_count": 0, | |
"creator_id": "59c9ade1-311b-4c3b-8231-b9d88e9a1a85", | |
"frame_thumb": null, | |
"autoversion_id": null | |
} |
To find assets contained in version stacks, add an include=
query string to a GET asset
API request:
let url = `http://api.frame.io/v2/assets/${id}?include=cover_asset`;
The request will now return a result.cover_asset
object containing the top-level version from the stack. With a few more lines of code, you can add a conditional to pass the correct video file back to your function if and only if the asset type matches version_stack
:
try {
let response = await fetch(url, requestOptions);
let result = await response.json();
if (result.type == "version_stack") {
console.log(`resource is a version stack. debug cover asset - name: ${result.cover_asset.name}, url: ${result.cover_asset.original}`);
return { url: result.cover_asset.original, name: result.cover_asset.name };
} else {
return { url: result.original, name: result.name };
}
} catch(err) {
return (`error: ${err}`);
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you make a
GET asset
request to our API, we provide a full set of available transcode URLs on the response, and leave it up to the user which file to use.The original asset you sent to Frame.io is accessed with the property
original
, whereas the 1080P proxy is:h264_1080_best
In the context of a fetch() request: