SCC To TTML Conversion Error #466
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
tt convert -i sample.scc -o sample.ttml
Input file is TLVOD-0000485916-GTMV0000445818-1902669_Text1.scc
Output file is TLVOD-0000485916-GTMV0000445818-1902669_Text1.ttml
Cannot define the paragraph text alignment. Set it to default left-aligned.
Reading: |█████████████████████████████████████████████████-| 100% CompleteTraceback (most recent call last):
File "/Users/app/Library/Python/3.9/bin/tt", line 8, in
sys.exit(main())
File "/Users/app/Library/Python/3.9/lib/python/site-packages/ttconv/tt.py", line 482, in main
args.func(args)
File "/Users/app/Library/Python/3.9/lib/python/site-packages/ttconv/tt.py", line 323, in convert
model = scc_reader.to_model(file_as_str, reader_config, progress_callback_read)
File "/Users/app/Library/Python/3.9/lib/python/site-packages/ttconv/scc/reader.py", line 100, in to_model
scc_line.process(context)
File "/Users/app/Library/Python/3.9/lib/python/site-packages/ttconv/scc/line.py", line 163, in process
context.process_control_code(scc_code, self.time_code)
File "/Users/app/Library/Python/3.9/lib/python/site-packages/ttconv/scc/context.py", line 381, in process_control_code
self.get_caption_to_process().indent_cursor(2)
AttributeError: 'NoneType' object has no attribute 'indent_cursor'