[QUESTION] Subtitle Extract #737

Closed
opened 2026-01-29 16:52:21 +00:00 by claunia · 13 comments
Owner

Originally created by @gqtn on GitHub (Jan 5, 2023).

CCExtractor version: 0.88

In raising this issue, I confirm the following:

  • [ X ] I have read and understood the contributors guide.
  • [ 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 and in opened 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.
  • [ X I have ticked all the boxes in this section and to prove it I'm deleting the section completely to remove boilerplate text.

Necessary information

  • What platform did you use? GNU/Linux
  • What were the used arguments? ccextractor "test.ts" -datapid 0x25 -dvblang por -o a.txt

Additional information

Hi.

I have a ".ts" file with the below specs:

    Stream #0:0[0x1e1]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x22](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:2[0x23](por): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:3[0x24](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:4[0x25](por): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)

I want to extract the subtitle content of stream 0:4 (0x25) to a ".txt" file only. However, when I tried to use -datapid 0x25, I can't see anything:

Opening file: test.ts
File seems to be a transport stream, enabling TS mode
Analyzing data in general mode
Ignoring stream language 'eng' not equal to dvblang 'por'
Segmentation fault

But, when I use the -pn 1 option, I can see the rows normally:

1
00:00:00,000 --> 00:00:04,523
No princípio...</font>

2
00:00:04,725 --> 00:00:08,648
<font color="#ffffff">antes das seis singularidades</font>
<font color="#ffffff">e da alvorada da criação,</font>

3
00:00:08,649 --> 00:00:08,848
antes das seis singularidades
e da alvorada da criação,

4
00:00:08,849 --> 00:00:11,851
<font color="#ffffff">vieram os CELESTIAIS.</font>
<font color="#ffffff">Arishem, o Celestial Primordial,</font>

I would like to know the reason for this. I can be forgetting something, and sorry if I did.

Thank you.

Originally created by @gqtn on GitHub (Jan 5, 2023). CCExtractor version: 0.88 # In raising this issue, I confirm the following: - [ 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. - [ X I have ticked all the boxes in this section and to prove it I'm deleting the section completely to remove boilerplate text. # Necessary information - What platform did you use? GNU/Linux - What were the used arguments? `ccextractor "test.ts" -datapid 0x25 -dvblang por -o a.txt` # Additional information Hi. I have a ".ts" file with the below specs: ``` Stream #0:0[0x1e1]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x22](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s Stream #0:2[0x23](por): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s Stream #0:3[0x24](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream #0:4[0x25](por): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) ``` I want to extract the subtitle content of `stream 0:4 (0x25)` to a ".txt" file only. However, when I tried to use `-datapid 0x25`, I can't see anything: ``` Opening file: test.ts File seems to be a transport stream, enabling TS mode Analyzing data in general mode Ignoring stream language 'eng' not equal to dvblang 'por' Segmentation fault ``` But, when I use the `-pn 1` option, I can see the rows normally: ``` 1 00:00:00,000 --> 00:00:04,523 No princípio...</font> 2 00:00:04,725 --> 00:00:08,648 <font color="#ffffff">antes das seis singularidades</font> <font color="#ffffff">e da alvorada da criação,</font> 3 00:00:08,649 --> 00:00:08,848 antes das seis singularidades e da alvorada da criação, 4 00:00:08,849 --> 00:00:11,851 <font color="#ffffff">vieram os CELESTIAIS.</font> <font color="#ffffff">Arishem, o Celestial Primordial,</font> ``` I would like to know the reason for this. I can be forgetting something, and sorry if I did. Thank you.
claunia added the GSOC-2023 label 2026-01-29 16:52:21 +00:00
Author
Owner

@Darkcoder011 commented on GitHub (Apr 17, 2023):

Can i Work on this Project

@Darkcoder011 commented on GitHub (Apr 17, 2023): Can i Work on this Project
Author
Owner

@cfsmp3 commented on GitHub (Apr 17, 2023):

Can i Work on this Project

Sure.

@cfsmp3 commented on GitHub (Apr 17, 2023): > Can i Work on this Project Sure.
Author
Owner

@gqtn commented on GitHub (Apr 17, 2023):

If you need anything more, just let me know.

@gqtn commented on GitHub (Apr 17, 2023): If you need anything more, just let me know.
Author
Owner

@Darkcoder011 commented on GitHub (Apr 18, 2023):

ok i will try to solve this issue can you please assign it to me @cfsmp3 @quintanaplaca

@Darkcoder011 commented on GitHub (Apr 18, 2023): ok i will try to solve this issue can you please assign it to me @cfsmp3 @quintanaplaca
Author
Owner

@cfsmp3 commented on GitHub (Apr 18, 2023):

ok i will try to solve this issue can you please assign it to me @cfsmp3 @quintanaplaca

You can just start working on it. Consider it assigned.

@cfsmp3 commented on GitHub (Apr 18, 2023): > ok i will try to solve this issue can you please assign it to me @cfsmp3 @quintanaplaca You can just start working on it. Consider it assigned.
Author
Owner

@Darkcoder011 commented on GitHub (Apr 18, 2023):

ok i will Start Work on it

@Darkcoder011 commented on GitHub (Apr 18, 2023): ok i will Start Work on it
Author
Owner

@gqtn commented on GitHub (Apr 18, 2023):

Let me know if you need any examples or a TS file.

@gqtn commented on GitHub (Apr 18, 2023): Let me know if you need any examples or a TS file.
Author
Owner

@cfsmp3 commented on GitHub (Apr 18, 2023):

We always need the input file to reproduce the error

@cfsmp3 commented on GitHub (Apr 18, 2023): We always need the input file to reproduce the error
Author
Owner

@gqtn commented on GitHub (Apr 18, 2023):

https://we.tl/t-hJmzjQinAf

@gqtn commented on GitHub (Apr 18, 2023): https://we.tl/t-hJmzjQinAf
Author
Owner

@Darkcoder011 commented on GitHub (Apr 19, 2023):

I will first understand it and then solve it

@Darkcoder011 commented on GitHub (Apr 19, 2023): I will first understand it and then solve it
Author
Owner

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

https://we.tl/t-hJmzjQinAf

That link doesn't work anymore, can you update it if you still need help?

@cfsmp3 commented on GitHub (Dec 21, 2025): > https://we.tl/t-hJmzjQinAf That link doesn't work anymore, can you update it if you still need help?
Author
Owner

@cfsmp3 commented on GitHub (Jan 4, 2026):

Closing since we don't have a working link. @gqtn feel free to reply if you still have that file around and it doesn't work with the newest CCExtractor. We've fixed lots of things!

@cfsmp3 commented on GitHub (Jan 4, 2026): Closing since we don't have a working link. @gqtn feel free to reply if you still have that file around and it doesn't work with the newest CCExtractor. We've fixed lots of things!
Author
Owner

@gqtn commented on GitHub (Jan 5, 2026):

@cfsmp3 since I'm not working directly with it, yes, we can close this issue. I apologize for not getting back to you sooner. Still, I'm glad to see that the project is back on track.

@gqtn commented on GitHub (Jan 5, 2026): @cfsmp3 since I'm not working directly with it, yes, we can close this issue. I apologize for not getting back to you sooner. Still, I'm glad to see that the project is back on track.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#737