This is a fork of pycaption-cli a command line interface for the pycaption
module.
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
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
- --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.
- SCC (read)
- SRT (read/write)
- SAMI (read/write)
- DFXP (read/write)
- WebVTT(.vtt) (read/write)
- Transcript (write)
Documentation for original pycaption
: http://pycaption.readthedocs.io
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.