[QUESTION] Out of order packets / Bad packet / Premature end of file / No captions were found in input #761

Closed
opened 2026-01-29 16:53:00 +00:00 by claunia · 2 comments
Owner

Originally created by @2V3EvG4LMJFdRe on GitHub (Apr 13, 2023).

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.
  • 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

  • Is this a regression (i.e. did it work before)? {NO}
  • What platform did you use? {Mac}
  • What were the used arguments? {ccextractor /Users/redacted/Downloads/raster.VOB -o rastersubs.srt -in=ts}

Video links

Additional information

I'm trying to use ccextractor to get DVD raster subs out of files, hopefully into .srt, but it fails with any of the three files I've tried with (all from different sources). Two fail the same way (simplified):

Opening file: /Users/redacted/Downloads/raster.VOB
Analyzing data in general mode
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:7 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:7 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:7 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2

Note: This TS could be a recording from a Hauppage card. If no captions are detected, try --hauppauge

Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Bad packet, adaptation field too long, skipping.
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:5 ctx->ctx->PID_buffers[pid]->ccounter:1
       ctx->PID_buffers[pid]->prev_ccounter:7 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:13 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:13 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:13 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Bad packet, adaptation field too long, skipping.

Premature end of file!
Done, processing time = 11 seconds

No captions were found in input.

The other fails in a similar, but different way (simplified):

Opening file: /Users/redacted/Downloads/raster.VOB
Analyzing data in general mode
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:0 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2

Note: This TS could be a recording from a Hauppage card. If no captions are detected, try --hauppauge

       ctx->PID_buffers[pid]->prev_ccounter:10 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Bad packet, adaptation field too long, skipping.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2

This TS file has more than one program. These are the program numbers found: 
1
39358
34641
41385
33771
2456
59912
13194
18293
53
35826
52192
1862
53888
42692
21513
21668
55400
59443
213
1664
11271
24868
41051
44309
6268
51373
53275
34432
35905
2546
34868
3279
28721
50752
18336
16812
28685
53409
14229
34181
345
Warning: Bad packet, adaptation field too long, skipping.
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:14 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0xB5
Please Report: Unknown table id in PMT expected 0x02 found 0x83
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:14 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0x75
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:6 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0xC2
Please Report: Unknown table id in PMT expected 0x02 found 0x44
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Please Report: Unknown table id in PMT expected 0x02 found 0x7A
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Please Report: Unknown table id in PMT expected 0x02 found 0xCD
Please Report: Unknown table id in PMT expected 0x02 found 0x85
Warning: Bad packet, adaptation field too long, skipping.
Warning: Out of order packets detected for PID: 4386.
       ctx->PID_buffers[pid]->prev_ccounter:9 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0xCD
Warning: Bad packet, adaptation field too long, skipping.
Warning: Out of order packets detected for PID: 5507.
       ctx->PID_buffers[pid]->prev_ccounter:8 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0x85
Please Report: Unknown table id in PMT expected 0x02 found 0xA6
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:0 ctx->ctx->PID_buffers[pid]->ccounter:1
Warning: Out of order packets detected for PID: 0.
       ctx->PID_buffers[pid]->prev_ccounter:0 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0x19
Please Report: Unknown table id in PMT expected 0x02 found 0x3B
Warning: Bad packet, adaptation field too long, skipping.
Warning: Out of order packets detected for PID: 4278.
       ctx->PID_buffers[pid]->prev_ccounter:15 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0x3B
Please Report: Unknown table id in PMT expected 0x02 found 0xCB
Please Report: Unknown table id in PMT expected 0x02 found 0x8A
Please Report: Unknown table id in PMT expected 0x02 found 0x15
Please Report: Unknown table id in PMT expected 0x02 found 0x15
Warning: Bad packet, adaptation field too long, skipping.
Please Report: Unknown table id in PMT expected 0x02 found 0xDC
Warning: Bad packet, adaptation field too long, skipping.
Please Report: Unknown table id in PMT expected 0x02 found 0x0
Warning: Out of order packets detected for PID: 6948.
       ctx->PID_buffers[pid]->prev_ccounter:9 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0x0
Warning: Out of order packets detected for PID: 1860.
       ctx->PID_buffers[pid]->prev_ccounter:11 ctx->ctx->PID_buffers[pid]->ccounter:1
Please Report: Unknown table id in PMT expected 0x02 found 0x8A
Please Report: Unknown table id in PMT expected 0x02 found 0x19
Segmentation fault: 11
Originally created by @2V3EvG4LMJFdRe on GitHub (Apr 13, 2023). 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. - [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 - Is this a regression (i.e. did it work before)? {NO} - What platform did you use? {Mac} - What were the used arguments? `{ccextractor /Users/redacted/Downloads/raster.VOB -o rastersubs.srt -in=ts}` # Video links * {[Replace with a link to a video file](https://drive.google.com/drive/folders/1Y6O0J2biEH1cJMDxHVK9axWyTZJfGVD9?usp=share_link)} # Additional information I'm trying to use ccextractor to get DVD raster subs out of files, hopefully into .srt, but it fails with any of the three files I've tried with (all from different sources). Two fail the same way (simplified): ``` Opening file: /Users/redacted/Downloads/raster.VOB Analyzing data in general mode Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:7 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:7 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:7 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Note: This TS could be a recording from a Hauppage card. If no captions are detected, try --hauppauge Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Bad packet, adaptation field too long, skipping. Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:5 ctx->ctx->PID_buffers[pid]->ccounter:1 ctx->PID_buffers[pid]->prev_ccounter:7 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:13 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:13 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:13 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Bad packet, adaptation field too long, skipping. Premature end of file! Done, processing time = 11 seconds No captions were found in input. ``` The other fails in a similar, but different way (simplified): ``` Opening file: /Users/redacted/Downloads/raster.VOB Analyzing data in general mode Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:0 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Note: This TS could be a recording from a Hauppage card. If no captions are detected, try --hauppauge ctx->PID_buffers[pid]->prev_ccounter:10 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Bad packet, adaptation field too long, skipping. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 This TS file has more than one program. These are the program numbers found: 1 39358 34641 41385 33771 2456 59912 13194 18293 53 35826 52192 1862 53888 42692 21513 21668 55400 59443 213 1664 11271 24868 41051 44309 6268 51373 53275 34432 35905 2546 34868 3279 28721 50752 18336 16812 28685 53409 14229 34181 345 Warning: Bad packet, adaptation field too long, skipping. Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:14 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0xB5 Please Report: Unknown table id in PMT expected 0x02 found 0x83 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:14 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0x75 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:6 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0xC2 Please Report: Unknown table id in PMT expected 0x02 found 0x44 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Please Report: Unknown table id in PMT expected 0x02 found 0x7A Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Please Report: Unknown table id in PMT expected 0x02 found 0xCD Please Report: Unknown table id in PMT expected 0x02 found 0x85 Warning: Bad packet, adaptation field too long, skipping. Warning: Out of order packets detected for PID: 4386. ctx->PID_buffers[pid]->prev_ccounter:9 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0xCD Warning: Bad packet, adaptation field too long, skipping. Warning: Out of order packets detected for PID: 5507. ctx->PID_buffers[pid]->prev_ccounter:8 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0x85 Please Report: Unknown table id in PMT expected 0x02 found 0xA6 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:1 ctx->ctx->PID_buffers[pid]->ccounter:2 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:0 ctx->ctx->PID_buffers[pid]->ccounter:1 Warning: Out of order packets detected for PID: 0. ctx->PID_buffers[pid]->prev_ccounter:0 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0x19 Please Report: Unknown table id in PMT expected 0x02 found 0x3B Warning: Bad packet, adaptation field too long, skipping. Warning: Out of order packets detected for PID: 4278. ctx->PID_buffers[pid]->prev_ccounter:15 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0x3B Please Report: Unknown table id in PMT expected 0x02 found 0xCB Please Report: Unknown table id in PMT expected 0x02 found 0x8A Please Report: Unknown table id in PMT expected 0x02 found 0x15 Please Report: Unknown table id in PMT expected 0x02 found 0x15 Warning: Bad packet, adaptation field too long, skipping. Please Report: Unknown table id in PMT expected 0x02 found 0xDC Warning: Bad packet, adaptation field too long, skipping. Please Report: Unknown table id in PMT expected 0x02 found 0x0 Warning: Out of order packets detected for PID: 6948. ctx->PID_buffers[pid]->prev_ccounter:9 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0x0 Warning: Out of order packets detected for PID: 1860. ctx->PID_buffers[pid]->prev_ccounter:11 ctx->ctx->PID_buffers[pid]->ccounter:1 Please Report: Unknown table id in PMT expected 0x02 found 0x8A Please Report: Unknown table id in PMT expected 0x02 found 0x19 Segmentation fault: 11 ```
Author
Owner

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

@2V3EvG4LMJFdRe that link doesn't work any more. Can you share the sample again?

@cfsmp3 commented on GitHub (Dec 20, 2025): @2V3EvG4LMJFdRe that link doesn't work any more. Can you share the sample again?
Author
Owner

@2V3EvG4LMJFdRe commented on GitHub (Dec 21, 2025):

@cfsmp3 I don't have the file any more and to be honest I don't quite remember what I was trying to achieve with this tool to reproduce it. Feel free to close the issue.

@2V3EvG4LMJFdRe commented on GitHub (Dec 21, 2025): @cfsmp3 I don't have the file any more and to be honest I don't quite remember what I was trying to achieve with this tool to reproduce it. Feel free to close the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#761