Automagically synchronize subtitles with video.
This report summarizes scanner evidence for smacke/ffsubsync, a Python project with 7,899 GitHub stars. SynthScan examined 12,328 lines of code across 77 source files, recording 221 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 26.1 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 172 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 184 finding(s).
Which changes need focused human review? 221 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 221 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | versioneer.py | 604 | def git_versions_from_keywords(keywords, tag_prefix, verbose): | CODE |
| LOW | versioneer.py | 1127 | def git_versions_from_keywords(keywords, tag_prefix, verbose): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 35 | def test_quality_ok_for_plausible_alignment(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 39 | def test_quality_rejects_negative_score(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 44 | def test_quality_rejects_large_offset(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 49 | def test_default_framerate_threshold_allows_all_real_corrections(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 56 | def test_tightened_framerate_threshold_rejects_correction(): | STRING |
| LOW | tests/test_quality_gate.py | 68 | def test_quality_reports_multiple_reasons(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 115 | def test_try_sync_skips_and_writes_original_on_low_quality(tmp_path, monkeypatch): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 125 | def test_try_sync_applies_when_quality_is_acceptable(tmp_path, monkeypatch): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 134 | def test_try_sync_ignores_quality_without_flag(tmp_path, monkeypatch): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 144 | def test_cli_parses_quality_flags(): | STRING |
| LOW | tests/test_misc.py | 10 | def test_version_tuple_from_string(vstr, expected): | CODE |
| LOW | tests/test_extract_audio.py | 40 | def test_extract_audio_builds_copy_args_and_returns_temp(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 58 | def test_extract_audio_t_limit_includes_start_offset(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 71 | def test_extract_audio_returns_none_and_cleans_up_on_failure(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 85 | def test_fit_extracts_then_cleans_up_temp(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_extract_audio.py | 103 | def test_fit_skips_extraction_for_local_reference(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 118 | def test_fit_skips_extraction_when_flag_disabled(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 133 | def test_cli_and_pipeline_wiring(): | CODE |
| LOW | tests/test_split_aligner.py | 44 | def test_recovers_mid_file_break(): | CODE |
| LOW | tests/test_split_aligner.py | 59 | def test_collapses_to_single_offset(): | CODE |
| LOW | tests/test_split_aligner.py | 71 | def test_already_aligned_is_noop(): | CODE |
| LOW | tests/test_split_aligner.py | 79 | def test_length_penalty_prefers_matching_block(): | CODE |
| LOW | tests/test_split_aligner.py | 103 | def test_subsample_improves_fractional_offset(): | CODE |
| LOW | tests/test_metadata.py | 32 | def test_is_metadata_detects_non_dialogue(content): | CODE |
| LOW | tests/test_metadata.py | 46 | def test_is_metadata_keeps_dialogue(content): | CODE |
| LOW | tests/test_metadata.py | 54 | def test_is_metadata_boundary_only_heuristics(content): | CODE |
| LOW | tests/test_metadata.py | 70 | def test_non_dialogue_line_contributes_no_speech_but_is_not_dropped(): | CODE |
| LOW⚡ | tests/test_progress.py | 12 | def test_progress_info_fraction(): | CODE |
| LOW⚡ | tests/test_progress.py | 16 | def test_progress_info_fraction_unknown_total_is_none(): | CODE |
| LOW⚡ | tests/test_progress.py | 21 | def test_progress_info_fraction_is_clamped_to_one(): | CODE |
| LOW⚡ | tests/test_progress.py | 27 | def test_make_reference_pipe_threads_progress_handler(): | CODE |
| LOW | tests/test_progress.py | 39 | def test_make_reference_pipe_default_progress_handler_is_none(): | CODE |
| LOW | tests/test_progress.py | 94 | def test_progress_handler_fires_with_monotonic_progress(monkeypatch): | CODE |
| LOW | tests/test_progress.py | 107 | def test_progress_handler_exception_does_not_break_fit(monkeypatch): | CODE |
| LOW | tests/test_pgs.py | 42 | def test_stream_without_prefix_unchanged(mock_probe, mock_bin): | CODE |
| LOW | tests/test_pgs.py | 51 | def test_skips_clear_events_small_size(mock_probe, mock_bin): | CODE |
| LOW | tests/test_pgs.py | 79 | def test_returns_none_when_no_usable_packets(mock_probe, mock_bin): | CODE |
| LOW⚡ | tests/test_pgs.py | 92 | def test_returns_none_on_empty_packets(mock_probe, mock_bin): | CODE |
| LOW⚡ | tests/test_pgs.py | 99 | def test_returns_none_when_ffprobe_raises(mock_probe, mock_bin): | CODE |
| LOW⚡ | tests/test_pgs.py | 106 | def test_skips_packets_with_missing_fields(mock_probe, mock_bin): | CODE |
| LOW⚡ | tests/test_max_duration.py | 20 | def test_no_max_duration_omits_t_flag(): | CODE |
| LOW⚡ | tests/test_max_duration.py | 25 | def test_max_duration_adds_input_side_t_flag(): | CODE |
| LOW⚡ | tests/test_max_duration.py | 35 | def test_max_duration_t_value_is_formatted_like_start_seconds(): | CODE |
| LOW⚡ | tests/test_max_duration.py | 44 | def test_cli_parses_max_duration_seconds(): | CODE |
| LOW⚡ | tests/test_max_duration.py | 53 | def test_make_reference_pipe_threads_max_duration_into_transformer(): | CODE |
| LOW | tests/test_alignment.py | 25 | def test_fft_alignment_rejects_empty_speech(refstring, substring): | CODE |
| LOW | tests/test_remote_url.py | 32 | def test_is_remote_url_recognizes_supported_protocols(path): | STRING |
| LOW | tests/test_remote_url.py | 48 | def test_is_remote_url_rejects_non_urls(path): | STRING |
| LOW⚡ | tests/test_remote_url.py | 59 | def test_validate_file_permissions_allows_remote_url(): | STRING |
| LOW⚡ | tests/test_remote_url.py | 66 | def test_validate_file_permissions_still_rejects_unreadable_local_reference(tmp_path): | STRING |
| LOW⚡ | tests/test_remote_url.py | 73 | def test_validate_file_permissions_allows_existing_local_reference(tmp_path): | STRING |
| LOW⚡ | tests/test_remote_url.py | 81 | def test_remote_url_reference_is_not_treated_as_existing_path(): | STRING |
| LOW | tests/test_remote_url.py | 98 | def test_open_file_routes_remote_url_through_urlopen(monkeypatch): | CODE |
| LOW⚡ | tests/test_remote_url.py | 109 | def test_open_file_still_reads_local_path(tmp_path): | CODE |
| LOW⚡ | tests/test_remote_url.py | 116 | def test_parser_reads_remote_srt_reference(monkeypatch): | CODE |
| LOW⚡ | tests/test_remote_url.py | 124 | def test_validate_args_skips_autodetect_for_remote_url(monkeypatch): | CODE |
| LOW⚡ | tests/test_whisper.py | 36 | def test_infer_language_explicit_wins(): | CODE |
| LOW⚡ | tests/test_whisper.py | 40 | def test_infer_language_en_model(): | CODE |
| 79 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | versioneer.py | 332 | except NameError: | CODE |
| HIGH | versioneer.py | 1121 | except OSError: | CODE |
| HIGH | versioneer.py | 1352 | except OSError: | CODE |
| HIGH | versioneer.py | 1730 | except NotThisMethod: | CODE |
| HIGH | versioneer.py | 1750 | except NotThisMethod: | CODE |
| HIGH | versioneer.py | 2081 | except OSError: | CODE |
| HIGH | versioneer.py | 1722 | except NotThisMethod: | CODE |
| HIGH | versioneer.py | 1741 | except NotThisMethod: | CODE |
| HIGH | tests/test_integration.py | 11 | except ImportError: # pyyaml does not work with py3.4 | CODE |
| HIGH | ffsubsync/version.py | 19 | except ImportError: | CODE |
| HIGH | ffsubsync/_version.py | 156 | except EnvironmentError: | CODE |
| HIGH | ffsubsync/_version.py | 490 | except NotThisMethod: | CODE |
| HIGH | ffsubsync/_version.py | 509 | except NotThisMethod: | CODE |
| HIGH | ffsubsync/_version.py | 515 | except NotThisMethod: | CODE |
| HIGH | ffsubsync/speech_transformers.py | 613 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_whisper.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 119 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 121 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 148 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 150 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 253 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | tests/test_whisper.py | 255 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | tests/test_whisper.py | 277 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | tests/test_whisper.py | 279 | # --------------------------------------------------------------------------- | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/src/ffsubsync_bridge.py | 85 | except Exception: # pragma: no cover - defensive; surfaced to the UI | CODE |
| LOW | web/src/ffsubsync_bridge.py | 208 | except Exception: | CODE |
| LOW | ffsubsync/subtitle_parser.py | 150 | except Exception as e: | CODE |
| LOW | ffsubsync/ffsubsync.py | 358 | except Exception: | CODE |
| LOW | ffsubsync/speech_transformers.py | 179 | except Exception: | CODE |
| LOW | ffsubsync/speech_transformers.py | 229 | except Exception: | CODE |
| LOW | ffsubsync/speech_transformers.py | 627 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 659 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 741 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 868 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 891 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 1036 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 1086 | except Exception: | CODE |
| LOW | ffsubsync/speech_transformers.py | 1446 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | versioneer.py | 1099 | CODE | |
| LOW | versioneer.py | 1324 | CODE | |
| LOW | versioneer.py | 1645 | CODE | |
| LOW | versioneer.py | 2020 | CODE | |
| LOW | tests/test_embedded_subs.py | 63 | CODE | |
| LOW | tests/test_embedded_subs.py | 82 | CODE | |
| LOW | ffsubsync/subtitle_parser.py | 90 | CODE | |
| LOW | ffsubsync/_version.py | 133 | CODE | |
| LOW | ffsubsync/_version.py | 445 | CODE | |
| LOW | ffsubsync/subtitle_transformers.py | 93 | CODE | |
| LOW | ffsubsync/subtitle_transformers.py | 94 | CODE | |
| LOW | ffsubsync/ffsubsync.py | 187 | CODE | |
| LOW | ffsubsync/ffsubsync.py | 566 | CODE | |
| LOW | ffsubsync/speech_transformers.py | 644 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | versioneer.py | 433 | # This file is released into the public domain. Generated by | COMMENT |
| MEDIUM | ffsubsync/_version.py | 8 | # This file is released into the public domain. Generated by | COMMENT |
| MEDIUM | ffsubsync/ffmpeg_utils.py | 14 | # Create a set of arguments which make a ``subprocess.Popen`` (and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/scripts/build_wheels.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | docs/conf.py | 1 | # Configuration file for the Sphinx documentation builder. | COMMENT |
| LOW | docs/conf.py | 41 | COMMENT | |
| LOW | gui/entrypoint-windows.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ffsubsync/constants.py | 21 | # Penalty applied by the alass-style piecewise aligner (--split-penalty) when the | COMMENT |
| LOW | ffsubsync/ffmpeg_utils.py | 21 | # | COMMENT |
| LOW | ffsubsync/ffmpeg_utils.py | 41 | # Traceback (most recent call last): | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_pgs.py | 4 | CODE | |
| LOW | ffsubsync/subtitle_preprocessor.py | 5 | CODE | |
| LOW | ffsubsync/subtitle_preprocessor.py | 102 | CODE | |
| LOW | ffsubsync/__init__.py | 20 | CODE | |
| LOW | ffsubsync/__init__.py | 21 | CODE | |
| LOW | ffsubsync/__init__.py | 21 | CODE | |
| LOW | ffsubsync/__init__.py | 22 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | versioneer.py | 451 | # each be defined on a line of their own. _version.py will just call | COMMENT |
| LOW | ffsubsync/_version.py | 24 | # each be defined on a line of their own. _version.py will just call | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ffsubsync/subtitle_preprocessor.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | ffsubsync/ffsubsync_gui.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | ffsubsync/golden_section_search.py | 8 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ffsubsync/subtitle_preprocessor.py | 149 | # Step 1: Filter non-dialogue content | COMMENT |
| LOW | ffsubsync/subtitle_preprocessor.py | 164 | # Step 2: Merge short subtitles | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ffsubsync/subtitle_preprocessor.py | 149 | # Step 1: Filter non-dialogue content | COMMENT |
| LOW | ffsubsync/subtitle_preprocessor.py | 164 | # Step 2: Merge short subtitles | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ffsubsync/speech_transformers.py | 372 | CODE | |
| LOW | ffsubsync/speech_transformers.py | 788 | CODE | |
| LOW | ffsubsync/speech_transformers.py | 1349 | CODE |