Giter Site home page Giter Site logo

cut-m's Introduction

CutM

Download a video file and cut fragments out of it

This is the console version at the moment. It is planned to add a web interface for convenience.

The user must provide a config.json file with all the necessary data in JSON5 format (an example can be found in the repository). The first thing the program needs to know is the video URL (currently from Google Drive). The timing of the fragments will be taken from a Google worksheet. Therefore, you must specify the worksheet URL. For ease of parsing, specify the number of rows of the table header and the row number in that header to find the required columns. The required columns are:

  • slice is the column with checkboxes, where the fragments to be cut are marked,
  • start is the column with the start time of the fragments,
  • end is the column with the end time of the fragments,
  • name is the column with fragment names (fragment for empty values).

Sometimes it is useful to correct all the fragments by a second or two at the start or end to cut them with some margin. So, you can specify these values (in seconds) in the node correct. The values can be negative.

Specify a Google Drive folder for uploading prepared fragments. Set true as the do_upload value for the actual upload.

There are several advanced settings available. You can specify the relative or absolute path to the temporary directory where the downloaded file and its fragments will be placed, the logging level, the path to the ffmpeg utility and the authorization token file.

Note that in order to access Google Drive, you must provide an authorization token file (usually named token.json). Follow the first two steps as described here, and then instead of creating credentials, create a service account and save the provided token.

Inspired by the Creative Society international project!

Requirements

Application is written in Python using:

You will also need the PyInstaller package to create an independent executable.

Dependencies

Use config.json to specify the actual path to the utility. Or just ffmpeg if it is in the standard system paths.

cut-m's People

Contributors

vpodaruev 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.