{"id":28237692,"url":"https://github.com/shayanabbas/ytaitool","last_synced_at":"2025-06-10T17:30:37.729Z","repository":{"id":290513676,"uuid":"973337002","full_name":"shayanabbas/ytaitool","owner":"shayanabbas","description":"Generate AI Animated Youtube Video on Auto","archived":false,"fork":false,"pushed_at":"2025-04-29T07:18:28.000Z","size":28568,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T01:12:48.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/shayanabbas.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,"zenodo":null}},"created_at":"2025-04-26T19:11:03.000Z","updated_at":"2025-04-29T07:18:31.000Z","dependencies_parsed_at":"2025-04-29T08:38:11.284Z","dependency_job_id":null,"html_url":"https://github.com/shayanabbas/ytaitool","commit_stats":null,"previous_names":["shayanabbas/ytaitool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayanabbas%2Fytaitool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayanabbas%2Fytaitool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayanabbas%2Fytaitool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayanabbas%2Fytaitool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shayanabbas","download_url":"https://codeload.github.com/shayanabbas/ytaitool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayanabbas%2Fytaitool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259117256,"owners_count":22807729,"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":[],"created_at":"2025-05-19T01:11:36.202Z","updated_at":"2025-06-10T17:30:37.663Z","avatar_url":"https://github.com/shayanabbas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube AI Content Generator\n\nThis project is an end-to-end pipeline for generating YouTube-ready videos using AI for script writing, image generation, animation, voiceover, background music, sound effects, and video editing. It supports both full AI-powered workflows and local testing with pre-generated assets to save on API costs.\n\n---\n\n## Features\n- **Script Generation**: Uses AI to generate engaging scripts based on your topic.\n- **Visual Generation**: Creates images and animations for each scene.\n- **Voiceover**: Generates voiceover audio for each scene.\n- **Music \u0026 SFX**: Adds background music and sound effects.\n- **Video Editing**: Assembles everything into a final video with captions and transitions.\n- **Test Mode**: Use local test data to avoid API costs during development.\n\n---\n\n## Directory Structure\n```\n.\n├── src/                # Main source code (modularized by function)\n├── testdata/           # Pre-generated test assets (animations, audio, voiceover)\n├── output/videos/      # Final rendered videos\n├── tests/              # Test scripts\n├── examples/           # Example workflows\n├── requirements.txt    # Python dependencies\n├── README.md           # This file\n└── ...\n```\n\n---\n\n## Setup\n1. **Clone the repository**\n2. **Install dependencies**:\n   ```bash\n   python -m venv venv\n   source venv/bin/activate\n   pip install -r requirements.txt\n   ```\n3. **Configure API keys** (for full workflow):\n   - Copy your config example and fill in your API keys for OpenAI, ElevenLabs, Suno, Leonardo, PixVerse, etc.\n   - Place your config file in the appropriate location (see `src/utils/config.py` for details).\n\n---\n\n## Running the Full AI Workflow\nTo generate a video using all AI features:\n```bash\npython examples/complete_workflow.py\n```\n- You will be prompted for a topic and video type.\n- The workflow will generate all assets and assemble the video.\n- Output will be in `output/videos/`.\n\n---\n\n## Running with Test Data (No API Costs)\nTo assemble a video using only pre-generated test assets:\n```bash\nPYTHONPATH=. python tests/test_video_editor_with_testdata.py\n```\n- This uses files from `testdata/animations/`, `testdata/audio/`, and `testdata/voiceover/`.\n- No API calls are made.\n- Output will be in `output/videos/test_output.mp4`.\n\n---\n\n## Test Data Structure\n- Place your test assets as follows:\n  - `testdata/animations/scene_001.mp4`, ...\n  - `testdata/audio/background_music_*.mp3`, `testdata/audio/sfx_*.mp3`, ...\n  - `testdata/voiceover/voiceover_part_001.mp3`, ...\n\n---\n\n## Troubleshooting\n- **ModuleNotFoundError**: Run scripts with `PYTHONPATH=.` or as a module (e.g., `python -m tests.test_video_editor_with_testdata`).\n- **Pillow/ANTIALIAS error**: The test script patches this automatically for compatibility with Pillow 10+.\n- **No background music found**: Ensure your background music files are in `testdata/audio/` and named like `background_music_*.mp3`.\n- **API costs**: Use the test script to avoid unnecessary API calls during development.\n\n---\n\n## Contributing\nPull requests and issues are welcome! Please:\n- Follow the code style and modular structure.\n- Add tests for new features.\n- Document any new configuration or dependencies.\n\n---\n\n## License\n[MIT License](LICENSE) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshayanabbas%2Fytaitool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshayanabbas%2Fytaitool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshayanabbas%2Fytaitool/lists"}