GithubHelp home page GithubHelp logo

winstonjay / cassette-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karlsimsbbc/cassette-bot

0.0 1.0 0.0 25.58 MB

๐Ÿค– ๐Ÿ“ผ Command-line tool for remixing videos with time-coded transcriptions.

Makefile 0.39% Python 96.76% Shell 2.85%

cassette-bot's Introduction

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

cassette-bot's People

Contributors

karlsimsbbc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.