This project was created as part of DataHack 2019 Israel.
Ubuntu/debian
sudo apt install ffmpeg
macOS
brew install ffmpeg
Install requirements file
pip3 install -r requirements.txt
Install the newest version of youtube-dl
pip3 install --upgrade youtube-dl
To start downoading all of the videoclips and create a data-base, open the terminal go to the repository location and write
./download-db.sh
Detect all of the scene cuts from the db you just created
./scenedetect_all.sh
Run create_scene_db.py
to create a .pkl
df unified file of all the scenes from the db (this creates scene_db.pkl
and song_db.pkl
)
python3 create_scene_db.py
Run choose_scenes.py
to run the algorithm which chooses taylor swift scenes from the db to match to a song (creates chosen_scenes.pkl
)
python3 choose_scenes.py
Run build_video.py
to create the video file from the chosen scenes
python3 build_video.py
That's Us
Dalya Gartzman GitHub LinkedIn