Previous response had warnings:
WARNINGS: - Extra text detected before JSON object
- Extra text detected after JSON object

New Terminal Output:

root@d7299c7f5982:/app# python3 -c "
> import struct
> with open('/app/frames.tza', 'rb') as f:
>     magic = f.read(4)
>     width, height = struct.unpack('<HH', f.read(4))
>     n_frames, max_bytes = struct.unpack('<II', f.read(8))
>     frames = [f.read(width * height) for _ in range(n_frames)]
>
> # Analyze typical change patterns per frame
> prev = b' ' * (width * height)
> frame_changes = []
> for i, frame in enumerate(frames):
>     changes = [(r, c) for r in range(height) for c in range(width) if prev[r*width+c] != frame[r*width+c]]
>     frame_changes.append(len(changes))
>     prev = frame
>
> frame_changes.sort()
> print('Change count percentiles:')
> for p in [0, 25, 50, 75, 90, 95, 100]:
>     idx = int(p * (n_frames - 1) / 100)
>     print(f'  {p}%: {frame_changes[idx]} changes')
> "
Change count percentiles:
  0%: 4 changes
  25%: 4 changes
  50%: 5 changes
  75%: 311 changes
  90%: 338 changes
  95%: 364 changes
  100%: 901 changes
root@d7299c7f5982:/app#
