Giter Club home page Giter Club logo

vtttosrt's Introduction

vttToSrt

Simple object-oriented WebVTT to srt converter written in C#.

Download

For Windows, Linux and Mac (https://github.com/chestwood96/vttToSrt/blob/master/binaries/vttToSrt.exe)

Usage

vttToSrt [-h] [-q] [-v] [-f] [-s <string>] [-e <string>] [-r] <string> <string>

  -h, --help --haaalp
    Displays this help-file.

  -q --quiet
    Mutes all non error messages.
    Overrides -v.

  -v --verbose
     More detailed output.

  -f --force --plz
    Forces files to be written even if they allready exist 
    (normally files will not get overwritten).

  -s <string> --search <string>
    Tells the program to search for files with the "*.vtt" extention 
    (or the one defined by -e) and convert them.

  -e <string> --extention <string>
    Defines a custom extention for -s to search for instead of the default 
    "*.vtt" (make shure they are actually WebVTT files).

  -r --recurse
    Tells -s to do a recursive search instead of the default flat one.

  <string>
    The file to be converted.
    This field is ignored if -s is used.

  <string>
    Defines the output filename.
    By default the same filename as the input is used (with .srt extention).
    This field is ignored if -s is used.

Examples:
  vttToSrt derp.vtt
    Converts "derp.vtt" to "derp.srt".

  vttToSrt derp.vtt derpinator.lozor
    Converts "derp.vtt" to "derpinator.lozor".

  vttToSrt -s movies -e awesomesubformat -r -v
    Converts all WebVTT files (here wit the "awesomesubformat" extention) 
    to srt recursively and with additional output.
	
  vttToSrt -f derp.vtt
    Converts "derp.vtt" to "derp.srt" and overwrites the existing file.

How to run

Windows

On Windows 10 this should work out of the box. On older verseions you might have to update your version of .net framework if you have not allready (http://www.microsoft.com/en-us/download/details.aspx?id=49981). After that it is ready to go. open a console, navigate to the vttToSrt.exe file and type

vttToSrt.exe -h

Linux

Install Mono. On debian based distros this can be done like This:

sudo apt-get update && sudo apt-get install mono-complete

Then open a console, navigate to the vttToSrt.exe file and type

mono vttToSrt.exe -h

Mac

Use Mono to run this (http://www.mono-project.com/docs/getting-started/install/mac/). Then open a console, navigate to the vttToSrt.exe file and type

mono vttToSrt.exe -h

Credits

The Parsing based on https://github.com/AlexPoint/SubtitlesParser.

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.