|
13 | 13 | }, |
14 | 14 | { |
15 | 15 | "cell_type": "code", |
16 | | - "execution_count": null, |
| 16 | + "execution_count": 1, |
17 | 17 | "id": "f4b3d21a", |
18 | 18 | "metadata": {}, |
19 | 19 | "outputs": [], |
|
40 | 40 | }, |
41 | 41 | { |
42 | 42 | "cell_type": "code", |
43 | | - "execution_count": null, |
| 43 | + "execution_count": 2, |
44 | 44 | "id": "fd85fb30", |
45 | 45 | "metadata": {}, |
46 | 46 | "outputs": [], |
|
57 | 57 | "vision_api_endpoint = config_details['VISION_API_ENDPOINT']\n", |
58 | 58 | "\n", |
59 | 59 | "# Insert your video SAS URL, e.g. https://<your-storage-account-name>.blob.core.windows.net/<your-container-name>/<your-video-name>?<SAS-token>\n", |
60 | | - "video_SAS_url = config_details[\"VIDEO_SAS_URL\"] \n", |
| 60 | + "video_SAS_url = \"https://gpt4vsamples.blob.core.windows.net/videos/Redwire%20Field%20Trip%20-%203D%20Printing%20a%20Zune.mkv\" #config_details[\"VIDEO_SAS_URL\"]\n", |
61 | 61 | "\n", |
62 | 62 | "# This index name must be unique\n", |
63 | 63 | "video_index_name = config_details[\"VIDEO_INDEX_NAME\"]\n", |
64 | 64 | "\n", |
65 | 65 | "# This video ID must be unique\n", |
66 | | - "video_id = config_details[\"VIDEO_INDEX_ID\"] # This video ID must be unique" |
| 66 | + "video_id = config_details[\"VIDEO_INDEX_ID\"]" |
67 | 67 | ] |
68 | 68 | }, |
69 | 69 | { |
|
75 | 75 | }, |
76 | 76 | { |
77 | 77 | "cell_type": "code", |
78 | | - "execution_count": null, |
| 78 | + "execution_count": 6, |
79 | 79 | "id": "704ffbda", |
80 | 80 | "metadata": {}, |
81 | 81 | "outputs": [], |
|
93 | 93 | }, |
94 | 94 | { |
95 | 95 | "cell_type": "code", |
96 | | - "execution_count": null, |
| 96 | + "execution_count": 5, |
97 | 97 | "metadata": {}, |
98 | | - "outputs": [], |
| 98 | + "outputs": [ |
| 99 | + { |
| 100 | + "name": "stdout", |
| 101 | + "output_type": "stream", |
| 102 | + "text": [ |
| 103 | + "Video Length: 437.28 seconds\n", |
| 104 | + "Segment 1: How many scenes from 0s to 20s?\n", |
| 105 | + "Segment 2: How many scenes from 20s to 40s?\n", |
| 106 | + "Segment 3: How many scenes from 40s to 60s?\n", |
| 107 | + "Segment 4: How many scenes from 60s to 80s?\n", |
| 108 | + "Segment 5: How many scenes from 80s to 100s?\n", |
| 109 | + "Segment 6: How many scenes from 100s to 120s?\n", |
| 110 | + "Segment 7: How many scenes from 120s to 140s?\n", |
| 111 | + "Segment 8: How many scenes from 140s to 160s?\n", |
| 112 | + "Segment 9: How many scenes from 160s to 180s?\n", |
| 113 | + "Segment 10: How many scenes from 180s to 200s?\n", |
| 114 | + "Segment 11: How many scenes from 200s to 220s?\n", |
| 115 | + "Segment 12: How many scenes from 220s to 240s?\n", |
| 116 | + "Segment 13: How many scenes from 240s to 260s?\n", |
| 117 | + "Segment 14: How many scenes from 260s to 280s?\n", |
| 118 | + "Segment 15: How many scenes from 280s to 300s?\n", |
| 119 | + "Segment 16: How many scenes from 300s to 320s?\n", |
| 120 | + "Segment 17: How many scenes from 320s to 340s?\n", |
| 121 | + "Segment 18: How many scenes from 340s to 360s?\n", |
| 122 | + "Segment 19: How many scenes from 360s to 380s?\n", |
| 123 | + "Segment 20: How many scenes from 380s to 400s?\n", |
| 124 | + "Segment 21: How many scenes from 400s to 420s?\n", |
| 125 | + "Segment 22: How many scenes from 420s to 437.28s?\n", |
| 126 | + "From 420s to 437.28s, there is one continuous scene.\n", |
| 127 | + "This scene is a continuation from the previous segment, showing more of the facility's advanced technology.\n", |
| 128 | + "\n", |
| 129 | + "Combining this with the previous segments, the total number of scenes from 0s to 437.28s is twenty-three:\n", |
| 130 | + "\n", |
| 131 | + "1.\n", |
| 132 | + "From 0s to 20s, one continuous scene.\n", |
| 133 | + "2.\n", |
| 134 | + "From 20s to 40s, a scene featuring a red and silver object with a circular control interface.\n", |
| 135 | + "3.\n", |
| 136 | + "From 40s to 60s, a scene with an intense orange and white color scheme.\n", |
| 137 | + "4.\n", |
| 138 | + "From 60s to 80s, a close-up of a green and orange electronic device.\n", |
| 139 | + "5.\n", |
| 140 | + "From 80s to 100s, a scene featuring a 3D printer.\n", |
| 141 | + "6.\n", |
| 142 | + "From 100s to 120s, a space-themed animation with a cartoon dog.\n", |
| 143 | + "7.\n", |
| 144 | + "From 120s to 140s, continuation of the close-up of the red electronic device.\n", |
| 145 | + "8.\n", |
| 146 | + "From 140s to 160s, a bright star-like object transitioning to a Mars-like landscape.\n", |
| 147 | + "9.\n", |
| 148 | + "From 160s to 180s, a scene in a laboratory environment.\n", |
| 149 | + "10.\n", |
| 150 | + "From 180s to 200s, continuation within the laboratory environment.\n", |
| 151 | + "11.\n", |
| 152 | + "From 200s to 220s, the same high-tech laboratory environment.\n", |
| 153 | + "12.\n", |
| 154 | + "From 220s to 240s, a scene with a robotic arm.\n", |
| 155 | + "13.\n", |
| 156 | + "From 240s to 260s, an indoor setting with a modern doorway.\n", |
| 157 | + "14.\n", |
| 158 | + "From 260s to 280s, continuation of the indoor setting with the transportation pod.\n", |
| 159 | + "15.\n", |
| 160 | + "From 280s to 300s, one continuous scene extending from the previous segment.\n", |
| 161 | + "16.\n", |
| 162 | + "From 300s to 320s, a scene inside a control room with various monitors and equipment.\n", |
| 163 | + "17.\n", |
| 164 | + "From 320s to 340s, continuation of the scene with the \"MADE IN SPACE\" equipment inside the facility.\n", |
| 165 | + "18.\n", |
| 166 | + "From 340s to 360s, continuation of the scene inside the facility focusing on the \"MADE IN SPACE\" equipment.\n", |
| 167 | + "19.\n", |
| 168 | + "From 360s to 380s, continuation of the scene showing a close-up of the \"MADE IN SPACE\" equipment and its components.\n", |
| 169 | + "20.\n", |
| 170 | + "From 380s to 400s, continuation of the scene featuring the \"MADE IN SPACE\" equipment within the facility.\n", |
| 171 | + "21.\n", |
| 172 | + "From 400s to 420s, continuation of the scene, further showcasing the interior of the facility and its technology.\n", |
| 173 | + "22.\n", |
| 174 | + "From 420s to 437.28s, continuation of the scene, highlighting advanced technology at the facility.\n", |
| 175 | + "\n", |
| 176 | + "These twenty-three scenes together provide a comprehensive visual exploration of the different settings and technological advancements highlighted in the video.\n" |
| 177 | + ] |
| 178 | + } |
| 179 | + ], |
99 | 180 | "source": [ |
100 | 181 | "# Call GPT-4V API with Video Index on Each Video Chunk Sequentially\n", |
101 | 182 | "\n", |
|
0 commit comments