A CLI for screenshotting every second of a series of MKV videos and tweeting them over a period of weeks.
- Postgres 9.6+
- Ruby 2.5+
- ffmpeg
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.
$ 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
bundle install
- Set up the config files.
SCREENSBOT_ENV=production rake db:create db:migrate
- Gather your .mkv files.
- Run
generate
, providing the folder as input. - Run
populate
, providing thescreenshots
folder as input. - Run
tweet
on a cron job. - Run
update-metrics
as frequently as desired, but less thantweet
. - When it's all said and done, run
finalize
to run a final metrics pass.
Please run rubocop
before sending any pull requests.