Skip to content

Conversation

@shashank-sachan
Copy link

@shashank-sachan shashank-sachan commented Oct 16, 2025

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'

@shashank-sachan shashank-sachan changed the title fix scc conversion SCC To TTML Conversion Error Oct 16, 2025
@palemieux
Copy link
Contributor

palemieux commented Oct 17, 2025

@shashank-sachan Thanks for the PR. Two questions:

  • which version of ttconv did you use?
  • can you add a unit test that highlights the issue?

I have not been able to reproduce the bug.

@shashank-sachan
Copy link
Author

@shashank-sachan Thanks for the PR. Two questions:

  • which version of ttconv did you use?
  • can you add a unit test that highlights the issue?

I have not been able to reproduce the bug.

  1. Version Detail
    pip show ttconv
    Name: ttconv
    Version: 1.2.0
    Summary: Library for conversion of common timed text formats
    Home-page: https://github.com/sandflow/ttconv
    Author: Sandflow Consulting LLC
    Author-email: [email protected]

  2. I'll add the test cases

@palemieux palemieux self-requested a review October 17, 2025 14:02
@palemieux
Copy link
Contributor

@shashank-sachan Any luck with the test case? Happy to write it if you can provide the SCC snippet.

@shashank-sachan
Copy link
Author

@shashank-sachan Any luck with the test case? Happy to write it if you can provide the SCC snippet.

I'm attaching SCC file which is having this issue.
sample.scc.zip

@palemieux
Copy link
Contributor

@shashank-sachan Thanks. Can you review #469 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants