{"id":22280872,"url":"https://github.com/mqlvin/brain-bites","last_synced_at":"2026-04-09T17:40:10.725Z","repository":{"id":264007387,"uuid":"891517212","full_name":"Mqlvin/brain-bites","owner":"Mqlvin","description":"Shorten educational videos 🎓 into short, rich videos ⚡ using AI 🤖","archived":false,"fork":false,"pushed_at":"2024-12-02T09:22:20.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-17T16:53:38.667Z","etag":null,"topics":["ai","artificial-intelligence","content-summarization","content-summarizer","ffmpeg","flask","gpt","gpt-4","inversity","openai","openai-api","openai-chatgpt","python","video-processing","youtube","yt-dlp"],"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/Mqlvin.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-11-20T13:30:36.000Z","updated_at":"2025-02-08T11:58:10.000Z","dependencies_parsed_at":"2024-11-21T14:21:36.223Z","dependency_job_id":"8b64bc93-e660-4c6d-8594-4f7e347e0b81","html_url":"https://github.com/Mqlvin/brain-bites","commit_stats":null,"previous_names":["mqlvin/brain-bites"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mqlvin/brain-bites","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqlvin%2Fbrain-bites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqlvin%2Fbrain-bites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqlvin%2Fbrain-bites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqlvin%2Fbrain-bites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mqlvin","download_url":"https://codeload.github.com/Mqlvin/brain-bites/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqlvin%2Fbrain-bites/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275144904,"owners_count":25413111,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","artificial-intelligence","content-summarization","content-summarizer","ffmpeg","flask","gpt","gpt-4","inversity","openai","openai-api","openai-chatgpt","python","video-processing","youtube","yt-dlp"],"created_at":"2024-12-03T16:05:42.942Z","updated_at":"2025-12-30T21:23:50.284Z","avatar_url":"https://github.com/Mqlvin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brain Bites\n![brain-bites](res/logo.png)\n\u003cbr\u003e\nShorten long documentaries 📽️ into short, education-packed videos ⚡.\n\u003cbr\u003e\n\n## Usage / Running\n\nTo run the project, you will need the `openai` and `dotenv` Python libraries.\u003cbr\u003e\nYou can either `pip install` them, or can install them otherwise appropriate to your operating system.\u003cbr\u003e\n\u003cbr\u003e\nYou will also need `yt-dlp`, `ffplay` and `ffmpeg` available on your system's PATH, so it is executable from the terminal.\u003cbr\u003e\n\u003cbr\u003e\nThe project will require an environment variable keystore (`.env` file) with the following keys:\n\n- `OPENAI_KEY` - Your OpenAI API key.\n- `RUNTIME_DIR` (optional) - The runtime directory, defaults to `./runtime`\n\n\u003cbr\u003e\n\n## The Vision\n\nThe current project trajectory is to use AI and LLM to trim YouTube videos from lengthy documentaries into short and fast paced educational videos.\u003cbr\u003e\nThis is to make videos more engaging and practical for usage, such as in a classroom, where time and attention spans are limited.\u003cbr\u003e\n\nThe content is implemented in a frontend, scrolling-style web application.\n\n\u003cbr\u003e\n\n## The Process\n\n- We feed **OpenAI's GPT-4** with YouTube transcripts, asking the LLM to regenerate chapterized, concise transcript.\u003cbr\u003e\n- A comparison between the full and trimmed transcript will occur using a custom text-comparison algorithm, finding the removed sentences from the transcript.\u003cbr\u003e\n- The video will be split into chapters based on the shortened transcript using **ffmpeg**.\u003cbr\u003e\n- A quiz and chapter summaries are also generated to aid with learning, again using **OpenAI's GPT-4**.\n- The content generated is served on-demand by the frontend\n\n\u003cbr\u003e\n\n## Inversity\n\nThis is an [Inversity](https://inversity.co/) project application.\u003cbr\u003e\nWe were tasked with \"How can AI make education more engaging, effective and equitable?\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmqlvin%2Fbrain-bites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmqlvin%2Fbrain-bites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmqlvin%2Fbrain-bites/lists"}