https://github.com/lambocreeper/video-mashup
Uses Video Intelligence to analyse and edit a video based on a given sentence.
https://github.com/lambocreeper/video-mashup
intelligence learning machine machine-learning video video-intelligence
Last synced: about 1 month ago
JSON representation
Uses Video Intelligence to analyse and edit a video based on a given sentence.
- Host: GitHub
- URL: https://github.com/lambocreeper/video-mashup
- Owner: LamboCreeper
- Archived: true
- Created: 2020-02-15T13:39:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-02T15:23:09.000Z (about 3 years ago)
- Last Synced: 2025-03-17T06:22:54.242Z (3 months ago)
- Topics: intelligence, learning, machine, machine-learning, video, video-intelligence
- Language: Python
- Size: 11.7 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Video Mashup
A simple Python CLI tool for re-editing videos based on a given phrase. It uses Google's Video Intelligence API to determine the words in a video.
## Dependencies
- [Google Cloud Vision Intelligence](https://pypi.org/project/google-cloud-videointelligence/)
- [Google Cloud Storage](https://pypi.org/project/google-cloud-storage/)
- [MoviePy](https://pypi.org/project/moviepy/)## Setup
1. Clone this repository and navigate into it
2. Install the dependencies
3. Create a GCP project and enable:
- Video Intelligence API
- Cloud Storage
4. Create a service account on GCP that has access to these services
5. Run `export GOOGLE_APPLICATION_CREDENTIALS=path/to/service/account.json`## Usage
`python3 video-mashup `
### Arguments
- `source` - The path to the video you want to mash up
- `destination` - The path where the mashed up video will be saved
- `sentence` - The sentence that should be said in the mash up (wrap it in quotes)### Example
Running `python3 video-mashup ./my-video.mp4 ./final.mp4 "hello friends"` will:
- Using the video located at `./my-video.mp4`
- And the sentence `"hello friends"`
- Will create a video saved at `./final.mp4`