[PR #1809] Improve -out=report to show detected Teletext subtitle pages (Fixes #1034) #2551

Closed
opened 2026-01-29 17:22:44 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1809

State: closed
Merged: Yes


This PR fixes Issue #1034, where running CCExtractor with -out=report does not list Teletext pages that contain possible subtitles, even though the same pages are correctly detected during normal extraction.

In report-only mode, CCExtractor skips Teletext PES packet processing because the encoder context (enc_ctx) is not created. Since subtitle-page detection happens inside Teletext packet parsing, no pages are recorded in seen_sub_page[], resulting in an empty Pages With Subtitles: field in the final report.

This PR enables Teletext detection in -out=report mode and ensures proper memory cleanup when the encoder is absent.

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/1809 **State:** closed **Merged:** Yes --- This PR fixes Issue #1034, where running CCExtractor with -out=report does not list Teletext pages that contain possible subtitles, even though the same pages are correctly detected during normal extraction. In report-only mode, CCExtractor skips Teletext PES packet processing because the encoder context (enc_ctx) is not created. Since subtitle-page detection happens inside Teletext packet parsing, no pages are recorded in seen_sub_page[], resulting in an empty Pages With Subtitles: field in the final report. This PR enables Teletext detection in -out=report mode and ensures proper memory cleanup when the encoder is absent.
claunia added the pull-request label 2026-01-29 17:22:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2551