[BUG] X-TIMESTAMP-MAP doesn't show up with DVB subs #542

Closed
opened 2026-01-29 16:47:03 +00:00 by claunia · 8 comments
Owner

Originally created by @NilsIrl on GitHub (Jan 1, 2020).

CCExtractor version: 0.88

  • I have read and understood the contributors guide.
  • I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked that the issue I'm posting isn't already reported.
  • I have checked that the issue I'm porting isn't already solved and no duplicates exist in closed issues and in opened issues
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • I have used the latest available version of CCExtractor to verify this issue exists.

My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):

  • I have used CCExtractor just a couple of times.

Necessary information

  • Is this a regression (did it work before)? idk (probably not)
  • What platform did you use? [X] Linux

arguments:

./ccextractor -datapid 0xc37 -out=webvtt files/test1_dvbsub.ts

Video link: http://akini.mbnet.fi/videos/test1_dvbsub.ts

Related to #1127 in goal though they have different "symptoms" and arise in different cases.

Originally created by @NilsIrl on GitHub (Jan 1, 2020). CCExtractor version: 0.88 - [X] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [X] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present. - [X] I have checked that the issue I'm posting isn't already reported. - [X] I have checked that the issue I'm porting isn't already solved and no duplicates exist in [closed issues](https://github.com/CCExtractor/ccextractor/issues?q=is%3Aissue+is%3Aclosed) and in [opened issues](https://github.com/CCExtractor/ccextractor/issues) - [X] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion. - [X] I have used the latest available version of CCExtractor to verify this issue exists. **My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):** - [X] I have used CCExtractor just a couple of times. **Necessary information** - Is this a regression (did it work before)? idk (probably not) - What platform did you use? [X] Linux arguments: ``` ./ccextractor -datapid 0xc37 -out=webvtt files/test1_dvbsub.ts ``` Video link: http://akini.mbnet.fi/videos/test1_dvbsub.ts Related to #1127 in goal though they have different "symptoms" and arise in different cases.
claunia added the needs-confirmation-of-being-brokendifficulty: easyHacktoberfest labels 2026-01-29 16:47:03 +00:00
Author
Owner

@NilsIrl commented on GitHub (Jan 1, 2020):

Info for some who wants to fix it:

This is the line that calls the function that adds the header (as well as the subtitles) when the input file isn't dvb:

3a1815163f/src/lib_ccx/ccx_encoders_common.c (L1160)

This is the line that calls the function that doesn't do that:

3a1815163f/src/lib_ccx/ccx_encoders_common.c (L1220)

So you basically want to second line to the the same thing as the first line. Feel free to ask more information if my instructions are unclear.

@NilsIrl commented on GitHub (Jan 1, 2020): Info for some who wants to fix it: This is the line that calls the function that adds the header (as well as the subtitles) when the input file isn't dvb: https://github.com/CCExtractor/ccextractor/blob/3a1815163fed76683d7c92b0e7aaf32772e9e074/src/lib_ccx/ccx_encoders_common.c#L1160 This is the line that calls the function that doesn't do that: https://github.com/CCExtractor/ccextractor/blob/3a1815163fed76683d7c92b0e7aaf32772e9e074/src/lib_ccx/ccx_encoders_common.c#L1220 So you basically want to second line to the the same thing as the first line. Feel free to ask more information if my instructions are unclear.
Author
Owner

@NilsIrl commented on GitHub (Jan 1, 2020):

This is the line in write_cc_buffer_as_webvtt that adds the header:

3a1815163f/src/lib_ccx/ccx_encoders_webvtt.c (L281)

You want this line to be called in write_cc_bitmap_as_webvtt

@NilsIrl commented on GitHub (Jan 1, 2020): This is the line in `write_cc_buffer_as_webvtt` that adds the header: https://github.com/CCExtractor/ccextractor/blob/3a1815163fed76683d7c92b0e7aaf32772e9e074/src/lib_ccx/ccx_encoders_webvtt.c#L281 You want this line to be called in `write_cc_bitmap_as_webvtt`
Author
Owner

@karansdoshi commented on GitHub (Jan 8, 2020):

Hello I am a newbie and I'm interested in solving this issue.Both the functions have the line write_webvtt_header(context) with the same context.What exactly is the issue?Can you elaborate about buffer and bitmap at bit.
tess.log

test1_dvbsub.zip
This TS file has more than one program. These are the program numbers found:
1501
1502
1503
fin.traineddata not found! Switching to English
VBI/teletext stream ID 5100 (0x13ec) for SID 1503 (0x5df)
Premature end of file - Transport Stream packet is incomplete (expected 188 bytes, got 92).
100% | 03:41
Number of NAL_type_7: 0
Number of VCL_HRD: 0
Number of NAL HRD: 0
Number of jump-in-frames: 0
Number of num_unexpected_sei_length: 0

Min PTS: 21:54:50:849
Max PTS: 21:58:32:650
Length: 00:03:41:801
Done, processing time = 35 seconds
I am not getting the reason behind premature end.Thanks

@karansdoshi commented on GitHub (Jan 8, 2020): Hello I am a newbie and I'm interested in solving this issue.Both the functions have the line write_webvtt_header(context) with the same context.What exactly is the issue?Can you elaborate about buffer and bitmap at bit. [tess.log](https://github.com/CCExtractor/ccextractor/files/4034006/tess.log) [test1_dvbsub.zip](https://github.com/CCExtractor/ccextractor/files/4034012/test1_dvbsub.zip) This TS file has more than one program. These are the program numbers found: 1501 1502 1503 fin.traineddata not found! Switching to English VBI/teletext stream ID 5100 (0x13ec) for SID 1503 (0x5df) Premature end of file - Transport Stream packet is incomplete (expected 188 bytes, got 92). 100% | 03:41 Number of NAL_type_7: 0 Number of VCL_HRD: 0 Number of NAL HRD: 0 Number of jump-in-frames: 0 Number of num_unexpected_sei_length: 0 Min PTS: 21:54:50:849 Max PTS: 21:58:32:650 Length: 00:03:41:801 Done, processing time = 35 seconds I am not getting the reason behind premature end.Thanks
Author
Owner

@NilsIrl commented on GitHub (Jan 22, 2020):

Looking back at the code, I think this might be solved by #1137 (if it ever gets merged).

@NilsIrl commented on GitHub (Jan 22, 2020): Looking back at the code, I think this might be solved by #1137 (if it ever gets merged).
Author
Owner

@anshravalll commented on GitHub (Apr 2, 2024):

I believe this issue has been resolved due to the introduction of #1464. Anybody can easily attach the X-TIMESTAMP-MAP by utilizing the --timestamp-map option.

@anshravalll commented on GitHub (Apr 2, 2024): I believe this issue has been resolved due to the introduction of #1464. Anybody can easily attach the X-TIMESTAMP-MAP by utilizing the --timestamp-map option.
Author
Owner

@AbHash-RixE commented on GitHub (Aug 17, 2025):

@NilsIrl — this issue appears to be resolved by #1464, as @anshravalll pointed out.
To include the X-TIMESTAMP-MAP in the generated WebVTT file, you can use the following command:

ccextractor --timestamp-map --datapid 0x69 --out=webvtt File_name.ts   

Here, 0x69 is the PID (Packet Identifier) for the DVB subtitle stream in File_name.ts

@AbHash-RixE commented on GitHub (Aug 17, 2025): @NilsIrl — this issue appears to be resolved by #1464, as @anshravalll pointed out. To include the X-TIMESTAMP-MAP in the generated WebVTT file, you can use the following command: ``` ccextractor --timestamp-map --datapid 0x69 --out=webvtt File_name.ts ``` Here, 0x69 is the PID (Packet Identifier) for the DVB subtitle stream in File_name.ts
Author
Owner

@jnakaigen commented on GitHub (Dec 20, 2025):

Hi, I wanted to verify if this is still reproducible, but the sample link (akini.mbnet.fi) is dead (NXDOMAIN). Does anyone have a backup of test1_dvbsub.ts or should we check if this sample exists on the Sample Platform? If the sample is lost, can we close this as 'cannot reproduce'?

@jnakaigen commented on GitHub (Dec 20, 2025): Hi, I wanted to verify if this is still reproducible, but the sample link (akini.mbnet.fi) is dead (NXDOMAIN). Does anyone have a backup of test1_dvbsub.ts or should we check if this sample exists on the Sample Platform? If the sample is lost, can we close this as 'cannot reproduce'?
Author
Owner

@cfsmp3 commented on GitHub (Dec 21, 2025):

I don't think it's exist on the SP - let's close the ticket since it sounds like it might be solved already anyway.

@cfsmp3 commented on GitHub (Dec 21, 2025): I don't think it's exist on the SP - let's close the ticket since it sounds like it might be solved already anyway.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#542