Skip to content

alephtwo/screensbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screensbot

A CLI for screenshotting every second of a series of MKV videos and tweeting them over a period of weeks.

Requirements

  • Postgres 9.6+
  • Ruby 2.5+
  • ffmpeg

Configuration

Copy database.yml.example to database.yml and fill it out with your database credentials. Then copy twitter.yml.example to twitter.yml and fill it out with your Twitter API keys.

Usage

$ bin/screensbot
Commands:
  screensbot eta              # Display the estimated time of completion for this batch
  screensbot finalize         # Gather metrics on all tweets in the database
  screensbot generate [path]  # Generate screenshots for a given path
  screensbot help [COMMAND]   # Describe available commands or one specific command
  screensbot populate         # Populate the database schema with screenshots
  screensbot tweet            # Post the next screenshot
  screensbot update-metrics   # Update the metrics of as many posts as possible

Happy path

  1. bundle install
  2. Set up the config files.
  3. SCREENSBOT_ENV=production rake db:create db:migrate
  4. Gather your .mkv files.
  5. Run generate, providing the folder as input.
  6. Run populate, providing the screenshots folder as input.
  7. Run tweet on a cron job.
  8. Run update-metrics as frequently as desired, but less than tweet.
  9. When it's all said and done, run finalize to run a final metrics pass.

Development

Please run rubocop before sending any pull requests.

Releases

No releases published

Packages

No packages published

Languages