huggingface.co/spaces/martintomov/gpt4v-voiceover
input.mp4
AI-output.mp4
gpt4v-video-voiceover/voiceover.ipynb
- Environment Setup: Load necessary API keys and configurations.
- Video to Frames: Convert a video into individual frames suitable for processing.
- AI-Generated Script: Use gpt4v to create a script based on the video frames.
- Text to Speech: Convert the script to audio.
- Video Finalization: Merge the audio back into the video, adjusting the video duration to match the audio if necessary.
- Python 3.x
- python-dotenv
- moviepy
- opencv-python
- openai
- requests
- streamlit
This project is only for demonstration and showcases purposes. Feel free to clone and modify the code to suit your needs.