Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 83 additions & 4 deletions README.md

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions examples/Add Music to Sora Videos.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,23 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": null,
"id": "543dd0e9-abb0-423e-add7-058f2415f97d",
"metadata": {},
"outputs": [],
"source": [
"# create a new connection with your API ket\n",
"# create a new connection with your API key\n",
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"\n",
"from videodb import connect, play_stream\n",
"from videodb import MediaType\n",
"conn = connect(api_key=\"\")"
"conn = connect()"
]
},
{
Expand Down
8 changes: 6 additions & 2 deletions examples/Adding_Brand_Elements.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = \"\""
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key"
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion examples/Audio_Overlay.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = \"\""
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key"
]
},
{
Expand Down
14 changes: 11 additions & 3 deletions examples/Beep Curse Words.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,22 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "3c5d3ea5-e80c-4381-b768-6a90cf96f302",
"metadata": {},
"outputs": [],
"source": [
"# create a new connection with your API ket\n",
"# create a new connection with your API key\n",
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"\n",
"from videodb import connect, play_stream\n",
"conn = connect(api_key=\"\")"
"conn = connect()"
]
},
{
Expand Down
25 changes: 18 additions & 7 deletions examples/Clip with Faces Rekognition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,17 @@
"metadata": {},
"outputs": [],
"source": [
"from videodb import connect, play_stream\n",
"conn = connect(api_key=\"\")"
"# create a new connection with your API key\n",
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"\n",
"from videodb import connect\n",
"conn = connect()\n"
]
},
{
Expand Down Expand Up @@ -329,15 +338,16 @@
},
"outputs": [],
"source": [
"# Start a Face Search Job \n",
"# Start a Face Search Job\n",
"def start_face_search(video_path, collection_id, bucket_name):\n",
" response = rekognition_client.start_face_search(\n",
" Video={\"S3Object\": {\"Bucket\": bucket_name, \"Name\": video_path}},\n",
" CollectionId=collection_id\n",
" CollectionId=collection_id,\n",
" )\n",
"\n",
" return response[\"JobId\"]\n",
"\n",
"\n",
"# Get Result of Face Search Job\n",
"def get_face_search_results(job_id):\n",
" wait_for = 5\n",
Expand All @@ -355,14 +365,15 @@
" print(f\"Face search failed with status: {status}\")\n",
" return None\n",
"\n",
"\n",
"# Upload our video to S3 Bucket\n",
"s3.create_bucket(Bucket=bucket_name)\n",
"s3.upload_file(video_output, bucket_name, video_output)\n",
"\n",
"# Search faces in uploaded video using Rekogntion API \n",
"job_id = start_face_search(video_output, collection_id, bucket_name )\n",
"# Search faces in uploaded video using Rekogntion API\n",
"job_id = start_face_search(video_output, collection_id, bucket_name)\n",
"print(job_id)\n",
"face_res = get_face_search_results(job_id)"
"face_res = get_face_search_results(job_id)\n"
]
},
{
Expand Down
18 changes: 14 additions & 4 deletions examples/Content Moderation AWS Rekognition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,22 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from videodb import connect, play_stream\n",
"conn = connect(api_key=\"\")"
"# create a new connection with your API key\n",
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"\n",
"from videodb import connect\n",
"\n",
"conn = connect()"
]
},
{
Expand Down Expand Up @@ -166,7 +176,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down
11 changes: 9 additions & 2 deletions examples/Content Moderation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,19 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"conn = videodb.connect(api_key=\"\")"
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"\n",
"conn = videodb.connect()"
]
},
{
Expand Down
11 changes: 9 additions & 2 deletions examples/Create Clip Faces.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,19 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"conn = videodb.connect(api_key=\"\")"
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"\n",
"conn = videodb.connect()"
]
},
{
Expand Down
12 changes: 10 additions & 2 deletions examples/Dubbing - Replace Soundtrack with New Audio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,23 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": null,
"id": "3aa868ec-58dc-4334-89c0-c4b21e8ef12b",
"metadata": {},
"outputs": [],
"source": [
"#connect to videodb\n",
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"\n",
"from videodb import connect\n",
"from videodb import MediaType\n",
"conn = connect(api_key=\" \")"
"conn = connect()"
]
},
{
Expand Down
8 changes: 6 additions & 2 deletions examples/Elevenlabs_Voiceover_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,15 @@
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"os.environ[\"OPENAI_API_KEY\"] = \"\"\n",
"os.environ[\"ELEVEN_LABS_API_KEY\"] = \"\"\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = \"\""
"os.environ[\"ELEVEN_LABS_API_KEY\"] = \"\""
]
},
{
Expand Down
10 changes: 7 additions & 3 deletions examples/Elevenlabs_Voiceover_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,19 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"os.environ[\"OPENAI_API_KEY\"] = \"\"\n",
"os.environ[\"ELEVEN_LABS_API_KEY\"] = \"\"\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = \"\""
"os.environ[\"ELEVEN_LABS_API_KEY\"] = \"\""
]
},
{
Expand Down
10 changes: 7 additions & 3 deletions examples/GenAI_Storyboard.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,19 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"os.environ[\"OPENAI_API_KEY\"] = \"\"\n",
"os.environ[\"ELEVEN_LABS_API_KEY\"] = \"\"\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = \"\""
"os.environ[\"ELEVEN_LABS_API_KEY\"] = \"\""
]
},
{
Expand Down
11 changes: 9 additions & 2 deletions examples/Insert Inline Video.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,19 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"conn = videodb.connect(api_key=\"\")"
"import os\n",
"from getpass import getpass\n",
"\n",
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key\n",
"\n",
"conn = videodb.connect()"
]
},
{
Expand Down
8 changes: 6 additions & 2 deletions examples/Intro_Outro_Inline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,17 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = \"\""
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key"
]
},
{
Expand Down
8 changes: 6 additions & 2 deletions examples/Keyword_Search_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = \"\""
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key"
]
},
{
Expand Down
8 changes: 6 additions & 2 deletions examples/Keyword_Search_Counter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,17 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import videodb\n",
"import os\n",
"from getpass import getpass\n",
"\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = \"\""
"# Prompt user for API key securely\n",
"api_key = getpass(\"Please enter your VideoDB API Key: \")\n",
"os.environ[\"VIDEO_DB_API_KEY\"] = api_key"
]
},
{
Expand Down
Loading