Skip to content

mwx-limited/pycaption-cli-mwx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pycaption-cli-wmx

This is a fork of pycaption-cli a command line interface for the pycaption module.

Setup

python setup.py install

This installation has dependency of pycaption-mwx (modified version of pycaption) which will be installed automatically as long as other pycaption dependencies

Usage

From your command line:

pycaption <path to caption file> [--sami --dfxp --srt --vtt --use_styling --transcript --lang --time_offset]

e.g.

pycaption ../captions.scc --dfxp --transcript

Output is written to the screen. To write to a file, use something like this:

pycaption ../captions.scc --vtt --use_styling=no > captions.vtt

Arguments

  • --use_styling - use webvtt caption positioning styling or not (True/yes by default)
  • --time_offset - offset time in seconds. Positive value will be added to the time stamp, negative - subtracted. Supported for SCC and SRT input files only.

Supported Formats

  • SCC (read)
  • SRT (read/write)
  • SAMI (read/write)
  • DFXP (read/write)
  • WebVTT(.vtt) (read/write)
  • Transcript (write)

Documentation

Documentation for original pycaption: http://pycaption.readthedocs.io

License

Copyright 2016 MWX Limited derived from pycaption-cli

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Apache License, Version 2.0.

About

A command line interface for the pycaption module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%