{
  "analysis_logger": {
    "buffer_len": 0,
    "enabled": true,
    "file_path": "/data/playlist/logs/01/tracking_analysis_20260707_090256_08e3812a.jsonl",
    "flush_interval_seconds": 15.0,
    "max_buffer_records": 32,
    "record_counts": {
      "scenario_debug": 0,
      "scenario_event": 43,
      "tracking_summary": 2049
    },
    "started": true
  },
  "buffers": {
    "frame_buffer_len": 50,
    "frame_buffer_maxlen": 50,
    "frame_queue_maxsize": 10,
    "frame_queue_size": 0
  },
  "cctv_id": "01",
  "cgroup_memory": {
    "current_mb": 5061.883,
    "limit_mb": 8796093022207.996
  },
  "ffmpeg": {
    "error_count": 28,
    "h264_decode_error_count": 28,
    "h264_decode_error_count_per_hour": 3,
    "input_options": [
      "-rtsp_transport",
      "tcp",
      "-timeout",
      "10000000"
    ],
    "last_error_at": "2026-07-07T15:55:47+09:00",
    "last_error_summary": "[h264 @ 0x55981d9e1e80] error while decoding MB 74 40, bytestream -5 [in#0/rtsp @ 0x55981cbf2e00] Error during demuxing: Connection timed out [in#0/rtsp @ 0x55981cbf2e00] Error retrieving a packet from demuxer: Connection timed out",
    "last_exit_at": "2026-07-07T15:55:49+09:00",
    "last_returncode": 0,
    "last_stable_duration_sec": 1591.182,
    "last_started_at": "2026-07-07T15:55:49+09:00",
    "pid": 23930,
    "process": {
      "exists": true,
      "fd_count": 5,
      "hwm_mb": 332.684,
      "name": "ffmpeg",
      "pid": 23930,
      "rss_mb": 332.684,
      "state": "S (sleeping)",
      "threads": 106
    },
    "restart_count": 28,
    "restart_count_per_hour": 3,
    "rtsp_timeout_count": 51,
    "rtsp_timeout_count_per_hour": 6,
    "rtsp_tolerant_mode": false,
    "running": true,
    "start_count": 29
  },
  "frame_flow": {
    "analysis": {
      "adaptive_enabled": false,
      "analysis_cap_enabled": false,
      "effective_analysis_fps": 10.0,
      "enabled": false,
      "last_decision": "initial",
      "processing_p95_ms": 107.603,
      "sample_count": 3013,
      "scenario_effective_fps_enabled": false,
      "target_fps": 10.0,
      "warmup_remaining_s": 0.0
    },
    "queue_clear_age_s": 3.0,
    "queue_max_age_s": 2.0,
    "queue_maxsize": 10,
    "reader_queue_enabled": false,
    "stats": {
      "analysis_frames": 245891,
      "analysis_skipped": 0,
      "frames_dequeued": 0,
      "frames_queued": 0,
      "last_analysis_at": "2026-07-07T16:22:20+09:00",
      "last_queue_age_ms": null,
      "last_skip_at": "",
      "max_queue_age_ms": 0.0,
      "queue_cleared": 0,
      "queue_dropped": 0
    }
  },
  "health": {
    "criticals": [],
    "level": "warning",
    "thresholds": {
      "ffmpeg_restart_count_per_hour": {
        "critical": 6,
        "warning": 3
      },
      "h264_decode_error_count_per_hour": {
        "critical": 50,
        "warning": 10
      },
      "last_frame_pushed_age_sec": {
        "critical": 30,
        "warning": 10
      },
      "last_frame_read_age_sec": {
        "critical": 30,
        "warning": 10
      },
      "last_stable_duration_sec": {
        "critical_below": 180,
        "warning_below": 600
      },
      "mjpeg_age_sec": {
        "critical": 30,
        "warning": 10
      },
      "rtsp_timeout_count_per_hour": {
        "critical": 30,
        "warning": 10
      }
    },
    "warnings": [
      "ffmpeg_restart_count_per_hour>=3"
    ]
  },
  "instance_id": "08e3812a",
  "last_frame_pushed_age_sec": 0.006,
  "last_frame_pushed_at": "2026-07-07T16:22:20+09:00",
  "last_frame_read_age_sec": 0.095,
  "last_frame_read_at": "2026-07-07T16:22:20+09:00",
  "mjpeg": {
    "age_sec": 0.09,
    "exists": true,
    "mtime": "2026-07-07T16:22:20.701265+09:00",
    "mtime_epoch": 1783408940.7012649,
    "path": "/data/playlist/streaming/01/mjpeg.jpg",
    "size_bytes": 241099
  },
  "monitor_url": "http://192.168.50.244:1223/mjpeg/01",
  "observed_at": "2026-07-07T16:22:20+09:00",
  "process": {
    "exists": true,
    "fd_count": 137,
    "hwm_mb": 1414.746,
    "name": "celery",
    "pid": 267,
    "rss_mb": 1363.211,
    "state": "S (sleeping)",
    "threads": 123
  },
  "reason_codes": [
    "ffmpeg_churn_warning"
  ],
  "recommended_action": "degrade_recommended",
  "recorder": {
    "active_count": 0,
    "cooldown_sec": 100,
    "last_event_key_count": 2,
    "oldest_recorder_age_sec": null,
    "recorders": [],
    "running_ffmpeg_count": 0,
    "running_pids": [],
    "stopping_count": 0
  },
  "recovery_eligible": false,
  "source_url": "rtsp://admin:smart1357!@223.171.147.71:554/trackID=1",
  "stage_metrics": {
    "counts": {
      "inference_timeouts": 0,
      "invalid_reads": 0,
      "processed_frames": 306,
      "pushed_frames": 306,
      "read_frames": 305,
      "select_timeouts": 0,
      "triton_result_errors": 0
    },
    "enabled": true,
    "fps": {
      "processed": 10.217,
      "pushed": 10.217,
      "read": 10.184
    },
    "hints": [
      "frame_processing_p95_over_budget",
      "triton_wait_p95_dominant"
    ],
    "latency_ms": {
      "analyze": {
        "avg_ms": 9.138,
        "count": 306,
        "max_ms": 14.018,
        "p95_ms": 11.668
      },
      "gstreamer_push": {
        "avg_ms": 1.283,
        "count": 306,
        "max_ms": 1.792,
        "p95_ms": 1.404
      },
      "model_completion": {
        "model_count": 4,
        "models": {
          "yolo11-pose_640_pose_pretrained_by_Ultralytics_11s": {
            "avg_ms": 55.669,
            "count": 306,
            "max_ms": 76.4,
            "p95_ms": 71.069
          },
          "yolo11_640_coco_Large_pretrained_by_Ultralytics_11": {
            "avg_ms": 64.469,
            "count": 306,
            "max_ms": 99.661,
            "p95_ms": 88.568
          },
          "yolo11_640_fire_11class": {
            "avg_ms": 54.436,
            "count": 306,
            "max_ms": 75.162,
            "p95_ms": 68.314
          },
          "yolo11m_640_worker_ppe_equipment_ops260616_28class": {
            "avg_ms": 63.028,
            "count": 306,
            "max_ms": 96.407,
            "p95_ms": 88.309
          }
        },
        "truncated_count": 0
      },
      "processing_total": {
        "avg_ms": 84.434,
        "count": 306,
        "max_ms": 116.948,
        "p95_ms": 107.296
      },
      "read_interval": {
        "avg_ms": 98.127,
        "count": 305,
        "max_ms": 130.985,
        "p95_ms": 121.686
      },
      "triton_wait": {
        "avg_ms": 66.69,
        "count": 306,
        "max_ms": 99.671,
        "p95_ms": 89.879
      },
      "visualize": {
        "avg_ms": 3.659,
        "count": 306,
        "max_ms": 4.797,
        "p95_ms": 4.031
      }
    },
    "target_fps": 10.0,
    "target_frame_budget_ms": 100.0,
    "window_elapsed_s": 29.949,
    "window_s": 30.0
  },
  "started_at": "2026-07-07T09:02:56+09:00",
  "state": "running",
  "task_id": "c99deba9-b3a9-4760-8c10-f0dab88950c5",
  "trigger": "start"
}