Python package to automate and simplify video creation.
Autovid simplifies the text-to-speech video creation process by producing beautifully edited videos with minimal commands. ✨
sample.mp4
-
Obtain a client key and secret from Reddit by creating an app here.
-
Install autovid via pip
pip install autovid
-
Import autovid and update the Reddit API id and secret to let autovid access Reddit.
import autovid as av av.api_keys.client_id = "my_client_id" av.api_keys.client_secret = "my_client_secret"
-
Autovid creates 'clips' that are combined to create the final video. Use the
redditpostclip
orredditcommentclip
methods to create clips that can be passed to themakevideo
method to generate the video.q = [ av.redditpostclip("https://www.reddit.com/r/reddit.com/comments/87/the_downing_street_memo/"), av.redditcommentclip("https://www.reddit.com/r/reddit.com/comments/87/comment/c16lbx4"), ] av.makevideo(queue=q)
That's it! You can find your final video saved as temp/final.mp4
!
You can pass in parameters to the makevideo
method to tweak the final video.
-
Adding background audio and video:
q = [ av.redditpostclip("https://www.reddit.com/r/reddit.com/comments/87/the_downing_street_memo/"), ] av.makevideo(queue=q, background_audio_path="lofi_music.mp3", background_video_path="minecraft.mp4")
Autovid will use these to add background music and videos to the final output. A 720p video works best!