{"id":18482659,"url":"https://github.com/raheesahmed/video_description_generator","last_synced_at":"2026-05-05T22:35:37.372Z","repository":{"id":252702826,"uuid":"841181597","full_name":"RaheesAhmed/video_description_generator","owner":"RaheesAhmed","description":"This Python script processes a video file, generates a compelling description, creates a voiceover script in the style of David Attenborough, and synthesizes the voiceover using OpenAI's Text-to-Speech API.","archived":false,"fork":false,"pushed_at":"2024-08-11T22:33:35.000Z","size":2550,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T13:41:10.985Z","etag":null,"topics":["openai","openai-api","openai-chatgpt","openai-tts","openai-vision","opencv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaheesAhmed.png","metadata":{"files":{"readme":"readme.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T21:58:00.000Z","updated_at":"2024-08-11T22:33:38.000Z","dependencies_parsed_at":"2024-08-11T23:18:58.766Z","dependency_job_id":"2d2ebec2-8d8d-47c9-9ff2-f9840a024edc","html_url":"https://github.com/RaheesAhmed/video_description_generator","commit_stats":null,"previous_names":["raheesahmed/video_description_generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaheesAhmed%2Fvideo_description_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaheesAhmed%2Fvideo_description_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaheesAhmed%2Fvideo_description_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaheesAhmed%2Fvideo_description_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaheesAhmed","download_url":"https://codeload.github.com/RaheesAhmed/video_description_generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239199124,"owners_count":19598740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openai","openai-api","openai-chatgpt","openai-tts","openai-vision","opencv"],"created_at":"2024-11-06T12:29:32.879Z","updated_at":"2025-10-31T12:30:40.099Z","avatar_url":"https://github.com/RaheesAhmed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Video Description and Voiceover Generator\n\nThis Python script processes a video file, generates a compelling description, creates a voiceover script in the style of David Attenborough, and synthesizes the voiceover using OpenAI's Text-to-Speech API.\n\n## Features\n\n- Extracts frames from a video file\n- Generates a video description using GPT-4 Vision\n- Creates a voiceover script in David Attenborough's style\n- Synthesizes the voiceover using OpenAI's Text-to-Speech API\n\n## Prerequisites\n\nBefore running the script, make sure you have the following installed:\n\n- Python 3.x\n- OpenCV (`opencv-python`)\n- OpenAI Python library\n- Requests library\n\nClone the Repo:\n\n```\ngit clone https://github.com/RaheesAhmed/video_description_generator.git\n```\n\nNavigate to the Directory:\n```\ncd video_description_generator\n```\n\n\nYou can install the required libraries using pip:\n\n```\npip install opencv-python openai requests\n```\n\n## Setup\n\n1. Clone this repository or download the script.\n2. Set up your OpenAI API key as an environment variable in `.env` file :\n   ```\n   OPENAI_API_KEY='your-api-key-here'\n   ```\n\n## Usage\n\n1. Place your video file in the `data` directory and name it `bison.mp4`, or modify the script to use a different file path.\n2. Run the script:\n   ```\n   python main.py\n   ```\n\nThe script will:\n1. Extract frames from the video\n2. Generate a video description\n3. Create a voiceover script\n4. Synthesize the voiceover audio\n\n## Output\n\nThe script will print:\n- The number of frames extracted from the video\n- The generated video description\n- The voiceover script\n\nThe synthesized audio will be available as a binary object, which can be saved to a file or played using appropriate audio libraries.\n\n## Note\n\nThis script uses OpenAI's GPT-4 Vision model and Text-to-Speech API, which may incur costs. Make sure you're aware of the pricing and your usage limits.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraheesahmed%2Fvideo_description_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraheesahmed%2Fvideo_description_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraheesahmed%2Fvideo_description_generator/lists"}