mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[BUG] SMPTE Timed Text contains unclosed p-sections with teletext input #600
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @akkermansadriaan on GitHub (Aug 24, 2020).
CCExtractor version: CCExtractor 0.88
Necessary information
-out=smptettVideo links
I've sent a private invitation containing the original transport stream that I used. It includes the result .srt and .ttml files too.
Additional information
Converting teletext to smptett results an addition unclosed p-section for every valid p-section.
@utkarsh147-del commented on GitHub (Nov 2, 2020):
Please assign this issue to me.I want to do this
@canihavesomecoffee commented on GitHub (Nov 2, 2020):
We don't assign issues to someone, you can just start working on the issue if you want :)
@utkarsh147-del commented on GitHub (Nov 2, 2020):
Ok thankyou sir for this reply
On Mon, Nov 2, 2020 at 7:04 PM Willem notifications@github.com wrote:
@SuvigyaJain1 commented on GitHub (Apr 30, 2021):
I'd like to work on this
I had a quick look through the files and just have one question.
in the ccx_encoders_smtett.c file I follow the code perfectly until the closing
ptag. But I cannot understand why the following code proceeds to open another tag with the "ending time" of the first tag as the "begin time" for this new tag. Is this a specification in smptett or probably just something caused by an accidental use of copy paste :Pthe code I'm referring to:
So I should just remove these redundant lines and open a pr?
P.S. VLC was able to read the .ttml file after removing those lines
@SuvigyaJain1 commented on GitHub (Apr 30, 2021):
P.P.S Or should I close the new opened
<p >tag and leave the contents empty@cfsmp3 commented on GitHub (Apr 30, 2021):
@SuvigyaJain1
OK so you understand the code that works but don't understand the code that doesn't work :-)
I'd say - just fix the problem and have no mercy with buggy or unreadable code.
Take a look at the official specs:
https://www.w3.org/TR/ttml1/
(by the way the current version is newer than our code, so it's worth taking a read anyway).
Producing compliant output should be reasonable straightforward since it's a lot of boilerplate stuff that has the subtitled embedded (and that part is already in our code).
So by all means revise that code and send a PR :-) Feel free to rewrite anything that looks dodgy.
@yashsinghcodes commented on GitHub (Jan 12, 2024):
Hi @cfsmp3 looks like this issue has been solved as, I just went through the code and it seems to be updated. I think its best to close it for any future confusion.