This is the repository to convert any Youtube video with captions enabled into useful reels.
pip install -r requirements.txt
- Change the VideoID to the Youtube Video that you want to convert into reels.
- Run the following command -
python3 autocropper.py
- The outputs will be the root directory in the format of output_cropped000_final.mp4.
- The first run will take few minutes as it will download the pretrained model.
- This code will only work with youtube videos that have english captions. Please extract the function Reeler3 to convert any video into a smart focus reel.
##Future Works:
- Change Focus on objects based on Salient Object Detection instead of People Centric Smart Focus.
- Use Speech Diarization to identify speakers and map them to faces.