mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-14 13:35:43 +00:00
Buggy ttml support #34
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 @MikaYuoadas on GitHub (Nov 18, 2014).
The generated ttml file are not valid: they start and end with the valid ttml headers (xml), but the rest of the file is just a in regular SubRip format.
Here's a short example of the kind of file I get with ccextractor -out=smptett video.ts:
The input files I have are all .ts with embedded dvb_teletext subtitles.
@anshul1912 commented on GitHub (Nov 20, 2014):
Which version are you using I am getting correct output.
I am using git version from here.
@MikaYuoadas commented on GitHub (Nov 20, 2014):
Same here, I'm on latest commit (
b95e06c).I've started looking a bit at the code and it looks like it should only affect dvb_teletext subtitles.
It looks like it's around line 632 in file src/lib_ccx/telxcc.c: the switch only has a a CCX_OF_TRANSCRIPT and a default to srt.
I'm getting a more correct output by adding another case for smptett like this:
But this quick & dirty fix duplicate existing code to generate smptett and doesn't handle line ending correctly (the -lf param is completly ignored).
@anshul1912 commented on GitHub (Nov 20, 2014):
can you share your video file, I will look at it.
It seems teletext code is untouched from decades.
Actually correct solution would be not to write anything in the output file, We should pass decoder subtitle and things should be written there. If you look for dvb_subtitle and 608 things are like that.
and that decode sub context must be passed to encoder.
Now at time of initialization encoder writes the header and footer correctly, but it never gets the decode packet so that it can handle it.
and last question are you willing to contribute this in ccextractor.
@MikaYuoadas commented on GitHub (Nov 24, 2014):
I'd like to, but unfortunately I don't have the time right now to do it correctly.
@MikaYuoadas commented on GitHub (Dec 17, 2015):
Forgot to close this ticket when PR https://github.com/CCExtractor/ccextractor/pull/123 was merged.