Skip to main content

Generate Reddit Text-to-Speech videos

Project description

Autovid

Python package to automate and simplify video creation.

What It Does

Autovid simplifies the text-to-speech video creation process by producing beautifully edited videos with minimal commands. :sparkles:

https://github.com/user-attachments/assets/ff08d7fc-5804-4ec7-930b-4a55bc38a834

:rocket: Getting Started

Prerequisites

  • Obtain a client key and secret from Reddit by creating an app here.

  • Install autovid via pip

    pip install autovid
    

Usage

  • 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 or redditcommentclip methods to create clips that can be passed to the makevideo 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!

Advanced

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autovid-0.0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autovid-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file autovid-0.0.2.tar.gz.

File metadata

  • Download URL: autovid-0.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for autovid-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b9d8cd80dbcedc1c27c3b737b51cf90c45a269cf1ef83b0f4b36f5a3cf388165
MD5 7b1c7616f359a6b16e7cf668b2063999
BLAKE2b-256 eb219e7e529b19a4e9799592d2bc3c708345ab76474d87a0f6ac8b2d1caab1d9

See more details on using hashes here.

File details

Details for the file autovid-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: autovid-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for autovid-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09bde3508eb0c404f147589a66e5202e6f0a86a29e9d955dece165f8045aa25d
MD5 a854cea484b28e7fe118cd63595d3ae3
BLAKE2b-256 80ec6c2e1639dfd568f54050c7e88bd4e220ce3597e63e02a753544bdae816ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page