pbs / pycaption

Python module to read/write popular video caption formats
Apache License 2.0
255 stars 137 forks source link

Getting exception CaptionReadNoCaptions for scc to vtt conversion #307

Closed maabiddevra closed 9 months ago

maabiddevra commented 1 year ago

When i am trying to convert attached scc file to vtt i am getting this exception CaptionReadNoCaptions. I tried to debug the issue, it looks like these 3 codes are not available in pycaption constant dictionary 152f, 152c and 1520, it could be another issue with the file.

Note:- I changed the attached scc file extentsion to txt

Pycaption Version :- 2.0.5 Python Version :- 3.7

example.txt

ianShifrin commented 1 year ago

Hi @maabiddevra I believe that those codes are for captions on secondary channels which PyCaption currently doesn't support. You can see more about the PAC (Preamble address code (can set positioning and style)) here, http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/CC_CODES.HTML

I believe those channels are in the SCC spec for secondary languages?

It may help to test converting a few lines of your caption from the channel 3 to channel 1 codes and testing the file.

maabiddevra commented 1 year ago

Hi @pacifier1er, thanks for your response, and yes after replacing channel 3 codes with channel 1 it's working fine. Any plan to support channel 3 codes with pycaption in future?

ianShifrin commented 1 year ago

Hi @maabiddevra, it is not currently in the works. We hope to look at what is possible to do in the next few months. Sorry to not have any definitive answers now.

ianShifrin commented 9 months ago

Given our resource availability and workload, unfortunately we will not be able to tackle this request. We may reassess in the future, but will close the ticket for now. I’m glad to hear the suggested workaround resolved the immediate issue for you.