New Terminal Output:

root@f3f8d6319494:/app# python3 -c "
> import struct
> with open('/app/frames.tza', 'rb') as f:
>     f.read(4)  # magic
>     w, h = struct.unpack('<HH', f.read(4))
>     n_frames, max_bytes = struct.unpack('<II', f.read(8))
>
>     # Read all frames
>     frames = []
>     for i in range(n_frames):
>         frame_data = f.read(w*h)
>         frames.append(frame_data)
>
>     # Count changes between consecutive frames
>     total_changes = 0
>     for i in range(1, min(20, n_frames)):
>         changes = sum(1 for j in range(w*h) if frames[i][j] != frames[i-1][j])
>         total_changes += changes
>         print(f'Frame {i-1} -> {i}: {changes} changes')
>     print(f'Avg changes (first 20): {total_changes/19:.1f}')
> "
Frame 0 -> 1: 4 changes
Frame 1 -> 2: 4 changes
Frame 2 -> 3: 4 changes
Frame 3 -> 4: 321 changes
Frame 4 -> 5: 5 changes
Frame 5 -> 6: 4 changes
Frame 6 -> 7: 288 changes
Frame 7 -> 8: 329 changes
Frame 8 -> 9: 5 changes
Frame 9 -> 10: 5 changes
Frame 10 -> 11: 4 changes
Frame 11 -> 12: 326 changes
Frame 12 -> 13: 5 changes
Frame 13 -> 14: 289 changes
Frame 14 -> 15: 5 changes
Frame 15 -> 16: 326 changes
Frame 16 -> 17: 34 changes
Frame 17 -> 18: 4 changes
Frame 18 -> 19: 4 changes
Avg changes (first 20): 103.5
root@f3f8d6319494:/app#
