Skip to content

[QUESTION] Subtitle Extract #1471

Open
Open
@gqtn

Description

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.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions