Skip to content

Streams exceeding set limits/Ordering isn't using quality #548

Open

Description

@sm0keb0x

Using latest dev version vdev-20261105

I have my profiles setup with:

Priority Mode: Resolution-->Score
Stream Limit per Channel: 10
Provider Stream Cap: 3

When looking thru the channels, I've noticed many channels now have 15+ streams assigned when the cap is set to 10. The streams per provider have also been exceeded the set 3.

The sorting is also not honoring the Resolution-->Score as I sometimes see a 1080 ranked below a 720 for some reason.

Possibly related, but looking thru the changelogs for my overnight scans/runs, the channels each night are getting Assignments where several streams are being adding. I don't feel that should be happening every night. The occasional 1 or 2, OK, but getting 4 or more each night is strange. Not sure if it's removing them then re-adding right away.

Activity

  1. bttfw commented on Nov 9, 2026

    @bttfw
    Collaborator

    These observations need to be separated because the provider cap and channel limit have different behavior.

    • More than 3 streams from one provider can be expected. Provider Stream Cap is a soft preference for provider diversity. StreamFlow first prefers up to the configured number per provider, then fills remaining channel slots with eligible streams even above that cap. For example, two providers at a cap of 3 initially provide 6 streams; additional candidates can fill the remaining slots up to your channel limit of 10.
    • 15+ streams after a completed quality check needs investigation. Provider-cap backfill alone does not explain exceeding the channel limit. We need to check the effective profile, whether the channel's check/write-back completed, and any active-viewer or monitoring protection.
    • Resolution -> Score normally ranks by measured resolution first. Names containing 1080/FHD are not enough to establish the measured resolution. Streams protected for active viewers may also retain their existing positions.
    • Repeated nightly assignments need a before/after comparison. One possibility is that matching re-adds candidates later removed by the channel limit. We need stream IDs across runs to distinguish that from genuinely new sources.

    Could you provide one affected example channel with:

    1. Its channel name/ID, your Dispatcharr version, and the profile actually used for that channel in the affected automation period, including the three settings you listed.
    2. The run ID or timestamp and relevant changelog entries for a fully completed overnight run. Do the 15+ streams remain after that channel's quality check and write-back have finished? Were there errors or skipped stages?
    3. The final ordered stream list with stream IDs, provider, measured resolution, score and check time/status, especially one specific 720p/1080p pair in the unexpected order. Please also mention whether viewers or monitoring were active, and whether you have observed it without active viewers.
    4. Assignment/removal entries for that same channel from two consecutive nights, so we can see whether the same stream IDs keep returning.

    Screenshots or sanitized excerpts covering that example are sufficient; a full configuration/log dump is unnecessary. Please remove credentials and private stream URLs.

    The soft provider-cap behavior is intentional. The total count, final ordering and repeated assignments remain open for investigation until we can compare the effective settings and completed-run results.

  2. sm0keb0x commented on Nov 13, 2026

    @sm0keb0x
    Author

    Using the latest dev for both SF & DP.

    If I run a quality check manually, it correctly trims and uses the cap. Both use the same profile. It looks like it may be adding or somehow trying to cap at 20 instead of the actual setting of 10. I only say that because it says it skipped 10, the existing streams already assigned, then it tested 10, the new ones. Then the total stream count after the run for this particular channel is now at 20.

    Troubleshooting_13Nov26
  3. bttfw commented on Nov 14, 2026

    @bttfw
    Collaborator

    A confirmed grace-period bug has been fixed in #550 and merged into dev (e5b767ae). The fix is available in ghcr.io/krinkuto11/streamflow:dev, version dev-20261114.

    When all assigned streams were already checked and their IDs were unchanged, the checker could return early without applying the current channel limit or sorting. I reproduced 20 cached assignments remaining at a limit of 10, with 720p ahead of 1080p. Cached checks now reuse measurements while still applying the profile's ordering, provider preference and final channel limit. The grace period continues to avoid repeat probes.

    Validation includes all required CI checks, native container-template updates, automatic and manual checks, sequential/parallel entry points, real 720p/1080p FFmpeg measurements, and consecutive complete automation cycles. The completed runs keep exactly 10 unique assignments at a limit of 10.

    The specific 10 skipped + 10 newly checked case also trimmed to 10 in my tests, including before this fix, so I cannot claim to have reproduced that exact case ending at 20. The confirmed cached-check defect is fixed, and the limit/order problem should now be resolved for that path.

    Two details remain intentional:

    • Provider Stream Cap is soft: it prefers diversity, then fills available channel slots above that provider preference if needed.
    • Matching can reconsider streams trimmed by the previous run, so assignment entries can recur even though the final assignment remains limited. Active-viewer protection also remains in place.

    The relevant settings are at Settings -> Profiles -> Edit profile -> Stream Checking -> Stream Limit per Channel / Provider Stream Cap / Priority Mode.

    Please update to the latest dev image and retest. If you still see an over-limit final assignment or an incorrect measured-resolution order after a completed run, please open a new issue referencing #548. Include one affected channel, the run ID/time, the effective profile and final ordered stream IDs/measurements, plus whether viewers or monitoring were active. Please remove credentials and private stream URLs.

  4. sm0keb0x commented on Nov 17, 2026

    @sm0keb0x
    Author

    This is still happening for me during automated runs. But if I do a manual check on the channel, it correctly trims the channel down to its limit. I'm wondering if it happens to be the "reviving" or "adding" actions during the automation that it may not be accounting for as the changelog shows that most channels are getting revived or added streams during the automation.

  5. reopened this on Nov 17, 2026
  6. bttfw commented on Nov 17, 2026

    @bttfw
    Collaborator

    Reopening based on your follow-up: automated runs still appear to leave channels over their limit, while a subsequent manual check trims them correctly. The cached-check defect fixed in #550 was confirmed separately; we have not yet reproduced the remaining automation case.

    To trace this, please capture one affected channel immediately after a fully completed automated run, before starting the manual check, then capture the same channel again after the manual correction:

    1. Exact versions: the full StreamFlow dev version/build and Dispatcharr version. Please confirm StreamFlow includes the Fix grace-period checks bypassing channel limits and ordering #550 fix (dev-20261114 or newer).
    2. Channel and effective configuration: channel name/ID, the automation period and profile actually used, and the profile selected for the manual check. Include the channel limit, provider cap, priority mode, and checking/grace/revival settings; screenshots or sanitized profile JSON are fine.
    3. Completed automatic run: run ID or timestamp with timezone, relevant changelog/log entries through that channel's quality check and final assignment write-back, and any errors or skipped/busy stages. Include the final ordered stream IDs, providers, measured resolutions and scores, plus the total assigned count.
    4. Manual comparison: the manual run ID/time and final ordered stream list/count for that same channel. This lets us identify exactly which assignments the manual run removes or reorders.
    5. Protection/activity: whether active viewers or a monitoring session were present during either run.

    Adding/reviving entries are useful clues, but matching can temporarily increase the assignment count before the final quality-check limit is applied. We need these paired final states to establish where the remaining limit bypass occurs.

    Please remove credentials, API keys and private provider/stream URLs from attachments. You can provide the evidence here in #548; there is no need to open a separate issue.

  7. sm0keb0x commented on Nov 18, 2026

    @sm0keb0x
    Author

    StreamFlow: vdev-20261117 / Dispatcharr: v0.34.1-20261117234935

    Using Sky Cinema Comedy as a test. Profile is a "Match+Test" using an overnight period. Manual "Check" button uses the same "Match+Check" profile. Cap is set to 10 streams, 2 per provider. It currently now has 20 after last nights automation run.

    Pardon the screenshots as I zoomed out to try and capture as much as I could while still making them legible. The screenshot of the changelog overnight's run still only showed a quality check and 10 streams but the channel still got assigned 20.

    Excess_Streams_1 Excess_Streams_2 Excess_Streams_3 Excess_Streams_4

    And here is the Run JSON of the relevant Sky Cinema Comedy lines if it helps:

      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 2489,
      "stream_name": "Sky Cinema Comedy FHD",
      "provider_id": 2,
      "provider_name": "Provider-A",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "6.9 Mbps",
      "video_codec": "h264",
      "audio_codec": "eac3",
      "score": 0.76,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 10.869430779013783,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 3147,
      "stream_name": "Sky Cinema Comedy FHD 5.1",
      "provider_id": 2,
      "provider_name": "Provider-A",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "6.8 Mbps",
      "video_codec": "h264",
      "audio_codec": "eac3",
      "score": 0.76,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 47.47159525495954,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 646388,
      "stream_name": "UK: SKY CINEMA COMEDY [1080p]",
      "provider_id": 6,
      "provider_name": "Provider-B",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "5.5 Mbps",
      "video_codec": "h264",
      "audio_codec": "aac",
      "score": 0.71,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 11.497676512924954,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 329786,
      "stream_name": "UK - SKY CINEMA COMEDY FHD \u25c9",
      "provider_id": 4,
      "provider_name": "Provider-C",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "5.3 Mbps",
      "video_codec": "h264",
      "audio_codec": "aac",
      "score": 0.7,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 22.17826569499448,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 590327,
      "stream_name": "UK: SKY CINEMA COMEDY \u25c9",
      "provider_id": 26,
      "provider_name": "Provider-D",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "5.0 Mbps",
      "video_codec": "h264",
      "audio_codec": "aac",
      "score": 0.69,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 15.667771612061188,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 424363,
      "stream_name": "SKY CINEMA COMEDY [UK]",
      "provider_id": 5,
      "provider_name": "Provider-E",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "5.0 Mbps",
      "video_codec": "h264",
      "audio_codec": "aac",
      "score": 0.69,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 43.00651020905934,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 329787,
      "stream_name": "UK - SKY CINEMA COMEDY HEVC",
      "provider_id": 4,
      "provider_name": "Provider-C",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "4.8 Mbps",
      "video_codec": "h264",
      "audio_codec": "aac",
      "score": 0.68,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 11.610703101148829,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 113739,
      "stream_name": "UK: SKY CINEMA COMEDY [H265] [720p]",
      "provider_id": 6,
      "provider_name": "Provider-B",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "3.6 Mbps",
      "video_codec": "hevc",
      "audio_codec": "aac",
      "score": 0.62,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 19.308184813009575,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 419807,
      "stream_name": "SKY CINEMA COMEDY HEVC HD [UK]",
      "provider_id": 5,
      "provider_name": "Provider-E",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1920x1080",
      "fps": "25.0 fps",
      "bitrate": "3.7 Mbps",
      "video_codec": "hevc",
      "audio_codec": "aac",
      "score": 0.62,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 11.820618271827698,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 431,
      "channel_name": "UK | Sky Cinema Comedy",
      "bucket": "checked",
      "stream_id": 590271,
      "stream_name": "UK: SKY CINEMA COMEDY 4K",
      "provider_id": 26,
      "provider_name": "Provider-D",
      "status": "completed",
      "reason": "completed",
      "reason_detail": null,
      "quality_reason": null,
      "quality_reason_detail": null,
      "resolution": "1280x720",
      "fps": "25.0 fps",
      "bitrate": "2.7 Mbps",
      "video_codec": "h264",
      "audio_codec": "aac",
      "score": 0.55,
      "visual_probe_ran": true,
      "visual_probe_completed": true,
      "visual_probe_incomplete": false,
      "visual_probe_incomplete_reason": "none",
      "visual_probe_requested_duration_seconds": 5,
      "visual_probe_minimum_duration_seconds": 10,
      "visual_probe_duration_seconds": 10,
      "visual_probe_duration_adjusted": true,
      "visual_probe_duration_adjustment_reason": "detector_minimum_window",
      "visual_probe_elapsed_time": 19.448587656021118,
      "blank_detected": false,
      "freeze_detected": false
    },
    {
      "run_id": 1345,
      "run_timestamp": "2026-11-18T03:20:10.495150",
      "action": "automation_run",
      "job_category": "full_run",
      "job_outcome": "completed",
      "profile_id": "2",
      "profile_name": "Match+Check",
      "channel_id": 430,
      "channel_name": "UK | Sky Cinema Action",
      "bucket": "dead",
      "stream_id": 648505,
      "stream_name": "UK: SKY CINEMA ACTION [1080p]",
      "provider_id": 6,
      "provider_name": "Provider-B",
      "status": "dead",
      "reason": "dead",
      "reason_detail": "dead",
      "quality_reason": "dead",
      "quality_reason_detail": "dead",
      "resolution": null,
      "fps": null,
      "bitrate": null,
      "video_codec": null,
      "audio_codec": null,
      "score": null,
      "visual_probe_ran": null,
      "visual_probe_completed": null,
      "visual_probe_incomplete": null,
      "visual_probe_incomplete_reason": null,
      "visual_probe_requested_duration_seconds": null,
      "visual_probe_minimum_duration_seconds": null,
      "visual_probe_duration_seconds": null,
      "visual_probe_duration_adjusted": null,
      "visual_probe_duration_adjustment_reason": null,
      "visual_probe_elapsed_time": null,
      "blank_detected": null,
      "freeze_detected": null
    },
    
  8. bttfw commented on Nov 18, 2026

    @bttfw
    Collaborator

    Thanks, the screenshots and run #1345 export gave me enough to test your setup. I ran two automation cycles on Unraid with StreamFlow dev-20261117 and Dispatcharr 0.34.1-20261117234935. I used one test channel with the shown checking settings, including a channel limit of 10, provider cap of 2, Check All Streams and automatic revival enabled, and the two-hour grace period off.

    • Matching took the channel from 10 to 20 assigned streams. The quality check wrote back 10, and Dispatcharr returned those same 10 after the cycle completed.
    • I repeated the run with all 10 new matches previously marked offline. All 10 revived successfully, and the final assignment still contained 10.
    • The manual check also reduced 20 to 10.

    The changelog listed 10 selected results even though the checker had processed a starting list of 20. The remaining question in your run is what Dispatcharr stored at the end of the quality check and whether the list changed afterward.

    Could you share the StreamFlow container log for Sky Cinema Comedy (channel ID 431) from the start of its quality check in run #1345 through the end of the cycle? Please include any lines for that channel after the check that mention a stream assignment, reorder, retry or error. If that log is gone, the same excerpt from the next run that leaves 20 assigned streams is enough.

    For the next affected run, it would also help to capture the Dispatcharr assignment count and, if readily available, ordered stream IDs just after automation finishes, before pressing the manual Check button. If you see 10 at first and 20 later, please include both times. Let me know if playback, monitoring, or another automation or plugin was active on that channel around then. A sanitized excerpt is enough. Please leave out credentials and private stream URLs.

  9. sm0keb0x commented on Nov 18, 2026

    @sm0keb0x
    Author

    My guess is Dispatcharr stored all 20 for some reason. I know the one's I ran the manual check on, and they were trimmed down to 10, they were again >10 the next day. So going into the automation period they were at 10. Here is the Sky Cinema Comedy check from last night's run:

    ================================================================================
    2026-11-18 01:49:57 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:331] - Found 20 streams for channel UK | Sky Cinema Comedy
    2026-11-18 01:49:57 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:476] - Grace period disabled for profile: analyzing all 20 streams
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:initialize_account_limits:3223] - Initialized limits for 7 accounts (profile-aware checking enabled)
    2026-11-18 01:49:57 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:612] - Starting smart parallel analysis of 20 streams with 10 global workers
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:2597] - Starting smart parallel check of 20 streams
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:2605] - Streams grouped by account: {2: 4, 6: 5, 4: 3, 5: 5, 26: 3}
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:2609] - Account 2: 4 streams, limit=6
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:2609] - Account 6: 5 streams, limit=4
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:2609] - Account 4: 3 streams, limit=1
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:2609] - Account 5: 5 streams, limit=1
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:2609] - Account 26: 3 streams, limit=2
    2026-11-18 01:49:57 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:2644] - Using 20 coordination workers for 20 streams with 10 global probe slots
    2026-11-18 01:49:57 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:49:59 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:00 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:02 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:02 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:03 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:05 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:05 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:06 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:06 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:09 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:09 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:10 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:11 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:12 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:13 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-68475b4436f2: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:13 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-68475b4436f2: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:13 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-68475b4436f2: 1920x1080, 25 FPS, 6912.40 kbps, h264/eac3 (5.02s)
    2026-11-18 01:50:14 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:14 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:17 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-5f6400a02c1f: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:17 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-5f6400a02c1f: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:17 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-5f6400a02c1f: 1920x1080, 25 FPS, 5477.50 kbps, h264/aac (6.36s)
    2026-11-18 01:50:17 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:18 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:21 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:21 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:22 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:25 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-10e4245d9fe1: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:25 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-10e4245d9fe1: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:25 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-10e4245d9fe1: 1920x1080, 25 FPS, 5016.00 kbps, h264/aac (5.76s)
    2026-11-18 01:50:26 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:27 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:28 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:28 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-599743d1b90f: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:28 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-599743d1b90f: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:28 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-599743d1b90f: 1920x1080, 25 FPS, 5325.40 kbps, h264/aac (5.94s)
    2026-11-18 01:50:31 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:33 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:36 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-1ec7b87b3bbf: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:36 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-1ec7b87b3bbf: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:36 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-1ec7b87b3bbf: 1280x720, 25 FPS, 2706.60 kbps, h264/aac (6.04s)
    2026-11-18 01:50:37 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:38 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:40 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-7268bcb45076: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:40 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-7268bcb45076: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:40 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-7268bcb45076: 1920x1080, 25 FPS, 3623.70 kbps, hevc/aac (6.80s)
    2026-11-18 01:50:44 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:50:47 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-1e7bf5f26217: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:47 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-1e7bf5f26217: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:47 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-1e7bf5f26217: 1920x1080, 50 FPS, 3628.00 kbps, hevc/eac3 (5.15s)
    2026-11-18 01:50:52 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-2a5c444cac55: detected=False, blank_duration=2.0s, ratio=0.200, segments=1
    2026-11-18 01:50:52 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-2a5c444cac55: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:52 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-2a5c444cac55: 1920x1080, 25 FPS, 5016.00 kbps, h264/aac (6.94s)
    2026-11-18 01:50:52 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:50:58 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-7bf26a98b0a6: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:58 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-7bf26a98b0a6: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:50:58 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-7bf26a98b0a6: 1920x1080, 25 FPS, 6781.40 kbps, h264/eac3 (5.23s)
    2026-11-18 01:50:58 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:51:04 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-e39e6ea0742d: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:04 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-e39e6ea0742d: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:04 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-e39e6ea0742d: 1280x720, 25 FPS, 2811.90 kbps, h264/aac (6.53s)
    2026-11-18 01:51:10 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-a79f839231d6: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:10 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-a79f839231d6: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:10 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-a79f839231d6: 1280x720, 25 FPS, 2811.90 kbps, h264/aac (6.32s)
    2026-11-18 01:51:15 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-a84833728b5e: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:15 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-a84833728b5e: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:15 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-a84833728b5e: 1920x1080, 25 FPS, 2881.30 kbps, hevc/aac (7.50s)
    2026-11-18 01:51:20 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-11c1f789dc5e: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:20 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-11c1f789dc5e: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:20 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-11c1f789dc5e: 1280x720, 25 FPS, 3682.10 kbps, h264/aac (5.08s)
    2026-11-18 01:51:27 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-6e3e2c7122ae: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:27 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-6e3e2c7122ae: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:27 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-6e3e2c7122ae: 1280x720, 25 FPS, 2658.30 kbps, h264/aac (5.86s)
    2026-11-18 01:51:28 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:51:32 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-5aa2f64d231c: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:32 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-5aa2f64d231c: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:32 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-5aa2f64d231c: 1920x1080, 25 FPS, 2515.70 kbps, hevc/aac (6.20s)
    2026-11-18 01:51:32 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:51:34 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:51:39 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:51:39 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-06061bd3db27: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:39 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-06061bd3db27: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:39 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-06061bd3db27: 1280x720, 25 FPS, 2705.70 kbps, h264/aac (5.73s)
    2026-11-18 01:51:45 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-2195c5ebe0ac: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:45 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-2195c5ebe0ac: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:45 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-2195c5ebe0ac: 1920x1080, 25 FPS, 4785.90 kbps, h264/aac (6.00s)
    2026-11-18 01:51:51 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-b73d803465c2: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:51 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-b73d803465c2: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:51:51 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-b73d803465c2: 1920x1080, 25 FPS, 3732.80 kbps, hevc/aac (6.34s)
    2026-11-18 01:51:51 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:51:57 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:52:09 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-c5dfcdceb12b: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:52:09 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-c5dfcdceb12b: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:52:09 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-c5dfcdceb12b: 1280x720, 25 FPS, 2692.90 kbps, h264/aac (6.21s)
    2026-11-18 01:52:10 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=False
    2026-11-18 01:52:10 - INFO - [apps.automation.automation_events_scheduler:get_cached_events:288] - Calculating fresh automation events
    2026-11-18 01:52:10 - INFO - [apps.automation.automation_events_scheduler:calculate_upcoming_events:254] - Calculated 2 upcoming events for 5 periods
    2026-11-18 01:52:18 - INFO - [apps.stream.stream_check_utils:_log_ffmpeg_hwaccel_request:636] - FFmpeg visual stream analysis hardware acceleration requested: mode=vaapi device=/dev/dri/renderD128 cpu_fallback=True decode_filters=True
    2026-11-18 01:52:29 - INFO - [apps.stream.stream_check_utils:analyze_stream:3111] - [blank-detect] stream_ref=stream-ea9e32357be3: detected=False, blank_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:52:29 - INFO - [apps.stream.stream_check_utils:analyze_stream:3124] - [freeze-detect] stream_ref=stream-ea9e32357be3: detected=False, freeze_duration=0.0s, ratio=0.000, segments=0
    2026-11-18 01:52:29 - INFO - [apps.stream.stream_check_utils:analyze_stream:3155] - stream-ea9e32357be3: 1280x720, 25 FPS, 2716.70 kbps, h264/aac (8.00s)
    2026-11-18 01:52:30 - INFO - [apps.stream.concurrent_stream_limiter:check_streams_with_limits:3066] - Completed smart parallel check of 20/20 streams
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_log_blank_detection_summary:227] - [blank-detect] Channel summary: channel_ref=channel-dbc95d7d375c, probed=20, clean=20, blank=0, max_ratio=0.200, max_blank_duration=2.0s
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_log_freeze_detection_summary:281] - [freeze-detect] Channel summary: channel_ref=channel-dbc95d7d375c, probed=20, clean=20, frozen=0, max_ratio=0.000, max_freeze_duration=0.0s
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:1019] - Batch updating stats for 20 streams (batch_size=10)
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:1021] - Batch update complete: 20 successful, 0 failed
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:1203] - ✓ Channel UK | Sky Cinema Comedy checked and streams reordered (parallel mode)

  10. bttfw commented on Nov 18, 2026

    @bttfw
    Collaborator

    Thanks, this narrows it down. The log shows that the checker loaded 20 streams, completed all 20 probes and logged a successful reorder for Sky Cinema Comedy at 01:52:30.

    On dev-20261117, the assignment writer reads back the full ordered list from Dispatcharr after a successful write. The checker only logs that reorder as successful when the writer reports success. The INFO line doesn't include the count the writer used or tell us what was assigned later. The log excerpt ends at that line, so the period right after it is the part we still need. Assignment write and readback code

    Could you share any lines after 01:52:30 through the end of that automation run that mention channel 431 or Sky Cinema Comedy? In particular, an assignment or another check after the reorder would help. There's no need to resend the FFmpeg output.

    If it happens again, the most useful comparison is the channel's assigned count in Dispatcharr as soon as its quality check finishes, then again when the whole automation run ends, before clicking the manual Check button. Please note the time for each count. That would show whether the extra streams are already present at the first read or appear later.

  11. sm0keb0x commented on Nov 18, 2026

    @sm0keb0x
    Author

    Unfortunately there were no add'l lines for Sky Cinema Comedy. It jumps right to the next channel:

    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:1019] - Batch updating stats for 20 streams (batch_size=10)
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:1021] - Batch update complete: 20 successful, 0 failed
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:1203] - ✓ Channel UK | Sky Cinema Comedy checked and streams reordered (parallel mode)
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:94] - ================================================================================
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:95] - Checking channel 432 (parallel mode)
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:96] - ================================================================================
    2026-11-18 01:52:30 - INFO - [apps.stream.stream_checker_service:_check_channel_concurrent:331] - Found 18 streams for channel UK | Sky Cinema Drama

    I did a grep to get lines with "Cinema Comedy". Cannot do a grep for "431" as you get a lot of unrelated lines.

    I wouldn't know how to capture what Dispatcharr's assignment #'s were post individual check during the automation, and then once the automation is completely finished.

  12. sm0keb0x commented on Nov 18, 2026

    @sm0keb0x
    Author

    Also, not sure how closely the screenshot was looked at, but you can see a 720p channel ranked above a 1080p and some lower bit-rates ranked higher than higher ones. There were more but I couldn't capture all of them in the screenshot.

  13. bttfw commented on Nov 18, 2026

    @bttfw
    Collaborator

    Thanks for checking the log after the reorder. The next entry is for channel 432, so let's capture the assignment count directly in Dispatcharr next time.

    I see the ordering you pointed out. The measured 720p stream is tenth, and the 1080p stream immediately below it sits outside the ten listed in the quality check. That makes it useful to check when the channel grows past ten. For the bitrate examples, Resolution → Score sorts by measured resolution and then the overall quality score. Bitrate is one input to that score.

    If you're running Dispatcharr in Docker, paste this into the Docker host's terminal before the overnight run. Set container to the name of your Dispatcharr container as shown by docker ps. This checks only channel ID 431 every two seconds, logs changes in UTC, and stops after 12 hours. It uses a read-only database connection and keeps running if you close the terminal.

    container=Dispatcharr
    docker exec -i "$container" sh -c 'cat > /tmp/streamflow-548-count.py' <<'PY'
    import os
    import time
    from datetime import datetime, timezone
    
    from apps.channels.models import Channel, ChannelStream
    
    channel_id = 431
    duration_seconds = int(os.environ.get("SF_548_WATCH_SECONDS", "43200"))
    if not Channel.objects.filter(pk=channel_id).exists():
        raise SystemExit(f"Channel ID {channel_id} was not found.")
    
    def stamp():
        return datetime.now(timezone.utc).isoformat(timespec="seconds")
    
    assignments = ChannelStream.objects.filter(channel_id=channel_id)
    deadline = time.monotonic() + duration_seconds
    previous = None
    print(f"{stamp()} started channel={channel_id} duration={duration_seconds}s")
    while time.monotonic() < deadline:
        count = assignments.count()
        if count != previous:
            print(f"{stamp()} channel={channel_id} assigned={count}")
            previous = count
        time.sleep(2)
    
    print(f"{stamp()} finished channel={channel_id} assigned={assignments.count()}")
    PY
    docker exec -d "$container" sh -c 'DISPATCHARR_SKIP_PLUGIN_AUTODISCOVERY=1 PGOPTIONS="-c default_transaction_read_only=on" python -u manage.py shell --no-imports < /tmp/streamflow-548-count.py > /tmp/streamflow-548-count.log 2>&1'

    Run this a few seconds later to check that it printed started and the initial count. Run it again after the overnight automation before clicking the manual Check button, and paste its output here. The relevant lines are the timestamps and counts printed by the sampler.

    container=Dispatcharr
    docker exec "$container" cat /tmp/streamflow-548-count.log

    If the count goes from 20 to 10 and then back to 20, those timestamps will show when to look for a later assignment. If the count stays at 20 through the check, we'll focus on the write and its readback.

  14. bttfw commented on Nov 18, 2026

    @bttfw
    Collaborator

    You're right about the measured resolutions in the Dispatcharr screenshot. The 720p stream is in slot 10, immediately ahead of a measured 1080p stream in slot 11. The first ten match the order in your quality-check export: nine 1080p streams ordered by score, followed by one 720p stream. The 1080p stream in slot 11 is outside those ten. Your screenshot and run export

    With Resolution → Score, the selected streams are ordered by measured resolution first. The Provider Stream Cap also affects which streams make it into the ten slots. Your export shows two selected streams from each of five providers. I replayed your ten measured results through the same selection logic with an additional 1080p candidate. If its provider already has two higher-ranked selections, another provider's 720p candidate can take the last slot. With the cap disabled, that 1080p candidate takes the slot instead. We don't have the provider and score of the actual stream in slot 11, so this explains how the selection can happen.

    That still leaves the Dispatcharr list with more than ten streams after automation. We don't yet know whether the write left 20 in place or the list went back to 20 after a successful write. The count log should help us tell those cases apart.

  15. sm0keb0x commented on Nov 19, 2026

    @sm0keb0x
    Author

    I wasn't able to get the script running before going to bed. But it was still at 20 after last nights run. I then pasted in the script, confirmed it had the 20 count, then I removed all other channels from the automation script so I could manually run it without having to wait a few hours for it to complete. Once completed, it correctly trimmed the Sky Cinema Comedy channel down to 10 streams. So just like a manual manual check, a manual automation trigger adheres to the settings. But letting the automation run as scheduled may be the issue? I'm going to try scheduling the automation to run here in a bit on it's own. Then perhaps I'll try a different channel that still has 10+ streams assigned

    container=Dispatcharr_Live
    docker exec "$container" cat /tmp/streamflow-548-count.log
    2026-11-19 13:02:00,873 INFO dispatcharr.celery Celery configuring loggers with level: INFO
    2026-11-19T13:02:01+00:00 started channel=431 duration=43200s
    2026-11-19T13:02:01+00:00 channel=431 assigned=20
    root@The-Vault:~# docker exec "$container" cat /tmp/streamflow-548-count.log
    2026-11-19 13:02:00,873 INFO dispatcharr.celery Celery configuring loggers with level: INFO
    2026-11-19T13:02:01+00:00 started channel=431 duration=43200s
    2026-11-19T13:02:01+00:00 channel=431 assigned=20
    2026-11-19T13:07:37+00:00 channel=431 assigned=10

  16. sm0keb0x commented on Nov 19, 2026

    @sm0keb0x
    Author

    I have updated the automation to run on two more channels at different times and it worked fine both times, correctly trimming those channels down to 10 streams each. At this point I don't know how I'm getting 10+ streams, re-assigned to many of my channels.

  17. sm0keb0x commented on Nov 20, 2026

    @sm0keb0x
    Author

    After last night's run, the same channels that correctly trimmed down to 10, are now back to 20, 19 etc.

  18. bttfw commented on Nov 21, 2026

    @bttfw
    Collaborator

    Thanks for the additional tests. The count log confirms that the manually triggered automation reduced channel 431 from 20 to 10, and your two scheduled tests also trimmed correctly. That makes the full overnight sequence the next thing to trace; the evidence does not yet isolate the scheduler itself as the cause.

    For the next affected night, please use your usual full overnight setup and start the same count watcher for Sky Cinema Comedy, channel 431, shortly before it begins. The watcher stops after 12 hours, so please restart it using the earlier start command and make sure that window covers the entire overnight run.

    After the full run finishes, before pressing Check or starting another manual automation, please paste:

    • The complete /tmp/streamflow-548-count.log from that night.
    • The overnight run ID and its start/end times, including timezone.
    • Whether another automation period, monitoring session or plugin that can change assignments was active on that channel.

    You can read the log with:

    container=Dispatcharr_Live
    docker exec "$container" cat /tmp/streamflow-548-count.log
    

    The missing piece is the timestamped count changes during the problematic overnight run. A temporary rise during matching is expected; we need to see whether the quality check brings it back to 10 and a later step increases it again, or whether it stays above 10 throughout. We already have the versions, screenshots and earlier checker excerpt, so the new count log and run timing are the most useful next evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions