https://github.com/gitfu/scc2vtt
Translates Scenarist SCC caption files to WebVTT subtitles
https://github.com/gitfu/scc2vtt
Last synced: 11 months ago
JSON representation
Translates Scenarist SCC caption files to WebVTT subtitles
- Host: GitHub
- URL: https://github.com/gitfu/scc2vtt
- Owner: gitfu
- Created: 2016-08-15T02:56:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-15T00:38:53.000Z (about 7 years ago)
- Last Synced: 2024-11-25T17:45:55.281Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scc2vtt
Translates Scenarist SCC closed captions to WebVTT
### Requires Python3
* This is a work in progress,
* The times and text are accurate, however no formating or positioning is retained .
* Rollups are removed.
* Sys.argv[1] is the input ,
* if sys.argv[2] is present it's the output, else the output file is call out.vtt
## How to use
* Full working example.
* Create conv_scc.py
* Write this to conv_scc.py
```
import scc2vtt
import sys
def name_files():
if len(sys.argv) > 1:
infile=sys.argv[1]
try: outfile=sys.argv[2]
except: outfile="out.vtt"
return infile,outfile
if __name__=='__main__':
infile,outfile=name_files()
scc2vtt.scc_decoder(infile,outfile)
```
* Run it like so.
```
python conv_scc.py my_in.scc my_out.vtt
```