A study tool that takes advantage of low attention span, by playing eye catching videos in the background alongside with TTS and captions. (aka Minecraft Parkour Reddit Stories Family Guy Mobile Game Tiktok type videos)
Demo Video
Python >= 3.10.7
ImageMagick >= 7.1.0-Q16-HDRI
pip install -r requirements.txt
- Run
pip install -r requirements.txt
to get the required packages to run. - Install ImageMagick for caption functionality.
- If you are a Windows user, go into
moviepy/config_default.py
and enter the path for the ImageMagick'smagick.exe
.- Like this
IMAGEMAGICK_BINARY = 'C:\Program Files\ImageMagick-7.1.0-Q16-HDRI\magick.exe'
- Like this
- If you are a Windows user, go into
- Download the gameplay videos
- Extract the videos into
StudySurfer/resources/gameplay/
.
- Extract the videos into
- Enter the desired text to be spoken into
resources/script.txt
.- For best use cases, use paragraphs with simple english where the only puntutations are periods.
- The captions can get out of time, due to certain punctuations like (). I need to fix this, but for now if there are issues just edit the paragraph and remove any of these possible punctuations.
- Open a command prompt, go to the StudySurfer folder, and run this command
python studySurfer.py -m {TYPE}
- These are the possible types of videos:
csgo
- CS:GO Surfmc
- Minecraft Parkoursubway
- Subway Surfer
- These are the possible types of videos:
- Let the program run, and the video should be outputted as
final.mp4