Repository navigation
Conversation
CCExtractor CI platform finished running the test files on linux. 171/238 tests matched the approved output:
67 tests do not match the approved output. That is the pass/fail verdict. Whether this branch caused it is a separate question, answered below.
Compared with the tip of master — test 10180, commit 2c1c1c6:
Compared with the commit this branch was cut from: the same run as the tip of master (test 10180), so the comparison above already covers it. No test changes behaviour relative to the tip of master: every failure above fails there too, byte for byte. The approved output for those tests is out of date, which is a baseline to review rather than a regression in this branch. |
CCExtractor CI platform finished running the test files on windows. 171/238 tests matched the approved output:
67 tests do not match the approved output. That is the pass/fail verdict. Whether this branch caused it is a separate question, answered below.
Compared with the tip of master — test 10179, commit f56427e:
Compared with the commit this branch was cut from — test 10181, commit 2c1c1c6:
No test changes behaviour relative to the tip of master: every failure above fails there too, byte for byte. The approved output for those tests is out of date, which is a baseline to review rather than a regression in this branch. |
In raising this pull request, I confirm the following (please check boxes):
Reason for this PR:
Sanity check:
Repro instructions:
This is essential. We will not merge ANY PR that doesn't come with detailed instructions, including a sample. We don't want
"fixes" for theoretical issues that an AI agent found, without context. If you can't reproduce the bug, don't send a PR.
Creating PRs with AI is very quick, but we still have humans (even if AI assisted) going over each.
Be mindful of reviewers' time.
Problem
When a Transport Stream contains both a Teletext/VBI private stream (
CCX_STREAM_TYPE_PRIVATE_MPEG2with VBI descriptor0x45, e.g., PID 272) and an MPEG-2/H.264/HEVC video stream carrying EIA-608/708 captions (e.g., PID 49), passing--no-teletextfails to extract captions:ts_tables.cre-registers the disabled Teletext/VBI PID asCCX_CODEC_ATSC_CC.get_sib_stream_by_type()andget_best_stream()insrc/lib_ccx/ts_info.cpick the firstCCX_CODEC_ATSC_CCentry in the list (or lock onto the private VBI PID before the video stream's first PES start arrives), causing the actual video stream to be ignored and producing 0 frames.Fix
get_sib_stream_by_type()insrc/lib_ccx/ts_info.cto prioritize actual video streams (CCX_STREAM_TYPE_VIDEO_MPEG2,CCX_STREAM_TYPE_VIDEO_H264,CCX_STREAM_TYPE_VIDEO_HEVC) when selectingCCX_CODEC_ATSC_CC, falling back to non-video private streams only when no video stream is available.get_best_stream()to wait for pending video streams before falling back to non-videoCCX_CODEC_ATSC_CCstreams.Reproduction & Verification
ccExtractor_subtitle.mpg(SamplePlatform Regression Test 3)