mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1918] fix: Apply --delay option to DVB/bitmap subtitles #2714
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1918
State: closed
Merged: Yes
Summary
The
--delayoption was not being applied to DVB and other bitmap-based subtitles (DVD subtitles, etc.), only to CEA-608 subtitles. This made it impossible for users to correct timing offsets in DVB subtitle extraction.Changes
subs_delaytosub->start_timeandsub->end_timeforCC_BITMAPsubtitles inencode_sub(), matching the behavior forCC_608Background
Investigation of issue #1248 revealed that while the original timing offset issue (6600ms too early) in certain DVB streams requires the sample file for root cause analysis, the
--delayoption should have been a viable workaround. However, the delay was never actually applied to bitmap-based subtitles.In
encode_sub()atccx_encoders_common.c:CC_608subtitles:subs_delaywas correctly appliedCC_BITMAPsubtitles:subs_delaywas never appliedTest plan
--delayoption works with DVB subtitlesRelated Issues
Fixes #1248 (provides workaround via
--delay)🤖 Generated with Claude Code