Skip to content

🤖 📼 Command-line tool for remixing videos with time-coded transcriptions.

Notifications You must be signed in to change notification settings

winstonjay/cassette-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cassette Bot

🤖 📼 Commandline tool for remixing videos with timecoded transciptions.

Requirements

ffmpeg (A complete, cross-platform solution to record, convert and stream audio and video)

$ brew install ffmpeg

Installation

make build

Or to build with examples:

make build_with_examples

Workflows

Speech

Produce a video spliced to match the input_text.

$ cassettebot speech \
    examples/mark/video.mp4 \
    examples/mark/transcription.json \
    --input_text='i wanna talk about this specific situation when i was in college and I started facebook' \
    --video_output='examples/mark/results/speech.mp4' \
    --verbose

See result: examples/results/speech.mp4

Silence

Produce a video from the original with all speech instances removed.

$ cassettebot silence \
    examples/mark/video.mp4 \
    examples/mark/transcription.json \
    --video_output='examples/mark/results/silence.mp4'

See result: examples/results/silence.mp4

General Use

usage: Cassette Bot [-h] [--input_text INPUT_TEXT]
                    [--video_output VIDEO_OUTPUT] [--verbose]
                    {speech,silence,markov} video_source transcript

positional arguments:
  {speech,silence,markov}
                        type of product: {'speech', 'silence', 'markov'}
  video_source          path of video to process
  transcript            path of timecoded json transcript

optional arguments:
  -h, --help            show this help message and exit
  --input_text INPUT_TEXT, -i INPUT_TEXT
                        input text
  --video_output VIDEO_OUTPUT, -o VIDEO_OUTPUT
                        output directory path
  --verbose, -v         check created transcript before building video

🤖 📼 Pull requests welcome

Research notes

About

🤖 📼 Command-line tool for remixing videos with time-coded transcriptions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.8%
  • Shell 2.8%
  • Makefile 0.4%