---
title: "SO-101 失敗から学ぶアームを作る Log#7 | 場所が変わってもつかめるよう、SO-101 のお手本を5か所で50回"
slug: so101-fifty-demonstrations-five-block-positions
date: 2026-11-23
day: 567
meta_description: "ロボットアーム SO-101 の模倣学習用のお手本を、赤いブロックの置き場所を5か所に変えて LeRobot のテレオペで録り、50回そろった。新しい40回はすべて箱に入り、1回にかかる時間は約60秒から約30秒に縮んだ。"
tags: [SO-101, LeRobot, 模倣学習, テレオペ, record, replay, データセット, Claude Code, 依頼箱]
series: "フィジカルAI研究室"
---

**ロボットアーム SO-101 の模倣学習に使うお手本は、赤いブロックの置き場所を机の5か所に変えて録り、50回そろった。新しく録った40回はすべて白い箱に入り、50回のうち箱に入ったのは48回だった。** 録ったのは Hugging Face の LeRobot のテレオペ（人が手元のアームを動かし、もう1台に同じ動きをさせるやり方）で、カメラ2台の映像と6つの関節の角度が1秒30コマで入っている。

これで変わること。

- 置き場所が1か所だけだと、アームはその場所の動きしか覚えない。5か所にしたことで、根元の関節が回った角度の幅は、前の10回の約50°から、50回で約104°に広がった。カメラでブロックの場所を見て、腕の向きを変える動きを学ばせる材料になった
- 1回にかかった時間（録り始めてから保存して次へ進むまで）は、前の10回が約60秒（10回で9分56秒）、場所2・3の20回が約45秒（15分07秒）、場所4・5の20回が約30秒（10分09秒）。録り直しも、場所1の4回、場所2・3の7回から、場所4・5では0回になった
- 爪の値を見れば、ブロックをつかめたかが分かる。ブロックをはさむと爪は11前後で止まり、空振りすると1まで閉じきる。人が目で見なくても、成功と失敗を記録から見分ける手がかりになる

いちばん手こずったのは、根元に近い場所3だった。手元のアーム（リーダー）を目一杯下げても、動く側のアーム（フォロワー）の爪が机まで届かない時があり、腕の向きを工夫して録った。10回とも箱に入ったのに、録った動きを再生（replay）すると、11回目はブロックをつかめなかった。再生はカメラを見ずに角度をなぞるだけなので、ブロックを置き直した数mmのずれが、そのまま空振りになる。**記録をなぞるだけでは置き場所のずれに勝てないことが、模倣学習でカメラの映像を学ばせる理由そのものになっている。**

| やったこと | なぜ | 結果 |
|---|---|---|
| 本番のお手本を50回に決め、残り40回は置き場所を4か所に変えると決めた | 1か所だけでは、その場所の動きしか覚えないため | 机にマジックで点を5つ付け、白い箱と2台のカメラは動かさないことにした |
| 場所2（左の奥）と場所3（左の手前）で10回ずつ録った（依頼277） | 根元から左へ大きく振る動きを入れる | 20回とも箱に入った。場所3は腕の向きを工夫した。録り直しは7回 |
| 場所4（まん中の手前）と場所5（右の奥）で10回ずつ録った（依頼278） | 根元に近い所と、箱に近い所を入れる | 20回とも箱に入った。録り直し0回で、10分09秒 |
| 各場所の1回ずつを再生した | 録った動きがそのまま再生されるかを見る | 場所2・4・5は箱に入った。場所3は腕は録ったとおりに動いたが、爪が空を切った |
| 成功の印と場所の番号を付け、KIOXIA にコピーした | 学習で場所ごとに分けて見られるようにする | 2つのデータで16ファイル・約126 MiB。Mac 側と中身まで一致 |

【図解】LOG567_so101_five_spots.html

GPU を買うか借りるかの判断は、Runpod で実際に借りて学習させた費用をもとに、別のページにまとめています。

【バナー】gpu-buy-or-rent


## 作業ログ ― 本番のお手本を50回にして、置き場所を5か所に決めた

【ファイル一式】LOG567


前の記録（LOG565）で、SO-101 のお手本を10回録り、8回が箱に入った。そのとき決められずに残っていたのが、本番で何回録るかと、失敗した2回をどうするかだった。依頼は、Mac の上で Claude Code に仕事を渡す依頼箱というフォルダで出している。依頼の文を書いたファイルを置くと、Mac が Claude Code を起動して作業させ、終わると報告を返す。

### この記録で使う言葉

| 言葉 | 意味 |
|---|---|
| [SO-101](https://github.com/TheRobotStudio/SO-ARM100) | 部品を組み立てて作る、6つの関節を持つロボットアーム。2台1組で使う |
| リーダー・フォロワー | 人が手で動かす側がリーダー、それと同じ動きをする側がフォロワー |
| テレオペ | リーダーを動かして、フォロワーに同じ動きをさせること |
| [LeRobot](https://github.com/huggingface/lerobot) | Hugging Face が出している、ロボットのデータ集め・学習・推論の道具一式 |
| 模倣学習 | 人がやって見せた動き（お手本）を、AI にまねさせて覚えさせる学習 |
| record・replay | LeRobot のお手本の記録（record）と、記録した動きの再生（replay）。replay はカメラを見ず、録った角度をそのままなぞる |
| お手本（エピソード） | record で録る1回分。LeRobot の中では 0 から数える番号（index）で呼ぶので、1回目は index 0 |
| データセット | お手本を集めたもの。角度は parquet という表のファイル、映像は mp4 で、1つのフォルダにまとまる |
| shoulder_pan（根元の関節） | アームの付け根で、腕全体を左右に回す関節。置き場所が左右に散るほど、回る角度の幅が広がる |
| 爪の値（gripper） | 爪の開き具合。0 で閉じきり、大きいほど開いている。赤いブロックをはさむと 11 前後で止まる |

### 本番は50回、白い箱は動かさず、ブロックの場所を変える

LOG565 の10回のあと、本番の回数を決めた。LeRobot の模倣学習は50回前後が目安とされるので、前の10回と合わせて50回にした。失敗した2回（1回目・2回目）は消さずに残し、学習には入れない。消さずにおけば、あとで失敗の例として使える。

次に、エイイチから、残りは違う場所で録るのかと聞かれた。同じ場所だけで録ると、アームはその1か所の動きしか覚えず、少しずれた所に置いただけでつかめなくなりやすい。そこで、残りの40回は、ブロックの場所を4か所に変えて10回ずつ録ることにした。同じ場所の中でも、ときどきブロックの向きを少し回して置く。

続けて、白い箱にも入れるのかを聞かれた。箱に入れるところまでのままにした。箱に入ったかどうかで成功と失敗がはっきり分かり、前の10回と同じ課題のまま50回を1つのデータとして使えるからだ。白い箱・カメラ2台・照明は動かさない。一度に全部を変えると、うまくいかなかったときに原因を追えなくなる。

置き場所の案は、机側カメラのコマの上に描いて出した。どの場所も、今の場所より根元から遠くならないようにした。今の場所がアームの届く範囲の奥のほうに見えたためだ。エイイチはこの案のとおり、机にマジックで点だけの目印を付けた。

【画像】LOG567_01_block_positions_plan.png 机側カメラのコマに、ブロックを置く5か所の案を描いたもの。1が今の場所、2が左の奥、3が左の手前、4がまん中の手前、5が右の奥。右に白い箱、下にアームの根元

### 5か所に置いたブロックを、机側カメラで見た

各場所の最初の1回の、始めのコマを並べた。場所1だけは前の記録（LOG565）の3回目。

【画像】LOG567_02_five_spots_desk_first.png 机側カメラで見た5か所の置き場所。上の段が場所1（奥）・場所2（左の奥）・場所3（左の手前）、下の段が場所4（まん中の手前）・場所5（右の奥）。白い箱とアームの根元はどれも同じ位置


## 作業ログ ― 場所2・3で20回録った（依頼277）

### 依頼277 の依頼文

依頼の中身は、LOG565 の依頼274 と同じ形にした。変えたのは、場所が2つあること、1回の長さを25秒にしたこと、前の10回とは別のデータとして保存すること、再生を別のプロセスで動かすこと。1回の長さを延ばしたのは、依頼274 では20秒で切れた回が10回中4回あり、場所2・3は運ぶ距離も長いからだ。別のデータにしたのは、前のデータに足していくと、途中で失敗したときに前の10回まで壊れるおそれがあるからだ。50回をまとめるのは学習の前にする。

```text
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts
上限時間: 90
---
# SO-101 のお手本を、ブロックの場所を変えて20回録る（依頼277・エイイチ立ち会い）

依頼274・276（`so101/check_274/REPORT.md`）で、今の場所（場所1）の10回を録った。エイイチは本番を50回と決め、残りの40回はブロックの場所を変えて録ると決めた。場所は4か所（2 左の奥・3 左の手前・4 まん中の手前・5 右の奥）で、10回ずつ。机にマジックで点の目印を付けてある（案の図：iCloud の `デジタルツイン学習R2R2R/SO-101 失敗から学ぶアームを作る/block_positions_plan.png`）。
**今回は場所2と場所3の20回。** 場所4・5は次の依頼でやる。白い箱・カメラ2台（露出の固定は依頼265・266 のまま）・照明は動かさない。アーム・カメラ2台・KIOXIA はつながっている。**フォロワーを動かしてよい。**

## 録るもの
- 課題は依頼274 と同じ（`--dataset.single_task="Put the red block into the white box"`）
- 場所2を10回 → 場所3を10回。同じ場所の中で、ブロックの向きを少し回して置く回を混ぜる（画面で「向きを少し変えて置く」と案内する。何回目かはエイイチに任せる）
- 1回の長さの目安は **25秒**（依頼274 は20秒で、時間で切れた回が多かった。場所2・3は運ぶ距離が長い）。→で早めに終われる
- 入口は `so101/lerobot_safe_259.py record`。依頼274 の `run_274.py` を元に `check_277/run_277.py` を作る（run_274.py は書き換えない）。pynput を始めない直し（`install_record_hooks`）はそのまま使う
- repo_id：`local/so101_redblock_box_teleop_v1_pos23`（**新しい dataset にする。** 場所1の `so101_redblock_box_teleop_v1` には足さない。50回をまとめるのは学習の前に決める）

## 画面
- 依頼274 の画面の流れのまま（始める前 → 各回「◯回目／20　場所◯　スペースで始める」→ 録っている間は回数・場所・残り秒を大きな字で → 終わり）
- 場所が2から3に変わる所（11回目の前）で、「ブロックを場所3の点に置く」と大きく出して止める
- ←で録り直せることを画面に出す
- 終わりは依頼274 と同じ（爪を閉じる・腕をたたむ・休みの姿勢の待ち）

## 置き場所
- まず Mac の `~/so101_datasets/so101_redblock_box_teleop_v1_pos23/` に録る
- `episode_labels.json` を依頼276 と同じ形で dataset のフォルダの中に置く。今回は各回に **場所（2・3）** の列を足す。成功・失敗はエイイチに聞いた答えで付ける
- 確かめが済んだら KIOXIA の `r2r2r-data/datasets/so101_redblock_box_teleop_v1_pos23/` に**コピー**（Mac 側は消さない）。マウントがなければ止める。同じ名前があれば止める。sha1 で一致を確かめる
- 実行の記録とスクリプトは `so101/check_277/`（git には入れない）

## 録ったあとに確かめること（依頼274 と同じ）
- 回数20、各回のコマ数・長さ・fps
- 映像2台が全部の回にあり、真っ黒・白飛び・止まったコマがないか。各回の最初・真ん中・最後を `check_277/frames/` に保存
- 角度の飛び（1コマ10° 超）と切られたコマの数
- replay は場所2の1回と場所3の1回（どちらも成功の回）。エイイチの合図で始め、終わりは休みの姿勢まで自動で戻す。**replay は record と別のプロセスで呼ぶ**（依頼274 で同じプロセスだとカメラの確かめで止まった）

## エイイチに聞くこと（y/n と番号）
- 箱に入らなかった回の番号
- 録っている最中にフォロワーがガクッと飛んだ回はあった？
- 場所2・3で、届きにくい・つかみにくい所はあった？（あれば次の依頼で点を根元に寄せる）
- replay で録ったとおりに動いた？

## しないこと
- 包まない lerobot、rollout、Hugging Face への送信、EEPROM・キャリブレーションの書き換え、`~/lerobot`・`lerobot_safe_259.py`・カメラの設定ファイル・`run_274.py` の書き換え
- 場所1の dataset（Mac・KIOXIA とも）に触る、KIOXIA の既存のファイルの上書き・移動・削除、`git add .`・`git clean`
- 確認や停止の条件を新しく重ねる

## 報告
- 20回の表（回・場所・長さ・コマ数・切られたコマ・時間か→か・エイイチの判定）
- 映像と角度の確かめ、replay の結果
- KIOXIA にコピーした場所とサイズ
- 場所2・3のつかみにくさ（エイイチの答え）と、場所4・5を録るときに変えた方がよいこと
- 最後の1行に「判定：合格／止めた（決めてほしいことあり）／失敗」
```

### 本番の前に、アームにつながずに画面だけを出して確かめた

Claude Code は、依頼274 の手順の画面のスクリプト（`run_274.py`）を写して `run_277.py` を作り、アームにつながない試し（dry run）で画面を一通り出してから本番を始めた。エイイチの Mac では、このとき画面が一瞬出てすぐ消えたように見えた。そのあと 18:31 に本番の「0. 始める前」の画面がもう一度出て、スペースを待っていた。試しで出した画面は `check_277/dry_*.png` に残っている（試しの記録のファイルは、依頼278 でだけ別に `events_278_dry.jsonl` として残した）。

### 20回を15分で録った

録り始めから最後の保存までは 18:33:32〜18:48:39 の15分07秒で、1回あたり約45秒。27回試して、←キーで捨てて録り直したのは7回（1・4・11（2回）・13・20（2回）回目）。25秒の時間切れで終わったのは、残した回では14回目だけだった。

| 回（index） | 場所 | 長さ秒 | コマ | 何回目で残したか | 終わり方 | 箱に入った？ |
|---|---|---|---|---|---|---|
| 1（0） | 2 | 17.93 | 538 | 2 | → | 入った |
| 2（1） | 2 | 23.10 | 693 | 1 | → | 入った |
| 3（2） | 2 | 20.93 | 628 | 1 | → | 入った |
| 4（3） | 2 | 17.63 | 529 | 2 | → | 入った |
| 5（4） | 2 | 15.30 | 459 | 1 | → | 入った |
| 6（5） | 2 | 17.70 | 531 | 1 | → | 入った |
| 7（6） | 2 | 17.97 | 539 | 1 | → | 入った |
| 8（7） | 2 | 14.07 | 422 | 1 | → | 入った |
| 9（8） | 2 | 13.53 | 406 | 1 | → | 入った |
| 10（9） | 2 | 19.23 | 577 | 1 | → | 入った |
| 11（10） | 3 | 19.37 | 581 | 3 | → | 入った |
| 12（11） | 3 | 23.30 | 699 | 1 | → | 入った |
| 13（12） | 3 | 20.67 | 620 | 2 | → | 入った |
| 14（13） | 3 | 24.97 | 749 | 1 | 時間 | 入った |
| 15（14） | 3 | 16.73 | 502 | 1 | → | 入った |
| 16（15） | 3 | 13.73 | 412 | 1 | → | 入った |
| 17（16） | 3 | 16.30 | 489 | 1 | → | 入った |
| 18（17） | 3 | 14.50 | 435 | 1 | → | 入った |
| 19（18） | 3 | 16.37 | 491 | 1 | → | 入った |
| 20（19） | 3 | 14.67 | 440 | 3 | → | 入った |

映像は2台とも全部の回にあり、真っ黒・白飛びのコマは0。1コマで10°（爪は20）を超える角度の飛びも0だった。録っている最中に、飛び止め（LOG556 で入れた、1コマで動ける角度の上限）で切られたコマも0。

【動画】LOG567_05_recording_session_part1_noaudio.mp4 場所2・3で録っているところを横から撮った映像（前半）。手前で黒いリーダーを動かし、奥の白いフォロワーが同じ動きで赤いブロックを白い箱へ運ぶ

【動画】LOG567_06_recording_session_part2_noaudio.mp4 場所2・3で録っているところを横から撮った映像（後半）

### 場所3は根元に近く、腕の向きを工夫して録った

録り終えたあと、エイイチから場所3の様子を聞いた。

> 3の位置はリーダーアームを目一杯下げても爪が一番下までいかない時があったので、アームの向きを工夫しました

場所3は根元のすぐ左で、腕をたたんで下へ伸ばす姿勢になる。記録の角度で、ブロックをつかんだ所（爪が一度開いたあと、前半でいちばん閉じたコマ）の姿勢を場所ごとに比べると、場所3と場所4は肩（shoulder_lift）がほぼ0°、ひじ（elbow_flex）が約+33°で、腕を縮めた形になっていた。奥の場所1・5は肩が約+40〜51°、ひじが約−20〜−34°で、腕を伸ばした形だ。

| 場所 | 根元 pan | 肩 lift | ひじ elbow | 手首 wrist_flex | 手首のひねり wrist_roll（10回の幅） |
|---|---|---|---|---|---|
| 1 | −2.5 | 51.1 | −33.9 | 39.6 | −8.9（−20.5〜8.6） |
| 2 | −23.2 | 27.2 | 0.8 | 38.0 | −19.8（−22.9〜−11.5） |
| 3 | −51.6 | −0.6 | 32.1 | 40.8 | −9.1（−30.4〜10.9） |
| 4 | −20.5 | 0.9 | 33.9 | 42.6 | 1.2（−27.0〜17.6） |
| 5 | 5.9 | 39.4 | −19.9 | 52.8 | −14.2（−31.3〜8.0） |

（つかんだ所の角度の中央値。単位は度）

場所3の手首のひねりは、10回の間で約41°の幅で散っていた。向きを工夫した跡が、角度にも残っている。お手本としては、届きにくい所では腕の向きを変えてつかむ、という動きが入ったことになる。録り直しはしない。学習させて場所3だけうまくいかなかったら、その10回を外して比べる。

【画像】LOG567_03_place2_vs_place3_mid.png 上の段は場所2の3回目、下の段は場所3の13回目の途中のコマ。左が机側カメラ、右が手首カメラ。場所3は腕が左へ大きく回り、たたんだ形でブロックをはさんでいる

【動画】LOG567_04_place3_ep13_desk_wrist.mp4 場所3の13回目をそのまま並べた映像。左が机側カメラ、右が手首カメラ。20.7秒・1秒30コマ

### 場所3の再生では、腕は録ったとおりに動いたが、爪が空を切った

録った動きが再生できるかを、場所2と場所3の最初の成功の回（index 0 と index 10）で確かめた。再生は、record と別の Python のプロセスで動かした。LOG565 で、同じプロセスで続けて呼ぶとカメラの確かめで止まったためだ。

場所2の1回目は、箱に入り、録ったとおりに動いた。場所3の11回目は、箱に入らなかった。

報告では、再生の記録を録ったときの記録と比べている。腕の5つの関節は、最初の寄せ（1秒）のあとは録ったときと1〜2°ほどで重なっていた。違ったのは爪だった。録ったときは、つかむ所で爪が11.0で止まった。ブロックをはさんで、閉じきらなかったということだ。再生では、同じ所で爪が1.0まで閉じきった。腕は録ったとおりの所へ行ったが、爪の間にブロックがなかった。

再生の爪の値を0.5秒ごとに並べると、違いがはっきり出る。

| 再生した回 | つかむ所の爪の値 | 結果 |
|---|---|---|
| 場所2 1回目（index 0） | 6.5秒から 11.1 で止まり、12秒で開いて放す | 箱に入った |
| 場所3 11回目（index 10） | 11.5秒で 1.0 まで閉じきる | つかめなかった |
| 場所4 1回目（index 0・依頼278） | 7.0秒から 11.1 で止まる | 箱に入った |
| 場所5 11回目（index 10・依頼278） | 8.0秒から 11.2 で止まる | 箱に入った |

場所3の11回目は、場所3の最初の回で、←キーで2回録り直した回でもある。ブロックを点に置き直した場所か向きが、録ったときと少しずれていたと見られる。再生はカメラを見ないので、ずれを直せない。このずれは受け入れて、再生のやり直しはしないことにした。

- ねらい：再生で、録った動きがそのまま再生されるかを確かめる
- 変わったこと：再生がうまくいかない理由が、腕の追いつきではなく置き場所のずれだと、爪の値で切り分けられた
- 見込める効果：ブロックをはさむと爪が11前後で止まるので、記録の爪の値だけで成功と失敗を見分けられる見込み。50回の記録では、つかんだ所の爪の値の中央値が、どの場所でも11.1〜11.2だった（全部の回を自動で判定して人の判定と比べるのは、まだしていない）

#### run_277_stdout.log

```text
[277] 18:31:02 start {"dry": false, "replay_ep": null}
W1123 18:31:05.016000 35718 site-packages/torch/distributed/elastic/multiprocessing/redirects.py:35] NOTE: Redirects are currently not supported in MacOs.
objc[35718]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105ca43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1375fc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[35718]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105ca43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1375fc3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[277] 18:31:10 read_servos {"follower": [[1, 1959, 0], [2, 950, 0], [3, 3024, 0], [4, 2211, 0], [5, 2030, 0], [6, 2061, 0]], "leader": [[1, 2118, 0], [2, 823, 0], [3, 3110, 0], [4, 2679, 0], [5, 2070, 0], [6, 2024, 0]], "ok": true}
[277] 18:31:10 screen {"title": "0. 始める前", "lines": ["ブロックを 場所2 (左の奥) の点に置く", "リーダーとフォロワーの姿勢を近づける", "フォロワーのまわりを空ける・電源をすぐ切れるようにする", "次のスペースで つなぐ (力が入る. まだ録らない)", "(止めたいとき: q キー = Ctrl-C)", "", "準備ができたら スペース"]}
[277] 18:33:06 key {"title": "0. 始める前", "key": " "}
[277] 18:33:06 run_start {"run": "step1_record", "argv": ["record", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos23", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23", "--dataset.single_task=Put the red block into the white box", "--dataset.fps=30", "--dataset.num_episodes=20", "--dataset.episode_time_s=25", "--dataset.reset_time_s=3600", "--dataset.no_stamp=true"]}
INFO 2026-11-23 18:33:08 t_record.py:401 {'dataset': {'depth_encoder': {'crf': 30,
                               'depth_max': 10.0,
                               'depth_min': 0.01,
                               'extra_options': {'x265-params': 'lossless=1'},
                               'fast_decode': 0,
                               'g': 2,
                               'pix_fmt': 'gray12le',
                               'preset': None,
                               'shift': 3.5,
                               'use_log': True,
                               'vcodec': 'hevc',
                               'video_backend': 'pyav'},
             'encoder_queue_maxsize': 30,
             'encoder_threads': None,
             'episode_time_s': 25,
             'fps': 30,
             'no_stamp': True,
             'num_episodes': 20,
             'num_image_writer_processes': 0,
             'num_image_writer_threads_per_camera': 4,
             'private': None,
             'push_to_hub': False,
             'repo_id': 'local/so101_redblock_box_teleop_v1_pos23',
             'reset_time_s': 3600,
             'rgb_encoder': {'crf': 30,
                             'extra_options': {},
                             'fast_decode': 0,
                             'g': 2,
                             'pix_fmt': 'yuv420p',
                             'preset': 12,
                             'vcodec': 'libsvtav1',
                             'video_backend': 'pyav'},
             'root': '/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23',
             'single_task': 'Put the red block into the white box',
             'streaming_encoding': False,
             'tags': None,
             'video': True,
             'video_encoding_batch_size': 1},
 'display_compressed_images': False,
 'display_data': False,
 'display_ip': None,
 'display_mode': 'rerun',
 'display_port': None,
 'play_sounds': True,
 'resume': False,
 'robot': {'calibration_dir': None,
           'cameras': {'desk': {'backend': <Cv2Backends.ANY: 0>,
                                'color_mode': <ColorMode.RGB: 'rgb'>,
                                'fourcc': 'MJPG',
                                'fps': 30,
                                'height': 480,
                                'index_or_path': 0,
                                'rotation': <Cv2Rotation.NO_ROTATION: 0>,
                                'warmup_s': 1,
                                'width': 640},
                       'wrist': {'backend': <Cv2Backends.ANY: 0>,
                                 'color_mode': <ColorMode.RGB: 'rgb'>,
                                 'fourcc': 'MJPG',
                                 'fps': 30,
                                 'height': 480,
                                 'index_or_path': 1,
                                 'rotation': <Cv2Rotation.NO_ROTATION: 0>,
                                 'warmup_s': 1,
                                 'width': 640}},
           'disable_torque_on_disconnect': True,
           'id': 'ptm_follower',
           'max_relative_target': None,
           'num_read_retries': 2,
           'port': '/dev/tty.usbmodem5CBC4321631',
           'position_d_coefficient': 32,
           'position_i_coefficient': 0,
           'position_p_coefficient': 16,
           'use_degrees': True},
 'teleop': {'calibration_dir': None,
            'id': 'ptm_leader',
            'num_read_retries': 2,
            'port': '/dev/tty.usbmodem5CBC4323581',
            'use_degrees': True}}
objc[35718]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105ca43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x157eac778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[35718]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105ca43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x157eac7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 18:33:08 so_leader.py:95 ptm_leader SOLeader connected.
INFO 2026-11-23 18:33:08 safe_259.py:115 [A] follower: connect の直後に目標を今の位置にした
WARNING 2026-11-23 18:33:09 a_opencv.py:284 OpenCVCamera(1) failed to set fourcc=MJPG (actual=    , success=False). Continuing with default format.
INFO 2026-11-23 18:33:11 a_opencv.py:198 OpenCVCamera(1) connected.
WARNING 2026-11-23 18:33:11 a_opencv.py:284 OpenCVCamera(0) failed to set fourcc=MJPG (actual=    , success=False). Continuing with default format.
INFO 2026-11-23 18:33:13 a_opencv.py:198 OpenCVCamera(0) connected.
INFO 2026-11-23 18:33:14 safe_259.py:663 [CAM] 露出・ホワイトバランスを固定した: {'wrist': {'auto-exposure-mode': '8', 'auto-white-balance-temp': 'false', 'white-balance-temp': '4600', 'brightness': '0', 'contrast': '38', 'gamma': '400'}, 'desk': {'auto-exposure-mode': '1', 'auto-white-balance-temp': 'true', 'exposure-time-abs': '101', 'gain': '0'}}
INFO 2026-11-23 18:33:14 safe_259.py:125 [A] follower: 力を入れる直前に目標を今の位置にした (全部)
[277] 18:33:15 torque_on {"run": "step1_record", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
INFO 2026-11-23 18:33:15 follower.py:128 ptm_follower SOFollower connected.
[277] 18:33:15 keyboard_listener {"note": "pynput を使わない (手順のウィンドウで →・← を受ける)"}
INFO 2026-11-23 18:33:15 t_record.py:504 Streaming encoding is disabled. If you have capable hardware, consider enabling it for way faster episode saving. --dataset.streaming_encoding=true --dataset.encoder_threads=2 # --dataset.rgb_encoder.vcodec=auto. More info in the documentation: https://huggingface.co/docs/lerobot/streaming_video_encoding
INFO 2026-11-23 18:33:15 ls/utils.py:151 Recording episode 0
[277] 18:33:15 phase {"phase": "start", "ep": 1}
[277] 18:33:15 screen {"title": "1回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:33:32 key {"phase": "start", "ep": 1, "key": "space", "place": 2}
[277] 18:33:32 phase_end {"phase": "start", "ep": 1, "dur_s": 16.97}
[277] 18:33:32 episode_start {"ep": 1, "try_": 1}
[277] 18:33:45 key {"phase": "episode", "ep": 1, "key": "left"}
[277] 18:33:45 episode_end {"ep": 1, "place": 2, "try": 1, "dur_s": 13.47, "buffer_frames": 404, "end": "left", "label": "ep1_try1"}
INFO 2026-11-23 18:33:45 ls/utils.py:151 Reset the environment
[277] 18:33:45 phase {"phase": "reset", "ep": 1}
[277] 18:33:46 screen {"title": "1回目 を録り直す", "lines": ["ブロックを 場所2 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 1回目へ"]}
[277] 18:33:54 key {"phase": "reset", "ep": 1, "key": "space", "rerecord": true}
[277] 18:33:54 phase_end {"phase": "reset", "ep": 1, "dur_s": 8.7}
INFO 2026-11-23 18:33:54 ls/utils.py:151 Re-record episode
[277] 18:33:54 discarded {"ep": 1}
INFO 2026-11-23 18:33:54 ls/utils.py:151 Recording episode 0
[277] 18:33:54 phase {"phase": "start", "ep": 1}
[277] 18:33:54 screen {"title": "1回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:33:56 key {"phase": "start", "ep": 1, "key": "space", "place": 2}
[277] 18:33:56 phase_end {"phase": "start", "ep": 1, "dur_s": 1.93}
[277] 18:33:56 episode_start {"ep": 1, "try_": 2}
INFO 2026-11-23 18:33:56 le_timer.py:570 Cadence (discarded episode): 29.99 Hz vs 30 Hz target · 404 ticks, 13.4 s measured · 0/403 ticks over the 33.3 ms budget (work mean 17.0 ms, worst 21.7 ms)
[277] 18:34:14 key {"phase": "episode", "ep": 1, "key": "right"}
[277] 18:34:14 episode_end {"ep": 1, "place": 2, "try": 2, "dur_s": 17.94, "buffer_frames": 538, "end": "right", "label": "ep1_try2"}
INFO 2026-11-23 18:34:14 ls/utils.py:151 Reset the environment
[277] 18:34:14 phase {"phase": "reset", "ep": 1}
[277] 18:34:14 screen {"title": "1回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:34:25 key {"phase": "reset", "ep": 1, "key": "space", "rerecord": false}
[277] 18:34:25 phase_end {"phase": "reset", "ep": 1, "dur_s": 11.17}

Map:   0%|          | 0/538 [00:00<?, ? examples/s]
Map: 100%|██████████| 538/538 [00:00<00:00, 5438.80 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
[asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[277] 18:34:34 saved {"ep": 1, "dur_s": 8.46, "num_episodes": 1}
INFO 2026-11-23 18:34:34 ls/utils.py:151 Recording episode 1
[277] 18:34:34 phase {"phase": "start", "ep": 2}
[277] 18:34:34 screen {"title": "2回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:35:10 key {"phase": "start", "ep": 2, "key": "space", "place": 2}
[277] 18:35:10 phase_end {"phase": "start", "ep": 2, "dur_s": 36.24}
[277] 18:35:10 episode_start {"ep": 2, "try_": 1}
INFO 2026-11-23 18:35:10 le_timer.py:570 Cadence (episode 0): 29.99 Hz vs 30 Hz target · 538 ticks, 17.9 s measured · 0/537 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.6 ms)
[277] 18:35:33 key {"phase": "episode", "ep": 2, "key": "right"}
[277] 18:35:33 episode_end {"ep": 2, "place": 2, "try": 1, "dur_s": 23.11, "buffer_frames": 693, "end": "right", "label": "ep2_try1"}
INFO 2026-11-23 18:35:33 ls/utils.py:151 Reset the environment
[277] 18:35:33 phase {"phase": "reset", "ep": 2}
[277] 18:35:33 screen {"title": "2回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:35:38 key {"phase": "reset", "ep": 2, "key": "space", "rerecord": false}
[277] 18:35:38 phase_end {"phase": "reset", "ep": 2, "dur_s": 5.1}

Map:   0%|          | 0/693 [00:00<?, ? examples/s]
Map:  91%|█████████▏| 634/693 [00:00<00:00, 6309.53 examples/s]
Map: 100%|██████████| 693/693 [00:00<00:00, 6094.19 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339fa9160] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x33d7e3260] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:35:48 saved {"ep": 2, "dur_s": 9.77, "num_episodes": 2}
INFO 2026-11-23 18:35:48 ls/utils.py:151 Recording episode 2
[277] 18:35:48 phase {"phase": "start", "ep": 3}
[277] 18:35:48 screen {"title": "3回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:35:52 key {"phase": "start", "ep": 3, "key": "space", "place": 2}
[277] 18:35:52 phase_end {"phase": "start", "ep": 3, "dur_s": 4.03}
[277] 18:35:52 episode_start {"ep": 3, "try_": 1}
INFO 2026-11-23 18:35:52 le_timer.py:570 Cadence (episode 1): 29.99 Hz vs 30 Hz target · 693 ticks, 23.1 s measured · 0/692 ticks over the 33.3 ms budget (work mean 16.8 ms, worst 22.9 ms)
[277] 18:36:13 key {"phase": "episode", "ep": 3, "key": "right"}
[277] 18:36:13 episode_end {"ep": 3, "place": 2, "try": 1, "dur_s": 20.94, "buffer_frames": 628, "end": "right", "label": "ep3_try1"}
INFO 2026-11-23 18:36:13 ls/utils.py:151 Reset the environment
[277] 18:36:13 phase {"phase": "reset", "ep": 3}
[277] 18:36:13 screen {"title": "3回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:36:19 key {"phase": "reset", "ep": 3, "key": "space", "rerecord": false}
[277] 18:36:19 phase_end {"phase": "reset", "ep": 3, "dur_s": 6.14}

Map:   0%|          | 0/628 [00:00<?, ? examples/s]
Map: 100%|██████████| 628/628 [00:00<00:00, 6255.10 examples/s]
Map: 100%|██████████| 628/628 [00:00<00:00, 6212.41 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5fab0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x339f5fdc0] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:36:28 saved {"ep": 3, "dur_s": 8.55, "num_episodes": 3}
INFO 2026-11-23 18:36:28 ls/utils.py:151 Recording episode 3
[277] 18:36:28 phase {"phase": "start", "ep": 4}
[277] 18:36:28 screen {"title": "4回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:36:31 key {"phase": "start", "ep": 4, "key": "space", "place": 2}
[277] 18:36:31 phase_end {"phase": "start", "ep": 4, "dur_s": 3.03}
[277] 18:36:31 episode_start {"ep": 4, "try_": 1}
INFO 2026-11-23 18:36:31 le_timer.py:570 Cadence (episode 2): 29.99 Hz vs 30 Hz target · 628 ticks, 20.9 s measured · 0/627 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 24.1 ms)
[277] 18:36:49 key {"phase": "episode", "ep": 4, "key": "left"}
[277] 18:36:49 episode_end {"ep": 4, "place": 2, "try": 1, "dur_s": 17.67, "buffer_frames": 530, "end": "left", "label": "ep4_try1"}
INFO 2026-11-23 18:36:49 ls/utils.py:151 Reset the environment
[277] 18:36:49 phase {"phase": "reset", "ep": 4}
[277] 18:36:49 screen {"title": "4回目 を録り直す", "lines": ["ブロックを 場所2 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 4回目へ"]}
[277] 18:37:00 key {"phase": "reset", "ep": 4, "key": "space", "rerecord": true}
[277] 18:37:00 phase_end {"phase": "reset", "ep": 4, "dur_s": 11.6}
INFO 2026-11-23 18:37:00 ls/utils.py:151 Re-record episode
[277] 18:37:00 discarded {"ep": 4}
INFO 2026-11-23 18:37:00 ls/utils.py:151 Recording episode 3
[277] 18:37:00 phase {"phase": "start", "ep": 4}
[277] 18:37:00 screen {"title": "4回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:37:02 key {"phase": "start", "ep": 4, "key": "space", "place": 2}
[277] 18:37:02 phase_end {"phase": "start", "ep": 4, "dur_s": 1.6}
[277] 18:37:02 episode_start {"ep": 4, "try_": 2}
INFO 2026-11-23 18:37:02 le_timer.py:570 Cadence (discarded episode): 29.99 Hz vs 30 Hz target · 530 ticks, 17.6 s measured · 0/529 ticks over the 33.3 ms budget (work mean 16.8 ms, worst 20.2 ms)
[277] 18:37:20 key {"phase": "episode", "ep": 4, "key": "right"}
[277] 18:37:20 episode_end {"ep": 4, "place": 2, "try": 2, "dur_s": 17.64, "buffer_frames": 529, "end": "right", "label": "ep4_try2"}
INFO 2026-11-23 18:37:20 ls/utils.py:151 Reset the environment
[277] 18:37:20 phase {"phase": "reset", "ep": 4}
[277] 18:37:20 screen {"title": "4回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:37:24 key {"phase": "reset", "ep": 4, "key": "space", "rerecord": false}
[277] 18:37:24 phase_end {"phase": "reset", "ep": 4, "dur_s": 4.87}

Map:   0%|          | 0/529 [00:00<?, ? examples/s]
Map: 100%|██████████| 529/529 [00:00<00:00, 6131.99 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f64c70] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x14653fe60] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:37:33 saved {"ep": 4, "dur_s": 8.32, "num_episodes": 4}
INFO 2026-11-23 18:37:33 ls/utils.py:151 Recording episode 4
[277] 18:37:33 phase {"phase": "start", "ep": 5}
[277] 18:37:33 screen {"title": "5回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:37:35 key {"phase": "start", "ep": 5, "key": "space", "place": 2}
[277] 18:37:35 phase_end {"phase": "start", "ep": 5, "dur_s": 2.1}
[277] 18:37:35 episode_start {"ep": 5, "try_": 1}
INFO 2026-11-23 18:37:35 le_timer.py:570 Cadence (episode 3): 29.99 Hz vs 30 Hz target · 529 ticks, 17.6 s measured · 0/528 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.4 ms)
[277] 18:37:50 key {"phase": "episode", "ep": 5, "key": "right"}
[277] 18:37:50 episode_end {"ep": 5, "place": 2, "try": 1, "dur_s": 15.3, "buffer_frames": 459, "end": "right", "label": "ep5_try1"}
INFO 2026-11-23 18:37:50 ls/utils.py:151 Reset the environment
[277] 18:37:50 phase {"phase": "reset", "ep": 5}
[277] 18:37:50 screen {"title": "5回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:38:03 key {"phase": "reset", "ep": 5, "key": "space", "rerecord": false}
[277] 18:38:03 phase_end {"phase": "reset", "ep": 5, "dur_s": 12.67}

Map:   0%|          | 0/459 [00:00<?, ? examples/s]
Map: 100%|██████████| 459/459 [00:00<00:00, 6083.58 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[warn]: Preset M12 is mapped to M10.
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5fff0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387bb360] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:38:11 saved {"ep": 5, "dur_s": 7.53, "num_episodes": 5}
INFO 2026-11-23 18:38:11 ls/utils.py:151 Recording episode 5
[277] 18:38:11 phase {"phase": "start", "ep": 6}
[277] 18:38:11 screen {"title": "6回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:38:15 key {"phase": "start", "ep": 6, "key": "space", "place": 2}
[277] 18:38:15 phase_end {"phase": "start", "ep": 6, "dur_s": 4.3}
[277] 18:38:15 episode_start {"ep": 6, "try_": 1}
INFO 2026-11-23 18:38:15 le_timer.py:570 Cadence (episode 4): 29.99 Hz vs 30 Hz target · 459 ticks, 15.3 s measured · 0/458 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.6 ms)
[277] 18:38:32 key {"phase": "episode", "ep": 6, "key": "right"}
[277] 18:38:33 episode_end {"ep": 6, "place": 2, "try": 1, "dur_s": 17.71, "buffer_frames": 531, "end": "right", "label": "ep6_try1"}
INFO 2026-11-23 18:38:33 ls/utils.py:151 Reset the environment
[277] 18:38:33 phase {"phase": "reset", "ep": 6}
[277] 18:38:33 screen {"title": "6回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:38:34 key {"phase": "reset", "ep": 6, "key": "space", "rerecord": false}
[277] 18:38:34 phase_end {"phase": "reset", "ep": 6, "dur_s": 1.57}

Map:   0%|          | 0/531 [00:00<?, ? examples/s]
Map: 100%|██████████| 531/531 [00:00<00:00, 6032.65 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[warn]: Preset M12 is mapped to M10.
-------------------------------------------
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339fa91e0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387b84b0] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:38:42 saved {"ep": 6, "dur_s": 7.8, "num_episodes": 6}
INFO 2026-11-23 18:38:42 ls/utils.py:151 Recording episode 6
[277] 18:38:42 phase {"phase": "start", "ep": 7}
[277] 18:38:42 screen {"title": "7回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:38:45 key {"phase": "start", "ep": 7, "key": "space", "place": 2}
[277] 18:38:45 phase_end {"phase": "start", "ep": 7, "dur_s": 2.67}
[277] 18:38:45 episode_start {"ep": 7, "try_": 1}
INFO 2026-11-23 18:38:45 le_timer.py:570 Cadence (episode 5): 29.99 Hz vs 30 Hz target · 531 ticks, 17.7 s measured · 0/530 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.2 ms)
[277] 18:39:03 key {"phase": "episode", "ep": 7, "key": "right"}
[277] 18:39:03 episode_end {"ep": 7, "place": 2, "try": 1, "dur_s": 17.97, "buffer_frames": 539, "end": "right", "label": "ep7_try1"}
INFO 2026-11-23 18:39:03 ls/utils.py:151 Reset the environment
[277] 18:39:03 phase {"phase": "reset", "ep": 7}
[277] 18:39:03 screen {"title": "7回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:39:09 key {"phase": "reset", "ep": 7, "key": "space", "rerecord": false}
[277] 18:39:09 phase_end {"phase": "reset", "ep": 7, "dur_s": 6.4}

Map:   0%|          | 0/539 [00:00<?, ? examples/s]
Map: 100%|██████████| 539/539 [00:00<00:00, 5999.67 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5ed90] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387b0280] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:39:17 saved {"ep": 7, "dur_s": 7.91, "num_episodes": 7}
INFO 2026-11-23 18:39:17 ls/utils.py:151 Recording episode 7
[277] 18:39:17 phase {"phase": "start", "ep": 8}
[277] 18:39:17 screen {"title": "8回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:39:19 key {"phase": "start", "ep": 8, "key": "space", "place": 2}
[277] 18:39:19 phase_end {"phase": "start", "ep": 8, "dur_s": 1.77}
[277] 18:39:19 episode_start {"ep": 8, "try_": 1}
INFO 2026-11-23 18:39:19 le_timer.py:570 Cadence (episode 6): 29.99 Hz vs 30 Hz target · 539 ticks, 17.9 s measured · 0/538 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.1 ms)
[277] 18:39:33 key {"phase": "episode", "ep": 8, "key": "right"}
[277] 18:39:33 episode_end {"ep": 8, "place": 2, "try": 1, "dur_s": 14.07, "buffer_frames": 422, "end": "right", "label": "ep8_try1"}
INFO 2026-11-23 18:39:33 ls/utils.py:151 Reset the environment
[277] 18:39:33 phase {"phase": "reset", "ep": 8}
[277] 18:39:33 screen {"title": "8回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:39:38 key {"phase": "reset", "ep": 8, "key": "space", "rerecord": false}
[277] 18:39:38 phase_end {"phase": "reset", "ep": 8, "dur_s": 5.64}

Map:   0%|          | 0/422 [00:00<?, ? examples/s]
Map: 100%|██████████| 422/422 [00:00<00:00, 6042.82 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5fbe0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387baf10] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:39:46 saved {"ep": 8, "dur_s": 7.02, "num_episodes": 8}
INFO 2026-11-23 18:39:46 ls/utils.py:151 Recording episode 8
[277] 18:39:46 phase {"phase": "start", "ep": 9}
[277] 18:39:46 screen {"title": "9回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:39:47 key {"phase": "start", "ep": 9, "key": "space", "place": 2}
[277] 18:39:47 phase_end {"phase": "start", "ep": 9, "dur_s": 1.9}
[277] 18:39:47 episode_start {"ep": 9, "try_": 1}
INFO 2026-11-23 18:39:47 le_timer.py:570 Cadence (episode 7): 29.99 Hz vs 30 Hz target · 422 ticks, 14.0 s measured · 0/421 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.3 ms)
[277] 18:40:01 key {"phase": "episode", "ep": 9, "key": "right"}
[277] 18:40:01 episode_end {"ep": 9, "place": 2, "try": 1, "dur_s": 13.54, "buffer_frames": 406, "end": "right", "label": "ep9_try1"}
INFO 2026-11-23 18:40:01 ls/utils.py:151 Reset the environment
[277] 18:40:01 phase {"phase": "reset", "ep": 9}
[277] 18:40:01 screen {"title": "9回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:40:06 key {"phase": "reset", "ep": 9, "key": "space", "rerecord": false}
[277] 18:40:06 phase_end {"phase": "reset", "ep": 9, "dur_s": 5.5}

Map:   0%|          | 0/406 [00:00<?, ? examples/s]
Map: 100%|██████████| 406/406 [00:00<00:00, 5988.55 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5fd40] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387b38f0] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:40:13 saved {"ep": 9, "dur_s": 6.72, "num_episodes": 9}
INFO 2026-11-23 18:40:13 ls/utils.py:151 Recording episode 9
[277] 18:40:13 phase {"phase": "start", "ep": 10}
[277] 18:40:13 screen {"title": "10回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:40:15 key {"phase": "start", "ep": 10, "key": "space", "place": 2}
[277] 18:40:15 phase_end {"phase": "start", "ep": 10, "dur_s": 2.2}
[277] 18:40:15 episode_start {"ep": 10, "try_": 1}
INFO 2026-11-23 18:40:15 le_timer.py:570 Cadence (episode 8): 29.99 Hz vs 30 Hz target · 406 ticks, 13.5 s measured · 0/405 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.2 ms)
[277] 18:40:35 key {"phase": "episode", "ep": 10, "key": "right"}
[277] 18:40:35 episode_end {"ep": 10, "place": 2, "try": 1, "dur_s": 19.24, "buffer_frames": 577, "end": "right", "label": "ep10_try1"}
INFO 2026-11-23 18:40:35 ls/utils.py:151 Reset the environment
[277] 18:40:35 phase {"phase": "reset", "ep": 10}
[277] 18:40:35 screen {"title": "10回目 終わり (場所2 はこれで終わり)", "lines": ["次は 場所3", "腕を休みの姿勢へ", "スペースで次へ (次の画面で 場所の置き直し)", "うまくいかなかった回は ← で録り直す"]}
[277] 18:40:39 key {"phase": "reset", "ep": 10, "key": "space", "rerecord": false}
[277] 18:40:39 phase_end {"phase": "reset", "ep": 10, "dur_s": 4.17}

Map:   0%|          | 0/577 [00:00<?, ? examples/s]
Map: 100%|██████████| 577/577 [00:00<00:00, 6165.08 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5fa90] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387baf50] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:40:47 saved {"ep": 10, "dur_s": 7.97, "num_episodes": 10}
INFO 2026-11-23 18:40:47 ls/utils.py:151 Recording episode 10
[277] 18:40:47 phase {"phase": "start", "ep": 11}
[277] 18:40:56 key {"phase": "place3", "ep": 11, "key": "space"}
[277] 18:40:56 screen {"title": "11回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:40:58 key {"phase": "start", "ep": 11, "key": "space", "place": 3}
[277] 18:40:58 phase_end {"phase": "start", "ep": 11, "dur_s": 10.91}
[277] 18:40:58 episode_start {"ep": 11, "try_": 1}
INFO 2026-11-23 18:40:58 le_timer.py:570 Cadence (episode 9): 29.99 Hz vs 30 Hz target · 577 ticks, 19.2 s measured · 0/576 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.6 ms)
[277] 18:41:14 key {"phase": "episode", "ep": 11, "key": "left"}
[277] 18:41:14 episode_end {"ep": 11, "place": 3, "try": 1, "dur_s": 16.24, "buffer_frames": 487, "end": "left", "label": "ep11_try1"}
INFO 2026-11-23 18:41:14 ls/utils.py:151 Reset the environment
[277] 18:41:14 phase {"phase": "reset", "ep": 11}
[277] 18:41:14 screen {"title": "11回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 11回目へ"]}
[277] 18:41:21 key {"phase": "reset", "ep": 11, "key": "space", "rerecord": true}
[277] 18:41:21 phase_end {"phase": "reset", "ep": 11, "dur_s": 6.9}
INFO 2026-11-23 18:41:21 ls/utils.py:151 Re-record episode
[277] 18:41:21 discarded {"ep": 11}
INFO 2026-11-23 18:41:21 ls/utils.py:151 Recording episode 10
[277] 18:41:21 phase {"phase": "start", "ep": 11}
[277] 18:41:21 screen {"title": "11回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:41:23 key {"phase": "start", "ep": 11, "key": "space", "place": 3}
[277] 18:41:23 phase_end {"phase": "start", "ep": 11, "dur_s": 1.83}
[277] 18:41:23 episode_start {"ep": 11, "try_": 2}
INFO 2026-11-23 18:41:23 le_timer.py:570 Cadence (discarded episode): 29.99 Hz vs 30 Hz target · 487 ticks, 16.2 s measured · 0/486 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.5 ms)
[277] 18:41:48 episode_end {"ep": 11, "place": 3, "try": 2, "dur_s": 25.01, "buffer_frames": 750, "end": "time", "label": "ep11_try2"}
INFO 2026-11-23 18:41:48 ls/utils.py:151 Reset the environment
[277] 18:41:48 phase {"phase": "reset", "ep": 11}
[277] 18:41:48 screen {"title": "11回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:41:53 key {"phase": "reset", "ep": 11, "key": "left"}
[277] 18:41:53 screen {"title": "11回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 11回目へ"]}
[277] 18:42:01 key {"phase": "reset", "ep": 11, "key": "space", "rerecord": true}
[277] 18:42:01 phase_end {"phase": "reset", "ep": 11, "dur_s": 12.97}
INFO 2026-11-23 18:42:01 ls/utils.py:151 Re-record episode
[277] 18:42:01 discarded {"ep": 11}
INFO 2026-11-23 18:42:01 ls/utils.py:151 Recording episode 10
[277] 18:42:01 phase {"phase": "start", "ep": 11}
[277] 18:42:01 screen {"title": "11回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:42:03 key {"phase": "start", "ep": 11, "key": "space", "place": 3}
[277] 18:42:03 phase_end {"phase": "start", "ep": 11, "dur_s": 1.9}
[277] 18:42:03 episode_start {"ep": 11, "try_": 3}
INFO 2026-11-23 18:42:03 le_timer.py:570 Cadence (discarded episode): 29.99 Hz vs 30 Hz target · 750 ticks, 25.0 s measured · 0/749 ticks over the 33.3 ms budget (work mean 17.0 ms, worst 20.8 ms)
[277] 18:42:22 key {"phase": "episode", "ep": 11, "key": "right"}
[277] 18:42:22 episode_end {"ep": 11, "place": 3, "try": 3, "dur_s": 19.37, "buffer_frames": 581, "end": "right", "label": "ep11_try3"}
INFO 2026-11-23 18:42:22 ls/utils.py:151 Reset the environment
[277] 18:42:22 phase {"phase": "reset", "ep": 11}
[277] 18:42:22 screen {"title": "11回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:42:32 key {"phase": "reset", "ep": 11, "key": "space", "rerecord": false}
[277] 18:42:32 phase_end {"phase": "reset", "ep": 11, "dur_s": 9.37}

Map:   0%|          | 0/581 [00:00<?, ? examples/s]
Map: 100%|██████████| 581/581 [00:00<00:00, 6131.73 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x14653fe60] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387ba8d0] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:42:40 saved {"ep": 11, "dur_s": 8.62, "num_episodes": 11}
INFO 2026-11-23 18:42:40 ls/utils.py:151 Recording episode 11
[277] 18:42:40 phase {"phase": "start", "ep": 12}
[277] 18:42:40 screen {"title": "12回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:42:42 key {"phase": "start", "ep": 12, "key": "space", "place": 3}
[277] 18:42:42 phase_end {"phase": "start", "ep": 12, "dur_s": 1.8}
[277] 18:42:42 episode_start {"ep": 12, "try_": 1}
INFO 2026-11-23 18:42:42 le_timer.py:570 Cadence (episode 10): 29.99 Hz vs 30 Hz target · 581 ticks, 19.3 s measured · 0/580 ticks over the 33.3 ms budget (work mean 17.0 ms, worst 20.8 ms)
[277] 18:43:05 key {"phase": "episode", "ep": 12, "key": "right"}
[277] 18:43:05 episode_end {"ep": 12, "place": 3, "try": 1, "dur_s": 23.31, "buffer_frames": 699, "end": "right", "label": "ep12_try1"}
INFO 2026-11-23 18:43:05 ls/utils.py:151 Reset the environment
[277] 18:43:06 phase {"phase": "reset", "ep": 12}
[277] 18:43:06 screen {"title": "12回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:43:08 key {"phase": "reset", "ep": 12, "key": "space", "rerecord": false}
[277] 18:43:08 phase_end {"phase": "reset", "ep": 12, "dur_s": 2.67}

Map:   0%|          | 0/699 [00:00<?, ? examples/s]
Map:  92%|█████████▏| 640/699 [00:00<00:00, 6356.69 examples/s]
Map: 100%|██████████| 699/699 [00:00<00:00, 6148.61 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
[asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x3387b38f0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387bb060] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:43:18 saved {"ep": 12, "dur_s": 9.67, "num_episodes": 12}
INFO 2026-11-23 18:43:18 ls/utils.py:151 Recording episode 12
[277] 18:43:18 phase {"phase": "start", "ep": 13}
[277] 18:43:18 screen {"title": "13回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:43:20 key {"phase": "start", "ep": 13, "key": "space", "place": 3}
[277] 18:43:20 phase_end {"phase": "start", "ep": 13, "dur_s": 2.5}
[277] 18:43:20 episode_start {"ep": 13, "try_": 1}
INFO 2026-11-23 18:43:20 le_timer.py:570 Cadence (episode 11): 29.99 Hz vs 30 Hz target · 699 ticks, 23.3 s measured · 0/698 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.9 ms)
[277] 18:43:32 key {"phase": "episode", "ep": 13, "key": "left"}
[277] 18:43:32 episode_end {"ep": 13, "place": 3, "try": 1, "dur_s": 11.7, "buffer_frames": 351, "end": "left", "label": "ep13_try1"}
INFO 2026-11-23 18:43:32 ls/utils.py:151 Reset the environment
[277] 18:43:32 phase {"phase": "reset", "ep": 13}
[277] 18:43:32 screen {"title": "13回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 13回目へ"]}
[277] 18:43:39 key {"phase": "reset", "ep": 13, "key": "space", "rerecord": true}
[277] 18:43:39 phase_end {"phase": "reset", "ep": 13, "dur_s": 7.1}
INFO 2026-11-23 18:43:39 ls/utils.py:151 Re-record episode
[277] 18:43:39 discarded {"ep": 13}
INFO 2026-11-23 18:43:39 ls/utils.py:151 Recording episode 12
[277] 18:43:39 phase {"phase": "start", "ep": 13}
[277] 18:43:39 screen {"title": "13回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:43:41 key {"phase": "start", "ep": 13, "key": "space", "place": 3}
[277] 18:43:41 phase_end {"phase": "start", "ep": 13, "dur_s": 1.57}
[277] 18:43:41 episode_start {"ep": 13, "try_": 2}
INFO 2026-11-23 18:43:41 le_timer.py:570 Cadence (discarded episode): 29.99 Hz vs 30 Hz target · 351 ticks, 11.7 s measured · 0/350 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.5 ms)
[277] 18:44:02 key {"phase": "episode", "ep": 13, "key": "right"}
[277] 18:44:02 episode_end {"ep": 13, "place": 3, "try": 2, "dur_s": 20.67, "buffer_frames": 620, "end": "right", "label": "ep13_try2"}
INFO 2026-11-23 18:44:02 ls/utils.py:151 Reset the environment
[277] 18:44:02 phase {"phase": "reset", "ep": 13}
[277] 18:44:02 screen {"title": "13回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:44:07 key {"phase": "reset", "ep": 13, "key": "space", "rerecord": false}
[277] 18:44:07 phase_end {"phase": "reset", "ep": 13, "dur_s": 5.04}

Map:   0%|          | 0/620 [00:00<?, ? examples/s]
Map:   4%|▍         | 24/620 [00:00<00:05, 116.29 examples/s]
Map: 100%|██████████| 620/620 [00:00<00:00, 2025.52 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f65330] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387b84b0] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:44:16 saved {"ep": 13, "dur_s": 9.38, "num_episodes": 13}
INFO 2026-11-23 18:44:16 ls/utils.py:151 Recording episode 13
[277] 18:44:16 phase {"phase": "start", "ep": 14}
[277] 18:44:16 screen {"title": "14回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:44:18 key {"phase": "start", "ep": 14, "key": "space", "place": 3}
[277] 18:44:18 phase_end {"phase": "start", "ep": 14, "dur_s": 2.4}
[277] 18:44:18 episode_start {"ep": 14, "try_": 1}
INFO 2026-11-23 18:44:18 le_timer.py:570 Cadence (episode 12): 29.99 Hz vs 30 Hz target · 620 ticks, 20.6 s measured · 0/619 ticks over the 33.3 ms budget (work mean 17.0 ms, worst 21.6 ms)
[277] 18:44:43 key {"phase": "episode", "ep": 14, "key": "right"}
[277] 18:44:43 episode_end {"ep": 14, "place": 3, "try": 1, "dur_s": 24.97, "buffer_frames": 749, "end": "time", "label": "ep14_try1"}
INFO 2026-11-23 18:44:43 ls/utils.py:151 Reset the environment
[277] 18:44:43 phase {"phase": "reset", "ep": 14}
[277] 18:44:43 screen {"title": "14回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:44:46 key {"phase": "reset", "ep": 14, "key": "space", "rerecord": false}
[277] 18:44:46 phase_end {"phase": "reset", "ep": 14, "dur_s": 2.13}

Map:   0%|          | 0/749 [00:00<?, ? examples/s]
Map:  86%|████████▌ | 646/749 [00:00<00:00, 6424.15 examples/s]
Map: 100%|██████████| 749/749 [00:00<00:00, 6234.91 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339fa9550] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387bb340] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:44:55 saved {"ep": 14, "dur_s": 9.68, "num_episodes": 14}
INFO 2026-11-23 18:44:55 ls/utils.py:151 Recording episode 14
[277] 18:44:55 phase {"phase": "start", "ep": 15}
[277] 18:44:55 screen {"title": "15回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:44:58 key {"phase": "start", "ep": 15, "key": "space", "place": 3}
[277] 18:44:58 phase_end {"phase": "start", "ep": 15, "dur_s": 2.63}
[277] 18:44:58 episode_start {"ep": 15, "try_": 1}
INFO 2026-11-23 18:44:58 le_timer.py:570 Cadence (episode 13): 29.99 Hz vs 30 Hz target · 749 ticks, 24.9 s measured · 0/748 ticks over the 33.3 ms budget (work mean 17.0 ms, worst 20.4 ms)
[277] 18:45:15 key {"phase": "episode", "ep": 15, "key": "right"}
[277] 18:45:15 episode_end {"ep": 15, "place": 3, "try": 1, "dur_s": 16.74, "buffer_frames": 502, "end": "right", "label": "ep15_try1"}
INFO 2026-11-23 18:45:15 ls/utils.py:151 Reset the environment
[277] 18:45:15 phase {"phase": "reset", "ep": 15}
[277] 18:45:15 screen {"title": "15回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:45:16 key {"phase": "reset", "ep": 15, "key": "space", "rerecord": false}
[277] 18:45:16 phase_end {"phase": "reset", "ep": 15, "dur_s": 1.33}

Map:   0%|          | 0/502 [00:00<?, ? examples/s]
Map: 100%|██████████| 502/502 [00:00<00:00, 6036.49 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5ff90] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x1536efa00] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:45:24 saved {"ep": 15, "dur_s": 7.75, "num_episodes": 15}
INFO 2026-11-23 18:45:24 ls/utils.py:151 Recording episode 15
[277] 18:45:24 phase {"phase": "start", "ep": 16}
[277] 18:45:24 screen {"title": "16回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:45:26 key {"phase": "start", "ep": 16, "key": "space", "place": 3}
[277] 18:45:26 phase_end {"phase": "start", "ep": 16, "dur_s": 2.17}
[277] 18:45:26 episode_start {"ep": 16, "try_": 1}
INFO 2026-11-23 18:45:26 le_timer.py:570 Cadence (episode 14): 29.99 Hz vs 30 Hz target · 502 ticks, 16.7 s measured · 0/501 ticks over the 33.3 ms budget (work mean 17.0 ms, worst 20.7 ms)
[277] 18:45:40 key {"phase": "episode", "ep": 16, "key": "right"}
[277] 18:45:40 episode_end {"ep": 16, "place": 3, "try": 1, "dur_s": 13.74, "buffer_frames": 412, "end": "right", "label": "ep16_try1"}
INFO 2026-11-23 18:45:40 ls/utils.py:151 Reset the environment
[277] 18:45:40 phase {"phase": "reset", "ep": 16}
[277] 18:45:40 screen {"title": "16回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:45:45 key {"phase": "reset", "ep": 16, "key": "space", "rerecord": false}
[277] 18:45:45 phase_end {"phase": "reset", "ep": 16, "dur_s": 5.07}

Map:   0%|          | 0/412 [00:00<?, ? examples/s]
Map: 100%|██████████| 412/412 [00:00<00:00, 6082.06 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f60040] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x339f5fec0] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:45:52 saved {"ep": 16, "dur_s": 7.0, "num_episodes": 16}
INFO 2026-11-23 18:45:52 ls/utils.py:151 Recording episode 16
[277] 18:45:52 phase {"phase": "start", "ep": 17}
[277] 18:45:52 screen {"title": "17回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:45:54 key {"phase": "start", "ep": 17, "key": "space", "place": 3}
[277] 18:45:54 phase_end {"phase": "start", "ep": 17, "dur_s": 2.5}
[277] 18:45:54 episode_start {"ep": 17, "try_": 1}
INFO 2026-11-23 18:45:54 le_timer.py:570 Cadence (episode 15): 29.99 Hz vs 30 Hz target · 412 ticks, 13.7 s measured · 0/411 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.4 ms)
[277] 18:46:11 key {"phase": "episode", "ep": 17, "key": "right"}
[277] 18:46:11 episode_end {"ep": 17, "place": 3, "try": 1, "dur_s": 16.31, "buffer_frames": 489, "end": "right", "label": "ep17_try1"}
INFO 2026-11-23 18:46:11 ls/utils.py:151 Reset the environment
[277] 18:46:11 phase {"phase": "reset", "ep": 17}
[277] 18:46:11 screen {"title": "17回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:46:18 key {"phase": "reset", "ep": 17, "key": "space", "rerecord": false}
[277] 18:46:18 phase_end {"phase": "reset", "ep": 17, "dur_s": 7.1}

Map:   0%|          | 0/489 [00:00<?, ? examples/s]
Map: 100%|██████████| 489/489 [00:00<00:00, 6007.52 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339fa91e0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387b84b0] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:46:25 saved {"ep": 17, "dur_s": 7.64, "num_episodes": 17}
INFO 2026-11-23 18:46:25 ls/utils.py:151 Recording episode 17
[277] 18:46:25 phase {"phase": "start", "ep": 18}
[277] 18:46:25 screen {"title": "18回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:46:28 key {"phase": "start", "ep": 18, "key": "space", "place": 3}
[277] 18:46:28 phase_end {"phase": "start", "ep": 18, "dur_s": 2.1}
[277] 18:46:28 episode_start {"ep": 18, "try_": 1}
INFO 2026-11-23 18:46:28 le_timer.py:570 Cadence (episode 16): 29.99 Hz vs 30 Hz target · 489 ticks, 16.3 s measured · 0/488 ticks over the 33.3 ms budget (work mean 16.8 ms, worst 20.5 ms)
[277] 18:46:42 key {"phase": "episode", "ep": 18, "key": "right"}
[277] 18:46:42 episode_end {"ep": 18, "place": 3, "try": 1, "dur_s": 14.5, "buffer_frames": 435, "end": "right", "label": "ep18_try1"}
INFO 2026-11-23 18:46:42 ls/utils.py:151 Reset the environment
[277] 18:46:42 phase {"phase": "reset", "ep": 18}
[277] 18:46:42 screen {"title": "18回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:46:47 key {"phase": "reset", "ep": 18, "key": "space", "rerecord": false}
[277] 18:46:47 phase_end {"phase": "reset", "ep": 18, "dur_s": 5.0}

Map:   0%|          | 0/435 [00:00<?, ? examples/s]
Map: 100%|██████████| 435/435 [00:00<00:00, 6002.90 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f68980] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x339f5ff90] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:46:54 saved {"ep": 18, "dur_s": 7.32, "num_episodes": 18}
INFO 2026-11-23 18:46:54 ls/utils.py:151 Recording episode 18
[277] 18:46:54 phase {"phase": "start", "ep": 19}
[277] 18:46:54 screen {"title": "19回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:46:57 key {"phase": "start", "ep": 19, "key": "space", "place": 3}
[277] 18:46:57 phase_end {"phase": "start", "ep": 19, "dur_s": 2.13}
[277] 18:46:57 episode_start {"ep": 19, "try_": 1}
INFO 2026-11-23 18:46:57 le_timer.py:570 Cadence (episode 17): 29.99 Hz vs 30 Hz target · 435 ticks, 14.5 s measured · 0/434 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.5 ms)
[277] 18:47:13 key {"phase": "episode", "ep": 19, "key": "right"}
[277] 18:47:13 episode_end {"ep": 19, "place": 3, "try": 1, "dur_s": 16.37, "buffer_frames": 491, "end": "right", "label": "ep19_try1"}
INFO 2026-11-23 18:47:13 ls/utils.py:151 Reset the environment
[277] 18:47:13 phase {"phase": "reset", "ep": 19}
[277] 18:47:13 screen {"title": "19回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[277] 18:47:18 key {"phase": "reset", "ep": 19, "key": "space", "rerecord": false}
[277] 18:47:18 phase_end {"phase": "reset", "ep": 19, "dur_s": 4.57}

Map:   0%|          | 0/491 [00:00<?, ? examples/s]
Map: 100%|██████████| 491/491 [00:00<00:00, 6090.13 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5fa10] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x339f64c70] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:47:25 saved {"ep": 19, "dur_s": 7.45, "num_episodes": 19}
INFO 2026-11-23 18:47:25 ls/utils.py:151 Recording episode 19
[277] 18:47:25 phase {"phase": "start", "ep": 20}
[277] 18:47:25 screen {"title": "20回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:47:27 key {"phase": "start", "ep": 20, "key": "space", "place": 3}
[277] 18:47:27 phase_end {"phase": "start", "ep": 20, "dur_s": 1.97}
[277] 18:47:27 episode_start {"ep": 20, "try_": 1}
INFO 2026-11-23 18:47:27 le_timer.py:570 Cadence (episode 18): 29.99 Hz vs 30 Hz target · 491 ticks, 16.3 s measured · 0/490 ticks over the 33.3 ms budget (work mean 16.6 ms, worst 19.8 ms)
[277] 18:47:44 key {"phase": "episode", "ep": 20, "key": "left"}
[277] 18:47:44 episode_end {"ep": 20, "place": 3, "try": 1, "dur_s": 17.31, "buffer_frames": 519, "end": "left", "label": "ep20_try1"}
INFO 2026-11-23 18:47:44 ls/utils.py:151 Reset the environment
[277] 18:47:44 phase {"phase": "reset", "ep": 20}
[277] 18:47:44 screen {"title": "20回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 20回目へ"]}
[277] 18:47:49 key {"phase": "reset", "ep": 20, "key": "space", "rerecord": true}
[277] 18:47:49 phase_end {"phase": "reset", "ep": 20, "dur_s": 4.4}
INFO 2026-11-23 18:47:49 ls/utils.py:151 Re-record episode
[277] 18:47:49 discarded {"ep": 20}
INFO 2026-11-23 18:47:49 ls/utils.py:151 Recording episode 19
[277] 18:47:49 phase {"phase": "start", "ep": 20}
[277] 18:47:49 screen {"title": "20回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:47:50 key {"phase": "start", "ep": 20, "key": "space", "place": 3}
[277] 18:47:50 phase_end {"phase": "start", "ep": 20, "dur_s": 0.87}
[277] 18:47:50 episode_start {"ep": 20, "try_": 2}
INFO 2026-11-23 18:47:50 le_timer.py:570 Cadence (discarded episode): 29.99 Hz vs 30 Hz target · 519 ticks, 17.3 s measured · 0/518 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.6 ms)
[277] 18:47:58 key {"phase": "episode", "ep": 20, "key": "left"}
[277] 18:47:58 episode_end {"ep": 20, "place": 3, "try": 2, "dur_s": 8.6, "buffer_frames": 258, "end": "left", "label": "ep20_try2"}
INFO 2026-11-23 18:47:58 ls/utils.py:151 Reset the environment
[277] 18:47:58 phase {"phase": "reset", "ep": 20}
[277] 18:47:58 screen {"title": "20回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 20回目へ"]}
[277] 18:48:00 key {"phase": "reset", "ep": 20, "key": "space", "rerecord": true}
[277] 18:48:00 phase_end {"phase": "reset", "ep": 20, "dur_s": 1.7}
INFO 2026-11-23 18:48:00 ls/utils.py:151 Re-record episode
[277] 18:48:00 discarded {"ep": 20}
INFO 2026-11-23 18:48:00 ls/utils.py:151 Recording episode 19
[277] 18:48:00 phase {"phase": "start", "ep": 20}
[277] 18:48:00 screen {"title": "20回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[277] 18:48:10 key {"phase": "start", "ep": 20, "key": "space", "place": 3}
[277] 18:48:10 phase_end {"phase": "start", "ep": 20, "dur_s": 10.04}
[277] 18:48:10 episode_start {"ep": 20, "try_": 3}
INFO 2026-11-23 18:48:10 le_timer.py:570 Cadence (discarded episode): 29.99 Hz vs 30 Hz target · 258 ticks, 8.6 s measured · 0/257 ticks over the 33.3 ms budget (work mean 17.0 ms, worst 32.6 ms)
[277] 18:48:25 key {"phase": "episode", "ep": 20, "key": "right"}
[277] 18:48:25 episode_end {"ep": 20, "place": 3, "try": 3, "dur_s": 14.67, "buffer_frames": 440, "end": "right", "label": "ep20_try3"}
[277] 18:48:25 phase {"phase": "end", "ep": 20}
[277] 18:48:25 screen {"title": "20回目 終わり (これで20回)", "lines": ["リーダーで 爪を閉じる", "腕を机の上まで下ろして たたむ (休みの姿勢)", "たたんだら スペース (保存して 力が抜ける)", "幅の外だと 赤い字で関節名が出る → そこを戻す", "うまくいかなかったら ← で録り直す"]}
[277] 18:48:31 key {"phase": "end", "ep": 20, "key": "space"}
[277] 18:48:31 phase_end {"phase": "end", "ep": 20, "dur_s": 6.44}

Map:   0%|          | 0/440 [00:00<?, ? examples/s]
Map: 100%|██████████| 440/440 [00:00<00:00, 6018.10 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x339f5fd90] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3387bba80] Starting second pass: moving the moov atom to the beginning of the file
[277] 18:48:39 saved {"ep": 20, "dur_s": 7.74, "num_episodes": 20}
INFO 2026-11-23 18:48:39 le_timer.py:570 Cadence (episode 19): 29.99 Hz vs 30 Hz target · 440 ticks, 14.6 s measured · 0/439 ticks over the 33.3 ms budget (work mean 17.0 ms, worst 20.8 ms)
INFO 2026-11-23 18:48:39 le_timer.py:617 Cadence summary — whole run, 27 episodes · target 30 Hz (33.3 ms budget per tick): 14039 ticks, 14012 judged
  effective cadence: 29.99 Hz over 467.2 s measured
  ticks over the 33.3 ms work budget: 0/14012 (0.0%) — work mean 16.9 ms, worst 32.6 ms
  loop-body steps (share of measured work):
    observe      mean   1.17 ms · worst   4.16 ms ·   6.9% of work · 14039 calls
    process_obs  mean   0.02 ms · worst   0.11 ms ·   0.1% of work · 14039 calls
    teleop       mean   1.04 ms · worst   3.31 ms ·   6.2% of work · 14039 calls
    send         mean  14.54 ms · worst  30.32 ms ·  86.0% of work · 14039 calls
    record       mean   0.10 ms · worst   1.44 ms ·   0.6% of work · 14039 calls
  pacing headroom: 16.4 ms slept per tick on average (max 30.7 ms) — near zero means the loop is saturated
INFO 2026-11-23 18:48:39 ls/utils.py:151 Stop recording
[277] 18:48:42 lerobot_safe_window {"run": "step1_record", "title": "リーダーで休みの姿勢へ"}
[277] 18:48:42 rest_out_joints {"run": "step1_record", "out": {"wrist_flex": 27.25}}
[277] 18:48:46 rest_out_joints {"run": "step1_record", "out": {}}
INFO 2026-11-23 18:48:47 a_opencv.py:637 OpenCVCamera(1) disconnected.
INFO 2026-11-23 18:48:47 a_opencv.py:637 OpenCVCamera(0) disconnected.
INFO 2026-11-23 18:48:47 follower.py:221 ptm_follower SOFollower disconnected.
INFO 2026-11-23 18:48:47 o_leader.py:144 ptm_leader SOLeader disconnected.
INFO 2026-11-23 18:48:47 ls/utils.py:151 Exiting
[277] 18:48:47 run_end {"name": "step1_record", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step1_record.json"}
[277] 18:48:48 screen {"title": "見た物で答える  y / n", "lines": ["20回とも, ブロックが箱に入った？", "", "はい = y     いいえ = n"]}
[277] 18:48:51 key {"title": "見た物で答える  y / n", "key": "y"}
[277] 18:48:51 screen {"title": "見た物で答える  y / n", "lines": ["録っている最中に, フォロワーが ガクッと飛んだ回は あった？", "(y = 飛んだ回があった / n = なかった)", "", "はい = y     いいえ = n"]}
[277] 18:48:54 key {"title": "見た物で答える  y / n", "key": "n"}
[277] 18:48:54 screen {"title": "見た物で答える  y / n", "lines": ["場所2・3 で, 届きにくい・つかみにくい所は あった？", "(y = あった / n = なかった)", "", "はい = y     いいえ = n"]}
[277] 18:48:58 key {"title": "見た物で答える  y / n", "key": "n"}
[277] 18:48:58 labels {"file": "/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23/episode_labels.json", "fail": []}
[277] 18:48:58 replay_child_start {"episode_index": 0}
[277] 18:48:58 start {"dry": false, "replay_ep": 0}
[277] 18:48:59 screen {"title": "replay の前", "lines": ["フォロワーのまわりを空ける", "次のスペースで 力が入っていないか読む (読むだけ)", "", "準備ができたら スペース"]}
[277] 18:49:05 key {"title": "replay の前", "key": " "}
[277] 18:49:07 read_servos {"follower": [[1, 1970, 0], [2, 868, 0], [3, 3024, 0], [4, 2325, 0], [5, 2098, 0], [6, 2061, 0]], "leader": [[1, 2030, 0], [2, 829, 0], [3, 3111, 0], [4, 2673, 0], [5, 2097, 0], [6, 2003, 0]], "ok": true}
[277] 18:49:07 screen {"title": "replay (1回目・場所2 を再生)", "lines": ["フォロワーのまわりを空ける", "ブロックを 場所2 の点に置く", "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る", "(止めたいとき: q)", "", "準備ができたら スペース"]}
[277] 18:49:13 key {"title": "replay (1回目・場所2 を再生)", "key": " "}
[277] 18:49:13 run_start {"run": "step2_replay_ep0", "argv": ["replay", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos23", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23", "--dataset.episode=0", "--dataset.fps=30"]}
objc[37071]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1022203a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1554003a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[37071]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1022203f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1554003f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 18:49:16 t_replay.py:108 {'dataset': {'episode': 0,
             'fps': 30,
             'repo_id': 'local/so101_redblock_box_teleop_v1_pos23',
             'root': '/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23'},
 'play_sounds': True,
 'robot': {'calibration_dir': None,
           'cameras': {},
           'disable_torque_on_disconnect': True,
           'id': 'ptm_follower',
           'max_relative_target': None,
           'num_read_retries': 2,
           'port': '/dev/tty.usbmodem5CBC4321631',
           'position_d_coefficient': 32,
           'position_i_coefficient': 0,
           'position_p_coefficient': 16,
           'use_degrees': True}}
objc[37071]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1022203a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176e78778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[37071]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1022203f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176e787c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 18:49:16 safe_259.py:115 [A] follower: connect の直後に目標を今の位置にした
INFO 2026-11-23 18:49:16 safe_259.py:125 [A] follower: 力を入れる直前に目標を今の位置にした (全部)
[277] 18:49:17 torque_on {"run": "step2_replay_ep0", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
INFO 2026-11-23 18:49:17 follower.py:128 ptm_follower SOFollower connected.
INFO 2026-11-23 18:49:17 ls/utils.py:151 Replaying episode
INFO 2026-11-23 18:49:38 le_timer.py:617 Cadence summary — whole run · target 30 Hz (33.3 ms budget per tick): 538 ticks, 537 judged
  effective cadence: 29.99 Hz over 17.9 s measured
  ticks over the 33.3 ms work budget: 0/537 (0.0%) — work mean 17.6 ms, worst 26.9 ms
  loop-body steps (share of measured work):
    read_frame  mean   0.15 ms · worst   7.42 ms ·   0.8% of work · 538 calls
    observe     mean   1.12 ms · worst   1.39 ms ·   6.3% of work · 538 calls
    send        mean  16.35 ms · worst  25.47 ms ·  92.6% of work · 538 calls
  pacing headroom: 15.7 ms slept per tick on average (max 21.9 ms) — near zero means the loop is saturated
[277] 18:49:38 lerobot_safe_window {"run": "step2_replay_ep0", "title": "休みの姿勢へ自動で戻す"}
[277] 18:49:38 rest_out_joints {"run": "step2_replay_ep0", "out": {"wrist_flex": 23.56}}
[277] 18:49:38 rest_out_joints {"run": "step2_replay_ep0", "out": {}}
INFO 2026-11-23 18:49:39 follower.py:221 ptm_follower SOFollower disconnected.
[277] 18:49:39 run_end {"name": "step2_replay_ep0", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step2_replay_ep0.json"}
[277] 18:49:39 screen {"title": "見た物で答える  y / n", "lines": ["replay で, ブロックは箱に入った？", "", "はい = y     いいえ = n"]}
[277] 18:49:41 key {"title": "見た物で答える  y / n", "key": "y"}
[277] 18:49:41 screen {"title": "見た物で答える  y / n", "lines": ["フォロワーは 録ったとおりに動いた？", "", "はい = y     いいえ = n"]}
[277] 18:49:43 key {"title": "見た物で答える  y / n", "key": "y"}
[277] 18:49:43 end {"replay_ep": 0}
[277] 18:49:44 replay_child_end {"episode_index": 0, "returncode": 0}
[277] 18:49:44 replay_child_start {"episode_index": 10}
[277] 18:49:44 start {"dry": false, "replay_ep": 10}
[277] 18:49:45 screen {"title": "replay の前", "lines": ["フォロワーのまわりを空ける", "次のスペースで 力が入っていないか読む (読むだけ)", "", "準備ができたら スペース"]}
[277] 18:49:58 key {"title": "replay の前", "key": " "}
[277] 18:50:00 read_servos {"follower": [[1, 1959, 0], [2, 950, 0], [3, 3024, 0], [4, 2211, 0], [5, 2032, 0], [6, 2062, 0]], "leader": [[1, 2030, 0], [2, 829, 0], [3, 3111, 0], [4, 2673, 0], [5, 2097, 0], [6, 2003, 0]], "ok": true}
[277] 18:50:00 screen {"title": "replay (11回目・場所3 を再生)", "lines": ["フォロワーのまわりを空ける", "ブロックを 場所3 の点に置く", "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る", "(止めたいとき: q)", "", "準備ができたら スペース"]}
[277] 18:50:06 key {"title": "replay (11回目・場所3 を再生)", "key": " "}
[277] 18:50:06 run_start {"run": "step2_replay_ep10", "argv": ["replay", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos23", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23", "--dataset.episode=10", "--dataset.fps=30"]}
objc[37184]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024f83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11eb403a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[37184]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024f83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11eb403f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 18:50:08 t_replay.py:108 {'dataset': {'episode': 10,
             'fps': 30,
             'repo_id': 'local/so101_redblock_box_teleop_v1_pos23',
             'root': '/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23'},
 'play_sounds': True,
 'robot': {'calibration_dir': None,
           'cameras': {},
           'disable_torque_on_disconnect': True,
           'id': 'ptm_follower',
           'max_relative_target': None,
           'num_read_retries': 2,
           'port': '/dev/tty.usbmodem5CBC4321631',
           'position_d_coefficient': 32,
           'position_i_coefficient': 0,
           'position_p_coefficient': 16,
           'use_degrees': True}}
objc[37184]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024f83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x153314778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[37184]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024f83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1533147c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 18:50:09 safe_259.py:115 [A] follower: connect の直後に目標を今の位置にした
INFO 2026-11-23 18:50:09 safe_259.py:125 [A] follower: 力を入れる直前に目標を今の位置にした (全部)
[277] 18:50:09 torque_on {"run": "step2_replay_ep10", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
INFO 2026-11-23 18:50:09 follower.py:128 ptm_follower SOFollower connected.
INFO 2026-11-23 18:50:09 ls/utils.py:151 Replaying episode
INFO 2026-11-23 18:50:32 le_timer.py:617 Cadence summary — whole run · target 30 Hz (33.3 ms budget per tick): 581 ticks, 580 judged
  effective cadence: 29.99 Hz over 19.3 s measured
  ticks over the 33.3 ms work budget: 0/580 (0.0%) — work mean 17.8 ms, worst 27.5 ms
  loop-body steps (share of measured work):
    read_frame  mean   0.10 ms · worst   1.25 ms ·   0.6% of work · 581 calls
    observe     mean   1.10 ms · worst   1.79 ms ·   6.2% of work · 581 calls
    send        mean  16.59 ms · worst  27.38 ms ·  93.1% of work · 581 calls
  pacing headroom: 15.5 ms slept per tick on average (max 21.9 ms) — near zero means the loop is saturated
[277] 18:50:32 lerobot_safe_window {"run": "step2_replay_ep10", "title": "休みの姿勢へ自動で戻す"}
[277] 18:50:32 rest_out_joints {"run": "step2_replay_ep10", "out": {"wrist_flex": 31.29}}
[277] 18:50:32 rest_out_joints {"run": "step2_replay_ep10", "out": {}}
INFO 2026-11-23 18:50:33 follower.py:221 ptm_follower SOFollower disconnected.
[277] 18:50:33 run_end {"name": "step2_replay_ep10", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step2_replay_ep10.json"}
[277] 18:50:33 screen {"title": "見た物で答える  y / n", "lines": ["replay で, ブロックは箱に入った？", "", "はい = y     いいえ = n"]}
[277] 18:50:34 key {"title": "見た物で答える  y / n", "key": "n"}
[277] 18:50:34 screen {"title": "見た物で答える  y / n", "lines": ["フォロワーは 録ったとおりに動いた？", "", "はい = y     いいえ = n"]}
[277] 18:50:43 key {"title": "見た物で答える  y / n", "key": "n"}
[277] 18:50:43 end {"replay_ep": 10}
[277] 18:50:44 replay_child_end {"episode_index": 10, "returncode": 0}
[277] 18:50:44 screen {"title": "おわり", "lines": ["手順はすべて終わった", "フォロワーの電源を切ってよい", "", "準備ができたら スペース"]}
[277] 18:50:50 key {"title": "おわり", "key": " "}
[277] 18:50:50 end {}
```

#### events_277.jsonl

```json
{"t": 1795426262.421611, "clock": "18:31:02", "kind": "start", "dry": false, "replay_ep": null}
{"t": 1795426270.6591191, "clock": "18:31:10", "kind": "read_servos", "follower": [[1, 1959, 0], [2, 950, 0], [3, 3024, 0], [4, 2211, 0], [5, 2030, 0], [6, 2061, 0]], "leader": [[1, 2118, 0], [2, 823, 0], [3, 3110, 0], [4, 2679, 0], [5, 2070, 0], [6, 2024, 0]], "ok": true}
{"t": 1795426270.67194, "clock": "18:31:10", "kind": "screen", "title": "0. 始める前", "lines": ["ブロックを 場所2 (左の奥) の点に置く", "リーダーとフォロワーの姿勢を近づける", "フォロワーのまわりを空ける・電源をすぐ切れるようにする", "次のスペースで つなぐ (力が入る. まだ録らない)", "(止めたいとき: q キー = Ctrl-C)", "", "準備ができたら スペース"]}
{"t": 1795426386.383221, "clock": "18:33:06", "kind": "key", "title": "0. 始める前", "key": " "}
{"t": 1795426386.38521, "clock": "18:33:06", "kind": "run_start", "run": "step1_record", "argv": ["record", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos23", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23", "--dataset.single_task=Put the red block into the white box", "--dataset.fps=30", "--dataset.num_episodes=20", "--dataset.episode_time_s=25", "--dataset.reset_time_s=3600", "--dataset.no_stamp=true"]}
{"t": 1795426395.429228, "clock": "18:33:15", "kind": "torque_on", "run": "step1_record", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
{"t": 1795426395.431586, "clock": "18:33:15", "kind": "keyboard_listener", "note": "pynput を使わない (手順のウィンドウで →・← を受ける)"}
{"t": 1795426395.493278, "clock": "18:33:15", "kind": "phase", "phase": "start", "ep": 1}
{"t": 1795426395.5183182, "clock": "18:33:15", "kind": "screen", "title": "1回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426412.4418821, "clock": "18:33:32", "kind": "key", "phase": "start", "ep": 1, "key": "space", "place": 2}
{"t": 1795426412.466055, "clock": "18:33:32", "kind": "phase_end", "phase": "start", "ep": 1, "dur_s": 16.97}
{"t": 1795426412.4664588, "clock": "18:33:32", "kind": "episode_start", "ep": 1, "try_": 1}
{"t": 1795426425.9113002, "clock": "18:33:45", "kind": "key", "phase": "episode", "ep": 1, "key": "left"}
{"t": 1795426425.93771, "clock": "18:33:45", "kind": "episode_end", "ep": 1, "place": 2, "try": 1, "dur_s": 13.47, "buffer_frames": 404, "end": "left", "label": "ep1_try1"}
{"t": 1795426425.9820669, "clock": "18:33:45", "kind": "phase", "phase": "reset", "ep": 1}
{"t": 1795426426.001804, "clock": "18:33:46", "kind": "screen", "title": "1回目 を録り直す", "lines": ["ブロックを 場所2 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 1回目へ"]}
{"t": 1795426434.65998, "clock": "18:33:54", "kind": "key", "phase": "reset", "ep": 1, "key": "space", "rerecord": true}
{"t": 1795426434.685271, "clock": "18:33:54", "kind": "phase_end", "phase": "reset", "ep": 1, "dur_s": 8.7}
{"t": 1795426434.712309, "clock": "18:33:54", "kind": "discarded", "ep": 1}
{"t": 1795426434.789564, "clock": "18:33:54", "kind": "phase", "phase": "start", "ep": 1}
{"t": 1795426434.818233, "clock": "18:33:54", "kind": "screen", "title": "1回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426436.698493, "clock": "18:33:56", "kind": "key", "phase": "start", "ep": 1, "key": "space", "place": 2}
{"t": 1795426436.72435, "clock": "18:33:56", "kind": "phase_end", "phase": "start", "ep": 1, "dur_s": 1.93}
{"t": 1795426436.725268, "clock": "18:33:56", "kind": "episode_start", "ep": 1, "try_": 2}
{"t": 1795426454.633572, "clock": "18:34:14", "kind": "key", "phase": "episode", "ep": 1, "key": "right"}
{"t": 1795426454.664542, "clock": "18:34:14", "kind": "episode_end", "ep": 1, "place": 2, "try": 2, "dur_s": 17.94, "buffer_frames": 538, "end": "right", "label": "ep1_try2"}
{"t": 1795426454.706354, "clock": "18:34:14", "kind": "phase", "phase": "reset", "ep": 1}
{"t": 1795426454.73171, "clock": "18:34:14", "kind": "screen", "title": "1回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426465.852129, "clock": "18:34:25", "kind": "key", "phase": "reset", "ep": 1, "key": "space", "rerecord": false}
{"t": 1795426465.8769789, "clock": "18:34:25", "kind": "phase_end", "phase": "reset", "ep": 1, "dur_s": 11.17}
{"t": 1795426474.361748, "clock": "18:34:34", "kind": "saved", "ep": 1, "dur_s": 8.46, "num_episodes": 1}
{"t": 1795426474.38062, "clock": "18:34:34", "kind": "phase", "phase": "start", "ep": 2}
{"t": 1795426474.403172, "clock": "18:34:34", "kind": "screen", "title": "2回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426510.599882, "clock": "18:35:10", "kind": "key", "phase": "start", "ep": 2, "key": "space", "place": 2}
{"t": 1795426510.625663, "clock": "18:35:10", "kind": "phase_end", "phase": "start", "ep": 2, "dur_s": 36.24}
{"t": 1795426510.625843, "clock": "18:35:10", "kind": "episode_start", "ep": 2, "try_": 1}
{"t": 1795426533.7021282, "clock": "18:35:33", "kind": "key", "phase": "episode", "ep": 2, "key": "right"}
{"t": 1795426533.733147, "clock": "18:35:33", "kind": "episode_end", "ep": 2, "place": 2, "try": 1, "dur_s": 23.11, "buffer_frames": 693, "end": "right", "label": "ep2_try1"}
{"t": 1795426533.7683089, "clock": "18:35:33", "kind": "phase", "phase": "reset", "ep": 2}
{"t": 1795426533.792567, "clock": "18:35:33", "kind": "screen", "title": "2回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426538.8441339, "clock": "18:35:38", "kind": "key", "phase": "reset", "ep": 2, "key": "space", "rerecord": false}
{"t": 1795426538.870315, "clock": "18:35:38", "kind": "phase_end", "phase": "reset", "ep": 2, "dur_s": 5.1}
{"t": 1795426548.66446, "clock": "18:35:48", "kind": "saved", "ep": 2, "dur_s": 9.77, "num_episodes": 2}
{"t": 1795426548.6829739, "clock": "18:35:48", "kind": "phase", "phase": "start", "ep": 3}
{"t": 1795426548.705664, "clock": "18:35:48", "kind": "screen", "title": "3回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426552.692821, "clock": "18:35:52", "kind": "key", "phase": "start", "ep": 3, "key": "space", "place": 2}
{"t": 1795426552.718035, "clock": "18:35:52", "kind": "phase_end", "phase": "start", "ep": 3, "dur_s": 4.03}
{"t": 1795426552.718414, "clock": "18:35:52", "kind": "episode_start", "ep": 3, "try_": 1}
{"t": 1795426573.627839, "clock": "18:36:13", "kind": "key", "phase": "episode", "ep": 3, "key": "right"}
{"t": 1795426573.658776, "clock": "18:36:13", "kind": "episode_end", "ep": 3, "place": 2, "try": 1, "dur_s": 20.94, "buffer_frames": 628, "end": "right", "label": "ep3_try1"}
{"t": 1795426573.6805692, "clock": "18:36:13", "kind": "phase", "phase": "reset", "ep": 3}
{"t": 1795426573.700992, "clock": "18:36:13", "kind": "screen", "title": "3回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426579.791553, "clock": "18:36:19", "kind": "key", "phase": "reset", "ep": 3, "key": "space", "rerecord": false}
{"t": 1795426579.816254, "clock": "18:36:19", "kind": "phase_end", "phase": "reset", "ep": 3, "dur_s": 6.14}
{"t": 1795426588.3884218, "clock": "18:36:28", "kind": "saved", "ep": 3, "dur_s": 8.55, "num_episodes": 3}
{"t": 1795426588.4087691, "clock": "18:36:28", "kind": "phase", "phase": "start", "ep": 4}
{"t": 1795426588.430822, "clock": "18:36:28", "kind": "screen", "title": "4回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426591.418319, "clock": "18:36:31", "kind": "key", "phase": "start", "ep": 4, "key": "space", "place": 2}
{"t": 1795426591.443577, "clock": "18:36:31", "kind": "phase_end", "phase": "start", "ep": 4, "dur_s": 3.03}
{"t": 1795426591.443846, "clock": "18:36:31", "kind": "episode_start", "ep": 4, "try_": 1}
{"t": 1795426609.0854578, "clock": "18:36:49", "kind": "key", "phase": "episode", "ep": 4, "key": "left"}
{"t": 1795426609.116396, "clock": "18:36:49", "kind": "episode_end", "ep": 4, "place": 2, "try": 1, "dur_s": 17.67, "buffer_frames": 530, "end": "left", "label": "ep4_try1"}
{"t": 1795426609.137244, "clock": "18:36:49", "kind": "phase", "phase": "reset", "ep": 4}
{"t": 1795426609.161231, "clock": "18:36:49", "kind": "screen", "title": "4回目 を録り直す", "lines": ["ブロックを 場所2 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 4回目へ"]}
{"t": 1795426620.717088, "clock": "18:37:00", "kind": "key", "phase": "reset", "ep": 4, "key": "space", "rerecord": true}
{"t": 1795426620.741387, "clock": "18:37:00", "kind": "phase_end", "phase": "reset", "ep": 4, "dur_s": 11.6}
{"t": 1795426620.767158, "clock": "18:37:00", "kind": "discarded", "ep": 4}
{"t": 1795426620.85554, "clock": "18:37:00", "kind": "phase", "phase": "start", "ep": 4}
{"t": 1795426620.8848681, "clock": "18:37:00", "kind": "screen", "title": "4回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426622.4315479, "clock": "18:37:02", "kind": "key", "phase": "start", "ep": 4, "key": "space", "place": 2}
{"t": 1795426622.456578, "clock": "18:37:02", "kind": "phase_end", "phase": "start", "ep": 4, "dur_s": 1.6}
{"t": 1795426622.4568908, "clock": "18:37:02", "kind": "episode_start", "ep": 4, "try_": 2}
{"t": 1795426640.069133, "clock": "18:37:20", "kind": "key", "phase": "episode", "ep": 4, "key": "right"}
{"t": 1795426640.095883, "clock": "18:37:20", "kind": "episode_end", "ep": 4, "place": 2, "try": 2, "dur_s": 17.64, "buffer_frames": 529, "end": "right", "label": "ep4_try2"}
{"t": 1795426640.119741, "clock": "18:37:20", "kind": "phase", "phase": "reset", "ep": 4}
{"t": 1795426640.139221, "clock": "18:37:20", "kind": "screen", "title": "4回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426644.9641879, "clock": "18:37:24", "kind": "key", "phase": "reset", "ep": 4, "key": "space", "rerecord": false}
{"t": 1795426644.9884439, "clock": "18:37:24", "kind": "phase_end", "phase": "reset", "ep": 4, "dur_s": 4.87}
{"t": 1795426653.330388, "clock": "18:37:33", "kind": "saved", "ep": 4, "dur_s": 8.32, "num_episodes": 4}
{"t": 1795426653.349683, "clock": "18:37:33", "kind": "phase", "phase": "start", "ep": 5}
{"t": 1795426653.371412, "clock": "18:37:33", "kind": "screen", "title": "5回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426655.425602, "clock": "18:37:35", "kind": "key", "phase": "start", "ep": 5, "key": "space", "place": 2}
{"t": 1795426655.450864, "clock": "18:37:35", "kind": "phase_end", "phase": "start", "ep": 5, "dur_s": 2.1}
{"t": 1795426655.451114, "clock": "18:37:35", "kind": "episode_start", "ep": 5, "try_": 1}
{"t": 1795426670.725159, "clock": "18:37:50", "kind": "key", "phase": "episode", "ep": 5, "key": "right"}
{"t": 1795426670.756144, "clock": "18:37:50", "kind": "episode_end", "ep": 5, "place": 2, "try": 1, "dur_s": 15.3, "buffer_frames": 459, "end": "right", "label": "ep5_try1"}
{"t": 1795426670.776468, "clock": "18:37:50", "kind": "phase", "phase": "reset", "ep": 5}
{"t": 1795426670.8018, "clock": "18:37:50", "kind": "screen", "title": "5回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426683.421191, "clock": "18:38:03", "kind": "key", "phase": "reset", "ep": 5, "key": "space", "rerecord": false}
{"t": 1795426683.4476538, "clock": "18:38:03", "kind": "phase_end", "phase": "reset", "ep": 5, "dur_s": 12.67}
{"t": 1795426691.000391, "clock": "18:38:11", "kind": "saved", "ep": 5, "dur_s": 7.53, "num_episodes": 5}
{"t": 1795426691.019562, "clock": "18:38:11", "kind": "phase", "phase": "start", "ep": 6}
{"t": 1795426691.042994, "clock": "18:38:11", "kind": "screen", "title": "6回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426695.296509, "clock": "18:38:15", "kind": "key", "phase": "start", "ep": 6, "key": "space", "place": 2}
{"t": 1795426695.3216221, "clock": "18:38:15", "kind": "phase_end", "phase": "start", "ep": 6, "dur_s": 4.3}
{"t": 1795426695.321836, "clock": "18:38:15", "kind": "episode_start", "ep": 6, "try_": 1}
{"t": 1795426712.996463, "clock": "18:38:32", "kind": "key", "phase": "episode", "ep": 6, "key": "right"}
{"t": 1795426713.0274591, "clock": "18:38:33", "kind": "episode_end", "ep": 6, "place": 2, "try": 1, "dur_s": 17.71, "buffer_frames": 531, "end": "right", "label": "ep6_try1"}
{"t": 1795426713.047078, "clock": "18:38:33", "kind": "phase", "phase": "reset", "ep": 6}
{"t": 1795426713.067039, "clock": "18:38:33", "kind": "screen", "title": "6回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426714.588843, "clock": "18:38:34", "kind": "key", "phase": "reset", "ep": 6, "key": "space", "rerecord": false}
{"t": 1795426714.6147468, "clock": "18:38:34", "kind": "phase_end", "phase": "reset", "ep": 6, "dur_s": 1.57}
{"t": 1795426722.4362419, "clock": "18:38:42", "kind": "saved", "ep": 6, "dur_s": 7.8, "num_episodes": 6}
{"t": 1795426722.453639, "clock": "18:38:42", "kind": "phase", "phase": "start", "ep": 7}
{"t": 1795426722.4750679, "clock": "18:38:42", "kind": "screen", "title": "7回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426725.095339, "clock": "18:38:45", "kind": "key", "phase": "start", "ep": 7, "key": "space", "place": 2}
{"t": 1795426725.12156, "clock": "18:38:45", "kind": "phase_end", "phase": "start", "ep": 7, "dur_s": 2.67}
{"t": 1795426725.121769, "clock": "18:38:45", "kind": "episode_start", "ep": 7, "try_": 1}
{"t": 1795426743.063201, "clock": "18:39:03", "kind": "key", "phase": "episode", "ep": 7, "key": "right"}
{"t": 1795426743.094215, "clock": "18:39:03", "kind": "episode_end", "ep": 7, "place": 2, "try": 1, "dur_s": 17.97, "buffer_frames": 539, "end": "right", "label": "ep7_try1"}
{"t": 1795426743.1139898, "clock": "18:39:03", "kind": "phase", "phase": "reset", "ep": 7}
{"t": 1795426743.1339562, "clock": "18:39:03", "kind": "screen", "title": "7回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426749.4899762, "clock": "18:39:09", "kind": "key", "phase": "reset", "ep": 7, "key": "space", "rerecord": false}
{"t": 1795426749.5163321, "clock": "18:39:09", "kind": "phase_end", "phase": "reset", "ep": 7, "dur_s": 6.4}
{"t": 1795426757.448472, "clock": "18:39:17", "kind": "saved", "ep": 7, "dur_s": 7.91, "num_episodes": 7}
{"t": 1795426757.467608, "clock": "18:39:17", "kind": "phase", "phase": "start", "ep": 8}
{"t": 1795426757.4905322, "clock": "18:39:17", "kind": "screen", "title": "8回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426759.209485, "clock": "18:39:19", "kind": "key", "phase": "start", "ep": 8, "key": "space", "place": 2}
{"t": 1795426759.23523, "clock": "18:39:19", "kind": "phase_end", "phase": "start", "ep": 8, "dur_s": 1.77}
{"t": 1795426759.235476, "clock": "18:39:19", "kind": "episode_start", "ep": 8, "try_": 1}
{"t": 1795426773.2758121, "clock": "18:39:33", "kind": "key", "phase": "episode", "ep": 8, "key": "right"}
{"t": 1795426773.306775, "clock": "18:39:33", "kind": "episode_end", "ep": 8, "place": 2, "try": 1, "dur_s": 14.07, "buffer_frames": 422, "end": "right", "label": "ep8_try1"}
{"t": 1795426773.328636, "clock": "18:39:33", "kind": "phase", "phase": "reset", "ep": 8}
{"t": 1795426773.3533309, "clock": "18:39:33", "kind": "screen", "title": "8回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426778.939151, "clock": "18:39:38", "kind": "key", "phase": "reset", "ep": 8, "key": "space", "rerecord": false}
{"t": 1795426778.964159, "clock": "18:39:38", "kind": "phase_end", "phase": "reset", "ep": 8, "dur_s": 5.64}
{"t": 1795426786.0017521, "clock": "18:39:46", "kind": "saved", "ep": 8, "dur_s": 7.02, "num_episodes": 8}
{"t": 1795426786.021558, "clock": "18:39:46", "kind": "phase", "phase": "start", "ep": 9}
{"t": 1795426786.043925, "clock": "18:39:46", "kind": "screen", "title": "9回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426787.896804, "clock": "18:39:47", "kind": "key", "phase": "start", "ep": 9, "key": "space", "place": 2}
{"t": 1795426787.9227579, "clock": "18:39:47", "kind": "phase_end", "phase": "start", "ep": 9, "dur_s": 1.9}
{"t": 1795426787.923008, "clock": "18:39:47", "kind": "episode_start", "ep": 9, "try_": 1}
{"t": 1795426801.429871, "clock": "18:40:01", "kind": "key", "phase": "episode", "ep": 9, "key": "right"}
{"t": 1795426801.460823, "clock": "18:40:01", "kind": "episode_end", "ep": 9, "place": 2, "try": 1, "dur_s": 13.54, "buffer_frames": 406, "end": "right", "label": "ep9_try1"}
{"t": 1795426801.4822872, "clock": "18:40:01", "kind": "phase", "phase": "reset", "ep": 9}
{"t": 1795426801.502537, "clock": "18:40:01", "kind": "screen", "title": "9回目 終わり", "lines": ["ブロックを 場所2 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426806.959536, "clock": "18:40:06", "kind": "key", "phase": "reset", "ep": 9, "key": "space", "rerecord": false}
{"t": 1795426806.984459, "clock": "18:40:06", "kind": "phase_end", "phase": "reset", "ep": 9, "dur_s": 5.5}
{"t": 1795426813.730073, "clock": "18:40:13", "kind": "saved", "ep": 9, "dur_s": 6.72, "num_episodes": 9}
{"t": 1795426813.750858, "clock": "18:40:13", "kind": "phase", "phase": "start", "ep": 10}
{"t": 1795426813.773505, "clock": "18:40:13", "kind": "screen", "title": "10回目／20　場所2　スペースで始める", "lines": ["ブロックは 場所2 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426815.927262, "clock": "18:40:15", "kind": "key", "phase": "start", "ep": 10, "key": "space", "place": 2}
{"t": 1795426815.952079, "clock": "18:40:15", "kind": "phase_end", "phase": "start", "ep": 10, "dur_s": 2.2}
{"t": 1795426815.952329, "clock": "18:40:15", "kind": "episode_start", "ep": 10, "try_": 1}
{"t": 1795426835.160952, "clock": "18:40:35", "kind": "key", "phase": "episode", "ep": 10, "key": "right"}
{"t": 1795426835.191951, "clock": "18:40:35", "kind": "episode_end", "ep": 10, "place": 2, "try": 1, "dur_s": 19.24, "buffer_frames": 577, "end": "right", "label": "ep10_try1"}
{"t": 1795426835.212898, "clock": "18:40:35", "kind": "phase", "phase": "reset", "ep": 10}
{"t": 1795426835.239307, "clock": "18:40:35", "kind": "screen", "title": "10回目 終わり (場所2 はこれで終わり)", "lines": ["次は 場所3", "腕を休みの姿勢へ", "スペースで次へ (次の画面で 場所の置き直し)", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426839.35758, "clock": "18:40:39", "kind": "key", "phase": "reset", "ep": 10, "key": "space", "rerecord": false}
{"t": 1795426839.381374, "clock": "18:40:39", "kind": "phase_end", "phase": "reset", "ep": 10, "dur_s": 4.17}
{"t": 1795426847.378488, "clock": "18:40:47", "kind": "saved", "ep": 10, "dur_s": 7.97, "num_episodes": 10}
{"t": 1795426847.397651, "clock": "18:40:47", "kind": "phase", "phase": "start", "ep": 11}
{"t": 1795426856.5190809, "clock": "18:40:56", "kind": "key", "phase": "place3", "ep": 11, "key": "space"}
{"t": 1795426856.564981, "clock": "18:40:56", "kind": "screen", "title": "11回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426858.283178, "clock": "18:40:58", "kind": "key", "phase": "start", "ep": 11, "key": "space", "place": 3}
{"t": 1795426858.307652, "clock": "18:40:58", "kind": "phase_end", "phase": "start", "ep": 11, "dur_s": 10.91}
{"t": 1795426858.3079062, "clock": "18:40:58", "kind": "episode_start", "ep": 11, "try_": 1}
{"t": 1795426874.5158699, "clock": "18:41:14", "kind": "key", "phase": "episode", "ep": 11, "key": "left"}
{"t": 1795426874.5467432, "clock": "18:41:14", "kind": "episode_end", "ep": 11, "place": 3, "try": 1, "dur_s": 16.24, "buffer_frames": 487, "end": "left", "label": "ep11_try1"}
{"t": 1795426874.5690932, "clock": "18:41:14", "kind": "phase", "phase": "reset", "ep": 11}
{"t": 1795426874.595167, "clock": "18:41:14", "kind": "screen", "title": "11回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 11回目へ"]}
{"t": 1795426881.44645, "clock": "18:41:21", "kind": "key", "phase": "reset", "ep": 11, "key": "space", "rerecord": true}
{"t": 1795426881.4717262, "clock": "18:41:21", "kind": "phase_end", "phase": "reset", "ep": 11, "dur_s": 6.9}
{"t": 1795426881.493323, "clock": "18:41:21", "kind": "discarded", "ep": 11}
{"t": 1795426881.5785751, "clock": "18:41:21", "kind": "phase", "phase": "start", "ep": 11}
{"t": 1795426881.607015, "clock": "18:41:21", "kind": "screen", "title": "11回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426883.3870342, "clock": "18:41:23", "kind": "key", "phase": "start", "ep": 11, "key": "space", "place": 3}
{"t": 1795426883.413383, "clock": "18:41:23", "kind": "phase_end", "phase": "start", "ep": 11, "dur_s": 1.83}
{"t": 1795426883.4136589, "clock": "18:41:23", "kind": "episode_start", "ep": 11, "try_": 2}
{"t": 1795426908.421929, "clock": "18:41:48", "kind": "episode_end", "ep": 11, "place": 3, "try": 2, "dur_s": 25.01, "buffer_frames": 750, "end": "time", "label": "ep11_try2"}
{"t": 1795426908.441824, "clock": "18:41:48", "kind": "phase", "phase": "reset", "ep": 11}
{"t": 1795426908.462058, "clock": "18:41:48", "kind": "screen", "title": "11回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426913.985394, "clock": "18:41:53", "kind": "key", "phase": "reset", "ep": 11, "key": "left"}
{"t": 1795426913.9903512, "clock": "18:41:53", "kind": "screen", "title": "11回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 11回目へ"]}
{"t": 1795426921.3881521, "clock": "18:42:01", "kind": "key", "phase": "reset", "ep": 11, "key": "space", "rerecord": true}
{"t": 1795426921.413033, "clock": "18:42:01", "kind": "phase_end", "phase": "reset", "ep": 11, "dur_s": 12.97}
{"t": 1795426921.4385421, "clock": "18:42:01", "kind": "discarded", "ep": 11}
{"t": 1795426921.555787, "clock": "18:42:01", "kind": "phase", "phase": "start", "ep": 11}
{"t": 1795426921.584227, "clock": "18:42:01", "kind": "screen", "title": "11回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426923.430934, "clock": "18:42:03", "kind": "key", "phase": "start", "ep": 11, "key": "space", "place": 3}
{"t": 1795426923.456894, "clock": "18:42:03", "kind": "phase_end", "phase": "start", "ep": 11, "dur_s": 1.9}
{"t": 1795426923.457182, "clock": "18:42:03", "kind": "episode_start", "ep": 11, "try_": 3}
{"t": 1795426942.7992802, "clock": "18:42:22", "kind": "key", "phase": "episode", "ep": 11, "key": "right"}
{"t": 1795426942.830244, "clock": "18:42:22", "kind": "episode_end", "ep": 11, "place": 3, "try": 3, "dur_s": 19.37, "buffer_frames": 581, "end": "right", "label": "ep11_try3"}
{"t": 1795426942.856874, "clock": "18:42:22", "kind": "phase", "phase": "reset", "ep": 11}
{"t": 1795426942.877227, "clock": "18:42:22", "kind": "screen", "title": "11回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426952.2022998, "clock": "18:42:32", "kind": "key", "phase": "reset", "ep": 11, "key": "space", "rerecord": false}
{"t": 1795426952.2271202, "clock": "18:42:32", "kind": "phase_end", "phase": "reset", "ep": 11, "dur_s": 9.37}
{"t": 1795426960.867195, "clock": "18:42:40", "kind": "saved", "ep": 11, "dur_s": 8.62, "num_episodes": 11}
{"t": 1795426960.885969, "clock": "18:42:40", "kind": "phase", "phase": "start", "ep": 12}
{"t": 1795426960.908422, "clock": "18:42:40", "kind": "screen", "title": "12回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795426962.661539, "clock": "18:42:42", "kind": "key", "phase": "start", "ep": 12, "key": "space", "place": 3}
{"t": 1795426962.687552, "clock": "18:42:42", "kind": "phase_end", "phase": "start", "ep": 12, "dur_s": 1.8}
{"t": 1795426962.6878028, "clock": "18:42:42", "kind": "episode_start", "ep": 12, "try_": 1}
{"t": 1795426985.969216, "clock": "18:43:05", "kind": "key", "phase": "episode", "ep": 12, "key": "right"}
{"t": 1795426985.995548, "clock": "18:43:05", "kind": "episode_end", "ep": 12, "place": 3, "try": 1, "dur_s": 23.31, "buffer_frames": 699, "end": "right", "label": "ep12_try1"}
{"t": 1795426986.0197241, "clock": "18:43:06", "kind": "phase", "phase": "reset", "ep": 12}
{"t": 1795426986.039553, "clock": "18:43:06", "kind": "screen", "title": "12回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795426988.662752, "clock": "18:43:08", "kind": "key", "phase": "reset", "ep": 12, "key": "space", "rerecord": false}
{"t": 1795426988.687684, "clock": "18:43:08", "kind": "phase_end", "phase": "reset", "ep": 12, "dur_s": 2.67}
{"t": 1795426998.376441, "clock": "18:43:18", "kind": "saved", "ep": 12, "dur_s": 9.67, "num_episodes": 12}
{"t": 1795426998.394463, "clock": "18:43:18", "kind": "phase", "phase": "start", "ep": 13}
{"t": 1795426998.4171011, "clock": "18:43:18", "kind": "screen", "title": "13回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427000.870867, "clock": "18:43:20", "kind": "key", "phase": "start", "ep": 13, "key": "space", "place": 3}
{"t": 1795427000.8956978, "clock": "18:43:20", "kind": "phase_end", "phase": "start", "ep": 13, "dur_s": 2.5}
{"t": 1795427000.895999, "clock": "18:43:20", "kind": "episode_start", "ep": 13, "try_": 1}
{"t": 1795427012.568893, "clock": "18:43:32", "kind": "key", "phase": "episode", "ep": 13, "key": "left"}
{"t": 1795427012.599851, "clock": "18:43:32", "kind": "episode_end", "ep": 13, "place": 3, "try": 1, "dur_s": 11.7, "buffer_frames": 351, "end": "left", "label": "ep13_try1"}
{"t": 1795427012.619601, "clock": "18:43:32", "kind": "phase", "phase": "reset", "ep": 13}
{"t": 1795427012.6444612, "clock": "18:43:32", "kind": "screen", "title": "13回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 13回目へ"]}
{"t": 1795427019.698289, "clock": "18:43:39", "kind": "key", "phase": "reset", "ep": 13, "key": "space", "rerecord": true}
{"t": 1795427019.7225442, "clock": "18:43:39", "kind": "phase_end", "phase": "reset", "ep": 13, "dur_s": 7.1}
{"t": 1795427019.747242, "clock": "18:43:39", "kind": "discarded", "ep": 13}
{"t": 1795427019.816261, "clock": "18:43:39", "kind": "phase", "phase": "start", "ep": 13}
{"t": 1795427019.844712, "clock": "18:43:39", "kind": "screen", "title": "13回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427021.3582919, "clock": "18:43:41", "kind": "key", "phase": "start", "ep": 13, "key": "space", "place": 3}
{"t": 1795427021.38395, "clock": "18:43:41", "kind": "phase_end", "phase": "start", "ep": 13, "dur_s": 1.57}
{"t": 1795427021.384236, "clock": "18:43:41", "kind": "episode_start", "ep": 13, "try_": 2}
{"t": 1795427042.032613, "clock": "18:44:02", "kind": "key", "phase": "episode", "ep": 13, "key": "right"}
{"t": 1795427042.058584, "clock": "18:44:02", "kind": "episode_end", "ep": 13, "place": 3, "try": 2, "dur_s": 20.67, "buffer_frames": 620, "end": "right", "label": "ep13_try2"}
{"t": 1795427042.088465, "clock": "18:44:02", "kind": "phase", "phase": "reset", "ep": 13}
{"t": 1795427042.108953, "clock": "18:44:02", "kind": "screen", "title": "13回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795427047.099066, "clock": "18:44:07", "kind": "key", "phase": "reset", "ep": 13, "key": "space", "rerecord": false}
{"t": 1795427047.124214, "clock": "18:44:07", "kind": "phase_end", "phase": "reset", "ep": 13, "dur_s": 5.04}
{"t": 1795427056.524312, "clock": "18:44:16", "kind": "saved", "ep": 13, "dur_s": 9.38, "num_episodes": 13}
{"t": 1795427056.545246, "clock": "18:44:16", "kind": "phase", "phase": "start", "ep": 14}
{"t": 1795427056.567389, "clock": "18:44:16", "kind": "screen", "title": "14回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427058.9213, "clock": "18:44:18", "kind": "key", "phase": "start", "ep": 14, "key": "space", "place": 3}
{"t": 1795427058.9465868, "clock": "18:44:18", "kind": "phase_end", "phase": "start", "ep": 14, "dur_s": 2.4}
{"t": 1795427058.946879, "clock": "18:44:18", "kind": "episode_start", "ep": 14, "try_": 1}
{"t": 1795427083.8956249, "clock": "18:44:43", "kind": "key", "phase": "episode", "ep": 14, "key": "right"}
{"t": 1795427083.9218729, "clock": "18:44:43", "kind": "episode_end", "ep": 14, "place": 3, "try": 1, "dur_s": 24.97, "buffer_frames": 749, "end": "time", "label": "ep14_try1"}
{"t": 1795427083.943719, "clock": "18:44:43", "kind": "phase", "phase": "reset", "ep": 14}
{"t": 1795427083.964108, "clock": "18:44:43", "kind": "screen", "title": "14回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795427086.053393, "clock": "18:44:46", "kind": "key", "phase": "reset", "ep": 14, "key": "space", "rerecord": false}
{"t": 1795427086.078329, "clock": "18:44:46", "kind": "phase_end", "phase": "reset", "ep": 14, "dur_s": 2.13}
{"t": 1795427095.776445, "clock": "18:44:55", "kind": "saved", "ep": 14, "dur_s": 9.68, "num_episodes": 14}
{"t": 1795427095.798093, "clock": "18:44:55", "kind": "phase", "phase": "start", "ep": 15}
{"t": 1795427095.820201, "clock": "18:44:55", "kind": "screen", "title": "15回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427098.40842, "clock": "18:44:58", "kind": "key", "phase": "start", "ep": 15, "key": "space", "place": 3}
{"t": 1795427098.433126, "clock": "18:44:58", "kind": "phase_end", "phase": "start", "ep": 15, "dur_s": 2.63}
{"t": 1795427098.433399, "clock": "18:44:58", "kind": "episode_start", "ep": 15, "try_": 1}
{"t": 1795427115.1457868, "clock": "18:45:15", "kind": "key", "phase": "episode", "ep": 15, "key": "right"}
{"t": 1795427115.1722481, "clock": "18:45:15", "kind": "episode_end", "ep": 15, "place": 3, "try": 1, "dur_s": 16.74, "buffer_frames": 502, "end": "right", "label": "ep15_try1"}
{"t": 1795427115.19583, "clock": "18:45:15", "kind": "phase", "phase": "reset", "ep": 15}
{"t": 1795427115.215613, "clock": "18:45:15", "kind": "screen", "title": "15回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795427116.503807, "clock": "18:45:16", "kind": "key", "phase": "reset", "ep": 15, "key": "space", "rerecord": false}
{"t": 1795427116.530109, "clock": "18:45:16", "kind": "phase_end", "phase": "reset", "ep": 15, "dur_s": 1.33}
{"t": 1795427124.303742, "clock": "18:45:24", "kind": "saved", "ep": 15, "dur_s": 7.75, "num_episodes": 15}
{"t": 1795427124.322953, "clock": "18:45:24", "kind": "phase", "phase": "start", "ep": 16}
{"t": 1795427124.34528, "clock": "18:45:24", "kind": "screen", "title": "16回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427126.4656482, "clock": "18:45:26", "kind": "key", "phase": "start", "ep": 16, "key": "space", "place": 3}
{"t": 1795427126.490814, "clock": "18:45:26", "kind": "phase_end", "phase": "start", "ep": 16, "dur_s": 2.17}
{"t": 1795427126.4910889, "clock": "18:45:26", "kind": "episode_start", "ep": 16, "try_": 1}
{"t": 1795427140.198014, "clock": "18:45:40", "kind": "key", "phase": "episode", "ep": 16, "key": "right"}
{"t": 1795427140.229036, "clock": "18:45:40", "kind": "episode_end", "ep": 16, "place": 3, "try": 1, "dur_s": 13.74, "buffer_frames": 412, "end": "right", "label": "ep16_try1"}
{"t": 1795427140.251741, "clock": "18:45:40", "kind": "phase", "phase": "reset", "ep": 16}
{"t": 1795427140.271683, "clock": "18:45:40", "kind": "screen", "title": "16回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795427145.296012, "clock": "18:45:45", "kind": "key", "phase": "reset", "ep": 16, "key": "space", "rerecord": false}
{"t": 1795427145.320873, "clock": "18:45:45", "kind": "phase_end", "phase": "reset", "ep": 16, "dur_s": 5.07}
{"t": 1795427152.340511, "clock": "18:45:52", "kind": "saved", "ep": 16, "dur_s": 7.0, "num_episodes": 16}
{"t": 1795427152.358697, "clock": "18:45:52", "kind": "phase", "phase": "start", "ep": 17}
{"t": 1795427152.3800309, "clock": "18:45:52", "kind": "screen", "title": "17回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427154.8353531, "clock": "18:45:54", "kind": "key", "phase": "start", "ep": 17, "key": "space", "place": 3}
{"t": 1795427154.860013, "clock": "18:45:54", "kind": "phase_end", "phase": "start", "ep": 17, "dur_s": 2.5}
{"t": 1795427154.860301, "clock": "18:45:54", "kind": "episode_start", "ep": 17, "try_": 1}
{"t": 1795427171.138797, "clock": "18:46:11", "kind": "key", "phase": "episode", "ep": 17, "key": "right"}
{"t": 1795427171.165644, "clock": "18:46:11", "kind": "episode_end", "ep": 17, "place": 3, "try": 1, "dur_s": 16.31, "buffer_frames": 489, "end": "right", "label": "ep17_try1"}
{"t": 1795427171.1854138, "clock": "18:46:11", "kind": "phase", "phase": "reset", "ep": 17}
{"t": 1795427171.2051451, "clock": "18:46:11", "kind": "screen", "title": "17回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795427178.262152, "clock": "18:46:18", "kind": "key", "phase": "reset", "ep": 17, "key": "space", "rerecord": false}
{"t": 1795427178.2881439, "clock": "18:46:18", "kind": "phase_end", "phase": "reset", "ep": 17, "dur_s": 7.1}
{"t": 1795427185.9450839, "clock": "18:46:25", "kind": "saved", "ep": 17, "dur_s": 7.64, "num_episodes": 17}
{"t": 1795427185.965861, "clock": "18:46:25", "kind": "phase", "phase": "start", "ep": 18}
{"t": 1795427185.987873, "clock": "18:46:25", "kind": "screen", "title": "18回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427188.041661, "clock": "18:46:28", "kind": "key", "phase": "start", "ep": 18, "key": "space", "place": 3}
{"t": 1795427188.066972, "clock": "18:46:28", "kind": "phase_end", "phase": "start", "ep": 18, "dur_s": 2.1}
{"t": 1795427188.067478, "clock": "18:46:28", "kind": "episode_start", "ep": 18, "try_": 1}
{"t": 1795427202.5459142, "clock": "18:46:42", "kind": "key", "phase": "episode", "ep": 18, "key": "right"}
{"t": 1795427202.5723698, "clock": "18:46:42", "kind": "episode_end", "ep": 18, "place": 3, "try": 1, "dur_s": 14.5, "buffer_frames": 435, "end": "right", "label": "ep18_try1"}
{"t": 1795427202.593834, "clock": "18:46:42", "kind": "phase", "phase": "reset", "ep": 18}
{"t": 1795427202.613945, "clock": "18:46:42", "kind": "screen", "title": "18回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795427207.5711381, "clock": "18:46:47", "kind": "key", "phase": "reset", "ep": 18, "key": "space", "rerecord": false}
{"t": 1795427207.5960279, "clock": "18:46:47", "kind": "phase_end", "phase": "reset", "ep": 18, "dur_s": 5.0}
{"t": 1795427214.94073, "clock": "18:46:54", "kind": "saved", "ep": 18, "dur_s": 7.32, "num_episodes": 18}
{"t": 1795427214.959467, "clock": "18:46:54", "kind": "phase", "phase": "start", "ep": 19}
{"t": 1795427214.980779, "clock": "18:46:54", "kind": "screen", "title": "19回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427217.067807, "clock": "18:46:57", "kind": "key", "phase": "start", "ep": 19, "key": "space", "place": 3}
{"t": 1795427217.093917, "clock": "18:46:57", "kind": "phase_end", "phase": "start", "ep": 19, "dur_s": 2.13}
{"t": 1795427217.094233, "clock": "18:46:57", "kind": "episode_start", "ep": 19, "try_": 1}
{"t": 1795427233.4397519, "clock": "18:47:13", "kind": "key", "phase": "episode", "ep": 19, "key": "right"}
{"t": 1795427233.466218, "clock": "18:47:13", "kind": "episode_end", "ep": 19, "place": 3, "try": 1, "dur_s": 16.37, "buffer_frames": 491, "end": "right", "label": "ep19_try1"}
{"t": 1795427233.485888, "clock": "18:47:13", "kind": "phase", "phase": "reset", "ep": 19}
{"t": 1795427233.506509, "clock": "18:47:13", "kind": "screen", "title": "19回目 終わり", "lines": ["ブロックを 場所3 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795427238.02946, "clock": "18:47:18", "kind": "key", "phase": "reset", "ep": 19, "key": "space", "rerecord": false}
{"t": 1795427238.0546, "clock": "18:47:18", "kind": "phase_end", "phase": "reset", "ep": 19, "dur_s": 4.57}
{"t": 1795427245.53125, "clock": "18:47:25", "kind": "saved", "ep": 19, "dur_s": 7.45, "num_episodes": 19}
{"t": 1795427245.550432, "clock": "18:47:25", "kind": "phase", "phase": "start", "ep": 20}
{"t": 1795427245.5729978, "clock": "18:47:25", "kind": "screen", "title": "20回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427247.4923258, "clock": "18:47:27", "kind": "key", "phase": "start", "ep": 20, "key": "space", "place": 3}
{"t": 1795427247.518253, "clock": "18:47:27", "kind": "phase_end", "phase": "start", "ep": 20, "dur_s": 1.97}
{"t": 1795427247.518534, "clock": "18:47:27", "kind": "episode_start", "ep": 20, "try_": 1}
{"t": 1795427264.7936609, "clock": "18:47:44", "kind": "key", "phase": "episode", "ep": 20, "key": "left"}
{"t": 1795427264.8245602, "clock": "18:47:44", "kind": "episode_end", "ep": 20, "place": 3, "try": 1, "dur_s": 17.31, "buffer_frames": 519, "end": "left", "label": "ep20_try1"}
{"t": 1795427264.844907, "clock": "18:47:44", "kind": "phase", "phase": "reset", "ep": 20}
{"t": 1795427264.86342, "clock": "18:47:44", "kind": "screen", "title": "20回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 20回目へ"]}
{"t": 1795427269.222816, "clock": "18:47:49", "kind": "key", "phase": "reset", "ep": 20, "key": "space", "rerecord": true}
{"t": 1795427269.24685, "clock": "18:47:49", "kind": "phase_end", "phase": "reset", "ep": 20, "dur_s": 4.4}
{"t": 1795427269.269153, "clock": "18:47:49", "kind": "discarded", "ep": 20}
{"t": 1795427269.3587468, "clock": "18:47:49", "kind": "phase", "phase": "start", "ep": 20}
{"t": 1795427269.386773, "clock": "18:47:49", "kind": "screen", "title": "20回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427270.200445, "clock": "18:47:50", "kind": "key", "phase": "start", "ep": 20, "key": "space", "place": 3}
{"t": 1795427270.226521, "clock": "18:47:50", "kind": "phase_end", "phase": "start", "ep": 20, "dur_s": 0.87}
{"t": 1795427270.226738, "clock": "18:47:50", "kind": "episode_start", "ep": 20, "try_": 2}
{"t": 1795427278.803573, "clock": "18:47:58", "kind": "key", "phase": "episode", "ep": 20, "key": "left"}
{"t": 1795427278.8299599, "clock": "18:47:58", "kind": "episode_end", "ep": 20, "place": 3, "try": 2, "dur_s": 8.6, "buffer_frames": 258, "end": "left", "label": "ep20_try2"}
{"t": 1795427278.852551, "clock": "18:47:58", "kind": "phase", "phase": "reset", "ep": 20}
{"t": 1795427278.871778, "clock": "18:47:58", "kind": "screen", "title": "20回目 を録り直す", "lines": ["ブロックを 場所3 の点に置き直して", "腕を休みの姿勢へ", "スペースで もう一度 20回目へ"]}
{"t": 1795427280.527659, "clock": "18:48:00", "kind": "key", "phase": "reset", "ep": 20, "key": "space", "rerecord": true}
{"t": 1795427280.553578, "clock": "18:48:00", "kind": "phase_end", "phase": "reset", "ep": 20, "dur_s": 1.7}
{"t": 1795427280.577337, "clock": "18:48:00", "kind": "discarded", "ep": 20}
{"t": 1795427280.629156, "clock": "18:48:00", "kind": "phase", "phase": "start", "ep": 20}
{"t": 1795427280.6584, "clock": "18:48:00", "kind": "screen", "title": "20回目／20　場所3　スペースで始める", "lines": ["ブロックは 場所3 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795427290.64157, "clock": "18:48:10", "kind": "key", "phase": "start", "ep": 20, "key": "space", "place": 3}
{"t": 1795427290.666584, "clock": "18:48:10", "kind": "phase_end", "phase": "start", "ep": 20, "dur_s": 10.04}
{"t": 1795427290.666867, "clock": "18:48:10", "kind": "episode_start", "ep": 20, "try_": 3}
{"t": 1795427305.312554, "clock": "18:48:25", "kind": "key", "phase": "episode", "ep": 20, "key": "right"}
{"t": 1795427305.3386502, "clock": "18:48:25", "kind": "episode_end", "ep": 20, "place": 3, "try": 3, "dur_s": 14.67, "buffer_frames": 440, "end": "right", "label": "ep20_try3"}
{"t": 1795427305.338892, "clock": "18:48:25", "kind": "phase", "phase": "end", "ep": 20}
{"t": 1795427305.357864, "clock": "18:48:25", "kind": "screen", "title": "20回目 終わり (これで20回)", "lines": ["リーダーで 爪を閉じる", "腕を机の上まで下ろして たたむ (休みの姿勢)", "たたんだら スペース (保存して 力が抜ける)", "幅の外だと 赤い字で関節名が出る → そこを戻す", "うまくいかなかったら ← で録り直す"]}
{"t": 1795427311.749825, "clock": "18:48:31", "kind": "key", "phase": "end", "ep": 20, "key": "space"}
{"t": 1795427311.774534, "clock": "18:48:31", "kind": "phase_end", "phase": "end", "ep": 20, "dur_s": 6.44}
{"t": 1795427319.5297852, "clock": "18:48:39", "kind": "saved", "ep": 20, "dur_s": 7.74, "num_episodes": 20}
{"t": 1795427322.511908, "clock": "18:48:42", "kind": "lerobot_safe_window", "run": "step1_record", "title": "リーダーで休みの姿勢へ"}
{"t": 1795427322.51943, "clock": "18:48:42", "kind": "rest_out_joints", "run": "step1_record", "out": {"wrist_flex": 27.25}}
{"t": 1795427326.393978, "clock": "18:48:46", "kind": "rest_out_joints", "run": "step1_record", "out": {}}
{"t": 1795427327.998132, "clock": "18:48:47", "kind": "run_end", "name": "step1_record", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step1_record.json"}
{"t": 1795427328.067741, "clock": "18:48:48", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["20回とも, ブロックが箱に入った？", "", "はい = y     いいえ = n"]}
{"t": 1795427331.5722911, "clock": "18:48:51", "kind": "key", "title": "見た物で答える  y / n", "key": "y"}
{"t": 1795427331.581475, "clock": "18:48:51", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["録っている最中に, フォロワーが ガクッと飛んだ回は あった？", "(y = 飛んだ回があった / n = なかった)", "", "はい = y     いいえ = n"]}
{"t": 1795427334.891985, "clock": "18:48:54", "kind": "key", "title": "見た物で答える  y / n", "key": "n"}
{"t": 1795427334.903799, "clock": "18:48:54", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["場所2・3 で, 届きにくい・つかみにくい所は あった？", "(y = あった / n = なかった)", "", "はい = y     いいえ = n"]}
{"t": 1795427338.3256488, "clock": "18:48:58", "kind": "key", "title": "見た物で答える  y / n", "key": "n"}
{"t": 1795427338.328804, "clock": "18:48:58", "kind": "labels", "file": "/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23/episode_labels.json", "fail": []}
{"t": 1795427338.408279, "clock": "18:48:58", "kind": "replay_child_start", "episode_index": 0}
{"t": 1795427338.756089, "clock": "18:48:58", "kind": "start", "dry": false, "replay_ep": 0}
{"t": 1795427339.582011, "clock": "18:48:59", "kind": "screen", "title": "replay の前", "lines": ["フォロワーのまわりを空ける", "次のスペースで 力が入っていないか読む (読むだけ)", "", "準備ができたら スペース"]}
{"t": 1795427345.2904289, "clock": "18:49:05", "kind": "key", "title": "replay の前", "key": " "}
{"t": 1795427347.122747, "clock": "18:49:07", "kind": "read_servos", "follower": [[1, 1970, 0], [2, 868, 0], [3, 3024, 0], [4, 2325, 0], [5, 2098, 0], [6, 2061, 0]], "leader": [[1, 2030, 0], [2, 829, 0], [3, 3111, 0], [4, 2673, 0], [5, 2097, 0], [6, 2003, 0]], "ok": true}
{"t": 1795427347.133452, "clock": "18:49:07", "kind": "screen", "title": "replay (1回目・場所2 を再生)", "lines": ["フォロワーのまわりを空ける", "ブロックを 場所2 の点に置く", "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る", "(止めたいとき: q)", "", "準備ができたら スペース"]}
{"t": 1795427353.686283, "clock": "18:49:13", "kind": "key", "title": "replay (1回目・場所2 を再生)", "key": " "}
{"t": 1795427353.686734, "clock": "18:49:13", "kind": "run_start", "run": "step2_replay_ep0", "argv": ["replay", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos23", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23", "--dataset.episode=0", "--dataset.fps=30"]}
{"t": 1795427357.123468, "clock": "18:49:17", "kind": "torque_on", "run": "step2_replay_ep0", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
{"t": 1795427378.2268438, "clock": "18:49:38", "kind": "lerobot_safe_window", "run": "step2_replay_ep0", "title": "休みの姿勢へ自動で戻す"}
{"t": 1795427378.235459, "clock": "18:49:38", "kind": "rest_out_joints", "run": "step2_replay_ep0", "out": {"wrist_flex": 23.56}}
{"t": 1795427378.436463, "clock": "18:49:38", "kind": "rest_out_joints", "run": "step2_replay_ep0", "out": {}}
{"t": 1795427379.1467571, "clock": "18:49:39", "kind": "run_end", "name": "step2_replay_ep0", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step2_replay_ep0.json"}
{"t": 1795427379.151829, "clock": "18:49:39", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["replay で, ブロックは箱に入った？", "", "はい = y     いいえ = n"]}
{"t": 1795427381.3991191, "clock": "18:49:41", "kind": "key", "title": "見た物で答える  y / n", "key": "y"}
{"t": 1795427381.408813, "clock": "18:49:41", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["フォロワーは 録ったとおりに動いた？", "", "はい = y     いいえ = n"]}
{"t": 1795427383.908201, "clock": "18:49:43", "kind": "key", "title": "見た物で答える  y / n", "key": "y"}
{"t": 1795427383.910023, "clock": "18:49:43", "kind": "end", "replay_ep": 0}
{"t": 1795427384.497352, "clock": "18:49:44", "kind": "replay_child_end", "episode_index": 0, "returncode": 0}
{"t": 1795427384.497747, "clock": "18:49:44", "kind": "replay_child_start", "episode_index": 10}
{"t": 1795427384.868601, "clock": "18:49:44", "kind": "start", "dry": false, "replay_ep": 10}
{"t": 1795427385.724627, "clock": "18:49:45", "kind": "screen", "title": "replay の前", "lines": ["フォロワーのまわりを空ける", "次のスペースで 力が入っていないか読む (読むだけ)", "", "準備ができたら スペース"]}
{"t": 1795427398.700686, "clock": "18:49:58", "kind": "key", "title": "replay の前", "key": " "}
{"t": 1795427400.5247722, "clock": "18:50:00", "kind": "read_servos", "follower": [[1, 1959, 0], [2, 950, 0], [3, 3024, 0], [4, 2211, 0], [5, 2032, 0], [6, 2062, 0]], "leader": [[1, 2030, 0], [2, 829, 0], [3, 3111, 0], [4, 2673, 0], [5, 2097, 0], [6, 2003, 0]], "ok": true}
{"t": 1795427400.5341282, "clock": "18:50:00", "kind": "screen", "title": "replay (11回目・場所3 を再生)", "lines": ["フォロワーのまわりを空ける", "ブロックを 場所3 の点に置く", "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る", "(止めたいとき: q)", "", "準備ができたら スペース"]}
{"t": 1795427406.508395, "clock": "18:50:06", "kind": "key", "title": "replay (11回目・場所3 を再生)", "key": " "}
{"t": 1795427406.5094469, "clock": "18:50:06", "kind": "run_start", "run": "step2_replay_ep10", "argv": ["replay", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos23", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23", "--dataset.episode=10", "--dataset.fps=30"]}
{"t": 1795427409.633164, "clock": "18:50:09", "kind": "torque_on", "run": "step2_replay_ep10", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
{"t": 1795427432.19693, "clock": "18:50:32", "kind": "lerobot_safe_window", "run": "step2_replay_ep10", "title": "休みの姿勢へ自動で戻す"}
{"t": 1795427432.2055879, "clock": "18:50:32", "kind": "rest_out_joints", "run": "step2_replay_ep10", "out": {"wrist_flex": 31.29}}
{"t": 1795427432.538736, "clock": "18:50:32", "kind": "rest_out_joints", "run": "step2_replay_ep10", "out": {}}
{"t": 1795427433.239734, "clock": "18:50:33", "kind": "run_end", "name": "step2_replay_ep10", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step2_replay_ep10.json"}
{"t": 1795427433.246189, "clock": "18:50:33", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["replay で, ブロックは箱に入った？", "", "はい = y     いいえ = n"]}
{"t": 1795427434.978337, "clock": "18:50:34", "kind": "key", "title": "見た物で答える  y / n", "key": "n"}
{"t": 1795427434.989784, "clock": "18:50:34", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["フォロワーは 録ったとおりに動いた？", "", "はい = y     いいえ = n"]}
{"t": 1795427443.529361, "clock": "18:50:43", "kind": "key", "title": "見た物で答える  y / n", "key": "n"}
{"t": 1795427443.531212, "clock": "18:50:43", "kind": "end", "replay_ep": 10}
{"t": 1795427444.044201, "clock": "18:50:44", "kind": "replay_child_end", "episode_index": 10, "returncode": 0}
{"t": 1795427444.067582, "clock": "18:50:44", "kind": "screen", "title": "おわり", "lines": ["手順はすべて終わった", "フォロワーの電源を切ってよい", "", "準備ができたら スペース"]}
{"t": 1795427450.207664, "clock": "18:50:50", "kind": "key", "title": "おわり", "key": " "}
{"t": 1795427450.213075, "clock": "18:50:50", "kind": "end"}
```

#### results_277.json

```json
{
 "0": {
  "torque_zero": true,
  "follower": [
   [
    1,
    1959,
    0
   ],
   [
    2,
    950,
    0
   ],
   [
    3,
    3024,
    0
   ],
   [
    4,
    2211,
    0
   ],
   [
    5,
    2030,
    0
   ],
   [
    6,
    2061,
    0
   ]
  ]
 },
 "1": {
  "run": {
   "name": "step1_record",
   "exc": null,
   "ret": null,
   "torque_kept": false,
   "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step1_record.json"
  },
  "attempts": [
   {
    "ep": 1,
    "place": 2,
    "try": 1,
    "dur_s": 13.47,
    "buffer_frames": 404,
    "end": "left",
    "label": "ep1_try1",
    "saved_as": null,
    "frames": 404,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.89,
    "leader_step_max": {
     "shoulder_pan": 1.31,
     "shoulder_lift": 3.78,
     "elbow_flex": 2.73,
     "wrist_flex": 1.23,
     "wrist_roll": 1.84,
     "gripper": 2.39
    }
   },
   {
    "ep": 1,
    "place": 2,
    "try": 2,
    "dur_s": 17.94,
    "buffer_frames": 538,
    "end": "right",
    "label": "ep1_try2",
    "saved_as": 0,
    "frames": 538,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.92,
    "leader_step_max": {
     "shoulder_pan": 1.59,
     "shoulder_lift": 3.78,
     "elbow_flex": 2.64,
     "wrist_flex": 2.9,
     "wrist_roll": 1.05,
     "gripper": 5.02
    }
   },
   {
    "ep": 2,
    "place": 2,
    "try": 1,
    "dur_s": 23.11,
    "buffer_frames": 693,
    "end": "right",
    "label": "ep2_try1",
    "saved_as": 1,
    "frames": 693,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.28,
     "shoulder_lift": 3.95,
     "elbow_flex": 3.43,
     "wrist_flex": 3.43,
     "wrist_roll": 1.23,
     "gripper": 5.6
    }
   },
   {
    "ep": 3,
    "place": 2,
    "try": 1,
    "dur_s": 20.94,
    "buffer_frames": 628,
    "end": "right",
    "label": "ep3_try1",
    "saved_as": 2,
    "frames": 628,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.96,
    "leader_step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 3.69,
     "elbow_flex": 3.43,
     "wrist_flex": 2.64,
     "wrist_roll": 1.49,
     "gripper": 5.51
    }
   },
   {
    "ep": 4,
    "place": 2,
    "try": 1,
    "dur_s": 17.67,
    "buffer_frames": 530,
    "end": "left",
    "label": "ep4_try1",
    "saved_as": null,
    "frames": 530,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 1.24,
     "shoulder_lift": 3.52,
     "elbow_flex": 2.73,
     "wrist_flex": 1.93,
     "wrist_roll": 1.75,
     "gripper": 3.86
    }
   },
   {
    "ep": 4,
    "place": 2,
    "try": 2,
    "dur_s": 17.64,
    "buffer_frames": 529,
    "end": "right",
    "label": "ep4_try2",
    "saved_as": 3,
    "frames": 529,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.64,
     "shoulder_lift": 4.05,
     "elbow_flex": 4.05,
     "wrist_flex": 2.46,
     "wrist_roll": 3.96,
     "gripper": 6.17
    }
   },
   {
    "ep": 5,
    "place": 2,
    "try": 1,
    "dur_s": 15.3,
    "buffer_frames": 459,
    "end": "right",
    "label": "ep5_try1",
    "saved_as": 4,
    "frames": 459,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.47,
     "shoulder_lift": 4.31,
     "elbow_flex": 4.04,
     "wrist_flex": 4.31,
     "wrist_roll": 1.23,
     "gripper": 3.37
    }
   },
   {
    "ep": 6,
    "place": 2,
    "try": 1,
    "dur_s": 17.71,
    "buffer_frames": 531,
    "end": "right",
    "label": "ep6_try1",
    "saved_as": 5,
    "frames": 531,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.96,
    "leader_step_max": {
     "shoulder_pan": 2.19,
     "shoulder_lift": 4.05,
     "elbow_flex": 3.69,
     "wrist_flex": 3.52,
     "wrist_roll": 1.49,
     "gripper": 6.66
    }
   },
   {
    "ep": 7,
    "place": 2,
    "try": 1,
    "dur_s": 17.97,
    "buffer_frames": 539,
    "end": "right",
    "label": "ep7_try1",
    "saved_as": 6,
    "frames": 539,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.96,
    "leader_step_max": {
     "shoulder_pan": 1.76,
     "shoulder_lift": 3.95,
     "elbow_flex": 3.61,
     "wrist_flex": 1.93,
     "wrist_roll": 2.11,
     "gripper": 4.77
    }
   },
   {
    "ep": 8,
    "place": 2,
    "try": 1,
    "dur_s": 14.07,
    "buffer_frames": 422,
    "end": "right",
    "label": "ep8_try1",
    "saved_as": 7,
    "frames": 422,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.38,
     "shoulder_lift": 3.95,
     "elbow_flex": 4.49,
     "wrist_flex": 3.52,
     "wrist_roll": 1.84,
     "gripper": 5.68
    }
   },
   {
    "ep": 9,
    "place": 2,
    "try": 1,
    "dur_s": 13.54,
    "buffer_frames": 406,
    "end": "right",
    "label": "ep9_try1",
    "saved_as": 8,
    "frames": 406,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.11,
     "shoulder_lift": 5.1,
     "elbow_flex": 3.52,
     "wrist_flex": 3.25,
     "wrist_roll": 1.58,
     "gripper": 5.51
    }
   },
   {
    "ep": 10,
    "place": 2,
    "try": 1,
    "dur_s": 19.24,
    "buffer_frames": 577,
    "end": "right",
    "label": "ep10_try1",
    "saved_as": 9,
    "frames": 577,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.96,
    "leader_step_max": {
     "shoulder_pan": 2.03,
     "shoulder_lift": 4.13,
     "elbow_flex": 3.17,
     "wrist_flex": 2.46,
     "wrist_roll": 1.5,
     "gripper": 5.67
    }
   },
   {
    "ep": 11,
    "place": 3,
    "try": 1,
    "dur_s": 16.24,
    "buffer_frames": 487,
    "end": "left",
    "label": "ep11_try1",
    "saved_as": null,
    "frames": 487,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.29,
     "shoulder_lift": 4.04,
     "elbow_flex": 2.73,
     "wrist_flex": 1.67,
     "wrist_roll": 1.58,
     "gripper": 3.04
    }
   },
   {
    "ep": 11,
    "place": 3,
    "try": 2,
    "dur_s": 25.01,
    "buffer_frames": 750,
    "end": "time",
    "label": "ep11_try2",
    "saved_as": null,
    "frames": 750,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.97,
    "leader_step_max": {
     "shoulder_pan": 2.38,
     "shoulder_lift": 2.64,
     "elbow_flex": 1.59,
     "wrist_flex": 3.86,
     "wrist_roll": 2.99,
     "gripper": 4.45
    }
   },
   {
    "ep": 11,
    "place": 3,
    "try": 3,
    "dur_s": 19.37,
    "buffer_frames": 581,
    "end": "right",
    "label": "ep11_try3",
    "saved_as": 10,
    "frames": 581,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.82,
     "shoulder_lift": 3.87,
     "elbow_flex": 3.87,
     "wrist_flex": 2.9,
     "wrist_roll": 2.02,
     "gripper": 6.58
    }
   },
   {
    "ep": 12,
    "place": 3,
    "try": 1,
    "dur_s": 23.31,
    "buffer_frames": 699,
    "end": "right",
    "label": "ep12_try1",
    "saved_as": 11,
    "frames": 699,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.96,
    "leader_step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 4.49,
     "elbow_flex": 4.4,
     "wrist_flex": 2.72,
     "wrist_roll": 1.75,
     "gripper": 6.99
    }
   },
   {
    "ep": 13,
    "place": 3,
    "try": 1,
    "dur_s": 11.7,
    "buffer_frames": 351,
    "end": "left",
    "label": "ep13_try1",
    "saved_as": null,
    "frames": 351,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 1.67,
     "shoulder_lift": 4.58,
     "elbow_flex": 3.87,
     "wrist_flex": 2.11,
     "wrist_roll": 1.31,
     "gripper": 2.23
    }
   },
   {
    "ep": 13,
    "place": 3,
    "try": 2,
    "dur_s": 20.67,
    "buffer_frames": 620,
    "end": "right",
    "label": "ep13_try2",
    "saved_as": 12,
    "frames": 620,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 3.17,
     "shoulder_lift": 4.04,
     "elbow_flex": 4.84,
     "wrist_flex": 3.95,
     "wrist_roll": 1.85,
     "gripper": 7.49
    }
   },
   {
    "ep": 14,
    "place": 3,
    "try": 1,
    "dur_s": 24.97,
    "buffer_frames": 749,
    "end": "time",
    "label": "ep14_try1",
    "saved_as": 13,
    "frames": 749,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.96,
    "leader_step_max": {
     "shoulder_pan": 2.73,
     "shoulder_lift": 4.84,
     "elbow_flex": 3.87,
     "wrist_flex": 2.82,
     "wrist_roll": 2.55,
     "gripper": 6.66
    }
   },
   {
    "ep": 15,
    "place": 3,
    "try": 1,
    "dur_s": 16.74,
    "buffer_frames": 502,
    "end": "right",
    "label": "ep15_try1",
    "saved_as": 14,
    "frames": 502,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 3.26,
     "shoulder_lift": 4.22,
     "elbow_flex": 3.43,
     "wrist_flex": 3.08,
     "wrist_roll": 1.49,
     "gripper": 5.51
    }
   },
   {
    "ep": 16,
    "place": 3,
    "try": 1,
    "dur_s": 13.74,
    "buffer_frames": 412,
    "end": "right",
    "label": "ep16_try1",
    "saved_as": 15,
    "frames": 412,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 3.42,
     "shoulder_lift": 4.05,
     "elbow_flex": 3.34,
     "wrist_flex": 2.38,
     "wrist_roll": 2.02,
     "gripper": 5.1
    }
   },
   {
    "ep": 17,
    "place": 3,
    "try": 1,
    "dur_s": 16.31,
    "buffer_frames": 489,
    "end": "right",
    "label": "ep17_try1",
    "saved_as": 16,
    "frames": 489,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.91,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.57,
     "wrist_flex": 4.3,
     "wrist_roll": 2.64,
     "gripper": 6.33
    }
   },
   {
    "ep": 18,
    "place": 3,
    "try": 1,
    "dur_s": 14.5,
    "buffer_frames": 435,
    "end": "right",
    "label": "ep18_try1",
    "saved_as": 17,
    "frames": 435,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.9,
     "shoulder_lift": 4.31,
     "elbow_flex": 4.22,
     "wrist_flex": 3.61,
     "wrist_roll": 2.11,
     "gripper": 4.61
    }
   },
   {
    "ep": 19,
    "place": 3,
    "try": 1,
    "dur_s": 16.37,
    "buffer_frames": 491,
    "end": "right",
    "label": "ep19_try1",
    "saved_as": 18,
    "frames": 491,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 3.26,
     "shoulder_lift": 4.66,
     "elbow_flex": 4.66,
     "wrist_flex": 3.61,
     "wrist_roll": 2.2,
     "gripper": 5.51
    }
   },
   {
    "ep": 20,
    "place": 3,
    "try": 1,
    "dur_s": 17.31,
    "buffer_frames": 519,
    "end": "left",
    "label": "ep20_try1",
    "saved_as": null,
    "frames": 519,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.91,
     "shoulder_lift": 3.34,
     "elbow_flex": 4.05,
     "wrist_flex": 5.54,
     "wrist_roll": 1.32,
     "gripper": 5.92
    }
   },
   {
    "ep": 20,
    "place": 3,
    "try": 2,
    "dur_s": 8.6,
    "buffer_frames": 258,
    "end": "left",
    "label": "ep20_try2",
    "saved_as": null,
    "frames": 258,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.91,
    "leader_step_max": {
     "shoulder_pan": 1.94,
     "shoulder_lift": 4.05,
     "elbow_flex": 3.43,
     "wrist_flex": 2.29,
     "wrist_roll": 1.58,
     "gripper": 3.54
    }
   },
   {
    "ep": 20,
    "place": 3,
    "try": 3,
    "dur_s": 14.67,
    "buffer_frames": 440,
    "end": "right",
    "label": "ep20_try3",
    "saved_as": 19,
    "frames": 440,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.99,
    "leader_step_max": {
     "shoulder_pan": 2.99,
     "shoulder_lift": 4.05,
     "elbow_flex": 4.48,
     "wrist_flex": 3.87,
     "wrist_roll": 2.02,
     "gripper": 5.92
    }
   }
  ],
  "cut_frames_by_label": {
   "start": 1,
   "start_wait": 4,
   "reset": 9,
   "gate:end_wait": 1
  },
  "gate": [
   {
    "what": "rest_gate_start",
    "t": 936.0815548330138,
    "leader": true
   },
   {
    "what": "rest_gate_end",
    "t": 940.4992470419966,
    "result": "leader",
    "dur_s": 4.42
   }
  ],
  "rest_wait_s": 4.42,
  "rest_wait_each_s": [
   [
    "leader",
    4.42
   ]
  ],
  "torque_on": [
   {
    "shoulder_pan": 0.0,
    "shoulder_lift": 0.0,
    "elbow_flex": 0.0,
    "wrist_flex": 0.0,
    "wrist_roll": 0.0,
    "gripper": 0.0
   }
  ],
  "cut_frames_gate": 1,
  "yn_all_in_box": true,
  "not_in_box": [],
  "yn_jump": false,
  "yn_hard_place": false,
  "labels": [
   {
    "episode_index": 0,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 1,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 2,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 3,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 4,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 5,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 6,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 7,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 8,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 9,
    "place": 2,
    "label": "success"
   },
   {
    "episode_index": 10,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 11,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 12,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 13,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 14,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 15,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 16,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 17,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 18,
    "place": 3,
    "label": "success"
   },
   {
    "episode_index": 19,
    "place": 3,
    "label": "success"
   }
  ]
 },
 "2": {
  "picks": [
   0,
   10
  ],
  "children": [
   {
    "episode_index": 0,
    "returncode": 0,
    "results": {
     "read_servos": [
      {
       "ok": true,
       "follower": [
        [
         1,
         1970,
         0
        ],
        [
         2,
         868,
         0
        ],
        [
         3,
         3024,
         0
        ],
        [
         4,
         2325,
         0
        ],
        [
         5,
         2098,
         0
        ],
        [
         6,
         2061,
         0
        ]
       ]
      }
     ],
     "replay": {
      "episode_index": 0,
      "place": 2,
      "run": {
       "name": "step2_replay_ep0",
       "exc": null,
       "ret": null,
       "torque_kept": false,
       "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step2_replay_ep0.json"
      },
      "replay": {
       "frames": 537,
       "cut_frames": 1,
       "cut_examples": [
        {
         "wrist_flex": [
          45.8,
          43.25
         ]
        }
       ],
       "hz": 29.99,
       "leader_step_max": {
        "shoulder_pan": 1.59,
        "shoulder_lift": 3.78,
        "elbow_flex": 2.64,
        "wrist_flex": 2.9,
        "wrist_roll": 1.05,
        "gripper": 5.02
       }
      },
      "gate": [
       {
        "what": "rest_gate_start",
        "t": 24.520763208012795,
        "leader": false
       },
       {
        "what": "auto_return",
        "t": 24.538525915995706,
        "result": true,
        "dur_s": 0.86
       },
       {
        "what": "rest_gate_end",
        "t": 25.41290037499857,
        "result": "auto",
        "dur_s": 0.89
       }
      ],
      "rest_wait_s": 0.89,
      "rest_wait_each_s": [
       [
        "auto",
        0.89
       ]
      ],
      "torque_on": [
       {
        "shoulder_pan": 0.0,
        "shoulder_lift": 0.0,
        "elbow_flex": 0.0,
        "wrist_flex": 0.0,
        "wrist_roll": 0.0,
        "gripper": 0.0
       }
      ],
      "cut_frames_gate": 0,
      "yn_block_in_box": true,
      "yn_replay_same": true
     }
    }
   },
   {
    "episode_index": 10,
    "returncode": 0,
    "results": {
     "read_servos": [
      {
       "ok": true,
       "follower": [
        [
         1,
         1959,
         0
        ],
        [
         2,
         950,
         0
        ],
        [
         3,
         3024,
         0
        ],
        [
         4,
         2211,
         0
        ],
        [
         5,
         2032,
         0
        ],
        [
         6,
         2062,
         0
        ]
       ]
      }
     ],
     "replay": {
      "episode_index": 10,
      "place": 3,
      "run": {
       "name": "step2_replay_ep10",
       "exc": null,
       "ret": null,
       "torque_kept": false,
       "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step2_replay_ep10.json"
      },
      "replay": {
       "frames": 580,
       "cut_frames": 1,
       "cut_examples": [
        {
         "wrist_flex": [
          40.35,
          33.23
         ]
        }
       ],
       "hz": 29.99,
       "leader_step_max": {
        "shoulder_pan": 2.82,
        "shoulder_lift": 3.87,
        "elbow_flex": 3.87,
        "wrist_flex": 2.9,
        "wrist_roll": 2.02,
        "gripper": 6.58
       }
      },
      "gate": [
       {
        "what": "rest_gate_start",
        "t": 25.6713507079985,
        "leader": false
       },
       {
        "what": "auto_return",
        "t": 25.685899083007826,
        "result": true,
        "dur_s": 0.99
       },
       {
        "what": "rest_gate_end",
        "t": 26.69108541600872,
        "result": "auto",
        "dur_s": 1.02
       }
      ],
      "rest_wait_s": 1.02,
      "rest_wait_each_s": [
       [
        "auto",
        1.02
       ]
      ],
      "torque_on": [
       {
        "shoulder_pan": 0.0,
        "shoulder_lift": 0.0,
        "elbow_flex": 0.0,
        "wrist_flex": 0.0,
        "wrist_roll": 0.0,
        "gripper": 0.0
       }
      ],
      "cut_frames_gate": 0,
      "yn_block_in_box": false,
      "yn_replay_same": false
     }
    }
   }
  ]
 }
}
```

#### results_277_replay_ep0.json

```json
{
 "read_servos": [
  {
   "ok": true,
   "follower": [
    [
     1,
     1970,
     0
    ],
    [
     2,
     868,
     0
    ],
    [
     3,
     3024,
     0
    ],
    [
     4,
     2325,
     0
    ],
    [
     5,
     2098,
     0
    ],
    [
     6,
     2061,
     0
    ]
   ]
  }
 ],
 "replay": {
  "episode_index": 0,
  "place": 2,
  "run": {
   "name": "step2_replay_ep0",
   "exc": null,
   "ret": null,
   "torque_kept": false,
   "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step2_replay_ep0.json"
  },
  "replay": {
   "frames": 537,
   "cut_frames": 1,
   "cut_examples": [
    {
     "wrist_flex": [
      45.8,
      43.25
     ]
    }
   ],
   "hz": 29.99,
   "leader_step_max": {
    "shoulder_pan": 1.59,
    "shoulder_lift": 3.78,
    "elbow_flex": 2.64,
    "wrist_flex": 2.9,
    "wrist_roll": 1.05,
    "gripper": 5.02
   }
  },
  "gate": [
   {
    "what": "rest_gate_start",
    "t": 24.520763208012795,
    "leader": false
   },
   {
    "what": "auto_return",
    "t": 24.538525915995706,
    "result": true,
    "dur_s": 0.86
   },
   {
    "what": "rest_gate_end",
    "t": 25.41290037499857,
    "result": "auto",
    "dur_s": 0.89
   }
  ],
  "rest_wait_s": 0.89,
  "rest_wait_each_s": [
   [
    "auto",
    0.89
   ]
  ],
  "torque_on": [
   {
    "shoulder_pan": 0.0,
    "shoulder_lift": 0.0,
    "elbow_flex": 0.0,
    "wrist_flex": 0.0,
    "wrist_roll": 0.0,
    "gripper": 0.0
   }
  ],
  "cut_frames_gate": 0,
  "yn_block_in_box": true,
  "yn_replay_same": true
 }
}
```

#### results_277_replay_ep10.json

```json
{
 "read_servos": [
  {
   "ok": true,
   "follower": [
    [
     1,
     1959,
     0
    ],
    [
     2,
     950,
     0
    ],
    [
     3,
     3024,
     0
    ],
    [
     4,
     2211,
     0
    ],
    [
     5,
     2032,
     0
    ],
    [
     6,
     2062,
     0
    ]
   ]
  }
 ],
 "replay": {
  "episode_index": 10,
  "place": 3,
  "run": {
   "name": "step2_replay_ep10",
   "exc": null,
   "ret": null,
   "torque_kept": false,
   "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_277/step2_replay_ep10.json"
  },
  "replay": {
   "frames": 580,
   "cut_frames": 1,
   "cut_examples": [
    {
     "wrist_flex": [
      40.35,
      33.23
     ]
    }
   ],
   "hz": 29.99,
   "leader_step_max": {
    "shoulder_pan": 2.82,
    "shoulder_lift": 3.87,
    "elbow_flex": 3.87,
    "wrist_flex": 2.9,
    "wrist_roll": 2.02,
    "gripper": 6.58
   }
  },
  "gate": [
   {
    "what": "rest_gate_start",
    "t": 25.6713507079985,
    "leader": false
   },
   {
    "what": "auto_return",
    "t": 25.685899083007826,
    "result": true,
    "dur_s": 0.99
   },
   {
    "what": "rest_gate_end",
    "t": 26.69108541600872,
    "result": "auto",
    "dur_s": 1.02
   }
  ],
  "rest_wait_s": 1.02,
  "rest_wait_each_s": [
   [
    "auto",
    1.02
   ]
  ],
  "torque_on": [
   {
    "shoulder_pan": 0.0,
    "shoulder_lift": 0.0,
    "elbow_flex": 0.0,
    "wrist_flex": 0.0,
    "wrist_roll": 0.0,
    "gripper": 0.0
   }
  ],
  "cut_frames_gate": 0,
  "yn_block_in_box": false,
  "yn_replay_same": false
 }
}
```

#### analysis_277.json

```json
{
 "root": "/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos23",
 "fps": 30,
 "total_episodes": 20,
 "total_frames": 10740,
 "cameras": [
  "observation.images.wrist",
  "observation.images.desk"
 ],
 "episodes": [
  {
   "ep": 1,
   "place": 2,
   "length": 538,
   "rows": 538,
   "dur_s": 17.93,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.92,
   "real_dur_s": 17.94,
   "cut_frames": 0,
   "try": 2,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 1.58,
     "shoulder_lift": 3.78,
     "elbow_flex": 2.73,
     "wrist_flex": 2.64,
     "wrist_roll": 1.05,
     "gripper": 3.52
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 1.58,
     "shoulder_lift": 3.78,
     "elbow_flex": 2.64,
     "wrist_flex": 2.9,
     "wrist_roll": 1.05,
     "gripper": 5.02
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 538,
    "black": 0,
    "white": 0,
    "still": 124,
    "still_run_max": 1,
    "mean": [
     142.1,
     155.8,
     177.2
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 538,
    "black": 0,
    "white": 0,
    "still": 136,
    "still_run_max": 1,
    "mean": [
     182.4,
     186.1,
     188.9
    ]
   }
  },
  {
   "ep": 2,
   "place": 2,
   "length": 693,
   "rows": 693,
   "dur_s": 23.1,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 23.11,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 4.04,
     "elbow_flex": 3.43,
     "wrist_flex": 2.99,
     "wrist_roll": 1.23,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.29,
     "shoulder_lift": 3.96,
     "elbow_flex": 3.43,
     "wrist_flex": 3.43,
     "wrist_roll": 1.23,
     "gripper": 5.59
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 693,
    "black": 0,
    "white": 0,
    "still": 146,
    "still_run_max": 1,
    "mean": [
     136.7,
     155.3,
     176.0
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 693,
    "black": 0,
    "white": 0,
    "still": 157,
    "still_run_max": 1,
    "mean": [
     183.1,
     186.3,
     188.9
    ]
   }
  },
  {
   "ep": 3,
   "place": 2,
   "length": 628,
   "rows": 628,
   "dur_s": 20.93,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.96,
   "real_dur_s": 20.94,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 3.69,
     "elbow_flex": 3.16,
     "wrist_flex": 2.55,
     "wrist_roll": 1.41,
     "gripper": 3.79
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 3.69,
     "elbow_flex": 3.43,
     "wrist_flex": 2.64,
     "wrist_roll": 1.49,
     "gripper": 5.51
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 628,
    "black": 0,
    "white": 0,
    "still": 169,
    "still_run_max": 1,
    "mean": [
     141.0,
     156.3,
     175.3
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 628,
    "black": 0,
    "white": 0,
    "still": 185,
    "still_run_max": 1,
    "mean": [
     182.7,
     186.4,
     189.1
    ]
   }
  },
  {
   "ep": 4,
   "place": 2,
   "length": 529,
   "rows": 529,
   "dur_s": 17.63,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 17.64,
   "cut_frames": 0,
   "try": 2,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.29,
     "shoulder_lift": 4.13,
     "elbow_flex": 3.87,
     "wrist_flex": 2.29,
     "wrist_roll": 2.73,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.64,
     "shoulder_lift": 4.04,
     "elbow_flex": 4.04,
     "wrist_flex": 2.46,
     "wrist_roll": 3.96,
     "gripper": 6.17
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 529,
    "black": 0,
    "white": 0,
    "still": 109,
    "still_run_max": 1,
    "mean": [
     127.6,
     155.1,
     184.2
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 529,
    "black": 0,
    "white": 0,
    "still": 139,
    "still_run_max": 1,
    "mean": [
     183.4,
     186.4,
     189.3
    ]
   }
  },
  {
   "ep": 5,
   "place": 2,
   "length": 459,
   "rows": 459,
   "dur_s": 15.3,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 15.3,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 4.31,
     "elbow_flex": 4.04,
     "wrist_flex": 3.69,
     "wrist_roll": 1.23,
     "gripper": 2.37
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.46,
     "shoulder_lift": 4.31,
     "elbow_flex": 4.04,
     "wrist_flex": 4.31,
     "wrist_roll": 1.23,
     "gripper": 3.37
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 459,
    "black": 0,
    "white": 0,
    "still": 79,
    "still_run_max": 1,
    "mean": [
     127.6,
     153.9,
     179.0
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 459,
    "black": 0,
    "white": 0,
    "still": 112,
    "still_run_max": 1,
    "mean": [
     181.4,
     185.8,
     189.1
    ]
   }
  },
  {
   "ep": 6,
   "place": 2,
   "length": 531,
   "rows": 531,
   "dur_s": 17.7,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.96,
   "real_dur_s": 17.71,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 4.04,
     "elbow_flex": 3.6,
     "wrist_flex": 2.73,
     "wrist_roll": 1.32,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 4.04,
     "elbow_flex": 3.69,
     "wrist_flex": 3.52,
     "wrist_roll": 1.49,
     "gripper": 6.66
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 531,
    "black": 0,
    "white": 0,
    "still": 114,
    "still_run_max": 1,
    "mean": [
     109.3,
     155.3,
     177.0
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 531,
    "black": 0,
    "white": 0,
    "still": 130,
    "still_run_max": 1,
    "mean": [
     181.3,
     186.1,
     189.5
    ]
   }
  },
  {
   "ep": 7,
   "place": 2,
   "length": 539,
   "rows": 539,
   "dur_s": 17.97,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.96,
   "real_dur_s": 17.97,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 1.76,
     "shoulder_lift": 3.96,
     "elbow_flex": 3.43,
     "wrist_flex": 1.67,
     "wrist_roll": 1.58,
     "gripper": 3.79
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 1.76,
     "shoulder_lift": 3.96,
     "elbow_flex": 3.6,
     "wrist_flex": 1.93,
     "wrist_roll": 2.11,
     "gripper": 4.77
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 539,
    "black": 0,
    "white": 0,
    "still": 102,
    "still_run_max": 1,
    "mean": [
     137.2,
     154.7,
     183.1
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 539,
    "black": 0,
    "white": 0,
    "still": 129,
    "still_run_max": 1,
    "mean": [
     182.4,
     186.0,
     189.2
    ]
   }
  },
  {
   "ep": 8,
   "place": 2,
   "length": 422,
   "rows": 422,
   "dur_s": 14.07,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 14.07,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.29,
     "shoulder_lift": 4.04,
     "elbow_flex": 4.31,
     "wrist_flex": 3.43,
     "wrist_roll": 1.32,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.37,
     "shoulder_lift": 3.96,
     "elbow_flex": 4.48,
     "wrist_flex": 3.52,
     "wrist_roll": 1.85,
     "gripper": 5.67
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 422,
    "black": 0,
    "white": 0,
    "still": 89,
    "still_run_max": 1,
    "mean": [
     136.6,
     154.3,
     173.5
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 422,
    "black": 0,
    "white": 0,
    "still": 112,
    "still_run_max": 1,
    "mean": [
     183.3,
     186.4,
     189.1
    ]
   }
  },
  {
   "ep": 9,
   "place": 2,
   "length": 406,
   "rows": 406,
   "dur_s": 13.53,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 13.54,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 5.01,
     "elbow_flex": 3.34,
     "wrist_flex": 2.81,
     "wrist_roll": 0.97,
     "gripper": 3.66
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.11,
     "shoulder_lift": 5.1,
     "elbow_flex": 3.52,
     "wrist_flex": 3.25,
     "wrist_roll": 1.58,
     "gripper": 5.51
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 406,
    "black": 0,
    "white": 0,
    "still": 38,
    "still_run_max": 1,
    "mean": [
     129.2,
     154.5,
     181.4
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 406,
    "black": 0,
    "white": 0,
    "still": 96,
    "still_run_max": 1,
    "mean": [
     183.3,
     186.6,
     189.2
    ]
   }
  },
  {
   "ep": 10,
   "place": 2,
   "length": 577,
   "rows": 577,
   "dur_s": 19.23,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.96,
   "real_dur_s": 19.24,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 4.13,
     "elbow_flex": 3.08,
     "wrist_flex": 1.93,
     "wrist_roll": 1.32,
     "gripper": 3.66
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 4.13,
     "elbow_flex": 3.16,
     "wrist_flex": 2.46,
     "wrist_roll": 1.49,
     "gripper": 5.67
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 577,
    "black": 0,
    "white": 0,
    "still": 103,
    "still_run_max": 1,
    "mean": [
     139.5,
     154.5,
     176.2
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 577,
    "black": 0,
    "white": 0,
    "still": 145,
    "still_run_max": 1,
    "mean": [
     182.0,
     185.2,
     189.0
    ]
   }
  },
  {
   "ep": 11,
   "place": 3,
   "length": 581,
   "rows": 581,
   "dur_s": 19.37,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 19.37,
   "cut_frames": 0,
   "try": 3,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 3.96,
     "elbow_flex": 3.78,
     "wrist_flex": 2.64,
     "wrist_roll": 1.76,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 3.87,
     "elbow_flex": 3.87,
     "wrist_flex": 2.9,
     "wrist_roll": 2.02,
     "gripper": 6.58
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 581,
    "black": 0,
    "white": 0,
    "still": 85,
    "still_run_max": 1,
    "mean": [
     144.3,
     155.6,
     174.2
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 581,
    "black": 0,
    "white": 0,
    "still": 124,
    "still_run_max": 1,
    "mean": [
     183.3,
     186.0,
     189.2
    ]
   }
  },
  {
   "ep": 12,
   "place": 3,
   "length": 699,
   "rows": 699,
   "dur_s": 23.3,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.96,
   "real_dur_s": 23.31,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.46,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.22,
     "wrist_flex": 2.37,
     "wrist_roll": 1.41,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 4.48,
     "elbow_flex": 4.4,
     "wrist_flex": 2.73,
     "wrist_roll": 1.76,
     "gripper": 6.99
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 699,
    "black": 0,
    "white": 0,
    "still": 140,
    "still_run_max": 1,
    "mean": [
     139.5,
     153.9,
     172.2
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 699,
    "black": 0,
    "white": 0,
    "still": 166,
    "still_run_max": 1,
    "mean": [
     182.3,
     184.9,
     189.2
    ]
   }
  },
  {
   "ep": 13,
   "place": 3,
   "length": 620,
   "rows": 620,
   "dur_s": 20.67,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 20.67,
   "cut_frames": 0,
   "try": 2,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.9,
     "shoulder_lift": 3.78,
     "elbow_flex": 4.48,
     "wrist_flex": 3.25,
     "wrist_roll": 1.67,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 3.16,
     "shoulder_lift": 4.04,
     "elbow_flex": 4.84,
     "wrist_flex": 3.96,
     "wrist_roll": 1.85,
     "gripper": 7.48
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 620,
    "black": 0,
    "white": 0,
    "still": 99,
    "still_run_max": 1,
    "mean": [
     133.7,
     156.1,
     172.5
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 620,
    "black": 0,
    "white": 0,
    "still": 136,
    "still_run_max": 1,
    "mean": [
     182.4,
     185.8,
     189.4
    ]
   }
  },
  {
   "ep": 14,
   "place": 3,
   "length": 749,
   "rows": 749,
   "dur_s": 24.97,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.96,
   "real_dur_s": 24.97,
   "cut_frames": 0,
   "try": 1,
   "end": "time",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.73,
     "shoulder_lift": 4.75,
     "elbow_flex": 3.78,
     "wrist_flex": 2.46,
     "wrist_roll": 1.85,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.73,
     "shoulder_lift": 4.84,
     "elbow_flex": 3.87,
     "wrist_flex": 2.81,
     "wrist_roll": 2.55,
     "gripper": 6.66
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 749,
    "black": 0,
    "white": 0,
    "still": 167,
    "still_run_max": 1,
    "mean": [
     138.7,
     153.6,
     180.8
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 749,
    "black": 0,
    "white": 0,
    "still": 198,
    "still_run_max": 1,
    "mean": [
     183.5,
     185.7,
     189.7
    ]
   }
  },
  {
   "ep": 15,
   "place": 3,
   "length": 502,
   "rows": 502,
   "dur_s": 16.73,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 16.74,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 3.08,
     "shoulder_lift": 4.22,
     "elbow_flex": 3.25,
     "wrist_flex": 2.37,
     "wrist_roll": 1.14,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 3.25,
     "shoulder_lift": 4.22,
     "elbow_flex": 3.43,
     "wrist_flex": 3.08,
     "wrist_roll": 1.49,
     "gripper": 5.51
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 502,
    "black": 0,
    "white": 0,
    "still": 78,
    "still_run_max": 1,
    "mean": [
     119.5,
     153.9,
     180.1
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 502,
    "black": 0,
    "white": 0,
    "still": 106,
    "still_run_max": 1,
    "mean": [
     183.2,
     186.0,
     189.6
    ]
   }
  },
  {
   "ep": 16,
   "place": 3,
   "length": 412,
   "rows": 412,
   "dur_s": 13.73,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 13.74,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 3.16,
     "shoulder_lift": 4.04,
     "elbow_flex": 3.34,
     "wrist_flex": 2.2,
     "wrist_roll": 1.67,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 3.43,
     "shoulder_lift": 4.04,
     "elbow_flex": 3.34,
     "wrist_flex": 2.37,
     "wrist_roll": 2.02,
     "gripper": 5.1
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 412,
    "black": 0,
    "white": 0,
    "still": 61,
    "still_run_max": 1,
    "mean": [
     147.5,
     156.8,
     165.4
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 412,
    "black": 0,
    "white": 0,
    "still": 80,
    "still_run_max": 1,
    "mean": [
     183.8,
     186.2,
     189.0
    ]
   }
  },
  {
   "ep": 17,
   "place": 3,
   "length": 489,
   "rows": 489,
   "dur_s": 16.3,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 16.31,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.48,
     "wrist_flex": 3.34,
     "wrist_roll": 1.93,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.9,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.57,
     "wrist_flex": 4.31,
     "wrist_roll": 2.64,
     "gripper": 6.33
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 489,
    "black": 0,
    "white": 0,
    "still": 65,
    "still_run_max": 1,
    "mean": [
     137.3,
     155.7,
     172.8
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 489,
    "black": 0,
    "white": 0,
    "still": 95,
    "still_run_max": 1,
    "mean": [
     181.7,
     185.7,
     189.1
    ]
   }
  },
  {
   "ep": 18,
   "place": 3,
   "length": 435,
   "rows": 435,
   "dur_s": 14.5,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 14.5,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.46,
     "shoulder_lift": 3.96,
     "elbow_flex": 3.87,
     "wrist_flex": 3.16,
     "wrist_roll": 1.58,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.9,
     "shoulder_lift": 4.31,
     "elbow_flex": 4.22,
     "wrist_flex": 3.6,
     "wrist_roll": 2.11,
     "gripper": 4.61
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 435,
    "black": 0,
    "white": 0,
    "still": 52,
    "still_run_max": 1,
    "mean": [
     138.1,
     153.0,
     172.9
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 435,
    "black": 0,
    "white": 0,
    "still": 90,
    "still_run_max": 1,
    "mean": [
     182.1,
     185.4,
     189.3
    ]
   }
  },
  {
   "ep": 19,
   "place": 3,
   "length": 491,
   "rows": 491,
   "dur_s": 16.37,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 16.37,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.99,
     "shoulder_lift": 4.57,
     "elbow_flex": 4.31,
     "wrist_flex": 2.81,
     "wrist_roll": 1.85,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 3.25,
     "shoulder_lift": 4.66,
     "elbow_flex": 4.66,
     "wrist_flex": 3.6,
     "wrist_roll": 2.2,
     "gripper": 5.51
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 491,
    "black": 0,
    "white": 0,
    "still": 92,
    "still_run_max": 1,
    "mean": [
     133.8,
     153.6,
     190.6
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 491,
    "black": 0,
    "white": 0,
    "still": 95,
    "still_run_max": 1,
    "mean": [
     181.5,
     185.0,
     189.3
    ]
   }
  },
  {
   "ep": 20,
   "place": 3,
   "length": 440,
   "rows": 440,
   "dur_s": 14.67,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.99,
   "real_dur_s": 14.67,
   "cut_frames": 0,
   "try": 3,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.73,
     "shoulder_lift": 4.13,
     "elbow_flex": 4.22,
     "wrist_flex": 3.08,
     "wrist_roll": 1.41,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.99,
     "shoulder_lift": 4.04,
     "elbow_flex": 4.48,
     "wrist_flex": 3.87,
     "wrist_roll": 2.02,
     "gripper": 5.92
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 440,
    "black": 0,
    "white": 0,
    "still": 76,
    "still_run_max": 1,
    "mean": [
     145.7,
     154.6,
     170.6
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 440,
    "black": 0,
    "white": 0,
    "still": 109,
    "still_run_max": 1,
    "mean": [
     183.4,
     186.2,
     189.0
    ]
   }
  }
 ]
}
```

#### read_servos_last.txt（依頼277）

```text

== /dev/tty.usbmodem5CBC4321631
  サーボ 6 個, 電圧の平均 11.8 V
  ID  型番  FW    位置  電圧V  温度C  トルク  Lock
   1  777  3.10   1959   11.8     34       0     0
   2  777  3.10    950   11.8     35       0     0
   3  777  3.10   3024   11.8     34       0     0
   4  777  3.10   2211   11.9     35       0     0
   5  777  3.10   2032   11.9     35       0     0
   6  777  3.10   2062   11.8     41       0     0

== /dev/tty.usbmodem5CBC4323581
  サーボ 6 個, 電圧の平均 4.9 V
  ID  型番  FW    位置  電圧V  温度C  トルク  Lock
   1  777  3.10   2030    4.9     27       0     0
   2  777  3.10    829    4.9     27       0     0
   3  777  3.10   3111    4.9     28       0     0
   4  777  3.10   2673    4.9     26       0     0
   5  777  3.10   2097    4.9     28       0     0
   6  777  3.10   2003    4.9     28       0     0
```

### 成功の印と場所の番号を付けて、KIOXIA にコピーした

`episode_labels.json` を、依頼276 と同じ形でデータのフォルダの中に置いた。今回は各回に場所の番号（place）を足している。LeRobot はこのファイルを読まないので、データの本体は変わらない。KIOXIA の `r2r2r-data/datasets/so101_redblock_box_teleop_v1_pos23/` にコピーし、8ファイル・70,098,991 バイトが Mac 側と sha1 まで一致した。

#### episode_labels.json（_pos23）

```json
{
 "dataset": "local/so101_redblock_box_teleop_v1_pos23",
 "judged_by": "エイイチ",
 "date": "2026-11-23",
 "note": "ブロックが箱に入ったか (エイイチが録った回を見て答えた. 依頼277). place は机の点の番号 (2 = 左の奥, 3 = 左の手前). dataset 本体は変えていない",
 "episodes": [
  {
   "episode_index": 0,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 1,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 2,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 3,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 4,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 5,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 6,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 7,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 8,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 9,
   "place": 2,
   "label": "success"
  },
  {
   "episode_index": 10,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 11,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 12,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 13,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 14,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 15,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 16,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 17,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 18,
   "place": 3,
   "label": "success"
  },
  {
   "episode_index": 19,
   "place": 3,
   "label": "success"
  }
 ]
}
```

#### kioxia_sha1_277.txt

```text
e213429c16039b2ba3b7d20234629b3f7e121a4f  ./data/chunk-000/file-000.parquet
e924e1d8d2ca55fddc57fa0fae4bf8a8a64769f7  ./episode_labels.json
03b12c9bffe8bb070aff0beaa352c4d3a0bc4067  ./meta/episodes/chunk-000/file-000.parquet
3419d72552c9f9971ee4d253fca57bc38df1e8a0  ./meta/info.json
e2dd76eef49c7bfe8bace7627531ad6efcf7379f  ./meta/stats.json
601f27c91a749c91a348e976afe1f7907c85ce37  ./meta/tasks.parquet
5b5483d2a353be05e72a576c9cb49a5c317dd67c  ./videos/observation.images.desk/chunk-000/file-000.mp4
8e15114bfec7e57fc185f5f9e832b6a399642615  ./videos/observation.images.wrist/chunk-000/file-000.mp4
```

#### 依頼277 の結果（依頼箱の記録）

```text
# 結果：20261123_277_SO101のお手本を左の2か所で20回録る_立ち会い

- 状態：完了
- 始めた時刻：2026-11-23 18:27
- 終わった時刻：2026-11-23 19:02（34分）
- 作業フォルダ：/Users/shimazueiichi/r2r2r-scripts
- この続きを Claude Code で話すとき：作業フォルダで `claude --resume 181366c6-aeeb-4970-9283-632ce0caa95d`

## Claude Code の報告

依頼277 はもう全部終わっていて、この起床で新しくすることはありません。

**やったこと**
- `run_277.py` は 18:50:50 に正常に終わりました（終了コード 0）。そのあと `events_277.jsonl` に新しい記録は増えていません。
- record 20回、replay 2回、確かめ、KIOXIA へのコピー、報告は、前の返答のとおり済んでいます。報告は `so101/check_277/REPORT.md` にあります。

**結果**
- record：20回・10,740コマ・30fps で、エイイチの判定は20回とも成功です。録っている最中に切られたコマ・角度の飛び・映像の欠けは、どれも 0 です。
- replay：場所2（1回目）は、箱に入った y・録ったとおりに動いた y でした。場所3（11回目）は n・n でした。腕は録ったとおりに動きましたが、爪が閉じきってブロックをつかめていません。置き直したブロックの場所か向きのずれと見ています。
- KIOXIA へのコピー：コピー先は `r2r2r-data/datasets/so101_redblock_box_teleop_v1_pos23/` です。70,098,991 バイトで、sha1 も全部一致しました。

**変えたファイル**
- この起床では、ファイルは何も変えていません。

**決めてほしいこと**
- 場所3 の replay が録ったとおりに動かなかったことの扱い。ブロックの置き直しのずれと見て受け入れるか、向きを変えていない別の回で replay をやり直すか。
- 場所4・5 の依頼で、replay に使う回をどう選ぶか（向きを変えていない回に限るか）。

判定：止めた（決めてほしいことあり）
```

#### so101/check_277/REPORT.md

```text
# 依頼277 SO-101 のお手本を場所2・場所3 で20回録る 報告（2026-11-23 18:31〜18:51）

入口は `so101/lerobot_safe_259.py` の record・replay（`check_277/run_277.py` が main() を呼ぶ）。`run_277.py` は `check_274/run_274.py` を写して変えた（run_274.py は書き換えていない）。pynput を始めない直し（`install_record_hooks`）はそのまま。包まない lerobot・rollout・Hugging Face への送信・EEPROM やキャリブレーションの書き換えはしていない。場所1 の dataset（Mac・KIOXIA とも）には触っていない。

## run_277.py で run_274.py から変えたこと
- 20回（1〜10回目＝場所2、11〜20回目＝場所3）、1回の長さ 25秒、repo_id `local/so101_redblock_box_teleop_v1_pos23`
- 画面に場所を出し、「向きを少し変えて置く」を案内。11回目の前で「場所3 に変わる／ブロックを場所3の点に置く」と大きく出して、スペースまで止める
- ← で録り直せることを各回の前の画面にも出した。字が長くなった題は横幅に入るよう縮める
- 番号の答えは2桁を打てる形にした（数字を打って スペースで足す・Enter で決める）
- 問い「場所2・3 で届きにくい・つかみにくい所は あった？」を足した
- `episode_labels.json` を書く（依頼276 の形に `place` の列を足す）
- replay は record と別のプロセス（`run_277.py --replay-ep K` を子のプロセスで）。場所2・場所3 の最初の成功の回（index 0・10）

## 20回の表（`analysis_277.json`）
| 回（index） | 場所 | 長さ秒 | コマ | 実際の Hz | 何回目で残したか | 切られたコマ | 終わり方 | 1コマ最大° 状態 / 目標 | 映像 wrist / desk | エイイチの判定 |
|---|---|---|---|---|---|---|---|---|---|---|
| 1（0） | 2 | 17.93 | 538 | 29.92 | 2 | 0 | → | 3.78 / 5.02 | 538 / 538 | success |
| 2（1） | 2 | 23.10 | 693 | 29.94 | 1 | 0 | → | 4.04 / 5.59 | 693 / 693 | success |
| 3（2） | 2 | 20.93 | 628 | 29.96 | 1 | 0 | → | 3.79 / 5.51 | 628 / 628 | success |
| 4（3） | 2 | 17.63 | 529 | 29.95 | 2 | 0 | → | 4.13 / 6.17 | 529 / 529 | success |
| 5（4） | 2 | 15.30 | 459 | 29.95 | 1 | 0 | → | 4.31 / 4.31 | 459 / 459 | success |
| 6（5） | 2 | 17.70 | 531 | 29.96 | 1 | 0 | → | 4.04 / 6.66 | 531 / 531 | success |
| 7（6） | 2 | 17.97 | 539 | 29.96 | 1 | 0 | → | 3.96 / 4.77 | 539 / 539 | success |
| 8（7） | 2 | 14.07 | 422 | 29.94 | 1 | 0 | → | 4.31 / 5.67 | 422 / 422 | success |
| 9（8） | 2 | 13.53 | 406 | 29.94 | 1 | 0 | → | 5.01 / 5.51 | 406 / 406 | success |
| 10（9） | 2 | 19.23 | 577 | 29.96 | 1 | 0 | → | 4.13 / 5.67 | 577 / 577 | success |
| 11（10） | 3 | 19.37 | 581 | 29.95 | 3 | 0 | → | 3.96 / 6.58 | 581 / 581 | success |
| 12（11） | 3 | 23.30 | 699 | 29.96 | 1 | 0 | → | 4.40 / 6.99 | 699 / 699 | success |
| 13（12） | 3 | 20.67 | 620 | 29.94 | 2 | 0 | → | 4.48 / 7.48 | 620 / 620 | success |
| 14（13） | 3 | 24.97 | 749 | 29.96 | 1 | 0 | 時間 | 4.75 / 6.66 | 749 / 749 | success |
| 15（14） | 3 | 16.73 | 502 | 29.95 | 1 | 0 | → | 4.22 / 5.51 | 502 / 502 | success |
| 16（15） | 3 | 13.73 | 412 | 29.94 | 1 | 0 | → | 4.04 / 5.10 | 412 / 412 | success |
| 17（16） | 3 | 16.30 | 489 | 29.95 | 1 | 0 | → | 4.48 / 6.33 | 489 / 489 | success |
| 18（17） | 3 | 14.50 | 435 | 29.94 | 1 | 0 | → | 3.96 / 4.61 | 435 / 435 | success |
| 19（18） | 3 | 16.37 | 491 | 29.95 | 1 | 0 | → | 4.57 / 5.51 | 491 / 491 | success |
| 20（19） | 3 | 14.67 | 440 | 29.99 | 3 | 0 | → | 4.22 / 5.92 | 440 / 440 | success |

- 合わせて 20回・10,740コマ・30fps。試しは 27回、← で捨てたのは7回（1・4・11（2回）・13・20（2回）回目）。時間（25秒）で切れたのは残した回では 14回目だけ。
- 録っている最中に B（1コマ 10°・爪 20）で切られたコマは **0**。切られたのは回の外の待ちだけ（start 1・start_wait 4・reset 9・休みの姿勢の待ち 1）。休みの姿勢の待ちは 4.42秒（リーダーで戻した）。力が入った直後 0.5秒の差は全軸 0.0°。

## 映像と角度
- 映像は2台とも全部の回にあり、コマ数は角度の行数と同じ。真っ黒・白飛びのコマは 0。止まったコマが続いたのは最長1コマ（依頼274 と同じ）。各回の最初・真ん中・最後は `frames/`（120枚）。
- observation.state・action とも全部の回にあり、1コマ 10°（爪 20）を超える差は 0。

## replay（別のプロセス）
| | 1回目（index 0・場所2） | 11回目（index 10・場所3） |
|---|---|---|
| コマ・Hz | 537・29.99 | 580・29.99 |
| 切られたコマ | 1（最初のコマ。wrist_flex 45.8→43.25） | 1（最初のコマ。wrist_flex 40.35→33.23） |
| 力が入った直後 0.5秒の差 | 全軸 0.0° | 全軸 0.0° |
| 休みの姿勢への自動戻り | 0.86秒 | 0.99秒 |
| 力を入れたままポートを閉じた | なし | なし |
| ブロックは箱に入った？（エイイチ） | y | **n** |
| 録ったとおりに動いた？（エイイチ） | y | **n** |

11回目の replay の記録（`step2_replay_ep10.json`）を録った記録と比べた（読むだけ）：
- 腕の5軸は、最初の寄り（1秒）のあとは録ったときと 1〜2° ほどで重なっている（17秒ごろの shoulder_lift だけ 3° ほど）。
- 違ったのは爪。録ったときは 11〜12秒で爪が 11.0 で止まった（ブロックをつかんで閉じきらない）が、replay では 1.0 まで閉じきった。つまり腕は録ったとおりの所へ行ったが、爪の間にブロックがなかった。
- 1回目の replay は爪が 11.1 で止まり（つかめた）、箱に入った。
- このため、11回目の replay がうまくいかなかったのは、ブロックを置き直した場所・向きが録ったときと少し違ったためと見られる（腕の追いつきの問題ではない）。11回目は場所3 の最初の回で、← で2回録り直した回。

## エイイチの答え
| 問い | 答え |
|---|---|
| 20回とも、ブロックが箱に入った？ | y |
| 録っている最中に、フォロワーがガクッと飛んだ回はあった？ | n |
| 場所2・3 で、届きにくい・つかみにくい所はあった？ | n |
| 1回目の replay：箱に入った？／録ったとおりに動いた？ | y／y |
| 11回目の replay：箱に入った？／録ったとおりに動いた？ | n／n |

## 置き場所・KIOXIA へのコピー
- Mac：`~/so101_datasets/so101_redblock_box_teleop_v1_pos23/`（`episode_labels.json` は全20回 success、place 2 が index 0〜9、3 が 10〜19）
- KIOXIA：`/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_teleop_v1_pos23/`（同じ名前はなかった）。Mac 側は消していない
- ファイル 8（dataset の 7 と labels）、合計 70,098,991 バイト（約 66.9 MiB）で両方一致。各ファイルの sha1 も一致（`kioxia_sha1_277.txt`）

## 場所4・5 を録るときに変えた方がよいこと
- つかみにくさは「なし」（エイイチの答え）なので、点を根元に寄せる必要は今のところない。
- 25秒にしたことで時間切れは 20回中 1回（依頼274 は 10回中 4回）。場所4・5 も 25秒でよさそう。
- replay で確かめるときは、ブロックを録ったときとそろえて置くのが難しい（向きを変えた回は特に）。replay の回は、向きを変えていない回を選ぶか、置き方を画面で案内する方がよい（どうするかはエイイチが決める）。

## 残したもの（git には入れない）
`check_277/`：run_277.py・analyze_277.py・analysis_277.json・frames/（120枚）・dry_*.png・events_277.jsonl・results_277.json・results_277_replay_ep0.json・results_277_replay_ep10.json・step1_record.json・step2_replay_ep0.json・step2_replay_ep10.json・run_277_stdout.log・read_servos_last.txt・kioxia_sha1_277.txt・この REPORT.md
```


## 作業ログ ― 場所4・5で20回録った（依頼278）

### 場所4の点はそのままにした

場所4（まん中の手前）は、根元からの近さが場所3とほぼ同じだ。そのままだと同じように届きにくくなると考え、点を根元から5cmほど奥へ離す案を出した。エイイチの答えは、場所4はそのままでいい、もう慣れた、だった。場所3で腕の向きを工夫するうちに、根元に近い所のつかみ方に慣れていた。

### 依頼278 の依頼文

依頼277 の文を写して、場所の番号と保存先を変えた。最後に、3つのデータで50回がそろったかを、場所ごとの成功の回数で一覧にするよう足した。

```text
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts
上限時間: 90
---
# SO-101 のお手本を、場所4・5で20回録る（依頼278・エイイチ立ち会い）

依頼274・276（`so101/check_274/REPORT.md`）で、今の場所（場所1）の10回を録った。エイイチは本番を50回と決め、残りの40回はブロックの場所を変えて録ると決めた。場所は4か所（2 左の奥・3 左の手前・4 まん中の手前・5 右の奥）で、10回ずつ。机にマジックで点の目印を付けてある（案の図：iCloud の `デジタルツイン学習R2R2R/SO-101 失敗から学ぶアームを作る/block_positions_plan.png`）。
依頼277 で場所2・3の20回を録った（場所3は根元に近く、リーダーを目一杯下げても爪が下まで届かない時があり、エイイチがアームの向きを工夫して録った）。
**今回は場所4（まん中の手前）と場所5（右の奥）の20回。** 場所4は根元に近いが、エイイチが慣れたので点はそのまま。白い箱・カメラ2台（露出の固定は依頼265・266 のまま）・照明は動かさない。アーム・カメラ2台・KIOXIA はつながっている。**フォロワーを動かしてよい。**

## 録るもの
- 課題は依頼274 と同じ（`--dataset.single_task="Put the red block into the white box"`）
- 場所4を10回 → 場所5を10回。同じ場所の中で、ブロックの向きを少し回して置く回を混ぜる（画面で「向きを少し変えて置く」と案内する。何回目かはエイイチに任せる）
- 1回の長さの目安は **25秒**（依頼274 は20秒で、時間で切れた回が多かった。場所2・3と同じにそろえる）。→で早めに終われる
- 入口は `so101/lerobot_safe_259.py record`。依頼277 の `check_277/run_277.py` を元に `check_278/run_278.py` を作る（run_274.py・run_277.py は書き換えない）。pynput を始めない直し（`install_record_hooks`）はそのまま使う
- repo_id：`local/so101_redblock_box_teleop_v1_pos45`（**新しい dataset にする。** 場所1の `so101_redblock_box_teleop_v1`・場所2・3の `_pos23` には足さない。50回をまとめるのは学習の前に決める）

## 画面
- 依頼274 の画面の流れのまま（始める前 → 各回「◯回目／20　場所◯　スペースで始める」→ 録っている間は回数・場所・残り秒を大きな字で → 終わり）
- 場所が4から5に変わる所（11回目の前）で、「ブロックを場所5の点に置く」と大きく出して止める
- ←で録り直せることを画面に出す
- 終わりは依頼274 と同じ（爪を閉じる・腕をたたむ・休みの姿勢の待ち）

## 置き場所
- まず Mac の `~/so101_datasets/so101_redblock_box_teleop_v1_pos45/` に録る
- `episode_labels.json` を依頼276 と同じ形で dataset のフォルダの中に置く。依頼277 と同じく各回に **場所（4・5）** の列を足す。成功・失敗はエイイチに聞いた答えで付ける
- 確かめが済んだら KIOXIA の `r2r2r-data/datasets/so101_redblock_box_teleop_v1_pos45/` に**コピー**（Mac 側は消さない）。マウントがなければ止める。同じ名前があれば止める。sha1 で一致を確かめる
- 実行の記録とスクリプトは `so101/check_278/`（git には入れない）

## 録ったあとに確かめること（依頼274 と同じ）
- 回数20、各回のコマ数・長さ・fps
- 映像2台が全部の回にあり、真っ黒・白飛び・止まったコマがないか。各回の最初・真ん中・最後を `check_278/frames/` に保存
- 角度の飛び（1コマ10° 超）と切られたコマの数
- replay は場所4の1回と場所5の1回（どちらも成功の回）。エイイチの合図で始め、終わりは休みの姿勢まで自動で戻す。**replay は record と別のプロセスで呼ぶ**（依頼274 で同じプロセスだとカメラの確かめで止まった）

## エイイチに聞くこと（y/n と番号）
- 箱に入らなかった回の番号
- 録っている最中にフォロワーがガクッと飛んだ回はあった？
- 場所4・5で、届きにくい・つかみにくい所はあった？
- replay で録ったとおりに動いた？

## しないこと
- 包まない lerobot、rollout、Hugging Face への送信、EEPROM・キャリブレーションの書き換え、`~/lerobot`・`lerobot_safe_259.py`・カメラの設定ファイル・`run_274.py` の書き換え
- 場所1・場所2・3の dataset（Mac・KIOXIA とも）に触る、KIOXIA の既存のファイルの上書き・移動・削除、`git add .`・`git clean`
- 確認や停止の条件を新しく重ねる

## 報告
- 20回の表（回・場所・長さ・コマ数・切られたコマ・時間か→か・エイイチの判定）
- 映像と角度の確かめ、replay の結果
- KIOXIA にコピーした場所とサイズ
- 場所4・5のつかみにくさ（エイイチの答え）と、50回（v1・_pos23・_pos45）がそろったかの一覧（場所ごとの成功の回数）
- 最後の1行に「判定：合格／止めた（決めてほしいことあり）／失敗」
```

### 20回を10分で、録り直し0回

録り始めから最後の保存までは 19:06:14〜19:16:23 の10分09秒で、1回あたり約30秒。20回とも1回目の試しで残り、←キーの録り直しは0回だった。全部→キーで終えていて、25秒の時間切れも0回。

| 回（index） | 場所 | 長さ秒 | コマ | 終わり方 | 箱に入った？ |
|---|---|---|---|---|---|
| 1（0） | 4 | 14.37 | 431 | → | 入った |
| 2（1） | 4 | 18.73 | 562 | → | 入った |
| 3（2） | 4 | 17.80 | 534 | → | 入った |
| 4（3） | 4 | 20.23 | 607 | → | 入った |
| 5（4） | 4 | 12.40 | 372 | → | 入った |
| 6（5） | 4 | 18.60 | 558 | → | 入った |
| 7（6） | 4 | 16.47 | 494 | → | 入った |
| 8（7） | 4 | 17.73 | 532 | → | 入った |
| 9（8） | 4 | 11.30 | 339 | → | 入った |
| 10（9） | 4 | 13.77 | 413 | → | 入った |
| 11（10） | 5 | 13.90 | 417 | → | 入った |
| 12（11） | 5 | 14.03 | 421 | → | 入った |
| 13（12） | 5 | 16.80 | 504 | → | 入った |
| 14（13） | 5 | 13.30 | 399 | → | 入った |
| 15（14） | 5 | 10.37 | 311 | → | 入った |
| 16（15） | 5 | 13.90 | 417 | → | 入った |
| 17（16） | 5 | 15.27 | 458 | → | 入った |
| 18（17） | 5 | 15.77 | 473 | → | 入った |
| 19（18） | 5 | 13.27 | 398 | → | 入った |
| 20（19） | 5 | 15.73 | 472 | → | 入った |

映像の欠け・角度の飛び・録っている最中に切られたコマは、どれも0。再生は場所4の1回目と場所5の11回目で、どちらも箱に入り、録ったとおりに動いた。エイイチの答えでは、場所4・5で届きにくい・つかみにくい所はなかった。

- ねらい：同じ手順の画面と、同じ机の点のまま、録る人が手順に慣れていく
- 変わったこと：1回にかかった時間は、前の10回（LOG565）の約60秒から、場所2・3で約45秒、場所4・5で約30秒になった。録り直しも4回、7回、0回と減った
- 見込める効果：この速さなら、置き場所や課題を足して50回録り直すのも30分ほどで済む見込み。速くなったのは慣れと、運ぶ距離が短い場所5が入ったことの両方で、どちらがどれだけ効いたかは分けて測っていない

#### events_278_dry.jsonl

```json
{"t": 1795428176.1478558, "clock": "19:02:56", "kind": "start", "dry": true, "replay_ep": null}
{"t": 1795428176.206499, "clock": "19:02:56", "kind": "screen", "title": "3回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428179.216227, "clock": "19:02:59", "kind": "screen", "title": "10回目 終わり (場所4 はこれで終わり)", "lines": ["次は 場所5", "腕を休みの姿勢へ", "スペースで次へ (次の画面で 場所の置き直し)", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428182.302197, "clock": "19:03:02", "kind": "screen", "title": "11回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428183.839082, "clock": "19:03:03", "kind": "screen", "title": "5回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428185.375457, "clock": "19:03:05", "kind": "screen", "title": "20回目 終わり (これで20回)", "lines": ["リーダーで 爪を閉じる", "腕を机の上まで下ろして たたむ (休みの姿勢)", "たたんだら スペース (保存して 力が抜ける)", "幅の外だと 赤い字で関節名が出る → そこを戻す", "うまくいかなかったら ← で録り直す"]}
```

#### run_278_stdout.log

```text
[278] 19:03:13 start {"dry": false, "replay_ep": null}
W1123 19:03:16.006000 38067 site-packages/torch/distributed/elastic/multiprocessing/redirects.py:35] NOTE: Redirects are currently not supported in MacOs.
objc[38067]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10418c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1593f03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[38067]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10418c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1593f03f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[278] 19:03:20 read_servos {"follower": [[1, 1947, 0], [2, 950, 0], [3, 3024, 0], [4, 2211, 0], [5, 2043, 0], [6, 2062, 0]], "leader": [[1, 2030, 0], [2, 829, 0], [3, 3111, 0], [4, 2673, 0], [5, 2097, 0], [6, 2003, 0]], "ok": true}
[278] 19:03:20 screen {"title": "0. 始める前", "lines": ["ブロックを 場所4 (まん中の手前) の点に置く", "リーダーとフォロワーの姿勢を近づける", "フォロワーのまわりを空ける・電源をすぐ切れるようにする", "次のスペースで つなぐ (力が入る. まだ録らない)", "(止めたいとき: q キー = Ctrl-C)", "", "準備ができたら スペース"]}
[278] 19:05:54 key {"title": "0. 始める前", "key": " "}
[278] 19:05:54 run_start {"run": "step1_record", "argv": ["record", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos45", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45", "--dataset.single_task=Put the red block into the white box", "--dataset.fps=30", "--dataset.num_episodes=20", "--dataset.episode_time_s=25", "--dataset.reset_time_s=3600", "--dataset.no_stamp=true"]}
INFO 2026-11-23 19:05:56 t_record.py:401 {'dataset': {'depth_encoder': {'crf': 30,
                               'depth_max': 10.0,
                               'depth_min': 0.01,
                               'extra_options': {'x265-params': 'lossless=1'},
                               'fast_decode': 0,
                               'g': 2,
                               'pix_fmt': 'gray12le',
                               'preset': None,
                               'shift': 3.5,
                               'use_log': True,
                               'vcodec': 'hevc',
                               'video_backend': 'pyav'},
             'encoder_queue_maxsize': 30,
             'encoder_threads': None,
             'episode_time_s': 25,
             'fps': 30,
             'no_stamp': True,
             'num_episodes': 20,
             'num_image_writer_processes': 0,
             'num_image_writer_threads_per_camera': 4,
             'private': None,
             'push_to_hub': False,
             'repo_id': 'local/so101_redblock_box_teleop_v1_pos45',
             'reset_time_s': 3600,
             'rgb_encoder': {'crf': 30,
                             'extra_options': {},
                             'fast_decode': 0,
                             'g': 2,
                             'pix_fmt': 'yuv420p',
                             'preset': 12,
                             'vcodec': 'libsvtav1',
                             'video_backend': 'pyav'},
             'root': '/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45',
             'single_task': 'Put the red block into the white box',
             'streaming_encoding': False,
             'tags': None,
             'video': True,
             'video_encoding_batch_size': 1},
 'display_compressed_images': False,
 'display_data': False,
 'display_ip': None,
 'display_mode': 'rerun',
 'display_port': None,
 'play_sounds': True,
 'resume': False,
 'robot': {'calibration_dir': None,
           'cameras': {'desk': {'backend': <Cv2Backends.ANY: 0>,
                                'color_mode': <ColorMode.RGB: 'rgb'>,
                                'fourcc': 'MJPG',
                                'fps': 30,
                                'height': 480,
                                'index_or_path': 0,
                                'rotation': <Cv2Rotation.NO_ROTATION: 0>,
                                'warmup_s': 1,
                                'width': 640},
                       'wrist': {'backend': <Cv2Backends.ANY: 0>,
                                 'color_mode': <ColorMode.RGB: 'rgb'>,
                                 'fourcc': 'MJPG',
                                 'fps': 30,
                                 'height': 480,
                                 'index_or_path': 1,
                                 'rotation': <Cv2Rotation.NO_ROTATION: 0>,
                                 'warmup_s': 1,
                                 'width': 640}},
           'disable_torque_on_disconnect': True,
           'id': 'ptm_follower',
           'max_relative_target': None,
           'num_read_retries': 2,
           'port': '/dev/tty.usbmodem5CBC4321631',
           'position_d_coefficient': 32,
           'position_i_coefficient': 0,
           'position_p_coefficient': 16,
           'use_degrees': True},
 'teleop': {'calibration_dir': None,
            'id': 'ptm_leader',
            'num_read_retries': 2,
            'port': '/dev/tty.usbmodem5CBC4323581',
            'use_degrees': True}}
objc[38067]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10418c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x169cf8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[38067]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10418c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x169cf87c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 19:05:57 so_leader.py:95 ptm_leader SOLeader connected.
INFO 2026-11-23 19:05:57 safe_259.py:115 [A] follower: connect の直後に目標を今の位置にした
WARNING 2026-11-23 19:05:57 a_opencv.py:284 OpenCVCamera(1) failed to set fourcc=MJPG (actual=    , success=False). Continuing with default format.
INFO 2026-11-23 19:05:59 a_opencv.py:198 OpenCVCamera(1) connected.
WARNING 2026-11-23 19:05:59 a_opencv.py:284 OpenCVCamera(0) failed to set fourcc=MJPG (actual=    , success=False). Continuing with default format.
INFO 2026-11-23 19:06:01 a_opencv.py:198 OpenCVCamera(0) connected.
INFO 2026-11-23 19:06:02 safe_259.py:663 [CAM] 露出・ホワイトバランスを固定した: {'wrist': {'auto-exposure-mode': '8', 'auto-white-balance-temp': 'false', 'white-balance-temp': '4600', 'brightness': '0', 'contrast': '38', 'gamma': '400'}, 'desk': {'auto-exposure-mode': '1', 'auto-white-balance-temp': 'true', 'exposure-time-abs': '101', 'gain': '0'}}
INFO 2026-11-23 19:06:02 safe_259.py:125 [A] follower: 力を入れる直前に目標を今の位置にした (全部)
[278] 19:06:03 torque_on {"run": "step1_record", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
INFO 2026-11-23 19:06:03 follower.py:128 ptm_follower SOFollower connected.
[278] 19:06:03 keyboard_listener {"note": "pynput を使わない (手順のウィンドウで →・← を受ける)"}
INFO 2026-11-23 19:06:03 t_record.py:504 Streaming encoding is disabled. If you have capable hardware, consider enabling it for way faster episode saving. --dataset.streaming_encoding=true --dataset.encoder_threads=2 # --dataset.rgb_encoder.vcodec=auto. More info in the documentation: https://huggingface.co/docs/lerobot/streaming_video_encoding
INFO 2026-11-23 19:06:03 ls/utils.py:151 Recording episode 0
[278] 19:06:03 phase {"phase": "start", "ep": 1}
[278] 19:06:03 screen {"title": "1回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:06:14 key {"phase": "start", "ep": 1, "key": "space", "place": 4}
[278] 19:06:14 phase_end {"phase": "start", "ep": 1, "dur_s": 11.14}
[278] 19:06:14 episode_start {"ep": 1, "try_": 1}
[278] 19:06:28 key {"phase": "episode", "ep": 1, "key": "right"}
[278] 19:06:28 episode_end {"ep": 1, "place": 4, "try": 1, "dur_s": 14.37, "buffer_frames": 431, "end": "right", "label": "ep1_try1"}
INFO 2026-11-23 19:06:28 ls/utils.py:151 Reset the environment
[278] 19:06:28 phase {"phase": "reset", "ep": 1}
[278] 19:06:29 screen {"title": "1回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:06:34 key {"phase": "reset", "ep": 1, "key": "space", "rerecord": false}
[278] 19:06:34 phase_end {"phase": "reset", "ep": 1, "dur_s": 5.94}

Map:   0%|          | 0/431 [00:00<?, ? examples/s]
Map: 100%|██████████| 431/431 [00:00<00:00, 5367.02 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[278] 19:06:42 saved {"ep": 1, "dur_s": 7.91, "num_episodes": 1}
INFO 2026-11-23 19:06:42 ls/utils.py:151 Recording episode 1
[278] 19:06:42 phase {"phase": "start", "ep": 2}
[278] 19:06:42 screen {"title": "2回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:06:44 key {"phase": "start", "ep": 2, "key": "space", "place": 4}
[278] 19:06:44 phase_end {"phase": "start", "ep": 2, "dur_s": 1.53}
[278] 19:06:44 episode_start {"ep": 2, "try_": 1}
INFO 2026-11-23 19:06:44 le_timer.py:570 Cadence (episode 0): 29.99 Hz vs 30 Hz target · 431 ticks, 14.3 s measured · 0/430 ticks over the 33.3 ms budget (work mean 16.6 ms, worst 19.7 ms)
[278] 19:07:03 key {"phase": "episode", "ep": 2, "key": "right"}
[278] 19:07:03 episode_end {"ep": 2, "place": 4, "try": 1, "dur_s": 18.74, "buffer_frames": 562, "end": "right", "label": "ep2_try1"}
INFO 2026-11-23 19:07:03 ls/utils.py:151 Reset the environment
[278] 19:07:03 phase {"phase": "reset", "ep": 2}
[278] 19:07:03 screen {"title": "2回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:07:04 key {"phase": "reset", "ep": 2, "key": "space", "rerecord": false}
[278] 19:07:04 phase_end {"phase": "reset", "ep": 2, "dur_s": 1.4}

Map:   0%|          | 0/562 [00:00<?, ? examples/s]
Map: 100%|██████████| 562/562 [00:00<00:00, 5881.50 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335fda630] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x15718cc60] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:07:12 saved {"ep": 2, "dur_s": 8.22, "num_episodes": 2}
INFO 2026-11-23 19:07:12 ls/utils.py:151 Recording episode 2
[278] 19:07:12 phase {"phase": "start", "ep": 3}
[278] 19:07:12 screen {"title": "3回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:07:14 key {"phase": "start", "ep": 3, "key": "space", "place": 4}
[278] 19:07:14 phase_end {"phase": "start", "ep": 3, "dur_s": 1.87}
[278] 19:07:14 episode_start {"ep": 3, "try_": 1}
INFO 2026-11-23 19:07:14 le_timer.py:570 Cadence (episode 1): 29.99 Hz vs 30 Hz target · 562 ticks, 18.7 s measured · 0/561 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 19.9 ms)
[278] 19:07:32 key {"phase": "episode", "ep": 3, "key": "right"}
[278] 19:07:32 episode_end {"ep": 3, "place": 4, "try": 1, "dur_s": 17.81, "buffer_frames": 534, "end": "right", "label": "ep3_try1"}
INFO 2026-11-23 19:07:32 ls/utils.py:151 Reset the environment
[278] 19:07:32 phase {"phase": "reset", "ep": 3}
[278] 19:07:32 screen {"title": "3回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:07:33 key {"phase": "reset", "ep": 3, "key": "space", "rerecord": false}
[278] 19:07:33 phase_end {"phase": "reset", "ep": 3, "dur_s": 1.27}

Map:   0%|          | 0/534 [00:00<?, ? examples/s]
Map: 100%|██████████| 534/534 [00:00<00:00, 5702.45 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335fda630] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3367cffd0] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:07:41 saved {"ep": 3, "dur_s": 7.64, "num_episodes": 3}
INFO 2026-11-23 19:07:41 ls/utils.py:151 Recording episode 3
[278] 19:07:41 phase {"phase": "start", "ep": 4}
[278] 19:07:41 screen {"title": "4回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:07:43 key {"phase": "start", "ep": 4, "key": "space", "place": 4}
[278] 19:07:43 phase_end {"phase": "start", "ep": 4, "dur_s": 2.3}
[278] 19:07:43 episode_start {"ep": 4, "try_": 1}
INFO 2026-11-23 19:07:43 le_timer.py:570 Cadence (episode 2): 29.99 Hz vs 30 Hz target · 534 ticks, 17.8 s measured · 0/533 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.0 ms)
[278] 19:08:03 key {"phase": "episode", "ep": 4, "key": "right"}
[278] 19:08:04 episode_end {"ep": 4, "place": 4, "try": 1, "dur_s": 20.24, "buffer_frames": 607, "end": "right", "label": "ep4_try1"}
INFO 2026-11-23 19:08:04 ls/utils.py:151 Reset the environment
[278] 19:08:04 phase {"phase": "reset", "ep": 4}
[278] 19:08:04 screen {"title": "4回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:08:20 key {"phase": "reset", "ep": 4, "key": "space", "rerecord": false}
[278] 19:08:20 phase_end {"phase": "reset", "ep": 4, "dur_s": 16.07}

Map:   0%|          | 0/607 [00:00<?, ? examples/s]
Map: 100%|██████████| 607/607 [00:00<00:00, 6056.06 examples/s]
Map: 100%|██████████| 607/607 [00:00<00:00, 6009.06 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x336524130] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3367caa20] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:08:29 saved {"ep": 4, "dur_s": 8.88, "num_episodes": 4}
INFO 2026-11-23 19:08:29 ls/utils.py:151 Recording episode 4
[278] 19:08:29 phase {"phase": "start", "ep": 5}
[278] 19:08:29 screen {"title": "5回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:08:32 key {"phase": "start", "ep": 5, "key": "space", "place": 4}
[278] 19:08:32 phase_end {"phase": "start", "ep": 5, "dur_s": 3.5}
[278] 19:08:32 episode_start {"ep": 5, "try_": 1}
INFO 2026-11-23 19:08:32 le_timer.py:570 Cadence (episode 3): 29.99 Hz vs 30 Hz target · 607 ticks, 20.2 s measured · 0/606 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.0 ms)
[278] 19:08:44 key {"phase": "episode", "ep": 5, "key": "right"}
[278] 19:08:44 episode_end {"ep": 5, "place": 4, "try": 1, "dur_s": 12.4, "buffer_frames": 372, "end": "right", "label": "ep5_try1"}
INFO 2026-11-23 19:08:44 ls/utils.py:151 Reset the environment
[278] 19:08:44 phase {"phase": "reset", "ep": 5}
[278] 19:08:44 screen {"title": "5回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:08:49 key {"phase": "reset", "ep": 5, "key": "space", "rerecord": false}
[278] 19:08:49 phase_end {"phase": "reset", "ep": 5, "dur_s": 4.7}

Map:   0%|          | 0/372 [00:00<?, ? examples/s]
Map: 100%|██████████| 372/372 [00:00<00:00, 5931.21 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x336525750] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3367cf6e0] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:08:56 saved {"ep": 5, "dur_s": 6.39, "num_episodes": 5}
INFO 2026-11-23 19:08:56 ls/utils.py:151 Recording episode 5
[278] 19:08:56 phase {"phase": "start", "ep": 6}
[278] 19:08:56 screen {"title": "6回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:08:59 key {"phase": "start", "ep": 6, "key": "space", "place": 4}
[278] 19:08:59 phase_end {"phase": "start", "ep": 6, "dur_s": 3.13}
[278] 19:08:59 episode_start {"ep": 6, "try_": 1}
INFO 2026-11-23 19:08:59 le_timer.py:570 Cadence (episode 4): 29.99 Hz vs 30 Hz target · 372 ticks, 12.4 s measured · 0/371 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 19.8 ms)
[278] 19:09:17 key {"phase": "episode", "ep": 6, "key": "right"}
[278] 19:09:17 episode_end {"ep": 6, "place": 4, "try": 1, "dur_s": 18.61, "buffer_frames": 558, "end": "right", "label": "ep6_try1"}
INFO 2026-11-23 19:09:17 ls/utils.py:151 Reset the environment
[278] 19:09:17 phase {"phase": "reset", "ep": 6}
[278] 19:09:17 screen {"title": "6回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:09:23 key {"phase": "reset", "ep": 6, "key": "space", "rerecord": false}
[278] 19:09:23 phase_end {"phase": "reset", "ep": 6, "dur_s": 5.7}

Map:   0%|          | 0/558 [00:00<?, ? examples/s]
Map: 100%|██████████| 558/558 [00:00<00:00, 5781.60 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335fdd030] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x336525710] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:09:31 saved {"ep": 6, "dur_s": 7.7, "num_episodes": 6}
INFO 2026-11-23 19:09:31 ls/utils.py:151 Recording episode 6
[278] 19:09:31 phase {"phase": "start", "ep": 7}
[278] 19:09:31 screen {"title": "7回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:09:34 key {"phase": "start", "ep": 7, "key": "space", "place": 4}
[278] 19:09:34 phase_end {"phase": "start", "ep": 7, "dur_s": 3.07}
[278] 19:09:34 episode_start {"ep": 7, "try_": 1}
INFO 2026-11-23 19:09:34 le_timer.py:570 Cadence (episode 5): 29.99 Hz vs 30 Hz target · 558 ticks, 18.6 s measured · 0/557 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.0 ms)
[278] 19:09:50 key {"phase": "episode", "ep": 7, "key": "right"}
[278] 19:09:50 episode_end {"ep": 7, "place": 4, "try": 1, "dur_s": 16.47, "buffer_frames": 494, "end": "right", "label": "ep7_try1"}
INFO 2026-11-23 19:09:50 ls/utils.py:151 Reset the environment
[278] 19:09:50 phase {"phase": "reset", "ep": 7}
[278] 19:09:50 screen {"title": "7回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:09:55 key {"phase": "reset", "ep": 7, "key": "space", "rerecord": false}
[278] 19:09:55 phase_end {"phase": "reset", "ep": 7, "dur_s": 4.9}

Map:   0%|          | 0/494 [00:00<?, ? examples/s]
Map: 100%|██████████| 494/494 [00:00<00:00, 5910.77 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335fdd3a0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3367cf6e0] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:10:03 saved {"ep": 7, "dur_s": 7.27, "num_episodes": 7}
INFO 2026-11-23 19:10:03 ls/utils.py:151 Recording episode 7
[278] 19:10:03 phase {"phase": "start", "ep": 8}
[278] 19:10:03 screen {"title": "8回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:10:05 key {"phase": "start", "ep": 8, "key": "space", "place": 4}
[278] 19:10:05 phase_end {"phase": "start", "ep": 8, "dur_s": 2.2}
[278] 19:10:05 episode_start {"ep": 8, "try_": 1}
INFO 2026-11-23 19:10:05 le_timer.py:570 Cadence (episode 6): 29.99 Hz vs 30 Hz target · 494 ticks, 16.4 s measured · 0/493 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.0 ms)
[278] 19:10:22 key {"phase": "episode", "ep": 8, "key": "right"}
[278] 19:10:23 episode_end {"ep": 8, "place": 4, "try": 1, "dur_s": 17.74, "buffer_frames": 532, "end": "right", "label": "ep8_try1"}
INFO 2026-11-23 19:10:23 ls/utils.py:151 Reset the environment
[278] 19:10:23 phase {"phase": "reset", "ep": 8}
[278] 19:10:23 screen {"title": "8回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:10:29 key {"phase": "reset", "ep": 8, "key": "space", "rerecord": false}
[278] 19:10:29 phase_end {"phase": "reset", "ep": 8, "dur_s": 6.2}

Map:   0%|          | 0/532 [00:00<?, ? examples/s]
Map: 100%|██████████| 532/532 [00:00<00:00, 5951.97 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x336525710] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x336525230] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:10:36 saved {"ep": 8, "dur_s": 7.58, "num_episodes": 8}
INFO 2026-11-23 19:10:36 ls/utils.py:151 Recording episode 8
[278] 19:10:36 phase {"phase": "start", "ep": 9}
[278] 19:10:36 screen {"title": "9回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:10:39 key {"phase": "start", "ep": 9, "key": "space", "place": 4}
[278] 19:10:39 phase_end {"phase": "start", "ep": 9, "dur_s": 2.2}
[278] 19:10:39 episode_start {"ep": 9, "try_": 1}
INFO 2026-11-23 19:10:39 le_timer.py:570 Cadence (episode 7): 29.99 Hz vs 30 Hz target · 532 ticks, 17.7 s measured · 0/531 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.5 ms)
[278] 19:10:50 key {"phase": "episode", "ep": 9, "key": "right"}
[278] 19:10:50 episode_end {"ep": 9, "place": 4, "try": 1, "dur_s": 11.3, "buffer_frames": 339, "end": "right", "label": "ep9_try1"}
INFO 2026-11-23 19:10:50 ls/utils.py:151 Reset the environment
[278] 19:10:50 phase {"phase": "reset", "ep": 9}
[278] 19:10:50 screen {"title": "9回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:10:54 key {"phase": "reset", "ep": 9, "key": "space", "rerecord": false}
[278] 19:10:54 phase_end {"phase": "reset", "ep": 9, "dur_s": 4.17}

Map:   0%|          | 0/339 [00:00<?, ? examples/s]
Map: 100%|██████████| 339/339 [00:00<00:00, 5910.74 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335fdd7f0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3365254a0] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:11:01 saved {"ep": 9, "dur_s": 6.53, "num_episodes": 9}
INFO 2026-11-23 19:11:01 ls/utils.py:151 Recording episode 9
[278] 19:11:01 phase {"phase": "start", "ep": 10}
[278] 19:11:01 screen {"title": "10回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:11:04 key {"phase": "start", "ep": 10, "key": "space", "place": 4}
[278] 19:11:04 phase_end {"phase": "start", "ep": 10, "dur_s": 3.14}
[278] 19:11:04 episode_start {"ep": 10, "try_": 1}
INFO 2026-11-23 19:11:04 le_timer.py:570 Cadence (episode 8): 29.99 Hz vs 30 Hz target · 339 ticks, 11.3 s measured · 0/338 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.5 ms)
[278] 19:11:17 key {"phase": "episode", "ep": 10, "key": "right"}
[278] 19:11:18 episode_end {"ep": 10, "place": 4, "try": 1, "dur_s": 13.77, "buffer_frames": 413, "end": "right", "label": "ep10_try1"}
INFO 2026-11-23 19:11:18 ls/utils.py:151 Reset the environment
[278] 19:11:18 phase {"phase": "reset", "ep": 10}
[278] 19:11:18 screen {"title": "10回目 終わり (場所4 はこれで終わり)", "lines": ["次は 場所5", "腕を休みの姿勢へ", "スペースで次へ (次の画面で 場所の置き直し)", "うまくいかなかった回は ← で録り直す"]}
[278] 19:11:26 key {"phase": "reset", "ep": 10, "key": "space", "rerecord": false}
[278] 19:11:26 phase_end {"phase": "reset", "ep": 10, "dur_s": 8.9}

Map:   0%|          | 0/413 [00:00<?, ? examples/s]
Map: 100%|██████████| 413/413 [00:00<00:00, 5920.29 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x33651aef0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x15718cc60] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:11:33 saved {"ep": 10, "dur_s": 6.86, "num_episodes": 10}
INFO 2026-11-23 19:11:33 ls/utils.py:151 Recording episode 10
[278] 19:11:33 phase {"phase": "start", "ep": 11}
[278] 19:11:39 key {"phase": "place5", "ep": 11, "key": "space"}
[278] 19:11:39 screen {"title": "11回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:11:40 key {"phase": "start", "ep": 11, "key": "space", "place": 5}
[278] 19:11:40 phase_end {"phase": "start", "ep": 11, "dur_s": 7.07}
[278] 19:11:40 episode_start {"ep": 11, "try_": 1}
INFO 2026-11-23 19:11:40 le_timer.py:570 Cadence (episode 9): 29.99 Hz vs 30 Hz target · 413 ticks, 13.7 s measured · 0/412 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 19.7 ms)
[278] 19:11:54 key {"phase": "episode", "ep": 11, "key": "right"}
[278] 19:11:54 episode_end {"ep": 11, "place": 5, "try": 1, "dur_s": 13.9, "buffer_frames": 417, "end": "right", "label": "ep11_try1"}
INFO 2026-11-23 19:11:54 ls/utils.py:151 Reset the environment
[278] 19:11:54 phase {"phase": "reset", "ep": 11}
[278] 19:11:54 screen {"title": "11回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:11:59 key {"phase": "reset", "ep": 11, "key": "space", "rerecord": false}
[278] 19:11:59 phase_end {"phase": "reset", "ep": 11, "dur_s": 4.23}

Map:   0%|          | 0/417 [00:00<?, ? examples/s]
Map: 100%|██████████| 417/417 [00:00<00:00, 5954.92 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335fdd030] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3367cf6e0] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:12:05 saved {"ep": 11, "dur_s": 6.82, "num_episodes": 11}
INFO 2026-11-23 19:12:05 ls/utils.py:151 Recording episode 11
[278] 19:12:05 phase {"phase": "start", "ep": 12}
[278] 19:12:05 screen {"title": "12回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:12:08 key {"phase": "start", "ep": 12, "key": "space", "place": 5}
[278] 19:12:08 phase_end {"phase": "start", "ep": 12, "dur_s": 2.4}
[278] 19:12:08 episode_start {"ep": 12, "try_": 1}
INFO 2026-11-23 19:12:08 le_timer.py:570 Cadence (episode 10): 29.99 Hz vs 30 Hz target · 417 ticks, 13.9 s measured · 0/416 ticks over the 33.3 ms budget (work mean 16.6 ms, worst 19.7 ms)
[278] 19:12:22 key {"phase": "episode", "ep": 12, "key": "right"}
[278] 19:12:22 episode_end {"ep": 12, "place": 5, "try": 1, "dur_s": 14.04, "buffer_frames": 421, "end": "right", "label": "ep12_try1"}
INFO 2026-11-23 19:12:22 ls/utils.py:151 Reset the environment
[278] 19:12:22 phase {"phase": "reset", "ep": 12}
[278] 19:12:22 screen {"title": "12回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:12:27 key {"phase": "reset", "ep": 12, "key": "space", "rerecord": false}
[278] 19:12:27 phase_end {"phase": "reset", "ep": 12, "dur_s": 5.34}

Map:   0%|          | 0/421 [00:00<?, ? examples/s]
Map: 100%|██████████| 421/421 [00:00<00:00, 5979.18 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x33b182b40] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x33b183c50] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:12:34 saved {"ep": 12, "dur_s": 6.87, "num_episodes": 12}
INFO 2026-11-23 19:12:34 ls/utils.py:151 Recording episode 12
[278] 19:12:34 phase {"phase": "start", "ep": 13}
[278] 19:12:34 screen {"title": "13回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:12:36 key {"phase": "start", "ep": 13, "key": "space", "place": 5}
[278] 19:12:36 phase_end {"phase": "start", "ep": 13, "dur_s": 2.3}
[278] 19:12:36 episode_start {"ep": 13, "try_": 1}
INFO 2026-11-23 19:12:36 le_timer.py:570 Cadence (episode 11): 29.99 Hz vs 30 Hz target · 421 ticks, 14.0 s measured · 0/420 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.5 ms)
[278] 19:12:53 key {"phase": "episode", "ep": 13, "key": "right"}
[278] 19:12:53 episode_end {"ep": 13, "place": 5, "try": 1, "dur_s": 16.81, "buffer_frames": 504, "end": "right", "label": "ep13_try1"}
INFO 2026-11-23 19:12:53 ls/utils.py:151 Reset the environment
[278] 19:12:53 phase {"phase": "reset", "ep": 13}
[278] 19:12:53 screen {"title": "13回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:12:57 key {"phase": "reset", "ep": 13, "key": "space", "rerecord": false}
[278] 19:12:57 phase_end {"phase": "reset", "ep": 13, "dur_s": 3.53}

Map:   0%|          | 0/504 [00:00<?, ? examples/s]
Map: 100%|██████████| 504/504 [00:00<00:00, 5995.86 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335f27720] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x335fdde70] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:13:05 saved {"ep": 13, "dur_s": 8.15, "num_episodes": 13}
INFO 2026-11-23 19:13:05 ls/utils.py:151 Recording episode 13
[278] 19:13:05 phase {"phase": "start", "ep": 14}
[278] 19:13:05 screen {"title": "14回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:13:07 key {"phase": "start", "ep": 14, "key": "space", "place": 5}
[278] 19:13:07 phase_end {"phase": "start", "ep": 14, "dur_s": 2.2}
[278] 19:13:07 episode_start {"ep": 14, "try_": 1}
INFO 2026-11-23 19:13:07 le_timer.py:570 Cadence (episode 12): 29.99 Hz vs 30 Hz target · 504 ticks, 16.8 s measured · 0/503 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.3 ms)
[278] 19:13:20 key {"phase": "episode", "ep": 14, "key": "right"}
[278] 19:13:21 episode_end {"ep": 14, "place": 5, "try": 1, "dur_s": 13.3, "buffer_frames": 399, "end": "right", "label": "ep14_try1"}
INFO 2026-11-23 19:13:21 ls/utils.py:151 Reset the environment
[278] 19:13:21 phase {"phase": "reset", "ep": 14}
[278] 19:13:21 screen {"title": "14回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:13:25 key {"phase": "reset", "ep": 14, "key": "space", "rerecord": false}
[278] 19:13:25 phase_end {"phase": "reset", "ep": 14, "dur_s": 4.77}

Map:   0%|          | 0/399 [00:00<?, ? examples/s]
Map: 100%|██████████| 399/399 [00:00<00:00, 5865.50 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335f27720] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x335ff0bc0] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:13:32 saved {"ep": 14, "dur_s": 6.72, "num_episodes": 14}
INFO 2026-11-23 19:13:32 ls/utils.py:151 Recording episode 14
[278] 19:13:32 phase {"phase": "start", "ep": 15}
[278] 19:13:32 screen {"title": "15回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:13:34 key {"phase": "start", "ep": 15, "key": "space", "place": 5}
[278] 19:13:34 phase_end {"phase": "start", "ep": 15, "dur_s": 2.23}
[278] 19:13:34 episode_start {"ep": 15, "try_": 1}
INFO 2026-11-23 19:13:34 le_timer.py:570 Cadence (episode 13): 29.99 Hz vs 30 Hz target · 399 ticks, 13.3 s measured · 0/398 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 19.7 ms)
[278] 19:13:45 key {"phase": "episode", "ep": 15, "key": "right"}
[278] 19:13:45 episode_end {"ep": 15, "place": 5, "try": 1, "dur_s": 10.37, "buffer_frames": 311, "end": "right", "label": "ep15_try1"}
INFO 2026-11-23 19:13:45 ls/utils.py:151 Reset the environment
[278] 19:13:45 phase {"phase": "reset", "ep": 15}
[278] 19:13:45 screen {"title": "15回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:13:49 key {"phase": "reset", "ep": 15, "key": "space", "rerecord": false}
[278] 19:13:49 phase_end {"phase": "reset", "ep": 15, "dur_s": 4.47}

Map:   0%|          | 0/311 [00:00<?, ? examples/s]
Map: 100%|██████████| 311/311 [00:00<00:00, 5825.81 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x3272d9cd0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x3272d9cd0] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:13:55 saved {"ep": 15, "dur_s": 6.23, "num_episodes": 15}
INFO 2026-11-23 19:13:55 ls/utils.py:151 Recording episode 15
[278] 19:13:55 phase {"phase": "start", "ep": 16}
[278] 19:13:55 screen {"title": "16回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:13:58 key {"phase": "start", "ep": 16, "key": "space", "place": 5}
[278] 19:13:58 phase_end {"phase": "start", "ep": 16, "dur_s": 2.47}
[278] 19:13:58 episode_start {"ep": 16, "try_": 1}
INFO 2026-11-23 19:13:58 le_timer.py:570 Cadence (episode 14): 29.99 Hz vs 30 Hz target · 311 ticks, 10.3 s measured · 0/310 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.0 ms)
[278] 19:14:12 key {"phase": "episode", "ep": 16, "key": "right"}
[278] 19:14:12 episode_end {"ep": 16, "place": 5, "try": 1, "dur_s": 13.9, "buffer_frames": 417, "end": "right", "label": "ep16_try1"}
INFO 2026-11-23 19:14:12 ls/utils.py:151 Reset the environment
[278] 19:14:12 phase {"phase": "reset", "ep": 16}
[278] 19:14:12 screen {"title": "16回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:14:16 key {"phase": "reset", "ep": 16, "key": "space", "rerecord": false}
[278] 19:14:16 phase_end {"phase": "reset", "ep": 16, "dur_s": 4.3}

Map:   0%|          | 0/417 [00:00<?, ? examples/s]
Map: 100%|██████████| 417/417 [00:00<00:00, 5888.93 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335ff4c90] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x335f27720] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:14:23 saved {"ep": 16, "dur_s": 6.91, "num_episodes": 16}
INFO 2026-11-23 19:14:23 ls/utils.py:151 Recording episode 16
[278] 19:14:23 phase {"phase": "start", "ep": 17}
[278] 19:14:23 screen {"title": "17回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:14:25 key {"phase": "start", "ep": 17, "key": "space", "place": 5}
[278] 19:14:25 phase_end {"phase": "start", "ep": 17, "dur_s": 2.43}
[278] 19:14:25 episode_start {"ep": 17, "try_": 1}
INFO 2026-11-23 19:14:25 le_timer.py:570 Cadence (episode 15): 29.99 Hz vs 30 Hz target · 417 ticks, 13.9 s measured · 0/416 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.7 ms)
[278] 19:14:41 key {"phase": "episode", "ep": 17, "key": "right"}
[278] 19:14:41 episode_end {"ep": 17, "place": 5, "try": 1, "dur_s": 15.27, "buffer_frames": 458, "end": "right", "label": "ep17_try1"}
INFO 2026-11-23 19:14:41 ls/utils.py:151 Reset the environment
[278] 19:14:41 phase {"phase": "reset", "ep": 17}
[278] 19:14:41 screen {"title": "17回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:14:46 key {"phase": "reset", "ep": 17, "key": "space", "rerecord": false}
[278] 19:14:46 phase_end {"phase": "reset", "ep": 17, "dur_s": 5.7}

Map:   0%|          | 0/458 [00:00<?, ? examples/s]
Map: 100%|██████████| 458/458 [00:00<00:00, 6056.93 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335fde3d0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x335fddeb0] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:14:53 saved {"ep": 17, "dur_s": 6.62, "num_episodes": 17}
INFO 2026-11-23 19:14:53 ls/utils.py:151 Recording episode 17
[278] 19:14:53 phase {"phase": "start", "ep": 18}
[278] 19:14:53 screen {"title": "18回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:14:55 key {"phase": "start", "ep": 18, "key": "space", "place": 5}
[278] 19:14:55 phase_end {"phase": "start", "ep": 18, "dur_s": 2.3}
[278] 19:14:55 episode_start {"ep": 18, "try_": 1}
INFO 2026-11-23 19:14:55 le_timer.py:570 Cadence (episode 16): 29.99 Hz vs 30 Hz target · 458 ticks, 15.2 s measured · 0/457 ticks over the 33.3 ms budget (work mean 16.8 ms, worst 19.8 ms)
[278] 19:15:11 key {"phase": "episode", "ep": 18, "key": "right"}
[278] 19:15:11 episode_end {"ep": 18, "place": 5, "try": 1, "dur_s": 15.77, "buffer_frames": 473, "end": "right", "label": "ep18_try1"}
INFO 2026-11-23 19:15:11 ls/utils.py:151 Reset the environment
[278] 19:15:11 phase {"phase": "reset", "ep": 18}
[278] 19:15:11 screen {"title": "18回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:15:16 key {"phase": "reset", "ep": 18, "key": "space", "rerecord": false}
[278] 19:15:16 phase_end {"phase": "reset", "ep": 18, "dur_s": 5.17}

Map:   0%|          | 0/473 [00:00<?, ? examples/s]
Map: 100%|██████████| 473/473 [00:00<00:00, 5963.73 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x3367cfc80] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x33651b250] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:15:24 saved {"ep": 18, "dur_s": 8.04, "num_episodes": 18}
INFO 2026-11-23 19:15:24 ls/utils.py:151 Recording episode 18
[278] 19:15:24 phase {"phase": "start", "ep": 19}
[278] 19:15:25 screen {"title": "19回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:15:27 key {"phase": "start", "ep": 19, "key": "space", "place": 5}
[278] 19:15:27 phase_end {"phase": "start", "ep": 19, "dur_s": 2.3}
[278] 19:15:27 episode_start {"ep": 19, "try_": 1}
INFO 2026-11-23 19:15:27 le_timer.py:570 Cadence (episode 17): 29.99 Hz vs 30 Hz target · 473 ticks, 15.7 s measured · 0/472 ticks over the 33.3 ms budget (work mean 16.9 ms, worst 20.9 ms)
[278] 19:15:40 key {"phase": "episode", "ep": 19, "key": "right"}
[278] 19:15:40 episode_end {"ep": 19, "place": 5, "try": 1, "dur_s": 13.27, "buffer_frames": 398, "end": "right", "label": "ep19_try1"}
INFO 2026-11-23 19:15:40 ls/utils.py:151 Reset the environment
[278] 19:15:40 phase {"phase": "reset", "ep": 19}
[278] 19:15:40 screen {"title": "19回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[278] 19:15:42 key {"phase": "reset", "ep": 19, "key": "space", "rerecord": false}
[278] 19:15:42 phase_end {"phase": "reset", "ep": 19, "dur_s": 1.9}

Map:   0%|          | 0/398 [00:00<?, ? examples/s]
Map: 100%|██████████| 398/398 [00:00<00:00, 5897.16 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335ff8fc0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x15718cc60] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:15:49 saved {"ep": 19, "dur_s": 7.2, "num_episodes": 19}
INFO 2026-11-23 19:15:49 ls/utils.py:151 Recording episode 19
[278] 19:15:49 phase {"phase": "start", "ep": 20}
[278] 19:15:49 screen {"title": "20回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[278] 19:15:52 key {"phase": "start", "ep": 20, "key": "space", "place": 5}
[278] 19:15:52 phase_end {"phase": "start", "ep": 20, "dur_s": 2.5}
[278] 19:15:52 episode_start {"ep": 20, "try_": 1}
INFO 2026-11-23 19:15:52 le_timer.py:570 Cadence (episode 18): 29.99 Hz vs 30 Hz target · 398 ticks, 13.2 s measured · 0/397 ticks over the 33.3 ms budget (work mean 17.1 ms, worst 25.7 ms)
[278] 19:16:07 key {"phase": "episode", "ep": 20, "key": "right"}
[278] 19:16:07 episode_end {"ep": 20, "place": 5, "try": 1, "dur_s": 15.74, "buffer_frames": 472, "end": "right", "label": "ep20_try1"}
[278] 19:16:07 phase {"phase": "end", "ep": 20}
[278] 19:16:07 screen {"title": "20回目 終わり (これで20回)", "lines": ["リーダーで 爪を閉じる", "腕を机の上まで下ろして たたむ (休みの姿勢)", "たたんだら スペース (保存して 力が抜ける)", "幅の外だと 赤い字で関節名が出る → そこを戻す", "うまくいかなかったら ← で録り直す"]}
[278] 19:16:16 key {"phase": "end", "ep": 20, "key": "space"}
[278] 19:16:16 phase_end {"phase": "end", "ep": 20, "dur_s": 8.3}

Map:   0%|          | 0/472 [00:00<?, ? examples/s]
Map: 100%|██████████| 472/472 [00:00<00:00, 5958.54 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x335fde210] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x335fda630] Starting second pass: moving the moov atom to the beginning of the file
[278] 19:16:23 saved {"ep": 20, "dur_s": 6.91, "num_episodes": 20}
INFO 2026-11-23 19:16:23 le_timer.py:570 Cadence (episode 19): 29.99 Hz vs 30 Hz target · 472 ticks, 15.7 s measured · 0/471 ticks over the 33.3 ms budget (work mean 16.7 ms, worst 20.5 ms)
INFO 2026-11-23 19:16:23 le_timer.py:617 Cadence summary — whole run, 20 episodes · target 30 Hz (33.3 ms budget per tick): 9112 ticks, 9092 judged
  effective cadence: 29.99 Hz over 303.2 s measured
  ticks over the 33.3 ms work budget: 0/9092 (0.0%) — work mean 16.7 ms, worst 25.7 ms
  loop-body steps (share of measured work):
    observe      mean   1.19 ms · worst   7.32 ms ·   7.1% of work · 9112 calls
    process_obs  mean   0.02 ms · worst   0.12 ms ·   0.1% of work · 9112 calls
    teleop       mean   1.05 ms · worst   3.64 ms ·   6.3% of work · 9112 calls
    send         mean  14.33 ms · worst  23.40 ms ·  85.7% of work · 9112 calls
    record       mean   0.10 ms · worst   1.39 ms ·   0.6% of work · 9112 calls
  pacing headroom: 16.6 ms slept per tick on average (max 30.7 ms) — near zero means the loop is saturated
INFO 2026-11-23 19:16:23 ls/utils.py:151 Stop recording
[278] 19:16:26 lerobot_safe_window {"run": "step1_record", "title": "リーダーで休みの姿勢へ"}
[278] 19:16:26 rest_out_joints {"run": "step1_record", "out": {"wrist_flex": 41.84}}
[278] 19:16:30 rest_out_joints {"run": "step1_record", "out": {}}
INFO 2026-11-23 19:16:30 a_opencv.py:637 OpenCVCamera(1) disconnected.
INFO 2026-11-23 19:16:31 a_opencv.py:637 OpenCVCamera(0) disconnected.
INFO 2026-11-23 19:16:31 follower.py:221 ptm_follower SOFollower disconnected.
INFO 2026-11-23 19:16:31 o_leader.py:144 ptm_leader SOLeader disconnected.
INFO 2026-11-23 19:16:31 ls/utils.py:151 Exiting
[278] 19:16:31 run_end {"name": "step1_record", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step1_record.json"}
[278] 19:16:31 screen {"title": "見た物で答える  y / n", "lines": ["20回とも, ブロックが箱に入った？", "", "はい = y     いいえ = n"]}
[278] 19:16:34 key {"title": "見た物で答える  y / n", "key": "y"}
[278] 19:16:34 screen {"title": "見た物で答える  y / n", "lines": ["録っている最中に, フォロワーが ガクッと飛んだ回は あった？", "(y = 飛んだ回があった / n = なかった)", "", "はい = y     いいえ = n"]}
[278] 19:16:36 key {"title": "見た物で答える  y / n", "key": "n"}
[278] 19:16:36 screen {"title": "見た物で答える  y / n", "lines": ["場所4・5 で, 届きにくい・つかみにくい所は あった？", "(y = あった / n = なかった)", "", "はい = y     いいえ = n"]}
[278] 19:16:39 key {"title": "見た物で答える  y / n", "key": "n"}
[278] 19:16:39 labels {"file": "/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45/episode_labels.json", "fail": []}
[278] 19:16:39 replay_child_start {"episode_index": 0}
[278] 19:16:39 start {"dry": false, "replay_ep": 0}
[278] 19:16:40 screen {"title": "replay の前", "lines": ["フォロワーのまわりを空ける", "次のスペースで 力が入っていないか読む (読むだけ)", "", "準備ができたら スペース"]}
[278] 19:16:43 key {"title": "replay の前", "key": " "}
[278] 19:16:45 read_servos {"follower": [[1, 2022, 0], [2, 862, 0], [3, 3024, 0], [4, 2337, 0], [5, 2031, 0], [6, 2061, 0]], "leader": [[1, 2082, 0], [2, 823, 0], [3, 3111, 0], [4, 2680, 0], [5, 2028, 0], [6, 2005, 0]], "ok": true}
[278] 19:16:45 screen {"title": "replay (1回目・場所4 を再生)", "lines": ["フォロワーのまわりを空ける", "ブロックを 場所4 の点に置く", "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る", "(止めたいとき: q)", "", "準備ができたら スペース"]}
[278] 19:16:48 key {"title": "replay (1回目・場所4 を再生)", "key": " "}
[278] 19:16:48 run_start {"run": "step2_replay_ep0", "argv": ["replay", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos45", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45", "--dataset.episode=0", "--dataset.fps=30"]}
objc[39157]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105c3c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1552103a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39157]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105c3c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1552103f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 19:16:51 t_replay.py:108 {'dataset': {'episode': 0,
             'fps': 30,
             'repo_id': 'local/so101_redblock_box_teleop_v1_pos45',
             'root': '/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45'},
 'play_sounds': True,
 'robot': {'calibration_dir': None,
           'cameras': {},
           'disable_torque_on_disconnect': True,
           'id': 'ptm_follower',
           'max_relative_target': None,
           'num_read_retries': 2,
           'port': '/dev/tty.usbmodem5CBC4321631',
           'position_d_coefficient': 32,
           'position_i_coefficient': 0,
           'position_p_coefficient': 16,
           'use_degrees': True}}
objc[39157]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105c3c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x170cb4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39157]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105c3c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x170cb47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 19:16:51 safe_259.py:115 [A] follower: connect の直後に目標を今の位置にした
INFO 2026-11-23 19:16:51 safe_259.py:125 [A] follower: 力を入れる直前に目標を今の位置にした (全部)
[278] 19:16:52 torque_on {"run": "step2_replay_ep0", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
INFO 2026-11-23 19:16:52 follower.py:128 ptm_follower SOFollower connected.
INFO 2026-11-23 19:16:52 ls/utils.py:151 Replaying episode
WARNING 2026-11-23 19:17:00 le_timer.py:407 Control loop is running slower (24.6 Hz) than the target FPS (30 Hz). Robot control might be unstable. Common causes are: 1) Camera FPS not keeping up 2) Policy inference (action or text) taking too long 3) CPU starvation
INFO 2026-11-23 19:17:10 le_timer.py:617 Cadence summary — whole run · target 30 Hz (33.3 ms budget per tick): 431 ticks, 430 judged
  effective cadence: 29.97 Hz over 14.3 s measured
  ticks over the 33.3 ms work budget: 1/430 (0.2%) — work mean 16.8 ms, worst 40.6 ms
  loop-body steps (share of measured work):
    read_frame  mean   0.15 ms · worst   5.24 ms ·   0.9% of work · 431 calls
    observe     mean   1.18 ms · worst   3.69 ms ·   7.0% of work · 431 calls
    send        mean  15.42 ms · worst  39.17 ms ·  91.9% of work · 431 calls
  pacing headroom: 16.6 ms slept per tick on average (max 21.8 ms) — near zero means the loop is saturated
[278] 19:17:10 lerobot_safe_window {"run": "step2_replay_ep0", "title": "休みの姿勢へ自動で戻す"}
[278] 19:17:10 rest_out_joints {"run": "step2_replay_ep0", "out": {"wrist_flex": 24.61}}
[278] 19:17:11 rest_out_joints {"run": "step2_replay_ep0", "out": {}}
INFO 2026-11-23 19:17:11 follower.py:221 ptm_follower SOFollower disconnected.
[278] 19:17:11 run_end {"name": "step2_replay_ep0", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step2_replay_ep0.json"}
[278] 19:17:11 screen {"title": "見た物で答える  y / n", "lines": ["replay で, ブロックは箱に入った？", "", "はい = y     いいえ = n"]}
[278] 19:17:13 key {"title": "見た物で答える  y / n", "key": "y"}
[278] 19:17:13 screen {"title": "見た物で答える  y / n", "lines": ["フォロワーは 録ったとおりに動いた？", "", "はい = y     いいえ = n"]}
[278] 19:17:15 key {"title": "見た物で答える  y / n", "key": "y"}
[278] 19:17:15 end {"replay_ep": 0}
[278] 19:17:15 replay_child_end {"episode_index": 0, "returncode": 0}
[278] 19:17:15 replay_child_start {"episode_index": 10}
[278] 19:17:16 start {"dry": false, "replay_ep": 10}
[278] 19:17:17 screen {"title": "replay の前", "lines": ["フォロワーのまわりを空ける", "次のスペースで 力が入っていないか読む (読むだけ)", "", "準備ができたら スペース"]}
[278] 19:17:18 key {"title": "replay の前", "key": " "}
[278] 19:17:20 read_servos {"follower": [[1, 1959, 0], [2, 950, 0], [3, 3024, 0], [4, 2211, 0], [5, 2043, 0], [6, 2060, 0]], "leader": [[1, 2082, 0], [2, 823, 0], [3, 3111, 0], [4, 2680, 0], [5, 2028, 0], [6, 2005, 0]], "ok": true}
[278] 19:17:20 screen {"title": "replay (11回目・場所5 を再生)", "lines": ["フォロワーのまわりを空ける", "ブロックを 場所5 の点に置く", "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る", "(止めたいとき: q)", "", "準備ができたら スペース"]}
[278] 19:17:26 key {"title": "replay (11回目・場所5 を再生)", "key": " "}
[278] 19:17:26 run_start {"run": "step2_replay_ep10", "argv": ["replay", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos45", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45", "--dataset.episode=10", "--dataset.fps=30"]}
objc[39213]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10576c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1582c83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39213]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10576c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1582c83f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 19:17:28 t_replay.py:108 {'dataset': {'episode': 10,
             'fps': 30,
             'repo_id': 'local/so101_redblock_box_teleop_v1_pos45',
             'root': '/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45'},
 'play_sounds': True,
 'robot': {'calibration_dir': None,
           'cameras': {},
           'disable_torque_on_disconnect': True,
           'id': 'ptm_follower',
           'max_relative_target': None,
           'num_read_retries': 2,
           'port': '/dev/tty.usbmodem5CBC4321631',
           'position_d_coefficient': 32,
           'position_i_coefficient': 0,
           'position_p_coefficient': 16,
           'use_degrees': True}}
objc[39213]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10576c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1684dc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39213]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10576c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1684dc7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 19:17:28 safe_259.py:115 [A] follower: connect の直後に目標を今の位置にした
INFO 2026-11-23 19:17:28 safe_259.py:125 [A] follower: 力を入れる直前に目標を今の位置にした (全部)
[278] 19:17:29 torque_on {"run": "step2_replay_ep10", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
INFO 2026-11-23 19:17:29 follower.py:128 ptm_follower SOFollower connected.
INFO 2026-11-23 19:17:29 ls/utils.py:151 Replaying episode
INFO 2026-11-23 19:17:46 le_timer.py:617 Cadence summary — whole run · target 30 Hz (33.3 ms budget per tick): 417 ticks, 416 judged
  effective cadence: 29.99 Hz over 13.9 s measured
  ticks over the 33.3 ms work budget: 0/416 (0.0%) — work mean 15.7 ms, worst 19.2 ms
  loop-body steps (share of measured work):
    read_frame  mean   0.08 ms · worst   0.61 ms ·   0.5% of work · 417 calls
    observe     mean   1.10 ms · worst   1.45 ms ·   7.0% of work · 417 calls
    send        mean  14.56 ms · worst  20.57 ms ·  92.4% of work · 417 calls
  pacing headroom: 17.6 ms slept per tick on average (max 22.0 ms) — near zero means the loop is saturated
[278] 19:17:46 lerobot_safe_window {"run": "step2_replay_ep10", "title": "休みの姿勢へ自動で戻す"}
[278] 19:17:46 rest_out_joints {"run": "step2_replay_ep10", "out": {"wrist_flex": 30.42}}
[278] 19:17:46 rest_out_joints {"run": "step2_replay_ep10", "out": {}}
INFO 2026-11-23 19:17:47 follower.py:221 ptm_follower SOFollower disconnected.
[278] 19:17:47 run_end {"name": "step2_replay_ep10", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step2_replay_ep10.json"}
[278] 19:17:47 screen {"title": "見た物で答える  y / n", "lines": ["replay で, ブロックは箱に入った？", "", "はい = y     いいえ = n"]}
[278] 19:17:50 key {"title": "見た物で答える  y / n", "key": "y"}
[278] 19:17:50 screen {"title": "見た物で答える  y / n", "lines": ["フォロワーは 録ったとおりに動いた？", "", "はい = y     いいえ = n"]}
[278] 19:17:51 key {"title": "見た物で答える  y / n", "key": "y"}
[278] 19:17:51 end {"replay_ep": 10}
[278] 19:17:51 replay_child_end {"episode_index": 10, "returncode": 0}
[278] 19:17:51 screen {"title": "おわり", "lines": ["手順はすべて終わった", "フォロワーの電源を切ってよい", "", "準備ができたら スペース"]}
[278] 19:17:53 key {"title": "おわり", "key": " "}
[278] 19:17:53 end {}
```

#### events_278.jsonl

```json
{"t": 1795428193.778682, "clock": "19:03:13", "kind": "start", "dry": false, "replay_ep": null}
{"t": 1795428200.516604, "clock": "19:03:20", "kind": "read_servos", "follower": [[1, 1947, 0], [2, 950, 0], [3, 3024, 0], [4, 2211, 0], [5, 2043, 0], [6, 2062, 0]], "leader": [[1, 2030, 0], [2, 829, 0], [3, 3111, 0], [4, 2673, 0], [5, 2097, 0], [6, 2003, 0]], "ok": true}
{"t": 1795428200.526137, "clock": "19:03:20", "kind": "screen", "title": "0. 始める前", "lines": ["ブロックを 場所4 (まん中の手前) の点に置く", "リーダーとフォロワーの姿勢を近づける", "フォロワーのまわりを空ける・電源をすぐ切れるようにする", "次のスペースで つなぐ (力が入る. まだ録らない)", "(止めたいとき: q キー = Ctrl-C)", "", "準備ができたら スペース"]}
{"t": 1795428354.872247, "clock": "19:05:54", "kind": "key", "title": "0. 始める前", "key": " "}
{"t": 1795428354.8727858, "clock": "19:05:54", "kind": "run_start", "run": "step1_record", "argv": ["record", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos45", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45", "--dataset.single_task=Put the red block into the white box", "--dataset.fps=30", "--dataset.num_episodes=20", "--dataset.episode_time_s=25", "--dataset.reset_time_s=3600", "--dataset.no_stamp=true"]}
{"t": 1795428363.408735, "clock": "19:06:03", "kind": "torque_on", "run": "step1_record", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
{"t": 1795428363.409804, "clock": "19:06:03", "kind": "keyboard_listener", "note": "pynput を使わない (手順のウィンドウで →・← を受ける)"}
{"t": 1795428363.436861, "clock": "19:06:03", "kind": "phase", "phase": "start", "ep": 1}
{"t": 1795428363.459281, "clock": "19:06:03", "kind": "screen", "title": "1回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428374.548177, "clock": "19:06:14", "kind": "key", "phase": "start", "ep": 1, "key": "space", "place": 4}
{"t": 1795428374.5744178, "clock": "19:06:14", "kind": "phase_end", "phase": "start", "ep": 1, "dur_s": 11.14}
{"t": 1795428374.5746508, "clock": "19:06:14", "kind": "episode_start", "ep": 1, "try_": 1}
{"t": 1795428388.914554, "clock": "19:06:28", "kind": "key", "phase": "episode", "ep": 1, "key": "right"}
{"t": 1795428388.9455569, "clock": "19:06:28", "kind": "episode_end", "ep": 1, "place": 4, "try": 1, "dur_s": 14.37, "buffer_frames": 431, "end": "right", "label": "ep1_try1"}
{"t": 1795428388.976425, "clock": "19:06:28", "kind": "phase", "phase": "reset", "ep": 1}
{"t": 1795428389.0014021, "clock": "19:06:29", "kind": "screen", "title": "1回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428394.887128, "clock": "19:06:34", "kind": "key", "phase": "reset", "ep": 1, "key": "space", "rerecord": false}
{"t": 1795428394.911938, "clock": "19:06:34", "kind": "phase_end", "phase": "reset", "ep": 1, "dur_s": 5.94}
{"t": 1795428402.846907, "clock": "19:06:42", "kind": "saved", "ep": 1, "dur_s": 7.91, "num_episodes": 1}
{"t": 1795428402.869946, "clock": "19:06:42", "kind": "phase", "phase": "start", "ep": 2}
{"t": 1795428402.892341, "clock": "19:06:42", "kind": "screen", "title": "2回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428404.3784761, "clock": "19:06:44", "kind": "key", "phase": "start", "ep": 2, "key": "space", "place": 4}
{"t": 1795428404.404234, "clock": "19:06:44", "kind": "phase_end", "phase": "start", "ep": 2, "dur_s": 1.53}
{"t": 1795428404.404507, "clock": "19:06:44", "kind": "episode_start", "ep": 2, "try_": 1}
{"t": 1795428423.113239, "clock": "19:07:03", "kind": "key", "phase": "episode", "ep": 2, "key": "right"}
{"t": 1795428423.1441631, "clock": "19:07:03", "kind": "episode_end", "ep": 2, "place": 4, "try": 1, "dur_s": 18.74, "buffer_frames": 562, "end": "right", "label": "ep2_try1"}
{"t": 1795428423.166323, "clock": "19:07:03", "kind": "phase", "phase": "reset", "ep": 2}
{"t": 1795428423.192079, "clock": "19:07:03", "kind": "screen", "title": "2回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428424.541213, "clock": "19:07:04", "kind": "key", "phase": "reset", "ep": 2, "key": "space", "rerecord": false}
{"t": 1795428424.56736, "clock": "19:07:04", "kind": "phase_end", "phase": "reset", "ep": 2, "dur_s": 1.4}
{"t": 1795428432.808386, "clock": "19:07:12", "kind": "saved", "ep": 2, "dur_s": 8.22, "num_episodes": 2}
{"t": 1795428432.831711, "clock": "19:07:12", "kind": "phase", "phase": "start", "ep": 3}
{"t": 1795428432.853942, "clock": "19:07:12", "kind": "screen", "title": "3回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428434.67381, "clock": "19:07:14", "kind": "key", "phase": "start", "ep": 3, "key": "space", "place": 4}
{"t": 1795428434.6993458, "clock": "19:07:14", "kind": "phase_end", "phase": "start", "ep": 3, "dur_s": 1.87}
{"t": 1795428434.699651, "clock": "19:07:14", "kind": "episode_start", "ep": 3, "try_": 1}
{"t": 1795428452.47429, "clock": "19:07:32", "kind": "key", "phase": "episode", "ep": 3, "key": "right"}
{"t": 1795428452.505136, "clock": "19:07:32", "kind": "episode_end", "ep": 3, "place": 4, "try": 1, "dur_s": 17.81, "buffer_frames": 534, "end": "right", "label": "ep3_try1"}
{"t": 1795428452.530302, "clock": "19:07:32", "kind": "phase", "phase": "reset", "ep": 3}
{"t": 1795428452.549769, "clock": "19:07:32", "kind": "screen", "title": "3回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428453.771585, "clock": "19:07:33", "kind": "key", "phase": "reset", "ep": 3, "key": "space", "rerecord": false}
{"t": 1795428453.7981281, "clock": "19:07:33", "kind": "phase_end", "phase": "reset", "ep": 3, "dur_s": 1.27}
{"t": 1795428461.452461, "clock": "19:07:41", "kind": "saved", "ep": 3, "dur_s": 7.64, "num_episodes": 3}
{"t": 1795428461.474462, "clock": "19:07:41", "kind": "phase", "phase": "start", "ep": 4}
{"t": 1795428461.496222, "clock": "19:07:41", "kind": "screen", "title": "4回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428463.750054, "clock": "19:07:43", "kind": "key", "phase": "start", "ep": 4, "key": "space", "place": 4}
{"t": 1795428463.775787, "clock": "19:07:43", "kind": "phase_end", "phase": "start", "ep": 4, "dur_s": 2.3}
{"t": 1795428463.7760909, "clock": "19:07:43", "kind": "episode_start", "ep": 4, "try_": 1}
{"t": 1795428483.985219, "clock": "19:08:03", "kind": "key", "phase": "episode", "ep": 4, "key": "right"}
{"t": 1795428484.016109, "clock": "19:08:04", "kind": "episode_end", "ep": 4, "place": 4, "try": 1, "dur_s": 20.24, "buffer_frames": 607, "end": "right", "label": "ep4_try1"}
{"t": 1795428484.040877, "clock": "19:08:04", "kind": "phase", "phase": "reset", "ep": 4}
{"t": 1795428484.060745, "clock": "19:08:04", "kind": "screen", "title": "4回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428500.086584, "clock": "19:08:20", "kind": "key", "phase": "reset", "ep": 4, "key": "space", "rerecord": false}
{"t": 1795428500.113149, "clock": "19:08:20", "kind": "phase_end", "phase": "reset", "ep": 4, "dur_s": 16.07}
{"t": 1795428509.0147898, "clock": "19:08:29", "kind": "saved", "ep": 4, "dur_s": 8.88, "num_episodes": 4}
{"t": 1795428509.03756, "clock": "19:08:29", "kind": "phase", "phase": "start", "ep": 5}
{"t": 1795428509.059762, "clock": "19:08:29", "kind": "screen", "title": "5回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428512.513095, "clock": "19:08:32", "kind": "key", "phase": "start", "ep": 5, "key": "space", "place": 4}
{"t": 1795428512.539073, "clock": "19:08:32", "kind": "phase_end", "phase": "start", "ep": 5, "dur_s": 3.5}
{"t": 1795428512.5392818, "clock": "19:08:32", "kind": "episode_start", "ep": 5, "try_": 1}
{"t": 1795428524.916932, "clock": "19:08:44", "kind": "key", "phase": "episode", "ep": 5, "key": "right"}
{"t": 1795428524.9432142, "clock": "19:08:44", "kind": "episode_end", "ep": 5, "place": 4, "try": 1, "dur_s": 12.4, "buffer_frames": 372, "end": "right", "label": "ep5_try1"}
{"t": 1795428524.9652522, "clock": "19:08:44", "kind": "phase", "phase": "reset", "ep": 5}
{"t": 1795428524.985436, "clock": "19:08:44", "kind": "screen", "title": "5回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428529.6409862, "clock": "19:08:49", "kind": "key", "phase": "reset", "ep": 5, "key": "space", "rerecord": false}
{"t": 1795428529.66705, "clock": "19:08:49", "kind": "phase_end", "phase": "reset", "ep": 5, "dur_s": 4.7}
{"t": 1795428536.075495, "clock": "19:08:56", "kind": "saved", "ep": 5, "dur_s": 6.39, "num_episodes": 5}
{"t": 1795428536.097578, "clock": "19:08:56", "kind": "phase", "phase": "start", "ep": 6}
{"t": 1795428536.1196449, "clock": "19:08:56", "kind": "screen", "title": "6回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428539.206464, "clock": "19:08:59", "kind": "key", "phase": "start", "ep": 6, "key": "space", "place": 4}
{"t": 1795428539.23228, "clock": "19:08:59", "kind": "phase_end", "phase": "start", "ep": 6, "dur_s": 3.13}
{"t": 1795428539.232508, "clock": "19:08:59", "kind": "episode_start", "ep": 6, "try_": 1}
{"t": 1795428557.807445, "clock": "19:09:17", "kind": "key", "phase": "episode", "ep": 6, "key": "right"}
{"t": 1795428557.83827, "clock": "19:09:17", "kind": "episode_end", "ep": 6, "place": 4, "try": 1, "dur_s": 18.61, "buffer_frames": 558, "end": "right", "label": "ep6_try1"}
{"t": 1795428557.861193, "clock": "19:09:17", "kind": "phase", "phase": "reset", "ep": 6}
{"t": 1795428557.880861, "clock": "19:09:17", "kind": "screen", "title": "6回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428563.537334, "clock": "19:09:23", "kind": "key", "phase": "reset", "ep": 6, "key": "space", "rerecord": false}
{"t": 1795428563.563263, "clock": "19:09:23", "kind": "phase_end", "phase": "reset", "ep": 6, "dur_s": 5.7}
{"t": 1795428571.280315, "clock": "19:09:31", "kind": "saved", "ep": 6, "dur_s": 7.7, "num_episodes": 6}
{"t": 1795428571.301623, "clock": "19:09:31", "kind": "phase", "phase": "start", "ep": 7}
{"t": 1795428571.324099, "clock": "19:09:31", "kind": "screen", "title": "7回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428574.343853, "clock": "19:09:34", "kind": "key", "phase": "start", "ep": 7, "key": "space", "place": 4}
{"t": 1795428574.369656, "clock": "19:09:34", "kind": "phase_end", "phase": "start", "ep": 7, "dur_s": 3.07}
{"t": 1795428574.369946, "clock": "19:09:34", "kind": "episode_start", "ep": 7, "try_": 1}
{"t": 1795428590.810893, "clock": "19:09:50", "kind": "key", "phase": "episode", "ep": 7, "key": "right"}
{"t": 1795428590.841782, "clock": "19:09:50", "kind": "episode_end", "ep": 7, "place": 4, "try": 1, "dur_s": 16.47, "buffer_frames": 494, "end": "right", "label": "ep7_try1"}
{"t": 1795428590.8636742, "clock": "19:09:50", "kind": "phase", "phase": "reset", "ep": 7}
{"t": 1795428590.888844, "clock": "19:09:50", "kind": "screen", "title": "7回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428595.739404, "clock": "19:09:55", "kind": "key", "phase": "reset", "ep": 7, "key": "space", "rerecord": false}
{"t": 1795428595.765478, "clock": "19:09:55", "kind": "phase_end", "phase": "reset", "ep": 7, "dur_s": 4.9}
{"t": 1795428603.054091, "clock": "19:10:03", "kind": "saved", "ep": 7, "dur_s": 7.27, "num_episodes": 7}
{"t": 1795428603.0741959, "clock": "19:10:03", "kind": "phase", "phase": "start", "ep": 8}
{"t": 1795428603.095973, "clock": "19:10:03", "kind": "screen", "title": "8回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428605.249394, "clock": "19:10:05", "kind": "key", "phase": "start", "ep": 8, "key": "space", "place": 4}
{"t": 1795428605.275279, "clock": "19:10:05", "kind": "phase_end", "phase": "start", "ep": 8, "dur_s": 2.2}
{"t": 1795428605.275567, "clock": "19:10:05", "kind": "episode_start", "ep": 8, "try_": 1}
{"t": 1795428622.9879181, "clock": "19:10:22", "kind": "key", "phase": "episode", "ep": 8, "key": "right"}
{"t": 1795428623.0144498, "clock": "19:10:23", "kind": "episode_end", "ep": 8, "place": 4, "try": 1, "dur_s": 17.74, "buffer_frames": 532, "end": "right", "label": "ep8_try1"}
{"t": 1795428623.0354052, "clock": "19:10:23", "kind": "phase", "phase": "reset", "ep": 8}
{"t": 1795428623.055168, "clock": "19:10:23", "kind": "screen", "title": "8回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428629.211872, "clock": "19:10:29", "kind": "key", "phase": "reset", "ep": 8, "key": "space", "rerecord": false}
{"t": 1795428629.237598, "clock": "19:10:29", "kind": "phase_end", "phase": "reset", "ep": 8, "dur_s": 6.2}
{"t": 1795428636.8384829, "clock": "19:10:36", "kind": "saved", "ep": 8, "dur_s": 7.58, "num_episodes": 8}
{"t": 1795428636.85801, "clock": "19:10:36", "kind": "phase", "phase": "start", "ep": 9}
{"t": 1795428636.8791308, "clock": "19:10:36", "kind": "screen", "title": "9回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428639.033254, "clock": "19:10:39", "kind": "key", "phase": "start", "ep": 9, "key": "space", "place": 4}
{"t": 1795428639.059298, "clock": "19:10:39", "kind": "phase_end", "phase": "start", "ep": 9, "dur_s": 2.2}
{"t": 1795428639.059551, "clock": "19:10:39", "kind": "episode_start", "ep": 9, "try_": 1}
{"t": 1795428650.336756, "clock": "19:10:50", "kind": "key", "phase": "episode", "ep": 9, "key": "right"}
{"t": 1795428650.3631182, "clock": "19:10:50", "kind": "episode_end", "ep": 9, "place": 4, "try": 1, "dur_s": 11.3, "buffer_frames": 339, "end": "right", "label": "ep9_try1"}
{"t": 1795428650.384717, "clock": "19:10:50", "kind": "phase", "phase": "reset", "ep": 9}
{"t": 1795428650.403222, "clock": "19:10:50", "kind": "screen", "title": "9回目 終わり", "lines": ["ブロックを 場所4 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428654.526932, "clock": "19:10:54", "kind": "key", "phase": "reset", "ep": 9, "key": "space", "rerecord": false}
{"t": 1795428654.553501, "clock": "19:10:54", "kind": "phase_end", "phase": "reset", "ep": 9, "dur_s": 4.17}
{"t": 1795428661.1022341, "clock": "19:11:01", "kind": "saved", "ep": 9, "dur_s": 6.53, "num_episodes": 9}
{"t": 1795428661.12127, "clock": "19:11:01", "kind": "phase", "phase": "start", "ep": 10}
{"t": 1795428661.143105, "clock": "19:11:01", "kind": "screen", "title": "10回目／20　場所4　スペースで始める", "lines": ["ブロックは 場所4 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428664.232193, "clock": "19:11:04", "kind": "key", "phase": "start", "ep": 10, "key": "space", "place": 4}
{"t": 1795428664.258514, "clock": "19:11:04", "kind": "phase_end", "phase": "start", "ep": 10, "dur_s": 3.14}
{"t": 1795428664.258892, "clock": "19:11:04", "kind": "episode_start", "ep": 10, "try_": 1}
{"t": 1795428677.998888, "clock": "19:11:17", "kind": "key", "phase": "episode", "ep": 10, "key": "right"}
{"t": 1795428678.029838, "clock": "19:11:18", "kind": "episode_end", "ep": 10, "place": 4, "try": 1, "dur_s": 13.77, "buffer_frames": 413, "end": "right", "label": "ep10_try1"}
{"t": 1795428678.0509582, "clock": "19:11:18", "kind": "phase", "phase": "reset", "ep": 10}
{"t": 1795428678.077436, "clock": "19:11:18", "kind": "screen", "title": "10回目 終わり (場所4 はこれで終わり)", "lines": ["次は 場所5", "腕を休みの姿勢へ", "スペースで次へ (次の画面で 場所の置き直し)", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428686.927758, "clock": "19:11:26", "kind": "key", "phase": "reset", "ep": 10, "key": "space", "rerecord": false}
{"t": 1795428686.9540522, "clock": "19:11:26", "kind": "phase_end", "phase": "reset", "ep": 10, "dur_s": 8.9}
{"t": 1795428693.828368, "clock": "19:11:33", "kind": "saved", "ep": 10, "dur_s": 6.86, "num_episodes": 10}
{"t": 1795428693.847476, "clock": "19:11:33", "kind": "phase", "phase": "start", "ep": 11}
{"t": 1795428699.428685, "clock": "19:11:39", "kind": "key", "phase": "place5", "ep": 11, "key": "space"}
{"t": 1795428699.4738219, "clock": "19:11:39", "kind": "screen", "title": "11回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428700.890338, "clock": "19:11:40", "kind": "key", "phase": "start", "ep": 11, "key": "space", "place": 5}
{"t": 1795428700.916533, "clock": "19:11:40", "kind": "phase_end", "phase": "start", "ep": 11, "dur_s": 7.07}
{"t": 1795428700.916678, "clock": "19:11:40", "kind": "episode_start", "ep": 11, "try_": 1}
{"t": 1795428714.79023, "clock": "19:11:54", "kind": "key", "phase": "episode", "ep": 11, "key": "right"}
{"t": 1795428714.821153, "clock": "19:11:54", "kind": "episode_end", "ep": 11, "place": 5, "try": 1, "dur_s": 13.9, "buffer_frames": 417, "end": "right", "label": "ep11_try1"}
{"t": 1795428714.843679, "clock": "19:11:54", "kind": "phase", "phase": "reset", "ep": 11}
{"t": 1795428714.864049, "clock": "19:11:54", "kind": "screen", "title": "11回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428719.052873, "clock": "19:11:59", "kind": "key", "phase": "reset", "ep": 11, "key": "space", "rerecord": false}
{"t": 1795428719.078704, "clock": "19:11:59", "kind": "phase_end", "phase": "reset", "ep": 11, "dur_s": 4.23}
{"t": 1795428725.9204931, "clock": "19:12:05", "kind": "saved", "ep": 11, "dur_s": 6.82, "num_episodes": 11}
{"t": 1795428725.939509, "clock": "19:12:05", "kind": "phase", "phase": "start", "ep": 12}
{"t": 1795428725.9612281, "clock": "19:12:05", "kind": "screen", "title": "12回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428728.314431, "clock": "19:12:08", "kind": "key", "phase": "start", "ep": 12, "key": "space", "place": 5}
{"t": 1795428728.340676, "clock": "19:12:08", "kind": "phase_end", "phase": "start", "ep": 12, "dur_s": 2.4}
{"t": 1795428728.340943, "clock": "19:12:08", "kind": "episode_start", "ep": 12, "try_": 1}
{"t": 1795428742.3521101, "clock": "19:12:22", "kind": "key", "phase": "episode", "ep": 12, "key": "right"}
{"t": 1795428742.378707, "clock": "19:12:22", "kind": "episode_end", "ep": 12, "place": 5, "try": 1, "dur_s": 14.04, "buffer_frames": 421, "end": "right", "label": "ep12_try1"}
{"t": 1795428742.399322, "clock": "19:12:22", "kind": "phase", "phase": "reset", "ep": 12}
{"t": 1795428742.419659, "clock": "19:12:22", "kind": "screen", "title": "12回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428747.7088299, "clock": "19:12:27", "kind": "key", "phase": "reset", "ep": 12, "key": "space", "rerecord": false}
{"t": 1795428747.734924, "clock": "19:12:27", "kind": "phase_end", "phase": "reset", "ep": 12, "dur_s": 5.34}
{"t": 1795428754.621438, "clock": "19:12:34", "kind": "saved", "ep": 12, "dur_s": 6.87, "num_episodes": 12}
{"t": 1795428754.641763, "clock": "19:12:34", "kind": "phase", "phase": "start", "ep": 13}
{"t": 1795428754.664211, "clock": "19:12:34", "kind": "screen", "title": "13回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428756.916794, "clock": "19:12:36", "kind": "key", "phase": "start", "ep": 13, "key": "space", "place": 5}
{"t": 1795428756.943091, "clock": "19:12:36", "kind": "phase_end", "phase": "start", "ep": 13, "dur_s": 2.3}
{"t": 1795428756.943315, "clock": "19:12:36", "kind": "episode_start", "ep": 13, "try_": 1}
{"t": 1795428773.718383, "clock": "19:12:53", "kind": "key", "phase": "episode", "ep": 13, "key": "right"}
{"t": 1795428773.749313, "clock": "19:12:53", "kind": "episode_end", "ep": 13, "place": 5, "try": 1, "dur_s": 16.81, "buffer_frames": 504, "end": "right", "label": "ep13_try1"}
{"t": 1795428773.771611, "clock": "19:12:53", "kind": "phase", "phase": "reset", "ep": 13}
{"t": 1795428773.791852, "clock": "19:12:53", "kind": "screen", "title": "13回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428777.280362, "clock": "19:12:57", "kind": "key", "phase": "reset", "ep": 13, "key": "space", "rerecord": false}
{"t": 1795428777.30651, "clock": "19:12:57", "kind": "phase_end", "phase": "reset", "ep": 13, "dur_s": 3.53}
{"t": 1795428785.479786, "clock": "19:13:05", "kind": "saved", "ep": 13, "dur_s": 8.15, "num_episodes": 13}
{"t": 1795428785.498442, "clock": "19:13:05", "kind": "phase", "phase": "start", "ep": 14}
{"t": 1795428785.520642, "clock": "19:13:05", "kind": "screen", "title": "14回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428787.6733692, "clock": "19:13:07", "kind": "key", "phase": "start", "ep": 14, "key": "space", "place": 5}
{"t": 1795428787.699557, "clock": "19:13:07", "kind": "phase_end", "phase": "start", "ep": 14, "dur_s": 2.2}
{"t": 1795428787.699819, "clock": "19:13:07", "kind": "episode_start", "ep": 14, "try_": 1}
{"t": 1795428800.973014, "clock": "19:13:20", "kind": "key", "phase": "episode", "ep": 14, "key": "right"}
{"t": 1795428801.004042, "clock": "19:13:21", "kind": "episode_end", "ep": 14, "place": 5, "try": 1, "dur_s": 13.3, "buffer_frames": 399, "end": "right", "label": "ep14_try1"}
{"t": 1795428801.02411, "clock": "19:13:21", "kind": "phase", "phase": "reset", "ep": 14}
{"t": 1795428801.0487208, "clock": "19:13:21", "kind": "screen", "title": "14回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428805.766405, "clock": "19:13:25", "kind": "key", "phase": "reset", "ep": 14, "key": "space", "rerecord": false}
{"t": 1795428805.7925708, "clock": "19:13:25", "kind": "phase_end", "phase": "reset", "ep": 14, "dur_s": 4.77}
{"t": 1795428812.5315158, "clock": "19:13:32", "kind": "saved", "ep": 14, "dur_s": 6.72, "num_episodes": 14}
{"t": 1795428812.5511749, "clock": "19:13:32", "kind": "phase", "phase": "start", "ep": 15}
{"t": 1795428812.573036, "clock": "19:13:32", "kind": "screen", "title": "15回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428814.760095, "clock": "19:13:34", "kind": "key", "phase": "start", "ep": 15, "key": "space", "place": 5}
{"t": 1795428814.785651, "clock": "19:13:34", "kind": "phase_end", "phase": "start", "ep": 15, "dur_s": 2.23}
{"t": 1795428814.7858932, "clock": "19:13:34", "kind": "episode_start", "ep": 15, "try_": 1}
{"t": 1795428825.124931, "clock": "19:13:45", "kind": "key", "phase": "episode", "ep": 15, "key": "right"}
{"t": 1795428825.155908, "clock": "19:13:45", "kind": "episode_end", "ep": 15, "place": 5, "try": 1, "dur_s": 10.37, "buffer_frames": 311, "end": "right", "label": "ep15_try1"}
{"t": 1795428825.17696, "clock": "19:13:45", "kind": "phase", "phase": "reset", "ep": 15}
{"t": 1795428825.197602, "clock": "19:13:45", "kind": "screen", "title": "15回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428829.619255, "clock": "19:13:49", "kind": "key", "phase": "reset", "ep": 15, "key": "space", "rerecord": false}
{"t": 1795428829.6457138, "clock": "19:13:49", "kind": "phase_end", "phase": "reset", "ep": 15, "dur_s": 4.47}
{"t": 1795428835.8946948, "clock": "19:13:55", "kind": "saved", "ep": 15, "dur_s": 6.23, "num_episodes": 15}
{"t": 1795428835.914537, "clock": "19:13:55", "kind": "phase", "phase": "start", "ep": 16}
{"t": 1795428835.936019, "clock": "19:13:55", "kind": "screen", "title": "16回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428838.355885, "clock": "19:13:58", "kind": "key", "phase": "start", "ep": 16, "key": "space", "place": 5}
{"t": 1795428838.382357, "clock": "19:13:58", "kind": "phase_end", "phase": "start", "ep": 16, "dur_s": 2.47}
{"t": 1795428838.382745, "clock": "19:13:58", "kind": "episode_start", "ep": 16, "try_": 1}
{"t": 1795428852.256208, "clock": "19:14:12", "kind": "key", "phase": "episode", "ep": 16, "key": "right"}
{"t": 1795428852.287186, "clock": "19:14:12", "kind": "episode_end", "ep": 16, "place": 5, "try": 1, "dur_s": 13.9, "buffer_frames": 417, "end": "right", "label": "ep16_try1"}
{"t": 1795428852.308362, "clock": "19:14:12", "kind": "phase", "phase": "reset", "ep": 16}
{"t": 1795428852.333777, "clock": "19:14:12", "kind": "screen", "title": "16回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428856.583692, "clock": "19:14:16", "kind": "key", "phase": "reset", "ep": 16, "key": "space", "rerecord": false}
{"t": 1795428856.610095, "clock": "19:14:16", "kind": "phase_end", "phase": "reset", "ep": 16, "dur_s": 4.3}
{"t": 1795428863.542, "clock": "19:14:23", "kind": "saved", "ep": 16, "dur_s": 6.91, "num_episodes": 16}
{"t": 1795428863.560997, "clock": "19:14:23", "kind": "phase", "phase": "start", "ep": 17}
{"t": 1795428863.5827699, "clock": "19:14:23", "kind": "screen", "title": "17回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428865.969877, "clock": "19:14:25", "kind": "key", "phase": "start", "ep": 17, "key": "space", "place": 5}
{"t": 1795428865.995556, "clock": "19:14:25", "kind": "phase_end", "phase": "start", "ep": 17, "dur_s": 2.43}
{"t": 1795428865.9957829, "clock": "19:14:25", "kind": "episode_start", "ep": 17, "try_": 1}
{"t": 1795428881.2370062, "clock": "19:14:41", "kind": "key", "phase": "episode", "ep": 17, "key": "right"}
{"t": 1795428881.267912, "clock": "19:14:41", "kind": "episode_end", "ep": 17, "place": 5, "try": 1, "dur_s": 15.27, "buffer_frames": 458, "end": "right", "label": "ep17_try1"}
{"t": 1795428881.28888, "clock": "19:14:41", "kind": "phase", "phase": "reset", "ep": 17}
{"t": 1795428881.314812, "clock": "19:14:41", "kind": "screen", "title": "17回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428886.9658618, "clock": "19:14:46", "kind": "key", "phase": "reset", "ep": 17, "key": "space", "rerecord": false}
{"t": 1795428886.991093, "clock": "19:14:46", "kind": "phase_end", "phase": "reset", "ep": 17, "dur_s": 5.7}
{"t": 1795428893.628292, "clock": "19:14:53", "kind": "saved", "ep": 17, "dur_s": 6.62, "num_episodes": 17}
{"t": 1795428893.6477902, "clock": "19:14:53", "kind": "phase", "phase": "start", "ep": 18}
{"t": 1795428893.670781, "clock": "19:14:53", "kind": "screen", "title": "18回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428895.9237309, "clock": "19:14:55", "kind": "key", "phase": "start", "ep": 18, "key": "space", "place": 5}
{"t": 1795428895.949103, "clock": "19:14:55", "kind": "phase_end", "phase": "start", "ep": 18, "dur_s": 2.3}
{"t": 1795428895.949336, "clock": "19:14:55", "kind": "episode_start", "ep": 18, "try_": 1}
{"t": 1795428911.690232, "clock": "19:15:11", "kind": "key", "phase": "episode", "ep": 18, "key": "right"}
{"t": 1795428911.721101, "clock": "19:15:11", "kind": "episode_end", "ep": 18, "place": 5, "try": 1, "dur_s": 15.77, "buffer_frames": 473, "end": "right", "label": "ep18_try1"}
{"t": 1795428911.74256, "clock": "19:15:11", "kind": "phase", "phase": "reset", "ep": 18}
{"t": 1795428911.762625, "clock": "19:15:11", "kind": "screen", "title": "18回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428916.886413, "clock": "19:15:16", "kind": "key", "phase": "reset", "ep": 18, "key": "space", "rerecord": false}
{"t": 1795428916.911765, "clock": "19:15:16", "kind": "phase_end", "phase": "reset", "ep": 18, "dur_s": 5.17}
{"t": 1795428924.972703, "clock": "19:15:24", "kind": "saved", "ep": 18, "dur_s": 8.04, "num_episodes": 18}
{"t": 1795428924.9916532, "clock": "19:15:24", "kind": "phase", "phase": "start", "ep": 19}
{"t": 1795428925.013819, "clock": "19:15:25", "kind": "screen", "title": "19回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428927.267149, "clock": "19:15:27", "kind": "key", "phase": "start", "ep": 19, "key": "space", "place": 5}
{"t": 1795428927.293292, "clock": "19:15:27", "kind": "phase_end", "phase": "start", "ep": 19, "dur_s": 2.3}
{"t": 1795428927.293409, "clock": "19:15:27", "kind": "episode_start", "ep": 19, "try_": 1}
{"t": 1795428940.5345762, "clock": "19:15:40", "kind": "key", "phase": "episode", "ep": 19, "key": "right"}
{"t": 1795428940.565456, "clock": "19:15:40", "kind": "episode_end", "ep": 19, "place": 5, "try": 1, "dur_s": 13.27, "buffer_frames": 398, "end": "right", "label": "ep19_try1"}
{"t": 1795428940.592056, "clock": "19:15:40", "kind": "phase", "phase": "reset", "ep": 19}
{"t": 1795428940.617135, "clock": "19:15:40", "kind": "screen", "title": "19回目 終わり", "lines": ["ブロックを 場所5 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
{"t": 1795428942.467088, "clock": "19:15:42", "kind": "key", "phase": "reset", "ep": 19, "key": "space", "rerecord": false}
{"t": 1795428942.493151, "clock": "19:15:42", "kind": "phase_end", "phase": "reset", "ep": 19, "dur_s": 1.9}
{"t": 1795428949.7109718, "clock": "19:15:49", "kind": "saved", "ep": 19, "dur_s": 7.2, "num_episodes": 19}
{"t": 1795428949.730432, "clock": "19:15:49", "kind": "phase", "phase": "start", "ep": 20}
{"t": 1795428949.753323, "clock": "19:15:49", "kind": "screen", "title": "20回目／20　場所5　スペースで始める", "lines": ["ブロックは 場所5 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
{"t": 1795428952.2071738, "clock": "19:15:52", "kind": "key", "phase": "start", "ep": 20, "key": "space", "place": 5}
{"t": 1795428952.2316952, "clock": "19:15:52", "kind": "phase_end", "phase": "start", "ep": 20, "dur_s": 2.5}
{"t": 1795428952.232162, "clock": "19:15:52", "kind": "episode_start", "ep": 20, "try_": 1}
{"t": 1795428967.9437282, "clock": "19:16:07", "kind": "key", "phase": "episode", "ep": 20, "key": "right"}
{"t": 1795428967.970467, "clock": "19:16:07", "kind": "episode_end", "ep": 20, "place": 5, "try": 1, "dur_s": 15.74, "buffer_frames": 472, "end": "right", "label": "ep20_try1"}
{"t": 1795428967.970695, "clock": "19:16:07", "kind": "phase", "phase": "end", "ep": 20}
{"t": 1795428967.992531, "clock": "19:16:07", "kind": "screen", "title": "20回目 終わり (これで20回)", "lines": ["リーダーで 爪を閉じる", "腕を机の上まで下ろして たたむ (休みの姿勢)", "たたんだら スペース (保存して 力が抜ける)", "幅の外だと 赤い字で関節名が出る → そこを戻す", "うまくいかなかったら ← で録り直す"]}
{"t": 1795428976.246975, "clock": "19:16:16", "kind": "key", "phase": "end", "ep": 20, "key": "space"}
{"t": 1795428976.273237, "clock": "19:16:16", "kind": "phase_end", "phase": "end", "ep": 20, "dur_s": 8.3}
{"t": 1795428983.1996548, "clock": "19:16:23", "kind": "saved", "ep": 20, "dur_s": 6.91, "num_episodes": 20}
{"t": 1795428986.0892649, "clock": "19:16:26", "kind": "lerobot_safe_window", "run": "step1_record", "title": "リーダーで休みの姿勢へ"}
{"t": 1795428986.097792, "clock": "19:16:26", "kind": "rest_out_joints", "run": "step1_record", "out": {"wrist_flex": 41.84}}
{"t": 1795428990.2714581, "clock": "19:16:30", "kind": "rest_out_joints", "run": "step1_record", "out": {}}
{"t": 1795428991.4923599, "clock": "19:16:31", "kind": "run_end", "name": "step1_record", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step1_record.json"}
{"t": 1795428991.522849, "clock": "19:16:31", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["20回とも, ブロックが箱に入った？", "", "はい = y     いいえ = n"]}
{"t": 1795428994.402936, "clock": "19:16:34", "kind": "key", "title": "見た物で答える  y / n", "key": "y"}
{"t": 1795428994.4083781, "clock": "19:16:34", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["録っている最中に, フォロワーが ガクッと飛んだ回は あった？", "(y = 飛んだ回があった / n = なかった)", "", "はい = y     いいえ = n"]}
{"t": 1795428996.526898, "clock": "19:16:36", "kind": "key", "title": "見た物で答える  y / n", "key": "n"}
{"t": 1795428996.531589, "clock": "19:16:36", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["場所4・5 で, 届きにくい・つかみにくい所は あった？", "(y = あった / n = なかった)", "", "はい = y     いいえ = n"]}
{"t": 1795428999.037475, "clock": "19:16:39", "kind": "key", "title": "見た物で答える  y / n", "key": "n"}
{"t": 1795428999.038462, "clock": "19:16:39", "kind": "labels", "file": "/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45/episode_labels.json", "fail": []}
{"t": 1795428999.066672, "clock": "19:16:39", "kind": "replay_child_start", "episode_index": 0}
{"t": 1795428999.440116, "clock": "19:16:39", "kind": "start", "dry": false, "replay_ep": 0}
{"t": 1795429000.292296, "clock": "19:16:40", "kind": "screen", "title": "replay の前", "lines": ["フォロワーのまわりを空ける", "次のスペースで 力が入っていないか読む (読むだけ)", "", "準備ができたら スペース"]}
{"t": 1795429003.220806, "clock": "19:16:43", "kind": "key", "title": "replay の前", "key": " "}
{"t": 1795429005.006894, "clock": "19:16:45", "kind": "read_servos", "follower": [[1, 2022, 0], [2, 862, 0], [3, 3024, 0], [4, 2337, 0], [5, 2031, 0], [6, 2061, 0]], "leader": [[1, 2082, 0], [2, 823, 0], [3, 3111, 0], [4, 2680, 0], [5, 2028, 0], [6, 2005, 0]], "ok": true}
{"t": 1795429005.013702, "clock": "19:16:45", "kind": "screen", "title": "replay (1回目・場所4 を再生)", "lines": ["フォロワーのまわりを空ける", "ブロックを 場所4 の点に置く", "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る", "(止めたいとき: q)", "", "準備ができたら スペース"]}
{"t": 1795429008.646417, "clock": "19:16:48", "kind": "key", "title": "replay (1回目・場所4 を再生)", "key": " "}
{"t": 1795429008.646982, "clock": "19:16:48", "kind": "run_start", "run": "step2_replay_ep0", "argv": ["replay", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos45", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45", "--dataset.episode=0", "--dataset.fps=30"]}
{"t": 1795429012.370419, "clock": "19:16:52", "kind": "torque_on", "run": "step2_replay_ep0", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
{"t": 1795429030.9909172, "clock": "19:17:10", "kind": "lerobot_safe_window", "run": "step2_replay_ep0", "title": "休みの姿勢へ自動で戻す"}
{"t": 1795429030.999986, "clock": "19:17:10", "kind": "rest_out_joints", "run": "step2_replay_ep0", "out": {"wrist_flex": 24.61}}
{"t": 1795429031.231929, "clock": "19:17:11", "kind": "rest_out_joints", "run": "step2_replay_ep0", "out": {}}
{"t": 1795429031.948522, "clock": "19:17:11", "kind": "run_end", "name": "step2_replay_ep0", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step2_replay_ep0.json"}
{"t": 1795429031.9531589, "clock": "19:17:11", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["replay で, ブロックは箱に入った？", "", "はい = y     いいえ = n"]}
{"t": 1795429033.661045, "clock": "19:17:13", "kind": "key", "title": "見た物で答える  y / n", "key": "y"}
{"t": 1795429033.6653109, "clock": "19:17:13", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["フォロワーは 録ったとおりに動いた？", "", "はい = y     いいえ = n"]}
{"t": 1795429035.338822, "clock": "19:17:15", "kind": "key", "title": "見た物で答える  y / n", "key": "y"}
{"t": 1795429035.3395672, "clock": "19:17:15", "kind": "end", "replay_ep": 0}
{"t": 1795429035.939979, "clock": "19:17:15", "kind": "replay_child_end", "episode_index": 0, "returncode": 0}
{"t": 1795429035.9404778, "clock": "19:17:15", "kind": "replay_child_start", "episode_index": 10}
{"t": 1795429036.235904, "clock": "19:17:16", "kind": "start", "dry": false, "replay_ep": 10}
{"t": 1795429037.1815329, "clock": "19:17:17", "kind": "screen", "title": "replay の前", "lines": ["フォロワーのまわりを空ける", "次のスペースで 力が入っていないか読む (読むだけ)", "", "準備ができたら スペース"]}
{"t": 1795429038.865847, "clock": "19:17:18", "kind": "key", "title": "replay の前", "key": " "}
{"t": 1795429040.674952, "clock": "19:17:20", "kind": "read_servos", "follower": [[1, 1959, 0], [2, 950, 0], [3, 3024, 0], [4, 2211, 0], [5, 2043, 0], [6, 2060, 0]], "leader": [[1, 2082, 0], [2, 823, 0], [3, 3111, 0], [4, 2680, 0], [5, 2028, 0], [6, 2005, 0]], "ok": true}
{"t": 1795429040.681803, "clock": "19:17:20", "kind": "screen", "title": "replay (11回目・場所5 を再生)", "lines": ["フォロワーのまわりを空ける", "ブロックを 場所5 の点に置く", "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る", "(止めたいとき: q)", "", "準備ができたら スペース"]}
{"t": 1795429046.173326, "clock": "19:17:26", "kind": "key", "title": "replay (11回目・場所5 を再生)", "key": " "}
{"t": 1795429046.173635, "clock": "19:17:26", "kind": "run_start", "run": "step2_replay_ep10", "argv": ["replay", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos45", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45", "--dataset.episode=10", "--dataset.fps=30"]}
{"t": 1795429049.321929, "clock": "19:17:29", "kind": "torque_on", "run": "step2_replay_ep10", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
{"t": 1795429066.320169, "clock": "19:17:46", "kind": "lerobot_safe_window", "run": "step2_replay_ep10", "title": "休みの姿勢へ自動で戻す"}
{"t": 1795429066.3272052, "clock": "19:17:46", "kind": "rest_out_joints", "run": "step2_replay_ep10", "out": {"wrist_flex": 30.42}}
{"t": 1795429066.6607292, "clock": "19:17:46", "kind": "rest_out_joints", "run": "step2_replay_ep10", "out": {}}
{"t": 1795429067.341584, "clock": "19:17:47", "kind": "run_end", "name": "step2_replay_ep10", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step2_replay_ep10.json"}
{"t": 1795429067.345458, "clock": "19:17:47", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["replay で, ブロックは箱に入った？", "", "はい = y     いいえ = n"]}
{"t": 1795429070.259234, "clock": "19:17:50", "kind": "key", "title": "見た物で答える  y / n", "key": "y"}
{"t": 1795429070.2631218, "clock": "19:17:50", "kind": "screen", "title": "見た物で答える  y / n", "lines": ["フォロワーは 録ったとおりに動いた？", "", "はい = y     いいえ = n"]}
{"t": 1795429071.2725499, "clock": "19:17:51", "kind": "key", "title": "見た物で答える  y / n", "key": "y"}
{"t": 1795429071.273213, "clock": "19:17:51", "kind": "end", "replay_ep": 10}
{"t": 1795429071.741024, "clock": "19:17:51", "kind": "replay_child_end", "episode_index": 10, "returncode": 0}
{"t": 1795429071.7574248, "clock": "19:17:51", "kind": "screen", "title": "おわり", "lines": ["手順はすべて終わった", "フォロワーの電源を切ってよい", "", "準備ができたら スペース"]}
{"t": 1795429073.663861, "clock": "19:17:53", "kind": "key", "title": "おわり", "key": " "}
{"t": 1795429073.6658628, "clock": "19:17:53", "kind": "end"}
```

#### results_278.json

```json
{
 "0": {
  "torque_zero": true,
  "follower": [
   [
    1,
    1947,
    0
   ],
   [
    2,
    950,
    0
   ],
   [
    3,
    3024,
    0
   ],
   [
    4,
    2211,
    0
   ],
   [
    5,
    2043,
    0
   ],
   [
    6,
    2062,
    0
   ]
  ]
 },
 "1": {
  "run": {
   "name": "step1_record",
   "exc": null,
   "ret": null,
   "torque_kept": false,
   "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step1_record.json"
  },
  "attempts": [
   {
    "ep": 1,
    "place": 4,
    "try": 1,
    "dur_s": 14.37,
    "buffer_frames": 431,
    "end": "right",
    "label": "ep1_try1",
    "saved_as": 0,
    "frames": 431,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.92,
    "leader_step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.13,
     "wrist_flex": 4.04,
     "wrist_roll": 1.4,
     "gripper": 5.26
    }
   },
   {
    "ep": 2,
    "place": 4,
    "try": 1,
    "dur_s": 18.74,
    "buffer_frames": 562,
    "end": "right",
    "label": "ep2_try1",
    "saved_as": 1,
    "frames": 562,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 3.16,
     "elbow_flex": 3.34,
     "wrist_flex": 3.25,
     "wrist_roll": 1.58,
     "gripper": 3.7
    }
   },
   {
    "ep": 3,
    "place": 4,
    "try": 1,
    "dur_s": 17.81,
    "buffer_frames": 534,
    "end": "right",
    "label": "ep3_try1",
    "saved_as": 2,
    "frames": 534,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.29,
     "shoulder_lift": 3.79,
     "elbow_flex": 4.49,
     "wrist_flex": 3.34,
     "wrist_roll": 1.32,
     "gripper": 4.61
    }
   },
   {
    "ep": 4,
    "place": 4,
    "try": 1,
    "dur_s": 20.24,
    "buffer_frames": 607,
    "end": "right",
    "label": "ep4_try1",
    "saved_as": 3,
    "frames": 607,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 4.66,
     "elbow_flex": 4.84,
     "wrist_flex": 4.04,
     "wrist_roll": 2.02,
     "gripper": 5.59
    }
   },
   {
    "ep": 5,
    "place": 4,
    "try": 1,
    "dur_s": 12.4,
    "buffer_frames": 372,
    "end": "right",
    "label": "ep5_try1",
    "saved_as": 4,
    "frames": 372,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.72,
     "shoulder_lift": 4.14,
     "elbow_flex": 5.01,
     "wrist_flex": 2.2,
     "wrist_roll": 1.23,
     "gripper": 6.17
    }
   },
   {
    "ep": 6,
    "place": 4,
    "try": 1,
    "dur_s": 18.61,
    "buffer_frames": 558,
    "end": "right",
    "label": "ep6_try1",
    "saved_as": 5,
    "frames": 558,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 3.17,
     "shoulder_lift": 4.66,
     "elbow_flex": 3.16,
     "wrist_flex": 4.13,
     "wrist_roll": 1.76,
     "gripper": 5.34
    }
   },
   {
    "ep": 7,
    "place": 4,
    "try": 1,
    "dur_s": 16.47,
    "buffer_frames": 494,
    "end": "right",
    "label": "ep7_try1",
    "saved_as": 6,
    "frames": 494,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 4.75,
     "elbow_flex": 4.39,
     "wrist_flex": 4.4,
     "wrist_roll": 1.76,
     "gripper": 6.08
    }
   },
   {
    "ep": 8,
    "place": 4,
    "try": 1,
    "dur_s": 17.74,
    "buffer_frames": 532,
    "end": "right",
    "label": "ep8_try1",
    "saved_as": 7,
    "frames": 532,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 4.31,
     "elbow_flex": 4.4,
     "wrist_flex": 4.75,
     "wrist_roll": 1.59,
     "gripper": 4.36
    }
   },
   {
    "ep": 9,
    "place": 4,
    "try": 1,
    "dur_s": 11.3,
    "buffer_frames": 339,
    "end": "right",
    "label": "ep9_try1",
    "saved_as": 8,
    "frames": 339,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.93,
    "leader_step_max": {
     "shoulder_pan": 2.99,
     "shoulder_lift": 4.57,
     "elbow_flex": 4.84,
     "wrist_flex": 3.86,
     "wrist_roll": 1.23,
     "gripper": 5.09
    }
   },
   {
    "ep": 10,
    "place": 4,
    "try": 1,
    "dur_s": 13.77,
    "buffer_frames": 413,
    "end": "right",
    "label": "ep10_try1",
    "saved_as": 9,
    "frames": 413,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.9,
     "shoulder_lift": 5.1,
     "elbow_flex": 4.14,
     "wrist_flex": 3.51,
     "wrist_roll": 1.32,
     "gripper": 4.44
    }
   },
   {
    "ep": 11,
    "place": 5,
    "try": 1,
    "dur_s": 13.9,
    "buffer_frames": 417,
    "end": "right",
    "label": "ep11_try1",
    "saved_as": 10,
    "frames": 417,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 5.71,
     "elbow_flex": 4.57,
     "wrist_flex": 3.34,
     "wrist_roll": 2.02,
     "gripper": 5.43
    }
   },
   {
    "ep": 12,
    "place": 5,
    "try": 1,
    "dur_s": 14.04,
    "buffer_frames": 421,
    "end": "right",
    "label": "ep12_try1",
    "saved_as": 11,
    "frames": 421,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.11,
     "shoulder_lift": 4.13,
     "elbow_flex": 4.66,
     "wrist_flex": 3.6,
     "wrist_roll": 1.49,
     "gripper": 5.01
    }
   },
   {
    "ep": 13,
    "place": 5,
    "try": 1,
    "dur_s": 16.81,
    "buffer_frames": 504,
    "end": "right",
    "label": "ep13_try1",
    "saved_as": 12,
    "frames": 504,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.46,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.4,
     "wrist_flex": 2.99,
     "wrist_roll": 1.58,
     "gripper": 5.26
    }
   },
   {
    "ep": 14,
    "place": 5,
    "try": 1,
    "dur_s": 13.3,
    "buffer_frames": 399,
    "end": "right",
    "label": "ep14_try1",
    "saved_as": 13,
    "frames": 399,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.29,
     "shoulder_lift": 4.84,
     "elbow_flex": 5.45,
     "wrist_flex": 4.48,
     "wrist_roll": 1.23,
     "gripper": 4.11
    }
   },
   {
    "ep": 15,
    "place": 5,
    "try": 1,
    "dur_s": 10.37,
    "buffer_frames": 311,
    "end": "right",
    "label": "ep15_try1",
    "saved_as": 14,
    "frames": 311,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.93,
    "leader_step_max": {
     "shoulder_pan": 2.03,
     "shoulder_lift": 5.36,
     "elbow_flex": 5.72,
     "wrist_flex": 3.7,
     "wrist_roll": 1.23,
     "gripper": 4.77
    }
   },
   {
    "ep": 16,
    "place": 5,
    "try": 1,
    "dur_s": 13.9,
    "buffer_frames": 417,
    "end": "right",
    "label": "ep16_try1",
    "saved_as": 15,
    "frames": 417,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.94,
    "leader_step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 3.96,
     "elbow_flex": 5.1,
     "wrist_flex": 4.31,
     "wrist_roll": 2.38,
     "gripper": 5.35
    }
   },
   {
    "ep": 17,
    "place": 5,
    "try": 1,
    "dur_s": 15.27,
    "buffer_frames": 458,
    "end": "right",
    "label": "ep17_try1",
    "saved_as": 16,
    "frames": 458,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 1.58,
     "shoulder_lift": 4.75,
     "elbow_flex": 3.87,
     "wrist_flex": 3.25,
     "wrist_roll": 1.67,
     "gripper": 5.1
    }
   },
   {
    "ep": 18,
    "place": 5,
    "try": 1,
    "dur_s": 15.77,
    "buffer_frames": 473,
    "end": "right",
    "label": "ep18_try1",
    "saved_as": 17,
    "frames": 473,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.95,
    "leader_step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 5.36,
     "elbow_flex": 3.96,
     "wrist_flex": 3.6,
     "wrist_roll": 2.29,
     "gripper": 5.51
    }
   },
   {
    "ep": 19,
    "place": 5,
    "try": 1,
    "dur_s": 13.27,
    "buffer_frames": 398,
    "end": "right",
    "label": "ep19_try1",
    "saved_as": 18,
    "frames": 398,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.93,
    "leader_step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 4.84,
     "elbow_flex": 4.49,
     "wrist_flex": 3.35,
     "wrist_roll": 2.46,
     "gripper": 6.75
    }
   },
   {
    "ep": 20,
    "place": 5,
    "try": 1,
    "dur_s": 15.74,
    "buffer_frames": 472,
    "end": "right",
    "label": "ep20_try1",
    "saved_as": 19,
    "frames": 472,
    "cut_frames": 0,
    "cut_examples": [],
    "hz": 29.99,
    "leader_step_max": {
     "shoulder_pan": 2.11,
     "shoulder_lift": 5.54,
     "elbow_flex": 4.75,
     "wrist_flex": 4.66,
     "wrist_roll": 2.11,
     "gripper": 4.85
    }
   }
  ],
  "cut_frames_by_label": {
   "start": 1,
   "start_wait": 2,
   "reset": 5
  },
  "gate": [
   {
    "what": "rest_gate_start",
    "t": 631.1864584579889,
    "leader": true
   },
   {
    "what": "rest_gate_end",
    "t": 635.9091022080102,
    "result": "leader",
    "dur_s": 4.72
   }
  ],
  "rest_wait_s": 4.72,
  "rest_wait_each_s": [
   [
    "leader",
    4.72
   ]
  ],
  "torque_on": [
   {
    "shoulder_pan": 0.0,
    "shoulder_lift": 0.0,
    "elbow_flex": 0.0,
    "wrist_flex": 0.0,
    "wrist_roll": 0.0,
    "gripper": 0.0
   }
  ],
  "cut_frames_gate": 0,
  "yn_all_in_box": true,
  "not_in_box": [],
  "yn_jump": false,
  "yn_hard_place": false,
  "labels": [
   {
    "episode_index": 0,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 1,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 2,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 3,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 4,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 5,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 6,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 7,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 8,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 9,
    "place": 4,
    "label": "success"
   },
   {
    "episode_index": 10,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 11,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 12,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 13,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 14,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 15,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 16,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 17,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 18,
    "place": 5,
    "label": "success"
   },
   {
    "episode_index": 19,
    "place": 5,
    "label": "success"
   }
  ]
 },
 "2": {
  "picks": [
   0,
   10
  ],
  "children": [
   {
    "episode_index": 0,
    "returncode": 0,
    "results": {
     "read_servos": [
      {
       "ok": true,
       "follower": [
        [
         1,
         2022,
         0
        ],
        [
         2,
         862,
         0
        ],
        [
         3,
         3024,
         0
        ],
        [
         4,
         2337,
         0
        ],
        [
         5,
         2031,
         0
        ],
        [
         6,
         2061,
         0
        ]
       ]
      }
     ],
     "replay": {
      "episode_index": 0,
      "place": 4,
      "run": {
       "name": "step2_replay_ep0",
       "exc": null,
       "ret": null,
       "torque_kept": false,
       "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step2_replay_ep0.json"
      },
      "replay": {
       "frames": 430,
       "cut_frames": 1,
       "cut_examples": [
        {
         "wrist_flex": [
          53.1,
          44.31
         ]
        }
       ],
       "hz": 29.97,
       "leader_step_max": {
        "shoulder_pan": 2.55,
        "shoulder_lift": 4.4,
        "elbow_flex": 4.13,
        "wrist_flex": 4.04,
        "wrist_roll": 1.4,
        "gripper": 5.26
       }
      },
      "gate": [
       {
        "what": "rest_gate_start",
        "t": 22.321671166981105,
        "leader": false
       },
       {
        "what": "auto_return",
        "t": 22.342944042000454,
        "result": true,
        "dur_s": 0.89
       },
       {
        "what": "rest_gate_end",
        "t": 23.248155666980892,
        "result": "auto",
        "dur_s": 0.93
       }
      ],
      "rest_wait_s": 0.93,
      "rest_wait_each_s": [
       [
        "auto",
        0.93
       ]
      ],
      "torque_on": [
       {
        "shoulder_pan": 0.0,
        "shoulder_lift": 0.0,
        "elbow_flex": 0.0,
        "wrist_flex": 0.0,
        "wrist_roll": 0.0,
        "gripper": 0.0
       }
      ],
      "cut_frames_gate": 0,
      "yn_block_in_box": true,
      "yn_replay_same": true
     }
    }
   },
   {
    "episode_index": 10,
    "returncode": 0,
    "results": {
     "read_servos": [
      {
       "ok": true,
       "follower": [
        [
         1,
         1959,
         0
        ],
        [
         2,
         950,
         0
        ],
        [
         3,
         3024,
         0
        ],
        [
         4,
         2211,
         0
        ],
        [
         5,
         2043,
         0
        ],
        [
         6,
         2060,
         0
        ]
       ]
      }
     ],
     "replay": {
      "episode_index": 10,
      "place": 5,
      "run": {
       "name": "step2_replay_ep10",
       "exc": null,
       "ret": null,
       "torque_kept": false,
       "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step2_replay_ep10.json"
      },
      "replay": {
       "frames": 416,
       "cut_frames": 2,
       "cut_examples": [
        {
         "wrist_flex": [
          51.69,
          33.23
         ]
        },
        {
         "wrist_flex": [
          51.69,
          43.23
         ]
        }
       ],
       "hz": 29.99,
       "leader_step_max": {
        "shoulder_pan": 2.2,
        "shoulder_lift": 5.71,
        "elbow_flex": 4.57,
        "wrist_flex": 3.34,
        "wrist_roll": 2.02,
        "gripper": 5.43
       }
      },
      "gate": [
       {
        "what": "rest_gate_start",
        "t": 20.134715916996356,
        "leader": false
       },
       {
        "what": "auto_return",
        "t": 20.1455192079884,
        "result": true,
        "dur_s": 0.99
       },
       {
        "what": "rest_gate_end",
        "t": 21.14900958299404,
        "result": "auto",
        "dur_s": 1.01
       }
      ],
      "rest_wait_s": 1.01,
      "rest_wait_each_s": [
       [
        "auto",
        1.01
       ]
      ],
      "torque_on": [
       {
        "shoulder_pan": 0.0,
        "shoulder_lift": 0.0,
        "elbow_flex": 0.0,
        "wrist_flex": 0.0,
        "wrist_roll": 0.0,
        "gripper": 0.0
       }
      ],
      "cut_frames_gate": 0,
      "yn_block_in_box": true,
      "yn_replay_same": true
     }
    }
   }
  ]
 }
}
```

#### results_278_replay_ep0.json

```json
{
 "read_servos": [
  {
   "ok": true,
   "follower": [
    [
     1,
     2022,
     0
    ],
    [
     2,
     862,
     0
    ],
    [
     3,
     3024,
     0
    ],
    [
     4,
     2337,
     0
    ],
    [
     5,
     2031,
     0
    ],
    [
     6,
     2061,
     0
    ]
   ]
  }
 ],
 "replay": {
  "episode_index": 0,
  "place": 4,
  "run": {
   "name": "step2_replay_ep0",
   "exc": null,
   "ret": null,
   "torque_kept": false,
   "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step2_replay_ep0.json"
  },
  "replay": {
   "frames": 430,
   "cut_frames": 1,
   "cut_examples": [
    {
     "wrist_flex": [
      53.1,
      44.31
     ]
    }
   ],
   "hz": 29.97,
   "leader_step_max": {
    "shoulder_pan": 2.55,
    "shoulder_lift": 4.4,
    "elbow_flex": 4.13,
    "wrist_flex": 4.04,
    "wrist_roll": 1.4,
    "gripper": 5.26
   }
  },
  "gate": [
   {
    "what": "rest_gate_start",
    "t": 22.321671166981105,
    "leader": false
   },
   {
    "what": "auto_return",
    "t": 22.342944042000454,
    "result": true,
    "dur_s": 0.89
   },
   {
    "what": "rest_gate_end",
    "t": 23.248155666980892,
    "result": "auto",
    "dur_s": 0.93
   }
  ],
  "rest_wait_s": 0.93,
  "rest_wait_each_s": [
   [
    "auto",
    0.93
   ]
  ],
  "torque_on": [
   {
    "shoulder_pan": 0.0,
    "shoulder_lift": 0.0,
    "elbow_flex": 0.0,
    "wrist_flex": 0.0,
    "wrist_roll": 0.0,
    "gripper": 0.0
   }
  ],
  "cut_frames_gate": 0,
  "yn_block_in_box": true,
  "yn_replay_same": true
 }
}
```

#### results_278_replay_ep10.json

```json
{
 "read_servos": [
  {
   "ok": true,
   "follower": [
    [
     1,
     1959,
     0
    ],
    [
     2,
     950,
     0
    ],
    [
     3,
     3024,
     0
    ],
    [
     4,
     2211,
     0
    ],
    [
     5,
     2043,
     0
    ],
    [
     6,
     2060,
     0
    ]
   ]
  }
 ],
 "replay": {
  "episode_index": 10,
  "place": 5,
  "run": {
   "name": "step2_replay_ep10",
   "exc": null,
   "ret": null,
   "torque_kept": false,
   "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_278/step2_replay_ep10.json"
  },
  "replay": {
   "frames": 416,
   "cut_frames": 2,
   "cut_examples": [
    {
     "wrist_flex": [
      51.69,
      33.23
     ]
    },
    {
     "wrist_flex": [
      51.69,
      43.23
     ]
    }
   ],
   "hz": 29.99,
   "leader_step_max": {
    "shoulder_pan": 2.2,
    "shoulder_lift": 5.71,
    "elbow_flex": 4.57,
    "wrist_flex": 3.34,
    "wrist_roll": 2.02,
    "gripper": 5.43
   }
  },
  "gate": [
   {
    "what": "rest_gate_start",
    "t": 20.134715916996356,
    "leader": false
   },
   {
    "what": "auto_return",
    "t": 20.1455192079884,
    "result": true,
    "dur_s": 0.99
   },
   {
    "what": "rest_gate_end",
    "t": 21.14900958299404,
    "result": "auto",
    "dur_s": 1.01
   }
  ],
  "rest_wait_s": 1.01,
  "rest_wait_each_s": [
   [
    "auto",
    1.01
   ]
  ],
  "torque_on": [
   {
    "shoulder_pan": 0.0,
    "shoulder_lift": 0.0,
    "elbow_flex": 0.0,
    "wrist_flex": 0.0,
    "wrist_roll": 0.0,
    "gripper": 0.0
   }
  ],
  "cut_frames_gate": 0,
  "yn_block_in_box": true,
  "yn_replay_same": true
 }
}
```

#### analysis_278.json

```json
{
 "root": "/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos45",
 "fps": 30,
 "total_episodes": 20,
 "total_frames": 9112,
 "cameras": [
  "observation.images.wrist",
  "observation.images.desk"
 ],
 "episodes": [
  {
   "ep": 1,
   "place": 4,
   "length": 431,
   "rows": 431,
   "dur_s": 14.37,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.92,
   "real_dur_s": 14.37,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.46,
     "shoulder_lift": 4.22,
     "elbow_flex": 3.78,
     "wrist_flex": 3.08,
     "wrist_roll": 1.32,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.13,
     "wrist_flex": 4.04,
     "wrist_roll": 1.41,
     "gripper": 5.26
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 431,
    "black": 0,
    "white": 0,
    "still": 93,
    "still_run_max": 1,
    "mean": [
     143.8,
     154.7,
     172.4
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 431,
    "black": 0,
    "white": 0,
    "still": 115,
    "still_run_max": 1,
    "mean": [
     184.1,
     187.1,
     189.0
    ]
   }
  },
  {
   "ep": 2,
   "place": 4,
   "length": 562,
   "rows": 562,
   "dur_s": 18.73,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 18.74,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 3.16,
     "elbow_flex": 3.16,
     "wrist_flex": 2.9,
     "wrist_roll": 1.49,
     "gripper": 3.12
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 3.16,
     "elbow_flex": 3.34,
     "wrist_flex": 3.25,
     "wrist_roll": 1.58,
     "gripper": 3.7
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 562,
    "black": 0,
    "white": 0,
    "still": 126,
    "still_run_max": 1,
    "mean": [
     140.5,
     153.9,
     167.6
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 562,
    "black": 0,
    "white": 0,
    "still": 150,
    "still_run_max": 1,
    "mean": [
     183.2,
     187.1,
     188.7
    ]
   }
  },
  {
   "ep": 3,
   "place": 4,
   "length": 534,
   "rows": 534,
   "dur_s": 17.8,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 17.81,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 3.78,
     "elbow_flex": 4.31,
     "wrist_flex": 2.9,
     "wrist_roll": 1.23,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.29,
     "shoulder_lift": 3.78,
     "elbow_flex": 4.48,
     "wrist_flex": 3.34,
     "wrist_roll": 1.32,
     "gripper": 4.61
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 534,
    "black": 0,
    "white": 0,
    "still": 106,
    "still_run_max": 1,
    "mean": [
     141.1,
     156.9,
     168.4
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 534,
    "black": 0,
    "white": 0,
    "still": 149,
    "still_run_max": 1,
    "mean": [
     182.9,
     187.1,
     188.7
    ]
   }
  },
  {
   "ep": 4,
   "place": 4,
   "length": 607,
   "rows": 607,
   "dur_s": 20.23,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 20.24,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.64,
     "shoulder_lift": 4.57,
     "elbow_flex": 4.48,
     "wrist_flex": 3.16,
     "wrist_roll": 1.76,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 4.66,
     "elbow_flex": 4.84,
     "wrist_flex": 4.04,
     "wrist_roll": 2.02,
     "gripper": 5.59
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 607,
    "black": 0,
    "white": 0,
    "still": 104,
    "still_run_max": 1,
    "mean": [
     131.0,
     154.8,
     180.8
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 607,
    "black": 0,
    "white": 0,
    "still": 148,
    "still_run_max": 1,
    "mean": [
     182.9,
     187.2,
     189.3
    ]
   }
  },
  {
   "ep": 5,
   "place": 4,
   "length": 372,
   "rows": 372,
   "dur_s": 12.4,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 12.4,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.64,
     "shoulder_lift": 4.04,
     "elbow_flex": 4.57,
     "wrist_flex": 2.2,
     "wrist_roll": 1.14,
     "gripper": 3.79
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.73,
     "shoulder_lift": 4.13,
     "elbow_flex": 5.01,
     "wrist_flex": 2.2,
     "wrist_roll": 1.23,
     "gripper": 6.17
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 372,
    "black": 0,
    "white": 0,
    "still": 62,
    "still_run_max": 1,
    "mean": [
     141.1,
     154.1,
     165.9
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 372,
    "black": 0,
    "white": 0,
    "still": 91,
    "still_run_max": 1,
    "mean": [
     184.1,
     187.4,
     188.9
    ]
   }
  },
  {
   "ep": 6,
   "place": 4,
   "length": 558,
   "rows": 558,
   "dur_s": 18.6,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 18.61,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.64,
     "shoulder_lift": 4.75,
     "elbow_flex": 2.81,
     "wrist_flex": 3.78,
     "wrist_roll": 1.32,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 3.16,
     "shoulder_lift": 4.66,
     "elbow_flex": 3.16,
     "wrist_flex": 4.13,
     "wrist_roll": 1.76,
     "gripper": 5.35
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 558,
    "black": 0,
    "white": 0,
    "still": 109,
    "still_run_max": 1,
    "mean": [
     137.0,
     154.0,
     170.2
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 558,
    "black": 0,
    "white": 0,
    "still": 137,
    "still_run_max": 1,
    "mean": [
     183.1,
     187.2,
     188.9
    ]
   }
  },
  {
   "ep": 7,
   "place": 4,
   "length": 494,
   "rows": 494,
   "dur_s": 16.47,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 16.47,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.64,
     "shoulder_lift": 4.75,
     "elbow_flex": 4.13,
     "wrist_flex": 3.43,
     "wrist_roll": 1.32,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 4.75,
     "elbow_flex": 4.4,
     "wrist_flex": 4.4,
     "wrist_roll": 1.76,
     "gripper": 6.09
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 494,
    "black": 0,
    "white": 0,
    "still": 92,
    "still_run_max": 1,
    "mean": [
     144.9,
     155.9,
     170.4
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 494,
    "black": 0,
    "white": 0,
    "still": 133,
    "still_run_max": 1,
    "mean": [
     184.2,
     187.5,
     188.9
    ]
   }
  },
  {
   "ep": 8,
   "place": 4,
   "length": 532,
   "rows": 532,
   "dur_s": 17.73,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 17.74,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.73,
     "shoulder_lift": 4.22,
     "elbow_flex": 4.13,
     "wrist_flex": 4.31,
     "wrist_roll": 1.23,
     "gripper": 2.91
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 4.31,
     "elbow_flex": 4.4,
     "wrist_flex": 4.75,
     "wrist_roll": 1.58,
     "gripper": 4.36
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 532,
    "black": 0,
    "white": 0,
    "still": 78,
    "still_run_max": 1,
    "mean": [
     129.5,
     153.5,
     177.6
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 532,
    "black": 0,
    "white": 0,
    "still": 115,
    "still_run_max": 1,
    "mean": [
     183.7,
     187.5,
     189.1
    ]
   }
  },
  {
   "ep": 9,
   "place": 4,
   "length": 339,
   "rows": 339,
   "dur_s": 11.3,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.93,
   "real_dur_s": 11.3,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.81,
     "shoulder_lift": 4.48,
     "elbow_flex": 4.4,
     "wrist_flex": 3.16,
     "wrist_roll": 0.88,
     "gripper": 3.66
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.99,
     "shoulder_lift": 4.57,
     "elbow_flex": 4.84,
     "wrist_flex": 3.87,
     "wrist_roll": 1.23,
     "gripper": 5.1
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 339,
    "black": 0,
    "white": 0,
    "still": 46,
    "still_run_max": 1,
    "mean": [
     141.9,
     152.8,
     169.1
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 339,
    "black": 0,
    "white": 0,
    "still": 92,
    "still_run_max": 1,
    "mean": [
     183.5,
     187.4,
     188.9
    ]
   }
  },
  {
   "ep": 10,
   "place": 4,
   "length": 413,
   "rows": 413,
   "dur_s": 13.77,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 13.77,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.64,
     "shoulder_lift": 4.84,
     "elbow_flex": 4.04,
     "wrist_flex": 3.08,
     "wrist_roll": 1.14,
     "gripper": 3.52
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.9,
     "shoulder_lift": 5.1,
     "elbow_flex": 4.13,
     "wrist_flex": 3.52,
     "wrist_roll": 1.32,
     "gripper": 4.44
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 413,
    "black": 0,
    "white": 0,
    "still": 68,
    "still_run_max": 1,
    "mean": [
     140.2,
     153.9,
     174.6
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 413,
    "black": 0,
    "white": 0,
    "still": 112,
    "still_run_max": 1,
    "mean": [
     183.3,
     187.5,
     189.1
    ]
   }
  },
  {
   "ep": 11,
   "place": 5,
   "length": 417,
   "rows": 417,
   "dur_s": 13.9,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 13.9,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 5.27,
     "elbow_flex": 4.48,
     "wrist_flex": 2.99,
     "wrist_roll": 1.49,
     "gripper": 3.59
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 5.71,
     "elbow_flex": 4.57,
     "wrist_flex": 3.34,
     "wrist_roll": 2.02,
     "gripper": 5.43
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 417,
    "black": 0,
    "white": 0,
    "still": 74,
    "still_run_max": 1,
    "mean": [
     138.6,
     154.1,
     167.7
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 417,
    "black": 0,
    "white": 0,
    "still": 109,
    "still_run_max": 1,
    "mean": [
     182.8,
     186.2,
     189.0
    ]
   }
  },
  {
   "ep": 12,
   "place": 5,
   "length": 421,
   "rows": 421,
   "dur_s": 14.03,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 14.04,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 4.04,
     "elbow_flex": 4.31,
     "wrist_flex": 2.73,
     "wrist_roll": 1.14,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.11,
     "shoulder_lift": 4.13,
     "elbow_flex": 4.66,
     "wrist_flex": 3.6,
     "wrist_roll": 1.49,
     "gripper": 5.02
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 421,
    "black": 0,
    "white": 0,
    "still": 60,
    "still_run_max": 1,
    "mean": [
     140.9,
     154.5,
     168.7
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 421,
    "black": 0,
    "white": 0,
    "still": 89,
    "still_run_max": 1,
    "mean": [
     183.5,
     186.6,
     189.3
    ]
   }
  },
  {
   "ep": 13,
   "place": 5,
   "length": 504,
   "rows": 504,
   "dur_s": 16.8,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 16.81,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.46,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.13,
     "wrist_flex": 2.73,
     "wrist_roll": 1.14,
     "gripper": 3.66
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.46,
     "shoulder_lift": 4.4,
     "elbow_flex": 4.4,
     "wrist_flex": 2.99,
     "wrist_roll": 1.58,
     "gripper": 5.26
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 504,
    "black": 0,
    "white": 0,
    "still": 98,
    "still_run_max": 1,
    "mean": [
     138.2,
     156.6,
     167.7
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 504,
    "black": 0,
    "white": 0,
    "still": 131,
    "still_run_max": 1,
    "mean": [
     182.6,
     185.8,
     188.9
    ]
   }
  },
  {
   "ep": 14,
   "place": 5,
   "length": 399,
   "rows": 399,
   "dur_s": 13.3,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 13.3,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 4.75,
     "elbow_flex": 5.19,
     "wrist_flex": 4.04,
     "wrist_roll": 1.23,
     "gripper": 3.05
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.29,
     "shoulder_lift": 4.84,
     "elbow_flex": 5.45,
     "wrist_flex": 4.48,
     "wrist_roll": 1.23,
     "gripper": 4.11
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 399,
    "black": 0,
    "white": 0,
    "still": 61,
    "still_run_max": 1,
    "mean": [
     136.2,
     154.4,
     170.8
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 399,
    "black": 0,
    "white": 0,
    "still": 95,
    "still_run_max": 1,
    "mean": [
     181.8,
     186.1,
     189.2
    ]
   }
  },
  {
   "ep": 15,
   "place": 5,
   "length": 311,
   "rows": 311,
   "dur_s": 10.37,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.93,
   "real_dur_s": 10.37,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 5.1,
     "elbow_flex": 5.36,
     "wrist_flex": 3.25,
     "wrist_roll": 0.97,
     "gripper": 3.52
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 5.36,
     "elbow_flex": 5.71,
     "wrist_flex": 3.69,
     "wrist_roll": 1.23,
     "gripper": 4.77
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 311,
    "black": 0,
    "white": 0,
    "still": 52,
    "still_run_max": 1,
    "mean": [
     137.5,
     155.4,
     168.6
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 311,
    "black": 0,
    "white": 0,
    "still": 70,
    "still_run_max": 1,
    "mean": [
     183.3,
     186.7,
     189.2
    ]
   }
  },
  {
   "ep": 16,
   "place": 5,
   "length": 417,
   "rows": 417,
   "dur_s": 13.9,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.94,
   "real_dur_s": 13.9,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.02,
     "shoulder_lift": 3.87,
     "elbow_flex": 5.1,
     "wrist_flex": 4.04,
     "wrist_roll": 1.67,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.2,
     "shoulder_lift": 3.96,
     "elbow_flex": 5.1,
     "wrist_flex": 4.31,
     "wrist_roll": 2.37,
     "gripper": 5.35
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 417,
    "black": 0,
    "white": 0,
    "still": 62,
    "still_run_max": 1,
    "mean": [
     138.2,
     154.7,
     168.9
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 417,
    "black": 0,
    "white": 0,
    "still": 90,
    "still_run_max": 1,
    "mean": [
     182.8,
     186.5,
     189.2
    ]
   }
  },
  {
   "ep": 17,
   "place": 5,
   "length": 458,
   "rows": 458,
   "dur_s": 15.27,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 15.27,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 1.49,
     "shoulder_lift": 4.66,
     "elbow_flex": 3.78,
     "wrist_flex": 2.46,
     "wrist_roll": 1.32,
     "gripper": 3.66
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 1.58,
     "shoulder_lift": 4.75,
     "elbow_flex": 3.87,
     "wrist_flex": 3.25,
     "wrist_roll": 1.67,
     "gripper": 5.1
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 458,
    "black": 0,
    "white": 0,
    "still": 81,
    "still_run_max": 1,
    "mean": [
     139.1,
     153.8,
     172.5
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 458,
    "black": 0,
    "white": 0,
    "still": 115,
    "still_run_max": 1,
    "mean": [
     183.5,
     186.2,
     189.1
    ]
   }
  },
  {
   "ep": 18,
   "place": 5,
   "length": 473,
   "rows": 473,
   "dur_s": 15.77,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.95,
   "real_dur_s": 15.77,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.37,
     "shoulder_lift": 5.1,
     "elbow_flex": 3.69,
     "wrist_flex": 3.25,
     "wrist_roll": 1.76,
     "gripper": 3.66
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 5.36,
     "elbow_flex": 3.96,
     "wrist_flex": 3.6,
     "wrist_roll": 2.29,
     "gripper": 5.51
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 473,
    "black": 0,
    "white": 0,
    "still": 56,
    "still_run_max": 1,
    "mean": [
     140.2,
     155.1,
     166.5
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 473,
    "black": 0,
    "white": 0,
    "still": 88,
    "still_run_max": 1,
    "mean": [
     180.3,
     185.9,
     189.6
    ]
   }
  },
  {
   "ep": 19,
   "place": 5,
   "length": 398,
   "rows": 398,
   "dur_s": 13.27,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.93,
   "real_dur_s": 13.27,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.46,
     "shoulder_lift": 4.75,
     "elbow_flex": 4.31,
     "wrist_flex": 3.16,
     "wrist_roll": 2.02,
     "gripper": 3.73
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.55,
     "shoulder_lift": 4.84,
     "elbow_flex": 4.48,
     "wrist_flex": 3.34,
     "wrist_roll": 2.46,
     "gripper": 6.74
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 398,
    "black": 0,
    "white": 0,
    "still": 58,
    "still_run_max": 1,
    "mean": [
     140.5,
     153.7,
     173.4
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 398,
    "black": 0,
    "white": 0,
    "still": 90,
    "still_run_max": 1,
    "mean": [
     180.7,
     185.8,
     189.1
    ]
   }
  },
  {
   "ep": 20,
   "place": 5,
   "length": 472,
   "rows": 472,
   "dur_s": 15.73,
   "ts_step_ms": [
    33.33,
    33.33
   ],
   "real_hz": 29.99,
   "real_dur_s": 15.74,
   "cut_frames": 0,
   "try": 1,
   "end": "right",
   "observation.state": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.11,
     "shoulder_lift": 5.27,
     "elbow_flex": 4.66,
     "wrist_flex": 4.22,
     "wrist_roll": 1.67,
     "gripper": 3.66
    },
    "jumps": {}
   },
   "action": {
    "present": true,
    "step_max": {
     "shoulder_pan": 2.11,
     "shoulder_lift": 5.54,
     "elbow_flex": 4.75,
     "wrist_flex": 4.66,
     "wrist_roll": 2.11,
     "gripper": 4.85
    },
    "jumps": {}
   },
   "observation.images.wrist": {
    "file": "videos/observation.images.wrist/chunk-000/file-000.mp4",
    "frames": 472,
    "black": 0,
    "white": 0,
    "still": 79,
    "still_run_max": 1,
    "mean": [
     134.3,
     152.6,
     170.9
    ]
   },
   "observation.images.desk": {
    "file": "videos/observation.images.desk/chunk-000/file-000.mp4",
    "frames": 472,
    "black": 0,
    "white": 0,
    "still": 108,
    "still_run_max": 1,
    "mean": [
     181.2,
     185.7,
     189.3
    ]
   }
  }
 ]
}
```

#### read_servos_last.txt（依頼278）

```text

== /dev/tty.usbmodem5CBC4321631
  サーボ 6 個, 電圧の平均 11.8 V
  ID  型番  FW    位置  電圧V  温度C  トルク  Lock
   1  777  3.10   1959   11.8     35       0     0
   2  777  3.10    950   11.8     35       0     0
   3  777  3.10   3024   11.8     34       0     0
   4  777  3.10   2211   11.9     36       0     0
   5  777  3.10   2043   11.9     36       0     0
   6  777  3.10   2060   11.8     44       0     0

== /dev/tty.usbmodem5CBC4323581
  サーボ 6 個, 電圧の平均 4.9 V
  ID  型番  FW    位置  電圧V  温度C  トルク  Lock
   1  777  3.10   2082    4.9     28       0     0
   2  777  3.10    823    4.9     27       0     0
   3  777  3.10   3111    4.9     28       0     0
   4  777  3.10   2680    4.9     27       0     0
   5  777  3.10   2028    4.9     28       0     0
   6  777  3.10   2005    4.9     29       0     0
```

#### episode_labels.json（_pos45）

```json
{
 "dataset": "local/so101_redblock_box_teleop_v1_pos45",
 "judged_by": "エイイチ",
 "date": "2026-11-23",
 "note": "ブロックが箱に入ったか (エイイチが録った回を見て答えた. 依頼278). place は机の点の番号 (4 = まん中の手前, 5 = 右の奥). dataset 本体は変えていない",
 "episodes": [
  {
   "episode_index": 0,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 1,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 2,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 3,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 4,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 5,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 6,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 7,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 8,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 9,
   "place": 4,
   "label": "success"
  },
  {
   "episode_index": 10,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 11,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 12,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 13,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 14,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 15,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 16,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 17,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 18,
   "place": 5,
   "label": "success"
  },
  {
   "episode_index": 19,
   "place": 5,
   "label": "success"
  }
 ]
}
```

#### kioxia_sha1_278.txt

```text
94c9feec397a9a82c3d474242e484077f78b856f  ./data/chunk-000/file-000.parquet
ab69e511ca3d8d8b1e62de812c00fb7a69bbcace  ./episode_labels.json
a42b7184179322971fbd31b18ea9f9f496574de4  ./meta/episodes/chunk-000/file-000.parquet
1b55503b758e2447666fc1f505810d030d94754c  ./meta/info.json
c86c4d8d60e3519018c31f7a8fd3ea5d4d9f215a  ./meta/stats.json
601f27c91a749c91a348e976afe1f7907c85ce37  ./meta/tasks.parquet
89f2d8deab2d418b61e085ba69150ddb7d2c6b65  ./videos/observation.images.desk/chunk-000/file-000.mp4
02920f79ae36fc44b8bbd396688e5e5f995b5631  ./videos/observation.images.wrist/chunk-000/file-000.mp4
```

#### 依頼278 の結果（依頼箱の記録）

```text
# 結果：20261123_278_SO101のお手本を場所4・5で20回録る_立ち会い

- 状態：完了
- 始めた時刻：2026-11-23 19:02
- 終わった時刻：2026-11-23 19:19（17分）
- 作業フォルダ：/Users/shimazueiichi/r2r2r-scripts
- この続きを Claude Code で話すとき：作業フォルダで `claude --resume 160e603f-da0d-4f6e-b5c4-6f95bf6f4fd6`

## Claude Code の報告

**やったこと**
- `so101/check_277/run_277.py` を写して `so101/check_278/run_278.py` を作りました。変えたのは場所の番号と画面の文だけです（場所4・5、repo_id `…_pos45`）。11回目の前に「ブロックを場所5の点に置く」と出して止める画面も入れました。`analyze_278.py` も同じように写して作りました。録る前に、アームにつながない試しで画面を出して確かめました。
- エイイチの立ち会いで、場所4・場所5 を10回ずつ、合わせて20回録りました（19:03〜19:16）。入口は `lerobot_safe_259.py record` です。
- 録ったあとに確かめをしました。replay は record と別のプロセスで、場所4の1回目（index 0）と場所5の1回目（index 10）を流しました。
- `episode_labels.json` を dataset のフォルダに置き、KIOXIA にコピーして sha1 で一致を確かめました。

**結果**
- 20回とも1回目の試しで残りました。← の録り直しは0回で、全部 → で終えています（25秒の時間切れは0回）。
- 合わせて 9,112コマ・30fps で、各回の実際の速さは 29.92〜29.99Hz、長さは 10.37〜20.23秒でした。

| 回 | 場所 | 長さ秒 | コマ | 切られたコマ | 終わり方 | エイイチの判定 |
|---|---|---|---|---|---|---|
| 1 | 4 | 14.37 | 431 | 0 | → | 成功 |
| 2 | 4 | 18.73 | 562 | 0 | → | 成功 |
| 3 | 4 | 17.80 | 534 | 0 | → | 成功 |
| 4 | 4 | 20.23 | 607 | 0 | → | 成功 |
| 5 | 4 | 12.40 | 372 | 0 | → | 成功 |
| 6 | 4 | 18.60 | 558 | 0 | → | 成功 |
| 7 | 4 | 16.47 | 494 | 0 | → | 成功 |
| 8 | 4 | 17.73 | 532 | 0 | → | 成功 |
| 9 | 4 | 11.30 | 339 | 0 | → | 成功 |
| 10 | 4 | 13.77 | 413 | 0 | → | 成功 |
| 11 | 5 | 13.90 | 417 | 0 | → | 成功 |
| 12 | 5 | 14.03 | 421 | 0 | → | 成功 |
| 13 | 5 | 16.80 | 504 | 0 | → | 成功 |
| 14 | 5 | 13.30 | 399 | 0 | → | 成功 |
| 15 | 5 | 10.37 | 311 | 0 | → | 成功 |
| 16 | 5 | 13.90 | 417 | 0 | → | 成功 |
| 17 | 5 | 15.27 | 458 | 0 | → | 成功 |
| 18 | 5 | 15.77 | 473 | 0 | → | 成功 |
| 19 | 5 | 13.27 | 398 | 0 | → | 成功 |
| 20 | 5 | 15.73 | 472 | 0 | → | 成功 |

- **映像と角度**
  - 映像は2台とも全部の回にあり、真っ黒・白飛びのコマは0でした。止まったコマが続いたのは最長1コマです。
  - 各回の最初・真ん中・最後の120枚を `check_278/frames/` に保存しました。
  - 1コマ10°を超える角度の飛びは0でした（最大は状態 5.36°、目標 6.74°）。
  - 録っている最中に切られたコマは0でした。切られたのは回の外の待ちの間だけで、合わせて8コマです。
  - 力が入った直後の差は全軸 0.0°で、力を入れたままポートを閉じたことはありません。
- **replay**
  - 場所4の回：430コマ。始まりの寄りで1コマ切られました。休みの姿勢へ 0.89秒で自動で戻りました。
  - 場所5の回：416コマ。始まりの寄りで2コマ切られました。休みの姿勢へ 0.99秒で自動で戻りました。
  - エイイチの答えは、どちらも「箱に入った：y／録ったとおりに動いた：y」でした。
- **エイイチの答え**：箱に入らなかった回はなく、ガクッと飛んだ回もなく、場所4・5 で届きにくい・つかみにくい所もありませんでした。
- **KIOXIA**
  - 置き場所は `/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_teleop_v1_pos45/` です。8ファイル、61,864,873 バイト（約59.0 MiB）で、sha1 は全部一致しました。Mac 側は消していません。
  - KIOXIA 側には macOS が自動で作る `._` の付属ファイルが18個あります。`_pos23` のフォルダにも同じく18個あり、dataset の中身ではありません。
- **50回がそろったか**：そろいました。成功48・失敗2です（失敗は場所1の2回）。

| 場所 | dataset | 成功の回数 |
|---|---|---|
| 1 | v1 | 10回中 8 |
| 2 | _pos23 | 10回中 10 |
| 3 | _pos23 | 10回中 10 |
| 4 | _pos45 | 10回中 10 |
| 5 | _pos45 | 10回中 10 |

**変えたファイル**（git には入れていません）
- 新しく作ったもの：`so101/check_278/` の中身一式。`run_278.py`・`analyze_278.py`・`REPORT.md`、各記録、`frames/` です。
- 録ったデータ：`~/so101_datasets/so101_redblock_box_teleop_v1_pos45/` と、その KIOXIA へのコピーです。
- 作業の記録：`logs/20261123_1918.md` です。
- 既存のスクリプト・設定ファイル・ほかの dataset は書き換えていません。

**決めてほしいこと**
- なし（50回を1つにまとめるかどうかは、依頼のとおり学習の前に決めることとして残しています）

判定：合格
```

#### so101/check_278/REPORT.md

```text
# 依頼278 SO-101 のお手本を場所4・場所5 で20回録る 報告（2026-11-23 19:03〜19:17）

入口は `so101/lerobot_safe_259.py` の record・replay（`check_278/run_278.py` が main() を呼ぶ）。`run_278.py` は `check_277/run_277.py` を写して場所の番号・文だけ変えた（run_274.py・run_277.py は書き換えていない）。pynput を始めない直し（`install_record_hooks`）はそのまま。包まない lerobot・rollout・Hugging Face への送信・EEPROM やキャリブレーションの書き換えはしていない。場所1・場所2・3 の dataset（Mac・KIOXIA とも）は読むだけ（labels の数を数えただけ）。確認や停止の条件は足していない。

## run_278.py で run_277.py から変えたこと
- 場所 2・3 → 4・5（1〜10回目＝場所4、11〜20回目＝場所5）。repo_id `local/so101_redblock_box_teleop_v1_pos45`
- 11回目の前の止める画面を「場所5 に変わる／ブロックを場所5の点に置く（場所5 = 右の奥）」に（`dry_place5.png`）
- 始める前の文を「場所4 (まん中の手前)」に。問いを「場所4・5 で 届きにくい・つかみにくい所は あった？」に
- replay は場所4・場所5 の最初の成功の回を、record と別のプロセスで
- 記録の名前を 278 に。それ以外（25秒・← で録り直し・番号の答え方・休みの姿勢の待ち）は run_277 と同じ
- `analyze_278.py` も analyze_277.py の場所の番号と名前だけ変えた

## 20回の表（`analysis_278.json`・`results_278.json`）
| 回（index） | 場所 | 長さ秒 | コマ | 実際の Hz | 何回目で残したか | 切られたコマ | 終わり方 | 1コマ最大° 状態 / 目標 | 映像 wrist / desk | エイイチの判定 |
|---|---|---|---|---|---|---|---|---|---|---|
| 1（0） | 4 | 14.37 | 431 | 29.92 | 1 | 0 | → | 4.22 / 5.26 | 431 / 431 | success |
| 2（1） | 4 | 18.73 | 562 | 29.95 | 1 | 0 | → | 3.16 / 3.70 | 562 / 562 | success |
| 3（2） | 4 | 17.80 | 534 | 29.95 | 1 | 0 | → | 4.31 / 4.61 | 534 / 534 | success |
| 4（3） | 4 | 20.23 | 607 | 29.95 | 1 | 0 | → | 4.57 / 5.59 | 607 / 607 | success |
| 5（4） | 4 | 12.40 | 372 | 29.94 | 1 | 0 | → | 4.57 / 6.17 | 372 / 372 | success |
| 6（5） | 4 | 18.60 | 558 | 29.95 | 1 | 0 | → | 4.75 / 5.35 | 558 / 558 | success |
| 7（6） | 4 | 16.47 | 494 | 29.95 | 1 | 0 | → | 4.75 / 6.09 | 494 / 494 | success |
| 8（7） | 4 | 17.73 | 532 | 29.95 | 1 | 0 | → | 4.31 / 4.75 | 532 / 532 | success |
| 9（8） | 4 | 11.30 | 339 | 29.93 | 1 | 0 | → | 4.48 / 5.10 | 339 / 339 | success |
| 10（9） | 4 | 13.77 | 413 | 29.94 | 1 | 0 | → | 4.84 / 5.10 | 413 / 413 | success |
| 11（10） | 5 | 13.90 | 417 | 29.94 | 1 | 0 | → | 5.27 / 5.71 | 417 / 417 | success |
| 12（11） | 5 | 14.03 | 421 | 29.94 | 1 | 0 | → | 4.31 / 5.02 | 421 / 421 | success |
| 13（12） | 5 | 16.80 | 504 | 29.95 | 1 | 0 | → | 4.40 / 5.26 | 504 / 504 | success |
| 14（13） | 5 | 13.30 | 399 | 29.94 | 1 | 0 | → | 5.19 / 5.45 | 399 / 399 | success |
| 15（14） | 5 | 10.37 | 311 | 29.93 | 1 | 0 | → | 5.36 / 5.71 | 311 / 311 | success |
| 16（15） | 5 | 13.90 | 417 | 29.94 | 1 | 0 | → | 5.10 / 5.35 | 417 / 417 | success |
| 17（16） | 5 | 15.27 | 458 | 29.95 | 1 | 0 | → | 4.66 / 5.10 | 458 / 458 | success |
| 18（17） | 5 | 15.77 | 473 | 29.95 | 1 | 0 | → | 5.10 / 5.51 | 473 / 473 | success |
| 19（18） | 5 | 13.27 | 398 | 29.93 | 1 | 0 | → | 4.75 / 6.74 | 398 / 398 | success |
| 20（19） | 5 | 15.73 | 472 | 29.99 | 1 | 0 | → | 5.27 / 5.54 | 472 / 472 | success |

- 合わせて 20回・9,112コマ・30fps（info.json の total_frames と一致）。試しは 20回で、← の録り直しは 0回。全部の回を → で終えた（25秒の時間切れは 0回）。
- 録っている最中に B（1コマ 10°・爪 20）で切られたコマは **0**。切られたのは回の外の待ちだけ（start 1・start_wait 2・reset 5）。休みの姿勢の待ちは 4.72秒（リーダーで戻した）。力が入った直後 0.5秒の差は全軸 0.0°。力を入れたままポートを閉じたことはない。

## 映像と角度
- 映像は2台（wrist・desk）とも全部の回にあり、コマ数は角度の行数と同じ。真っ黒・白飛びのコマは 0。止まったコマが続いたのは最長1コマ（依頼274・277 と同じ）。各回の最初・真ん中・最後は `frames/`（120枚）。
- observation.state・action とも全部の回にあり、1コマ 10°（爪 20）を超える差は 0（最大は状態 5.36°・目標 6.74°）。

## replay（record と別のプロセス）
| | 1回目（index 0・場所4） | 11回目（index 10・場所5） |
|---|---|---|
| コマ・Hz | 430・29.97 | 416・29.99 |
| 切られたコマ | 1（最初のコマ。wrist_flex 53.10→44.31） | 2（最初のコマ。wrist_flex 51.69→33.23→43.23） |
| 力が入った直後 0.5秒の差 | 全軸 0.0° | 全軸 0.0° |
| 休みの姿勢への自動戻り | 0.89秒 | 0.99秒 |
| 力を入れたままポートを閉じた | なし | なし |
| ブロックは箱に入った？（エイイチ） | y | y |
| 録ったとおりに動いた？（エイイチ） | y | y |

切られたコマは replay の始まりで休みの姿勢から最初の目標へ寄る所だけ（依頼277 と同じ）。

## エイイチの答え
| 問い | 答え |
|---|---|
| 20回とも、ブロックが箱に入った？ | y（入らなかった回 なし） |
| 録っている最中に、フォロワーがガクッと飛んだ回はあった？ | n |
| 場所4・5 で、届きにくい・つかみにくい所はあった？ | n |
| 1回目の replay：箱に入った？／録ったとおりに動いた？ | y／y |
| 11回目の replay：箱に入った？／録ったとおりに動いた？ | y／y |

## 置き場所・KIOXIA へのコピー
- Mac：`~/so101_datasets/so101_redblock_box_teleop_v1_pos45/`（`episode_labels.json` は全20回 success、place 4 が index 0〜9、5 が 10〜19）
- KIOXIA：`/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_teleop_v1_pos45/`（同じ名前はなかった）。Mac 側は消していない
- ファイル 8（dataset の 7 と labels）、合計 61,864,873 バイト（約 59.0 MiB）で両方一致。各ファイルの sha1 も一致（`kioxia_sha1_278.txt`）
- KIOXIA 側には macOS が書く `._` で始まる小さな付属ファイルが 18個できた（_pos23 のフォルダにも同じく 18個ある。dataset の中身ではない）

## 50回がそろったか（各 dataset の episode_labels.json から）
| dataset | 場所 | 回数 | 成功 | 失敗 |
|---|---|---|---|---|
| so101_redblock_box_teleop_v1 | 1 | 10 | 8 | 2 |
| so101_redblock_box_teleop_v1_pos23 | 2 | 10 | 10 | 0 |
| 〃 | 3 | 10 | 10 | 0 |
| so101_redblock_box_teleop_v1_pos45 | 4 | 10 | 10 | 0 |
| 〃 | 5 | 10 | 10 | 0 |
| 合わせて | | **50** | **48** | **2** |

50回は3つの dataset に分かれたまま（まとめ方は学習の前に決める）。

## 残したもの（git には入れない）
`check_278/`：run_278.py・analyze_278.py・analysis_278.json・frames/（120枚）・dry_*.png・events_278_dry.jsonl・events_278.jsonl・results_278.json・results_278_replay_ep0.json・results_278_replay_ep10.json・step1_record.json・step2_replay_ep0.json・step2_replay_ep10.json・run_278_stdout.log・read_servos_last.txt・kioxia_sha1_278.txt・この REPORT.md

判定：合格
```


## 作業ログ ― 50回の中身を場所ごとに数えた

3つのデータ（場所1の `so101_redblock_box_teleop_v1`、場所2・3の `_pos23`、場所4・5の `_pos45`）を、KIOXIA の写しから読んで、場所ごとに数えた。データの本体は読むだけで、変えていない。

| 場所 | 回数 | 箱に入った | 1回の長さ（中央） | 根元の向きの幅 |
|---|---|---|---|---|
| 1（今の場所・LOG565） | 10 | 8 | 19.1秒 | −8°〜41°（50°） |
| 2（左の奥） | 10 | 10 | 17.8秒 | −28°〜40°（69°） |
| 3（左の手前） | 10 | 10 | 16.6秒 | −59°〜36°（95°） |
| 4（まん中の手前） | 10 | 10 | 17.1秒 | −26°〜43°（69°） |
| 5（右の奥） | 10 | 10 | 14.0秒 | −7°〜45°（52°） |

50回を合わせた根元の向きは −59°〜45° で、幅は104°。場所1だけのときの50°の約2倍になった。左の場所ほど根元を大きく振っていて、場所3では左へ約−52°まで回してつかんでいる。

#### analyze_log567.py

```python
"""LOG567: お手本50回（場所1〜5）の中身を数える。元データは読むだけ。
入力: KIOXIA の datasets/so101_redblock_box_teleop_v1・_pos23・_pos45 の
      data/chunk-000/file-000.parquet と episode_labels.json（写しをクラウドの作業環境で読んだ）
      so101/check_277/_log567_grip_replay.json（check_277・check_278 の step2_replay_ep*.json から爪の値だけ抜いたもの）
"""
import json
import statistics as st
import sys
from pathlib import Path

import numpy as np
import pandas as pd

ROOT = Path(sys.argv[1])  # datasets のフォルダ
GRIP = Path(sys.argv[2])  # _log567_grip_replay.json
NAMES = ['so101_redblock_box_teleop_v1', 'so101_redblock_box_teleop_v1_pos23', 'so101_redblock_box_teleop_v1_pos45']
J = ['shoulder_pan', 'shoulder_lift', 'elbow_flex', 'wrist_flex', 'wrist_roll', 'gripper']

rows = []
for name in NAMES:
    d = pd.read_parquet(ROOT / name / 'data/chunk-000/file-000.parquet')
    lab = json.load(open(ROOT / name / 'episode_labels.json'))['episodes']
    for e, g in d.groupby('episode_index'):
        info = [x for x in lab if x['episode_index'] == e][0]
        s = np.stack(g['observation.state'].values)
        gr = s[:, 5]
        opened = int(np.argmax(gr > 25))  # 爪が一度開いた所
        k = opened + int(np.argmin(gr[opened:int(len(gr) * 0.6)]))  # 前半でいちばん閉じた所＝つかんだ所
        rows.append(dict(ds=name.replace('so101_redblock_box_teleop_', ''), ep=int(e), place=info.get('place', 1),
                         label=info['label'], sec=round(len(g) / 30, 2),
                         pan_min=round(float(s[:, 0].min()), 1), pan_max=round(float(s[:, 0].max()), 1),
                         grasp_t=round(k / 30, 2), grasp_grip=round(float(gr[k]), 1),
                         **{f'grasp_{j}': round(float(s[k, i]), 1) for i, j in enumerate(J[:5])}))
df = pd.DataFrame(rows)
pd.set_option('display.width', 220)
print('== 1回ずつ（つかんだ所の角度は、爪が開いたあと前半でいちばん閉じたコマ）')
print(df.to_string(index=False))
print('\n== 場所ごと（中央値。pan の幅だけは最小と最大）')
for p, g in df.groupby('place'):
    print(f"場所{p}: 回数 {len(g)} / 箱に入った {int((g.label == 'success').sum())} / 長さ {st.median(g.sec):.1f}秒 / "
          f"根元の向き {g.pan_min.min():.0f}°〜{g.pan_max.max():.0f}°（幅 {g.pan_max.max() - g.pan_min.min():.0f}°） / "
          f"つかんだ所 pan {st.median(g.grasp_shoulder_pan):.1f} lift {st.median(g.grasp_shoulder_lift):.1f} "
          f"elbow {st.median(g.grasp_elbow_flex):.1f} wrist_flex {st.median(g.grasp_wrist_flex):.1f} "
          f"wrist_roll {st.median(g.grasp_wrist_roll):.1f}（{g.grasp_wrist_roll.min():.1f}〜{g.grasp_wrist_roll.max():.1f}） / "
          f"つかんだ所の爪 {st.median(g.grasp_grip):.1f}")
print(f"\n50回の根元の向き: {df.pan_min.min():.0f}°〜{df.pan_max.max():.0f}°（幅 {df.pan_max.max() - df.pan_min.min():.0f}°）")
one = df[df.place == 1]
print(f"場所1 だけの根元の向き: {one.pan_min.min():.0f}°〜{one.pan_max.max():.0f}°（幅 {one.pan_max.max() - one.pan_min.min():.0f}°）")

print('\n== 再生（replay）の爪の値（0.5秒ごと）')
g = json.load(open(GRIP))
for k, v in g.items():
    t, gr = v['t'], v['grip']
    print(k, ' '.join(f'{t[i]:.1f}s:{gr[i]:.1f}' for i in range(0, len(t), 15)))
```

#### analyze_log567.py の出力

```text
== 1回ずつ（つかんだ所の角度は、爪が開いたあと前半でいちばん閉じたコマ）
      ds  ep  place   label   sec  pan_min  pan_max  grasp_t  grasp_grip  grasp_shoulder_pan  grasp_shoulder_lift  grasp_elbow_flex  grasp_wrist_flex  grasp_wrist_roll
      v1   0      1    fail 20.00     -7.5      5.9     0.00         1.0                -2.2               -100.1              91.2              22.8               8.6
      v1   1      1    fail 20.00     -5.2      4.0     4.17        25.3                 2.4                  5.8               9.7              37.3              -6.5
      v1   2      1 success 18.37     -7.8     37.1     7.63        11.2                -2.6                 44.8             -21.9              31.0             -10.1
      v1   3      1 success 20.00     -6.8     36.0    10.27        11.2                -3.1                 51.8             -32.4              34.1              -8.0
      v1   4      1 success 18.40     -6.4     38.9     7.50        11.1                -3.6                 50.5             -34.1              40.9             -20.5
      v1   5      1 success 19.87     -8.2     41.2     8.13        11.2                -4.2                 52.5             -42.5              47.6             -15.6
      v1   6      1 success 20.00     -6.9     36.2    11.27        11.3                -3.2                 52.7             -42.5              48.5              -5.9
      v1   7      1 success 14.70     -5.7     36.1     7.60        11.2                -2.4                 50.5             -33.7              38.3              -9.9
      v1   8      1 success 17.10     -8.5     37.1     6.60        11.1                -2.3                 57.4             -44.9              44.9             -15.6
      v1   9      1 success 18.30     -7.4     39.4    10.00        11.2                -1.6                 55.7             -47.3              50.8              -8.0
v1_pos23   0      2 success 17.93    -28.3     40.3     6.27        11.1               -24.2                 32.5             -11.3              49.7             -18.4
v1_pos23   1      2 success 23.10    -27.0     35.0     8.30        11.1               -24.2                 30.2              -4.9              39.9             -20.0
v1_pos23   2      2 success 20.93    -27.7     37.5     8.50        11.2               -23.6                 27.7              -1.8              38.8             -22.0
v1_pos23   3      2 success 17.63    -25.3     38.0     9.53        11.1               -23.5                 24.4               4.4              34.1             -20.4
v1_pos23   4      2 success 15.30    -25.8     32.7     6.67        11.1               -21.4                 29.5              -5.5              41.4             -21.9
v1_pos23   5      2 success 17.70    -25.9     38.8     8.97        11.2               -21.9                 27.0               2.7              30.5             -17.7
v1_pos23   6      2 success 17.97    -26.6     36.7     8.80        11.0               -23.0                 27.0               2.5              37.2             -22.9
v1_pos23   7      2 success 14.07    -24.3     34.4     6.70        11.2               -21.0                 24.8               2.9              36.7             -19.5
v1_pos23   8      2 success 13.53    -27.2     32.8     5.73        11.1               -24.5                 25.5               0.4              39.9             -13.5
v1_pos23   9      2 success 19.23    -26.8     40.4    11.03        11.1               -21.5                 27.4               1.1              37.2             -11.5
v1_pos23  10      3 success 19.37    -51.8     35.9    11.23        11.0               -51.4                 14.3              13.2              57.4              10.9
v1_pos23  11      3 success 23.30    -56.2     32.9     2.77        25.7               -48.8                 -0.2              -0.2              81.4              -3.4
v1_pos23  12      3 success 20.67    -53.6     34.0    10.80        11.0               -53.6                  1.2              31.2              41.2             -30.4
v1_pos23  13      3 success 24.97    -55.2     36.2    14.93        20.0               -46.1                  2.1              30.5              42.4             -20.3
v1_pos23  14      3 success 16.73    -53.9     36.2     7.93        11.1               -48.4                 -3.0              36.1              37.2              -3.6
v1_pos23  15      3 success 13.73    -52.4     33.9     6.50        11.1               -52.4                 -7.4              42.7              35.1              -1.0
v1_pos23  16      3 success 16.30    -53.0     34.6     7.57        11.1               -53.0                 -1.0              33.1              40.3             -28.4
v1_pos23  17      3 success 14.50    -58.8     32.4     7.17        11.1               -54.9                 -1.3              33.5              40.4             -14.5
v1_pos23  18      3 success 16.37    -57.1     36.2     9.77        23.4               -51.8                  1.0              30.3              42.9             -28.0
v1_pos23  19      3 success 14.67    -54.6     36.2     6.87        11.2               -49.3                 -6.6              43.4              34.9               0.4
v1_pos45   0      4 success 14.37    -20.4     41.7     7.00        11.1               -20.2                  6.9              26.6              50.2              -7.8
v1_pos45   1      4 success 18.73    -18.9     41.3    10.87        11.2               -18.4                 -0.0              34.0              42.4             -27.0
v1_pos45   2      4 success 17.80    -24.9     41.4     9.33        11.2               -20.5                  6.7              26.2              47.1              10.9
v1_pos45   3      4 success 20.23    -22.0     41.1     7.40        25.5                -3.5                 12.7              16.7              49.7              13.8
v1_pos45   4      4 success 12.40    -25.1     38.2     6.53        11.0               -23.1                  1.2              33.7              42.8              -1.9
v1_pos45   5      4 success 18.60    -25.9     42.7     7.90        11.0               -20.5                 -2.0              37.7              39.8              11.2
v1_pos45   6      4 success 16.47    -22.2     40.4     9.00        11.2               -18.8                -10.0              47.1              31.8              17.6
v1_pos45   7      4 success 17.73    -22.4     40.9     9.13        11.2               -20.7                  0.1              36.7              36.7             -11.5
v1_pos45   8      4 success 11.30    -21.8     37.4     5.57        11.0               -20.5                  0.7              33.1              46.0               3.1
v1_pos45   9      4 success 13.77    -24.7     38.3     6.37        11.0               -23.1                  1.1              36.0              41.9              -0.7
v1_pos45  10      5 success 13.90     -6.5     39.5     7.63        11.2                 6.7                 27.4               3.4              30.8               8.0
v1_pos45  11      5 success 14.03     -4.8     41.5     6.93        11.0                 8.8                 27.7               4.2              30.5               1.5
v1_pos45  12      5 success 16.80     -3.3     43.2     2.93        26.5                 6.7                 14.5              18.7              18.1               4.6
v1_pos45  13      5 success 13.30     -3.6     41.3     6.93        11.1                 5.2                 46.0             -32.2              61.1             -26.0
v1_pos45  14      5 success 10.37     -5.7     40.4     4.67        11.1                 4.9                 35.9             -12.7              43.8              -5.9
v1_pos45  15      5 success 13.90     -5.2     43.4     7.10        11.2                 5.7                 42.9             -26.5              55.9             -24.5
v1_pos45  16      5 success 15.27     -3.9     40.6     8.27        11.1                 9.0                 35.2             -13.2              49.7             -12.4
v1_pos45  17      5 success 15.77     -7.0     44.7     6.30        11.3                 3.5                 58.0             -56.3              76.6             -16.1
v1_pos45  18      5 success 13.27     -4.5     42.7     6.30        11.2                 6.1                 55.2             -49.2              71.0             -31.3
v1_pos45  19      5 success 15.73     -5.7     42.7     8.13        11.1                 5.3                 52.6             -44.5              69.3             -20.3

== 場所ごと（中央値。pan の幅だけは最小と最大）
場所1: 回数 10 / 箱に入った 8 / 長さ 19.1秒 / 根元の向き -8°〜41°（幅 50°） / つかんだ所 pan -2.5 lift 51.1 elbow -33.9 wrist_flex 39.6 wrist_roll -8.9（-20.5〜8.6） / つかんだ所の爪 11.2
場所2: 回数 10 / 箱に入った 10 / 長さ 17.8秒 / 根元の向き -28°〜40°（幅 69°） / つかんだ所 pan -23.2 lift 27.2 elbow 0.8 wrist_flex 38.0 wrist_roll -19.8（-22.9〜-11.5） / つかんだ所の爪 11.1
場所3: 回数 10 / 箱に入った 10 / 長さ 16.6秒 / 根元の向き -59°〜36°（幅 95°） / つかんだ所 pan -51.6 lift -0.6 elbow 32.1 wrist_flex 40.8 wrist_roll -9.1（-30.4〜10.9） / つかんだ所の爪 11.1
場所4: 回数 10 / 箱に入った 10 / 長さ 17.1秒 / 根元の向き -26°〜43°（幅 69°） / つかんだ所 pan -20.5 lift 0.9 elbow 33.9 wrist_flex 42.6 wrist_roll 1.2（-27.0〜17.6） / つかんだ所の爪 11.1
場所5: 回数 10 / 箱に入った 10 / 長さ 14.0秒 / 根元の向き -7°〜45°（幅 52°） / つかんだ所 pan 5.9 lift 39.4 elbow -19.9 wrist_flex 52.8 wrist_roll -14.2（-31.3〜8.0） / つかんだ所の爪 11.1

50回の根元の向き: -59°〜45°（幅 104°）
場所1 だけの根元の向き: -8°〜41°（幅 50°）

== 再生（replay）の爪の値（0.5秒ごと）
p2_ep0 0.0s:1.0 0.5s:24.0 1.0s:24.1 1.5s:24.1 2.0s:24.1 2.5s:30.1 3.0s:30.9 3.5s:30.9 4.0s:30.9 4.5s:30.9 5.0s:30.9 5.5s:30.9 6.0s:20.8 6.5s:11.1 7.0s:11.1 7.5s:11.1 8.0s:11.1 8.5s:11.1 9.0s:11.1 9.5s:11.1 10.0s:11.1 10.5s:11.1 11.0s:11.1 11.5s:11.1 12.0s:27.4 12.5s:28.3 13.0s:28.2 13.5s:28.2 14.0s:1.3 14.5s:1.1 15.0s:1.1 15.5s:1.1 16.0s:1.1 16.5s:1.1 17.0s:1.1 17.5s:1.1
p3_ep10 0.0s:1.1 0.5s:1.1 1.0s:1.1 1.5s:1.1 2.0s:1.0 2.5s:1.0 3.0s:1.0 3.5s:12.9 4.0s:24.3 4.5s:25.3 5.0s:25.3 5.5s:25.3 6.0s:25.3 6.5s:25.3 7.0s:25.3 7.5s:25.3 8.0s:25.3 8.5s:25.3 9.0s:25.3 9.5s:25.3 10.0s:25.3 10.5s:25.3 11.0s:22.2 11.5s:1.0 12.0s:1.0 12.5s:1.0 13.0s:1.0 13.5s:1.0 14.0s:1.0 14.5s:1.0 15.0s:1.0 15.5s:1.0 16.0s:31.9 16.5s:33.2 17.0s:33.2 17.5s:33.2 18.0s:33.2 18.5s:2.6 19.0s:1.0
p4_ep0 0.0s:1.0 0.5s:1.0 1.0s:1.0 1.5s:1.1 2.0s:15.2 2.5s:15.5 3.0s:16.3 3.5s:25.5 4.0s:25.5 4.5s:25.5 5.0s:25.5 5.5s:25.5 6.0s:25.5 6.5s:24.9 7.0s:11.1 7.5s:11.1 8.0s:11.1 8.5s:11.1 9.0s:11.1 9.5s:11.1 10.0s:11.1 10.5s:33.5 11.0s:35.4 11.5s:35.4 12.0s:35.4 12.5s:34.0 13.0s:1.2 13.5s:0.9 14.0s:0.9
p5_ep10 0.0s:0.9 0.5s:0.9 1.0s:0.9 1.5s:3.3 2.0s:28.9 2.5s:31.5 3.0s:31.5 3.5s:31.5 4.0s:31.5 4.5s:31.5 5.0s:31.5 5.5s:31.5 6.0s:31.5 6.5s:31.5 7.0s:29.9 7.5s:12.6 8.0s:11.2 8.5s:11.2 9.0s:11.2 9.5s:11.2 10.0s:11.2 10.5s:11.4 11.0s:23.8 11.5s:23.8 12.0s:23.8 12.5s:23.8 13.0s:1.1 13.5s:1.1
```

#### extract_grip_replay_log567.py（再生の記録から爪の値を抜いた）

```python
# LOG567: 再生（replay）の記録から爪の値だけを抜く（Mac 連携の shell で、so101/ で動かした）。記録は読むだけ。
import json,os
out={}
for tag,p in [('p2_ep0','check_277/step2_replay_ep0.json'),('p3_ep10','check_277/step2_replay_ep10.json'),('p4_ep0','check_278/step2_replay_ep0.json'),('p5_ep10','check_278/step2_replay_ep10.json')]:
    d=json.load(open(p))
    ob=[o for o in d['obs'] if o.get('label')=='replay']
    t0=ob[0]['t']
    out[tag]={'t':[round(o['t']-t0,3) for o in ob],'grip':[o['gripper.pos'] for o in ob],
      'goal_grip':[f['goal']['gripper'] for f in d['frames'] if f.get('label')=='replay']}
    print(tag,len(ob),min(out[tag]['grip']),len(out[tag]['goal_grip']))
json.dump(out,open(os.path.expanduser('~/grip_replay.json'),'w'))
```

#### extract_grip_replay_log567.py の出力

```text
p2_ep0 537 1.02 563
p3_ep10 580 1.02 610
p4_ep0 430 0.95 457
p5_ep10 416 0.95 446
```


## 次に決めること ― 3つのデータを1つにまとめて学習へ

お手本は50回そろった。学習に使える成功の回は48回で、場所ごとに8〜10回ある。次は、3つのデータを1つにまとめて、クラウドの GPU で学習させ、実機で試す。先に決めることは3つある。

| 決めること | 中身 |
|---|---|
| 何で学習させるか | LeRobot の ACT か、Physical Intelligence の π0.5（パイレイテンゴ） |
| 3つのデータのまとめ方 | LeRobot のデータを1つにつなぐか、学習のときに3つを並べて読むか |
| 失敗の2回と場所3の扱い | 失敗の2回は外す。場所3の10回は入れて学習し、うまくいかなければ外して比べる |


## 作業ログ ― 使ったコード（全量）

### so101/check_277/run_277.py

```python
"""依頼 277: SO-101 のお手本 (record) を場所2・場所3 で10回ずつ, 合わせて20回録る (エイイチ立ち会い).

check_274/run_274.py を元にした (run_274.py は書き換えない). 入口は so101/lerobot_safe_259.py の main().
包まない lerobot のコマンドは使わない. pynput を始めない直し (install_record_hooks) はそのまま.
run_274.py から変えたこと:
  - 20回 (1〜10回目 = 場所2, 11〜20回目 = 場所3). 1回の長さの目安 25秒. 新しい dataset (…_pos23)
  - 画面に場所を出す. 同じ場所の中で「向きを少し変えて置く」回を混ぜるよう案内する (何回目かはエイイチに任せる)
  - 11回目の前で「ブロックを場所3の点に置く」と大きく出して止める (スペースで先へ)
  - ← で録り直せることを各回の前の画面にも出す
  - 入らなかった回の番号は数字を打って スペース で足す (20回あるため)
  - 問いを足す: 場所2・3で届きにくい・つかみにくい所はあった？ (y なら場所の番号)
  - episode_labels.json (依頼276 と同じ形 + 場所の列) を dataset のフォルダに置く
  - replay は record と別のプロセスで呼ぶ (--replay-ep K を子のプロセスで. 場所2・場所3 の成功の回を1回ずつ)
確認や停止の条件は足していない. q キー = Ctrl-C (run_274 と同じ).

使い方 (conda の lerobot 環境で):  python so101/check_277/run_277.py [--dry | --replay-ep K]
  --dry: アームにつながず, 画面だけ出す (手順の文を確かめる)
  --replay-ep K: dataset の episode index K を replay だけする (record のあとに親から呼ばれる)
"""

import argparse
import json
import os
import re
import signal
import subprocess
import sys
import time
from pathlib import Path

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
sys.path.insert(0, str(SO101))
PY = sys.executable
FONT = "/System/Library/Fonts/ヒラギノ角ゴシック W6.ttc"
WIN = "依頼277 手順"
W, H = 1440, 860
RAW2DEG = 360.0 / 4096
N_EP = 20
N_PLACE = 10  # 1つの場所で録る回数 (1〜10回目 = 場所2, 11〜20回目 = 場所3)
EP_S = 25.0  # 1回の長さの目安 (LeRobot の episode_time_s. → で早めに終われる)
REPO_ID = "local/so101_redblock_box_teleop_v1_pos23"
ROOT = Path.home() / "so101_datasets" / "so101_redblock_box_teleop_v1_pos23"  # git の外 (KIOXIA には lerobot_safe_259 が作らせない)
TASK = "Put the red block into the white box"
RECORD = [f"--dataset.repo_id={REPO_ID}", f"--dataset.root={ROOT}", f"--dataset.single_task={TASK}",
          "--dataset.fps=30", f"--dataset.num_episodes={N_EP}", f"--dataset.episode_time_s={EP_S:g}",
          "--dataset.reset_time_s=3600", "--dataset.no_stamp=true"]
KEY_RIGHT, KEY_LEFT = (63235, 2555904, 65363), (63234, 2424832, 65361)  # cv2.waitKeyEx の →・← (mac / win / linux)
PROMPT_TIMEOUT_S = 20 * 60  # 手順の前の待ち (アームは動いていない). 過ぎたら終える
MOTORS = ["shoulder_pan", "shoulder_lift", "elbow_flex", "wrist_flex", "wrist_roll", "gripper"]
JA = {"shoulder_pan": "肩の左右", "shoulder_lift": "肩の上げ下げ", "elbow_flex": "ひじ",
      "wrist_flex": "手首の曲げ", "wrist_roll": "手首のひねり", "gripper": "爪"}
EVENTS = HERE / "events_277.jsonl"


def place(ep_index):
    """dataset の episode index (0 始まり) → 場所の番号."""
    return 2 if ep_index < N_PLACE else 3


def now():
    return time.strftime("%H:%M:%S")


def ev(kind, **kw):
    row = {"t": time.time(), "clock": now(), "kind": kind, **kw}
    with EVENTS.open("a") as fh:
        fh.write(json.dumps(row, ensure_ascii=False, default=str) + "\n")
    print(f"[277] {row['clock']} {kind} {json.dumps(kw, ensure_ascii=False, default=str)[:400]}", flush=True)


# ---- 画面 -------------------------------------------------------------------------------------

class Screen:
    def __init__(self):
        import cv2
        from PIL import ImageFont
        self.cv2 = cv2
        self.f_big = ImageFont.truetype(FONT, 96)
        self.f_mid = ImageFont.truetype(FONT, 50)
        cv2.namedWindow(WIN, cv2.WINDOW_NORMAL)
        cv2.resizeWindow(WIN, W, H)
        cv2.moveWindow(WIN, 30, 30)
        self._key = None
        self._img = None

    def render(self, title, lines, color=(0, 220, 255), log=True):
        key = (title, tuple(lines), color)
        if key != self._key:
            import numpy as np
            from PIL import Image, ImageDraw, ImageFont
            img = Image.new("RGB", (W, H), (0, 0, 0))
            d = ImageDraw.Draw(img)
            f_t = self.f_big
            if f_t.getlength(title) > W - 100:  # 依頼277: 場所を足して題が長くなったので, 入らないときだけ縮める
                f_t = ImageFont.truetype(FONT, max(40, int(96 * (W - 100) / f_t.getlength(title))))
            d.text((50, 40), title, font=f_t, fill=color)
            for i, ln in enumerate(lines):
                d.text((50, 200 + 72 * i), ln, font=self.f_mid, fill=(255, 255, 255))
            self._img = self.cv2.cvtColor(np.asarray(img), self.cv2.COLOR_RGB2BGR)
            self._key = key
            if log:
                ev("screen", title=title, lines=lines)
        self.cv2.imshow(WIN, self._img)

    def poll(self, ms=1):
        return self.cv2.waitKey(ms) & 0xFF

    def poll_ex(self, ms=1):
        """→・← も見分ける (waitKeyEx). 押されていなければ -1."""
        return self.cv2.waitKeyEx(ms)

    def ask(self, title, lines, keys, color=(0, 220, 255), timeout=None):
        """keys (文字) のどれかが押されるまで待つ. 押された文字を返す. timeout を過ぎたら None."""
        t0 = time.time()
        self.render(title, lines, color)
        while True:
            k = self.poll(50)
            if k != 255 and chr(k) in keys:
                ev("key", title=title, key=chr(k))
                return chr(k)
            if timeout is not None and time.time() - t0 > timeout:
                ev("timeout", title=title)
                return None
            self.render(title, lines, color, log=False)

    def space(self, title, lines, color=(0, 220, 255), timeout=PROMPT_TIMEOUT_S):
        return self.ask(title, lines + ["", "準備ができたら スペース"], " ", color, timeout) == " "

    def yn(self, question, extra=()):
        """見た物で答える問い. はい = y, いいえ = n."""
        k = self.ask("見た物で答える  y / n", [question, *extra, "", "はい = y     いいえ = n"], "yn",
                     timeout=PROMPT_TIMEOUT_S)
        return None if k is None else k == "y"


# ---- 実行中の記録 -----------------------------------------------------------------------------

class Run:
    """1回の lerobot_safe_259.main() の記録と, 毎コマの画面."""

    def __init__(self, name, screen, on_frame=None):
        self.name, self.screen, self.on_frame = name, screen, on_frame
        self.frames = []       # step_limit の呼ばれ方 (毎コマ)
        self.obs = []          # get_observation の結果
        self.a_reads = []      # A の前後の読み
        self.torque_on = []    # 力が入った直後 0.5秒の今の位置
        self.gate = []         # rest_gate・_auto_return の出入り
        self.big_text = []     # lerobot_safe_259 のウィンドウに出た字 (変わったときだけ)
        self.rest_checks = []
        self.torque_kept = False
        self.in_gate = False
        self.label = "start"
        self.t0 = time.perf_counter()
        self.stop_sent = False

    def sigint(self, why):
        ev("sigint", run=self.name, why=why)
        self.stop_sent = True
        os.kill(os.getpid(), signal.SIGINT)

    def save(self):
        out = HERE / f"{self.name}.json"
        out.write_text(json.dumps({k: v for k, v in vars(self).items()
                                   if k not in ("screen", "on_frame")}, ensure_ascii=False, indent=1, default=str))
        return out


CUR = {"run": None}


def install_hooks():
    import lerobot_safe_259 as ls
    from lerobot.robots.so_follower.so_follower import SOFollower

    orig_step = ls.step_limit

    def step_limit(goal, last, limit=ls.STEP_LIMIT):
        out = orig_step(goal, last, limit)
        r = CUR["run"]
        if r is not None:
            g = {m: float(v) for m, v in goal.items()}
            cut = {m: (round(g[m], 2), round(out[m], 2)) for m in g if abs(out[m] - g[m]) > 1e-6}
            r.frames.append({"t": time.perf_counter() - r.t0, "label": r.label, "gate": r.in_gate,
                             "goal": {m: round(v, 2) for m, v in g.items()},
                             "last": {m: round(float(last[m]), 2) for m in g},
                             "sent": {m: round(float(out[m]), 2) for m in g},
                             "present": ({m: r.obs[-1].get(f"{m}.pos") for m in g} if r.obs else None),
                             "cut": cut})
            if r.on_frame is not None and not r.in_gate:
                r.on_frame(r)
        return out

    ls.step_limit = step_limit

    orig_hold = ls.hold_goal_at_present

    def hold_goal_at_present(bus, motors=None, retry=ls.A_RETRY):
        r = CUR["run"]
        pre = {}
        if r is not None:
            try:  # 読むだけ (A の前に Goal が何を指していたか = A がなければ力が入る瞬間に向かった先)
                pre["goal"] = bus.sync_read("Goal_Position", motors, normalize=False, num_retry=2)
                pre["present"] = bus.sync_read("Present_Position", motors, normalize=False, num_retry=2)
            except Exception as e:
                pre["error"] = repr(e)
        raw = orig_hold(bus, motors, retry)
        if r is not None:
            row = {"port": bus.port, "t": time.perf_counter() - r.t0, "written": dict(raw), **pre}
            if "goal" in pre:
                row["goal_minus_present_deg"] = {m: round((int(pre["goal"][m]) - int(pre["present"][m])) * RAW2DEG, 2)
                                                 for m in pre["goal"]}
            r.a_reads.append(row)
        return raw

    ls.hold_goal_at_present = hold_goal_at_present

    orig_guard = ls.guard_bus

    def guard_bus(bus, role, on_connect, on_before_torque=None, lock=None):
        orig_guard(bus, role, on_connect, on_before_torque, lock)
        if role != "follower" or getattr(bus, "_p277", False):
            return
        enable = bus.enable_torque

        def enable_torque(motors=None, num_retry=0):
            enable(motors, num_retry=num_retry)
            r = CUR["run"]
            if r is None:
                return
            fa = [a for a in r.a_reads if a["port"] == bus.port]
            base = fa[-1]["written"] if fa else None
            t_on = time.perf_counter()
            samples = []
            while time.perf_counter() - t_on < 0.5:  # 力が入った直後 0.5秒の今の位置 (読むだけ)
                try:
                    p = bus.sync_read("Present_Position", motors, normalize=False, num_retry=2)
                    samples.append({"dt": round(time.perf_counter() - t_on, 3), **{m: int(v) for m, v in p.items()}})
                except Exception as e:
                    samples.append({"error": repr(e)})
                time.sleep(0.02)
            mx = {}
            if base:
                for m in base:
                    vals = [s[m] for s in samples if m in s]
                    if vals:
                        mx[m] = round(max(abs(v - int(base[m])) for v in vals) * RAW2DEG, 2)
            r.torque_on.append({"t": t_on - r.t0, "base": dict(base or {}), "max_diff_deg": mx, "samples": samples})
            ev("torque_on", run=r.name, max_diff_deg=mx)

        bus.enable_torque = enable_torque
        bus._p277 = True

    ls.guard_bus = guard_bus

    orig_gate = ls.rest_gate

    def rest_gate(follower, leader=None, **kw):
        r = CUR["run"]
        t = time.perf_counter()
        if r is not None:
            r.in_gate = True
            r.gate.append({"what": "rest_gate_start", "t": t - r.t0, "leader": leader is not None})
        try:
            res = orig_gate(follower, leader, **kw)
            if r is not None:
                r.gate.append({"what": "rest_gate_end", "t": time.perf_counter() - r.t0, "result": res,
                               "dur_s": round(time.perf_counter() - t, 2)})
            return res
        except BaseException as e:
            if r is not None:
                r.gate.append({"what": "rest_gate_exc", "t": time.perf_counter() - r.t0, "exc": repr(e),
                               "dur_s": round(time.perf_counter() - t, 2)})
            raise
        finally:
            if r is not None:
                r.in_gate = False

    ls.rest_gate = rest_gate

    orig_auto = ls._auto_return

    def _auto_return(follower, ui, center, tol, sleep):
        r = CUR["run"]
        t = time.perf_counter()
        res = orig_auto(follower, ui, center, tol, sleep)
        if r is not None:
            r.gate.append({"what": "auto_return", "t": t - r.t0, "result": res,
                           "dur_s": round(time.perf_counter() - t, 2)})
        return res

    ls._auto_return = _auto_return

    orig_rc = ls.rest_check

    def rest_check(pos, center, tol):
        ok, diff = orig_rc(pos, center, tol)
        r = CUR["run"]
        if r is not None and r.in_gate:
            r.rest_checks.append({"t": round(time.perf_counter() - r.t0, 3), "ok": ok,
                                  "diff": {m: round(v, 2) for m, v in diff.items()}})
        return ok, diff

    ls.rest_check = rest_check

    orig_close = ls.close_without_torque_off

    def close_without_torque_off(follower):
        r = CUR["run"]
        if r is not None:
            r.torque_kept = True
            ev("torque_kept_port_closed", run=r.name)
        return orig_close(follower)

    ls.close_without_torque_off = close_without_torque_off

    orig_show, orig_key = ls.BigTextUI.show, ls.BigTextUI.key

    def show(self, title, lines, color=(0, 200, 255)):
        r = CUR["run"]
        if r is not None and (not r.big_text or r.big_text[-1]["title"] != title):
            r.big_text.append({"t": time.perf_counter() - r.t0, "title": title, "lines": list(lines)})
            ev("lerobot_safe_window", run=r.name, title=title)
        if r is not None and r.in_gate and getattr(self, "cv2", None) is not None and r.rest_checks:
            return show_rest_big(self, title, lines, color, r)
        return orig_show(self, title, lines, color)

    def key(self, ms=1):
        k = orig_key(self, ms)
        r = CUR["run"]
        if r is not None and k in (ord("q"), 27):
            r.sigint("q (lerobot_safe のウィンドウ)")
        return k

    ls.BigTextUI.show, ls.BigTextUI.key = show, key

    orig_obs = SOFollower.get_observation

    def get_observation(self):
        obs = orig_obs(self)
        r = CUR["run"]
        if r is not None:
            r.obs.append({"t": round(time.perf_counter() - r.t0, 3), "label": r.label,
                          **{k: round(float(v), 2) for k, v in obs.items() if k.endswith(".pos")}})
        return obs

    SOFollower.get_observation = get_observation
    return ls


def run_safe(ls, name, argv, screen, on_frame=None):
    r = Run(name, screen, on_frame)
    CUR["run"] = r
    ev("run_start", run=name, argv=argv)
    result = {"name": name, "exc": None}
    try:
        result["ret"] = ls.main(argv)
    except KeyboardInterrupt:
        result["exc"] = "KeyboardInterrupt"
    except BaseException as e:  # 通信が返らない など
        result["exc"] = repr(e)
    finally:
        CUR["run"] = None
        try:
            screen.cv2.destroyWindow(ls.WIN)
        except Exception:
            pass
    result["torque_kept"] = r.torque_kept
    result["file"] = str(r.save())
    ev("run_end", **result)
    return r, result


# ---- 読むだけで力の状態を見る ---------------------------------------------------------------

def torque_all_zero():
    p = subprocess.run([PY, str(SO101 / "read_servos_248.py")], capture_output=True, text=True, timeout=60)
    text = p.stdout
    (HERE / "read_servos_last.txt").write_text(text)
    blocks = {}
    port = None
    for ln in text.splitlines():
        if ln.startswith("== "):
            port = ln[3:].strip()
            blocks[port] = []
        m = re.match(r"^\s+(\d)\s+777\s+\S+\s+(\d+)\s+\S+\s+\d+\s+(\d)\s+\d", ln)
        if m and port:
            blocks[port].append((int(m.group(1)), int(m.group(2)), int(m.group(3))))
    fol = blocks.get("/dev/tty.usbmodem5CBC4321631", [])
    ok = len(fol) == 6 and all(t == 0 for _, _, t in fol)
    ev("read_servos", follower=fol, leader=blocks.get("/dev/tty.usbmodem5CBC4323581", []), ok=ok)
    return ok, fol




# ---- 休みの姿勢の待ちの絵 (lerobot_safe_259 の BigTextUI.show を包む) ---------------------------

_REST_FONTS = {}


def show_rest_big(ui, title, lines, color, r):
    """幅の外の関節名とずれを大きく出す. 値は rest_check の記録 (lerobot_safe_259 の判定そのもの) から取る."""
    import numpy as np
    from PIL import Image, ImageDraw, ImageFont
    import lerobot_safe_259 as ls
    if not _REST_FONTS:
        _REST_FONTS.update(big=ImageFont.truetype(FONT, 64), huge=ImageFont.truetype(FONT, 76),
                           mid=ImageFont.truetype(FONT, 34))
    _, tol = ls.load_rest_pose()
    diff = r.rest_checks[-1]["diff"]
    out = [m for m in MOTORS if abs(diff[m]) > tol[m]]
    img = Image.new("RGB", (1280, 720), (0, 0, 0))
    d = ImageDraw.Draw(img)
    d.text((40, 30), title, font=_REST_FONTS["big"], fill=color)
    y = 130
    if out:
        d.text((40, y), "幅の外 (ここを戻す):", font=_REST_FONTS["mid"], fill=(255, 255, 255))
        y += 50
        for m in out[:4]:
            d.text((40, y), f"{JA[m]}  {diff[m]:+.0f}°  (幅 {tol[m]:.0f})", font=_REST_FONTS["huge"],
                   fill=(60, 60, 255))
            y += 100
    else:
        d.text((40, y + 40), "全部 幅の中. そのまま止める", font=_REST_FONTS["huge"], fill=(80, 255, 80))
        y += 200
    y = max(y + 10, 560)
    d.text((40, y), "爪を閉じる・腕を机の上まで下ろしてたたむ", font=_REST_FONTS["mid"], fill=(255, 255, 255))
    for i, ln in enumerate(lines[-2:]):
        d.text((40, y + 45 + 40 * i), ln, font=_REST_FONTS["mid"], fill=(180, 180, 180))
    ui.cv2.imshow(ls.WIN, ui.cv2.cvtColor(np.asarray(img), ui.cv2.COLOR_RGB2BGR))
    try:
        ui.cv2.moveWindow(ls.WIN, 60, 60)
    except Exception:
        pass
    key = tuple(out)
    if getattr(r, "_rest_out_last", None) != key:  # 幅の外の顔ぶれが変わったときだけ記録
        r._rest_out_last = key
        ev("rest_out_joints", run=r.name, out={m: diff[m] for m in out})


# ---- 手順 -----------------------------------------------------------------------------------

RESULTS = {}
REC = {"phase": None, "ep": 0, "try": 0, "t": None, "events": None, "wait": None, "n": 0, "attempts": [],
       "place3_ok": False}


def stop_screen(screen):
    """止まった・通信が返らない・力を入れたままポートを閉じた ときの画面."""
    screen.ask("支える → 電源を切る", ["フォロワーを手で支える", "フォロワーの電源を切る",
                                     "", "電源を切ったら スペース"], " ", color=(0, 0, 255), timeout=1800)


def big(sc, top, mid, small, color=(0, 220, 255)):
    """回数と残り秒を大きな字で."""
    import numpy as np
    from PIL import Image, ImageDraw, ImageFont
    if not hasattr(sc, "f_sizes"):
        sc.f_sizes = {}

    def fit(text):  # 横幅に入る一番大きな字 (最大 200. 依頼277 は字が長いので縮める)
        for size in (200, 170, 140, 120, 100):
            if size not in sc.f_sizes:
                sc.f_sizes[size] = ImageFont.truetype(FONT, size)
            if sc.f_sizes[size].getlength(text) <= W - 100:
                break
        return sc.f_sizes[size]
    img = Image.new("RGB", (W, H), (0, 0, 0))
    d = ImageDraw.Draw(img)
    d.text((50, 20), top, font=fit(top), fill=color)
    d.text((50, 260), mid, font=fit(mid), fill=(255, 255, 255))
    for i, ln in enumerate(small):
        d.text((50, 560 + 66 * i), ln, font=sc.f_mid, fill=(200, 200, 200))
    sc._img = sc.cv2.cvtColor(np.asarray(img), sc.cv2.COLOR_RGB2BGR)
    sc._key = None
    sc.cv2.imshow(WIN, sc._img)


def on_frame(r):
    """毎コマ (send_action のたび) 画面を出し, キーを見る."""
    REC["n"] += 1
    sc = r.screen
    k = sc.poll_ex(1)
    if k in (ord("q"), 27) and not r.stop_sent:
        r.sigint("q (手順のウィンドウ)")
        return
    ph, ev_, w = REC["phase"], REC["events"], REC["wait"]
    n = REC["ep"] + 1
    if ev_ is not None and k in KEY_LEFT and ph in ("episode", "reset", "end"):
        ev("key", phase=ph, ep=n, key="left")
        ev_["rerecord_episode"] = True
        if ph == "episode":
            ev_["exit_early"] = True
        if ph == "end":  # 10回目のあと ← : LeRobot の reset (録り直しの画面) へ進む
            w["exit_early"] = True
    if ev_ is not None and k in KEY_RIGHT and ph == "episode":
        ev("key", phase=ph, ep=n, key="right")
        ev_["exit_early"] = True
    p = place(REC["ep"])
    if ph == "start" and p == 3 and not REC["place3_ok"]:  # 11回目の前: 場所が 2 → 3 に変わる所で止める
        r.label = "start_wait"
        big(sc, "場所3 に変わる", "ブロックを場所3の点に置く",
            ["マジックの点 (場所3 = 左の手前) に置く", "置いたら スペース (まだ録らない)", "(止めたいとき: q)"],
            color=(0, 160, 255))
        if k == ord(" "):
            ev("key", phase="place3", ep=n, key="space")
            REC["place3_ok"] = True
    elif ph == "start":
        r.label = "start_wait"
        sc.render(f"{n}回目／{N_EP}　場所{p}　スペースで始める",
                  [f"ブロックは 場所{p} の点 (ときどき 向きを少し変えて置く)",
                   "リーダーとフォロワーの姿勢を近づける",
                   f"スペースで 録り始める (最長 {EP_S:g}秒)", "入れ終わったら → で早めに終える",
                   "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"])
        if k == ord(" ") and w is not None:
            ev("key", phase=ph, ep=n, key="space", place=p)
            w["exit_early"] = True
    elif ph == "episode":
        r.label = f"ep{n}_try{REC['try']}"
        if REC["n"] % 3 == 0:
            left = max(0.0, EP_S - (time.perf_counter() - REC["t"]))
            big(sc, f"{n}回目／{N_EP} 場所{p}", f"残り {left:4.1f} 秒",
                ["入れ終わったら → で終える", "うまくいかなかったら ← で録り直す", "(止めたいとき: q)"],
                color=(60, 60, 255))
    elif ph == "reset":
        r.label = "reset"
        nxt = place(REC["ep"] + 1)
        if ev_ is not None and ev_["rerecord_episode"]:
            sc.render(f"{n}回目 を録り直す", [f"ブロックを 場所{p} の点に置き直して", "腕を休みの姿勢へ",
                                           f"スペースで もう一度 {n}回目へ"], color=(0, 160, 255))
        elif nxt != p:
            sc.render(f"{n}回目 終わり (場所{p} はこれで終わり)",
                      [f"次は 場所{nxt}", "腕を休みの姿勢へ", "スペースで次へ (次の画面で 場所の置き直し)",
                       "うまくいかなかった回は ← で録り直す"])
        else:
            sc.render(f"{n}回目 終わり", [f"ブロックを 場所{p} の点に置き直して (ときどき 向きを少し変える)",
                                       "腕を休みの姿勢へ",
                                       "スペースで次へ", "うまくいかなかった回は ← で録り直す"])
        if k == ord(" "):
            ev("key", phase=ph, ep=n, key="space", rerecord=bool(ev_ and ev_["rerecord_episode"]))
            w["exit_early"] = True
    elif ph == "end":
        r.label = "end_wait"
        sc.render(f"{n}回目 終わり (これで{N_EP}回)", ["リーダーで 爪を閉じる",
                                                 "腕を机の上まで下ろして たたむ (休みの姿勢)",
                                                 "たたんだら スペース (保存して 力が抜ける)",
                                                 "幅の外だと 赤い字で関節名が出る → そこを戻す",
                                                 "うまくいかなかったら ← で録り直す"])
        if k == ord(" "):
            ev("key", phase=ph, ep=n, key="space")
            w["exit_early"] = True
    if w is not None and ev_ is not None and ev_["stop_recording"]:
        w["exit_early"] = True


def install_record_hooks():
    """LeRobot の record_loop・save_episode を包む (lerobot_record.py は書き換えない)."""
    import lerobot.scripts.lerobot_record as rec
    from lerobot.datasets.lerobot_dataset import LeRobotDataset
    orig_loop = rec.record_loop

    def wait(kw, phase):
        REC["phase"], REC["wait"] = phase, {"exit_early": False, "rerecord_episode": False, "stop_recording": False}
        ev("phase", phase=phase, ep=REC["ep"] + 1)
        t = time.perf_counter()
        orig_loop(**dict(kw, dataset=None, events=REC["wait"], control_time_s=3600 * 4, timer=None))
        ev("phase_end", phase=phase, ep=REC["ep"] + 1, dur_s=round(time.perf_counter() - t, 2))
        REC["wait"] = None

    def record_loop(*a, **kw):
        assert not a, "record_loop はキーワード引数で呼ばれる想定"
        events, ds = kw["events"], kw.get("dataset")
        REC["events"] = events
        if ds is None:  # LeRobot の reset の間
            return wait(kw, "reset")
        ep = ds.num_episodes
        REC["try"] = REC["try"] + 1 if ep == REC["ep"] and REC["attempts"] else 1
        REC["ep"] = ep
        wait(kw, "start")
        if events["stop_recording"]:
            REC["phase"] = None
            return None
        events["exit_early"] = events["rerecord_episode"] = False  # 待ちの間のキーは持ち越さない
        REC["phase"], REC["t"] = "episode", time.perf_counter()
        ev("episode_start", ep=ep + 1, try_=REC["try"])
        try:
            ret = orig_loop(*a, **kw)
        finally:
            dur = time.perf_counter() - REC["t"]
            size = (getattr(ds, "writer", None) and ds.writer.episode_buffer or {}).get("size")
            how = ("left" if events["rerecord_episode"] else "esc" if events["stop_recording"]
                   else "right" if dur < EP_S - 0.2 else "time")
            att = {"ep": ep + 1, "place": place(ep), "try": REC["try"], "dur_s": round(dur, 2), "buffer_frames": size,
                   "end": how,
                   "label": f"ep{ep + 1}_try{REC['try']}"}
            REC["attempts"].append(att)
            ev("episode_end", **att)
            REC["phase"] = None
        if ep == N_EP - 1 and not events["rerecord_episode"] and not events["stop_recording"]:
            wait(kw, "end")  # 10回目のあと: たたんでから保存・力を抜く (例外で抜けたときは通らない)
        return ret

    rec.record_loop = record_loop

    def init_keyboard_listener():
        # LeRobot のキー読み取り (pynput) は別スレッドから macOS の入力の関数を呼び, macOS がプロセスを止める
        # (2回目の実行 17:12:49 に SIGTRAP. crash_171249.ips). 読み取りは始めず, →・← は手順のウィンドウで受ける
        ev("keyboard_listener", note="pynput を使わない (手順のウィンドウで →・← を受ける)")
        return None, {"exit_early": False, "rerecord_episode": False, "stop_recording": False}

    rec.init_keyboard_listener = init_keyboard_listener

    orig_save, orig_clear = LeRobotDataset.save_episode, LeRobotDataset.clear_episode_buffer

    def save_episode(self, *a, **kw):
        sc = CUR["run"].screen if CUR["run"] else None
        n = self.num_episodes + 1
        if sc is not None:
            sc.render(f"{n}回目 を保存中", ["動画を書いている (数秒)", "腕はそのまま"], log=False)
            sc.poll(1)
        t = time.perf_counter()
        out = orig_save(self, *a, **kw)
        ev("saved", ep=n, dur_s=round(time.perf_counter() - t, 2), num_episodes=self.num_episodes)
        if REC["attempts"]:
            REC["attempts"][-1]["saved_as"] = self.num_episodes - 1
        return out

    def clear_episode_buffer(self, *a, **kw):
        ev("discarded", ep=self.num_episodes + 1)
        if REC["attempts"]:
            REC["attempts"][-1]["saved_as"] = None
        return orig_clear(self, *a, **kw)

    LeRobotDataset.save_episode, LeRobotDataset.clear_episode_buffer = save_episode, clear_episode_buffer


def label_stats(frames, label):
    fs = [f for f in frames if f["label"] == label and not f["gate"]]
    out = {"frames": len(fs), "cut_frames": sum(1 for f in fs if f["cut"]),
           "cut_examples": [f["cut"] for f in fs if f["cut"]][:5]}
    if len(fs) > 1:
        out["hz"] = round((len(fs) - 1) / (fs[-1]["t"] - fs[0]["t"]), 2)
        step = {m: 0.0 for m in MOTORS}
        for a, b in zip(fs, fs[1:]):
            for m in MOTORS:
                step[m] = max(step[m], abs(b["goal"][m] - a["goal"][m]))
        out["leader_step_max"] = {m: round(v, 2) for m, v in step.items()}
    return out


def ask_numbers(screen, question, maxv=N_EP):
    """番号を数字で答える (20回あるので2桁). 数字を打って スペース で足す・同じ番号をもう一度足すと外れる.
    Backspace で打ちかけを1字消す. Enter で決める (打ちかけがあれば足してから)."""
    chosen, buf = [], ""

    def commit():
        if buf and 1 <= int(buf) <= maxv:
            v = int(buf)
            chosen.remove(v) if v in chosen else chosen.append(v)
    while True:
        k = screen.ask("見た物で答える  番号", [question, f"数字を打って スペース で足す (1〜{maxv})",
                                               "同じ番号をもう一度足すと外れる・Backspace で1字消す",
                                               "打っている: " + (buf or "-"),
                                               "選んだ: " + (" ".join(str(c) for c in sorted(chosen)) or "なし"),
                                               "", "決めたら Enter"], "0123456789 ,\r\n\x08\x7f",
                       timeout=PROMPT_TIMEOUT_S)
        if k is None:
            return sorted(chosen)
        if k in "\r\n":
            commit()
            return sorted(chosen)
        if k in " ,":
            commit()
            buf = ""
        elif k in "\x08\x7f":
            buf = buf[:-1]
        elif len(buf) < 2:
            buf += k


def gate_summary(r, out):
    out["gate"] = r.gate
    waits = [g for g in r.gate if g["what"] in ("rest_gate_end", "rest_gate_exc")]
    out["rest_wait_s"] = round(sum(g["dur_s"] for g in waits), 2) if waits else None
    out["rest_wait_each_s"] = [(g.get("result") or g.get("exc"), g["dur_s"]) for g in waits]
    out["torque_on"] = [x["max_diff_deg"] for x in r.torque_on]
    out["cut_frames_gate"] = sum(1 for f in r.frames if f["gate"] and f["cut"])


def step0(screen):
    ok, fol = torque_all_zero()
    RESULTS["0"] = {"torque_zero": ok, "follower": fol}
    if not ok:
        screen.ask("力が入っている (始めない)", ["フォロワーの Torque が 0 ではない", f"{fol}",
                                            "支える → 電源を切る", "", "スペースで終える"], " ",
                   color=(0, 0, 255), timeout=1800)
        return False
    return screen.space("0. 始める前", ["ブロックを 場所2 (左の奥) の点に置く",
                                       "リーダーとフォロワーの姿勢を近づける",
                                       "フォロワーのまわりを空ける・電源をすぐ切れるようにする",
                                       "次のスペースで つなぐ (力が入る. まだ録らない)",
                                       "(止めたいとき: q キー = Ctrl-C)"])


def write_labels(not_in_box):
    """episode_labels.json (依頼276 と同じ形 + 場所の列) を dataset のフォルダに置く. dataset 本体は変えない."""
    n = json.loads((ROOT / "meta" / "info.json").read_text())["total_episodes"]
    eps = [{"episode_index": i, "place": place(i), "label": "fail" if i + 1 in not_in_box else "success"}
           for i in range(n)]
    out = ROOT / "episode_labels.json"
    if out.exists():
        ev("labels_skip", why=f"{out} がすでにある")
        return None
    out.write_text(json.dumps({
        "dataset": REPO_ID, "judged_by": "エイイチ", "date": time.strftime("%Y-%m-%d"),
        "note": "ブロックが箱に入ったか (エイイチが録った回を見て答えた. 依頼277). place は机の点の番号 "
                "(2 = 左の奥, 3 = 左の手前). dataset 本体は変えていない",
        "episodes": eps}, ensure_ascii=False, indent=1))
    ev("labels", file=str(out), fail=[e["episode_index"] for e in eps if e["label"] == "fail"])
    return eps


def step1(screen, ls):
    r, res = run_safe(ls, "step1_record", ["record", *RECORD], screen, on_frame)
    out = {"run": res, "attempts": REC["attempts"]}
    for a in REC["attempts"]:
        a.update(label_stats(r.frames, a["label"]))
    out["cut_frames_by_label"] = {}
    for f in r.frames:
        if f["cut"]:
            key = ("gate:" if f["gate"] else "") + f["label"]
            out["cut_frames_by_label"][key] = out["cut_frames_by_label"].get(key, 0) + 1
    gate_summary(r, out)
    RESULTS["1"] = out
    if res["torque_kept"] or res["exc"] not in (None, "KeyboardInterrupt"):
        stop_screen(screen)
        return False
    all_in = screen.yn(f"{N_EP}回とも, ブロックが箱に入った？")
    out["yn_all_in_box"] = all_in
    out["not_in_box"] = ask_numbers(screen, "ブロックが箱に入らなかった回の番号は？") if all_in is False else []
    out["yn_jump"] = screen.yn("録っている最中に, フォロワーが ガクッと飛んだ回は あった？",
                               ["(y = 飛んだ回があった / n = なかった)"])
    if out["yn_jump"]:
        out["jump_eps"] = ask_numbers(screen, "ガクッと飛んだ回の番号は？ (分からなければ そのまま Enter)")
    out["yn_hard_place"] = screen.yn("場所2・3 で, 届きにくい・つかみにくい所は あった？",
                                     ["(y = あった / n = なかった)"])
    if out["yn_hard_place"]:
        out["hard_places"] = ask_numbers(screen, "それは どの場所？ (2 か 3. 両方なら 2 と 3)", maxv=3)
    if all_in is not None:
        out["labels"] = write_labels(out["not_in_box"])
    return True


def replay_one(screen, ls, k):
    """dataset の episode index k を replay する (子のプロセスの中)."""
    n, p = k + 1, place(k)
    if not screen.space(f"replay ({n}回目・場所{p} を再生)",
                        ["フォロワーのまわりを空ける", f"ブロックを 場所{p} の点に置く",
                         "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る",
                         "(止めたいとき: q)"]):
        return False
    st = {"n": 0}

    def on_rep(r):
        st["n"] += 1
        sc = r.screen
        kk = sc.poll(1)
        if kk in (ord("q"), 27) and not r.stop_sent:
            r.sigint("q (手順のウィンドウ)")
            return
        r.label = "replay"
        if st["n"] % 3 == 1:
            big(sc, f"replay {n}回目 場所{p}", f"{st['n'] / 30:4.1f} 秒",
                ["終わると 休みの姿勢へ自動で戻る", "当たりそうなら q (= Ctrl-C)"])

    argv = ["replay", f"--dataset.repo_id={REPO_ID}", f"--dataset.root={ROOT}", f"--dataset.episode={k}",
            "--dataset.fps=30"]
    r, res = run_safe(ls, f"step2_replay_ep{k}", argv, screen, on_rep)
    out = {"episode_index": k, "place": p, "run": res, "replay": label_stats(r.frames, "replay")}
    gate_summary(r, out)
    RESULTS["replay"] = out
    if res["torque_kept"] or res["exc"] not in (None, "KeyboardInterrupt"):
        stop_screen(screen)
        return False
    out["yn_block_in_box"] = screen.yn("replay で, ブロックは箱に入った？")
    out["yn_replay_same"] = screen.yn("フォロワーは 録ったとおりに動いた？")
    return True


def check_torque(screen):
    """フォロワーの Torque_Enable が全軸 0 なら True. サーボが見えなければ電源を入れてもらって読み直す (run_276 と同じ)."""
    while True:
        ok, fol = torque_all_zero()
        RESULTS.setdefault("read_servos", []).append({"ok": ok, "follower": fol})
        if ok:
            return True
        if fol:
            screen.ask("力が入っている・数が合わない (始めない)",
                       ["フォロワーの Torque が 0 ではない (またはサーボが6個でない)", f"{fol}", "",
                        "スペースで終える"], " ", color=(0, 0, 255), timeout=1800)
            return False
        if not screen.space("フォロワーの電源を入れて スペース",
                            ["フォロワーのサーボが読めない (電源が切れている)", "フォロワーの電源を入れる"]):
            return False


def step2(screen):
    """場所2・場所3 の成功の回を1回ずつ, record と別のプロセスで replay する."""
    bad = set(RESULTS["1"].get("not_in_box") or [])
    n = json.loads((ROOT / "meta" / "info.json").read_text())["total_episodes"]
    picks = []
    for pl in (2, 3):
        ok = [i for i in range(n) if place(i) == pl and i + 1 not in bad]
        if ok:
            picks.append(ok[0])
        else:
            ev("replay_skip", place=pl, why="成功の回がない")
    out = RESULTS["2"] = {"picks": picks, "children": []}
    screen.cv2.destroyWindow(WIN)  # 子のプロセスの窓だけを出す
    screen.cv2.waitKey(1)
    for k in picks:
        ev("replay_child_start", episode_index=k)
        p = subprocess.run([PY, str(Path(__file__).resolve()), "--replay-ep", str(k)])
        rp = HERE / f"results_277_replay_ep{k}.json"
        child = {"episode_index": k, "returncode": p.returncode,
                 "results": json.loads(rp.read_text()) if rp.exists() else None}
        out["children"].append(child)
        ev("replay_child_end", episode_index=k, returncode=p.returncode)
        if p.returncode != 0:
            return False
    return True


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("--dry", action="store_true")
    ap.add_argument("--replay-ep", type=int, default=None,
                    help="dataset の episode index を replay だけする (record と同じプロセスで2回目の main() を呼ぶと, "
                         "record のカメラの設定が残って止まるため. 親が子のプロセスで呼ぶ)")
    args = ap.parse_args()
    screen = Screen()
    ev("start", dry=args.dry, replay_ep=args.replay_ep)
    if args.dry:
        class R:
            pass
        r = R()
        r.screen, r.stop_sent, r.label = screen, False, ""
        for ep, ph, tag in ((2, "start", "start_p2"), (2, "episode", "episode"), (9, "reset", "reset_p2end"),
                            (10, "start", "place3"), (10, "start", "start_p3"), (4, "reset", "reset"),
                            (19, "end", "end")):
            REC.update(phase=ph, ep=ep, t=time.perf_counter(), place3_ok=(tag == "start_p3"))
            t0 = time.perf_counter()
            while time.perf_counter() - t0 < 1.5:
                on_frame(r)
                time.sleep(0.03)
            screen.cv2.imwrite(str(HERE / f"dry_{tag}.png"), screen._img)
        return 0
    if args.replay_ep is not None:
        import lerobot_safe_259 as _  # noqa: F401,F811
        ls = install_hooks()
        k = args.replay_ep
        try:
            if not screen.space("replay の前", ["フォロワーのまわりを空ける",
                                              "次のスペースで 力が入っていないか読む (読むだけ)"]):
                return 1
            if not check_torque(screen):
                return 1
            if not replay_one(screen, ls, k):
                return 2
            return 0
        finally:
            (HERE / f"results_277_replay_ep{k}.json").write_text(json.dumps(RESULTS, ensure_ascii=False, indent=1,
                                                                         default=str))
            ev("end", replay_ep=k)
    if ROOT.exists():
        ev("abort", why=f"{ROOT} がすでにある")
        print(f"[277] {ROOT} がすでにある. 止める")
        return 3
    ROOT.parent.mkdir(parents=True, exist_ok=True)
    import lerobot_safe_259 as _  # noqa: F401  (先に読み込んでから包む)
    ls = install_hooks()
    install_record_hooks()
    try:
        if not step0(screen):
            return 1
        if not step1(screen, ls):
            return 2
        (HERE / "results_277.json").write_text(json.dumps(RESULTS, ensure_ascii=False, indent=1, default=str))
        ok = step2(screen)
        screen = Screen()
        if not ok:
            screen.space("replay で止まった", ["フォロワーの電源を切ってよい", "スペースで終える"], color=(0, 0, 255),
                         timeout=600)
            return 2
        screen.space("おわり", ["手順はすべて終わった", "フォロワーの電源を切ってよい"], timeout=600)
        return 0
    finally:
        (HERE / "results_277.json").write_text(json.dumps(RESULTS, ensure_ascii=False, indent=1, default=str))
        ev("end")


if __name__ == "__main__":
    sys.exit(main())
```

### so101/check_277/analyze_277.py

```python
"""依頼 277: 録ったお手本 (~/so101_datasets/so101_redblock_box_teleop_v1_pos23) を読むだけで確かめる.

  - 回数・各回のコマ数と長さ・1秒あたりのコマ数 (記録の timestamp と, run_277 が測った実際の周期)
  - 映像2台が全部の回にあるか. 真っ黒・白飛び・止まったコマ. 各回の最初・真ん中・最後の1コマを frames/ に保存
  - 角度 (observation.state・action) が全部の回にあるか. 1コマ 10° を超える差 (爪は 20)
結果は analysis_277.json に書く. 記録は書き換えない.

使い方 (conda の lerobot 環境で):  python so101/check_277/analyze_277.py
"""

import json
import sys
from pathlib import Path

import av
import numpy as np
import pandas as pd
from PIL import Image

HERE = Path(__file__).resolve().parent
ROOT = Path.home() / "so101_datasets" / "so101_redblock_box_teleop_v1_pos23"
N_PLACE = 10  # 1〜10回目 = 場所2, 11〜20回目 = 場所3 (run_277 と同じ)
MOTORS = ["shoulder_pan", "shoulder_lift", "elbow_flex", "wrist_flex", "wrist_roll", "gripper"]
JUMP = {m: 10.0 for m in MOTORS} | {"gripper": 20.0}  # B と同じ幅 (関節 10°, 爪 20)
BLACK, WHITE = 16, 245  # 画素の明るさ (0〜255). 真っ黒・白飛びの目安
BAD_FRAC = 0.9          # コマの 9割がこれなら「真っ黒」「白飛び」とする
STILL_DIFF = 0.3        # 前のコマとの差 (縮めた灰色の平均の絶対差) がこれ未満なら「止まった」とみる


def read_parquets(pattern):
    files = sorted(ROOT.glob(pattern))
    return pd.concat([pd.read_parquet(f) for f in files], ignore_index=True) if files else pd.DataFrame()


def decode(path):
    """mp4 の全部のコマを (時刻, 灰色を縮めたもの, 元の RGB は呼ぶ側で必要なときだけ) で返す."""
    out = []
    with av.open(str(path)) as c:
        s = c.streams.video[0]
        for fr in c.decode(s):
            out.append((float(fr.pts * s.time_base), fr))
    return out


def main():
    global ROOT, HERE
    if len(sys.argv) > 2:  # 試し: 別の記録と書き出し先 (python analyze_277.py <root> <out>)
        ROOT, HERE = Path(sys.argv[1]), Path(sys.argv[2])
        HERE.mkdir(parents=True, exist_ok=True)
    info = json.loads((ROOT / "meta" / "info.json").read_text())
    fps = info["fps"]
    eps = read_parquets("meta/episodes/*/*.parquet").sort_values("episode_index")
    data = read_parquets("data/*/*.parquet")
    cams = [k for k, v in info["features"].items() if v["dtype"] == "video"]
    res = {"root": str(ROOT), "fps": fps, "total_episodes": info.get("total_episodes"),
           "total_frames": info.get("total_frames"), "cameras": cams, "episodes": []}
    run = {}
    rp = HERE / "results_277.json"
    if rp.exists():
        att = json.loads(rp.read_text()).get("1", {}).get("attempts", [])
        run = {a["saved_as"]: a for a in att if a.get("saved_as") is not None}
    (HERE / "frames").mkdir(exist_ok=True)
    videos = {}
    for _, e in eps.iterrows():
        i = int(e["episode_index"])
        d = data[data.episode_index == i].sort_values("frame_index")
        row = {"ep": i + 1, "place": 2 if i < N_PLACE else 3, "length": int(e["length"]), "rows": len(d)}
        ts = d["timestamp"].to_numpy()
        row["dur_s"] = round(len(d) / fps, 2)
        row["ts_step_ms"] = [round(float(np.diff(ts).min()) * 1000, 2), round(float(np.diff(ts).max()) * 1000, 2)] \
            if len(ts) > 1 else None
        if i in run:
            row["real_hz"] = run[i].get("hz")
            row["real_dur_s"] = run[i].get("dur_s")
            row["cut_frames"] = run[i].get("cut_frames")
            row["try"] = run[i].get("try")
            row["end"] = run[i].get("end")
        for col in ("observation.state", "action"):
            a = np.stack(d[col].to_numpy()) if len(d) else np.zeros((0, 6))
            ok = a.shape == (len(d), 6) and bool(np.isfinite(a).all())
            step = np.abs(np.diff(a, axis=0)) if len(a) > 1 else np.zeros((0, 6))
            row[col] = {"present": ok,
                        "step_max": {m: round(float(step[:, j].max()), 2) if len(step) else 0.0
                                     for j, m in enumerate(MOTORS)},
                        "jumps": {m: int((step[:, j] > JUMP[m]).sum()) for j, m in enumerate(MOTORS)
                                  if len(step) and (step[:, j] > JUMP[m]).any()}}
        for cam in cams:
            k = f"videos/{cam}/"
            p = ROOT / info["video_path"].format(video_key=cam, chunk_index=int(e[k + "chunk_index"]),
                                                file_index=int(e[k + "file_index"]))
            if p not in videos:
                videos[p] = decode(p)
            t0, t1 = float(e[k + "from_timestamp"]), float(e[k + "to_timestamp"])
            frs = [fr for t, fr in videos[p] if t0 - 1e-4 <= t < t1 - 1e-4]
            v = {"file": str(p.relative_to(ROOT)), "frames": len(frs), "black": 0, "white": 0, "still": 0,
                 "still_run_max": 0, "mean": None}
            prev, run_len, means = None, 0, []
            for fr in frs:
                g = np.asarray(fr.to_image().convert("L").resize((160, 120)), dtype=np.float32)
                means.append(float(g.mean()))
                v["black"] += int((g < BLACK).mean() >= BAD_FRAC)
                v["white"] += int((g > WHITE).mean() >= BAD_FRAC)
                if prev is not None and float(np.abs(g - prev).mean()) < STILL_DIFF:
                    v["still"] += 1
                    run_len += 1
                    v["still_run_max"] = max(v["still_run_max"], run_len)
                else:
                    run_len = 0
                prev = g
            if means:
                v["mean"] = [round(min(means), 1), round(float(np.mean(means)), 1), round(max(means), 1)]
            for tag, j in (("first", 0), ("mid", len(frs) // 2), ("last", len(frs) - 1)):
                if frs:
                    frs[j].to_image().save(HERE / "frames" / f"ep{i + 1:02d}_{cam.split('.')[-1]}_{tag}.png")
            row[cam] = v
        res["episodes"].append(row)
    (HERE / "analysis_277.json").write_text(json.dumps(res, ensure_ascii=False, indent=1))
    print(f"episodes={len(res['episodes'])} fps={fps}")
    for r in res["episodes"]:
        vs = " ".join(f"{c.split('.')[-1]}:{r[c]['frames']}f 黒{r[c]['black']} 白{r[c]['white']} "
                      f"止{r[c]['still']}(最長{r[c]['still_run_max']})" for c in cams)
        print(f"ep{r['ep']:2d} 場所{r['place']} len={r['length']} {r['dur_s']}s hz={r.get('real_hz')} cut={r.get('cut_frames')} "
              f"state_jumps={r['observation.state']['jumps']} action_jumps={r['action']['jumps']} | {vs}")
    return 0


if __name__ == "__main__":
    sys.exit(main())
```

### so101/check_278/run_278.py

```python
"""依頼 278: SO-101 のお手本 (record) を場所4・場所5 で10回ずつ, 合わせて20回録る (エイイチ立ち会い).

check_277/run_277.py を写した (run_274.py・run_277.py は書き換えない). 入口は so101/lerobot_safe_259.py の main().
包まない lerobot のコマンドは使わない. pynput を始めない直し (install_record_hooks) はそのまま.
run_274.py から変えたこと (run_277.py と同じ. 場所の番号だけ 2・3 → 4・5):
  - 20回 (1〜10回目 = 場所4, 11〜20回目 = 場所5). 1回の長さの目安 25秒. 新しい dataset (…_pos45)
  - 画面に場所を出す. 同じ場所の中で「向きを少し変えて置く」回を混ぜるよう案内する (何回目かはエイイチに任せる)
  - 11回目の前で「ブロックを場所5の点に置く」と大きく出して止める (スペースで先へ)
  - ← で録り直せることを各回の前の画面にも出す
  - 入らなかった回の番号は数字を打って スペース で足す (20回あるため)
  - 問いを足す: 場所4・5で届きにくい・つかみにくい所はあった？ (y なら場所の番号)
  - episode_labels.json (依頼276 と同じ形 + 場所の列) を dataset のフォルダに置く
  - replay は record と別のプロセスで呼ぶ (--replay-ep K を子のプロセスで. 場所4・場所5 の成功の回を1回ずつ)
確認や停止の条件は足していない. q キー = Ctrl-C (run_274 と同じ).

使い方 (conda の lerobot 環境で):  python so101/check_278/run_278.py [--dry | --replay-ep K]
  --dry: アームにつながず, 画面だけ出す (手順の文を確かめる)
  --replay-ep K: dataset の episode index K を replay だけする (record のあとに親から呼ばれる)
"""

import argparse
import json
import os
import re
import signal
import subprocess
import sys
import time
from pathlib import Path

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
sys.path.insert(0, str(SO101))
PY = sys.executable
FONT = "/System/Library/Fonts/ヒラギノ角ゴシック W6.ttc"
WIN = "依頼278 手順"
W, H = 1440, 860
RAW2DEG = 360.0 / 4096
N_EP = 20
N_PLACE = 10  # 1つの場所で録る回数 (1〜10回目 = 場所4, 11〜20回目 = 場所5)
EP_S = 25.0  # 1回の長さの目安 (LeRobot の episode_time_s. → で早めに終われる)
REPO_ID = "local/so101_redblock_box_teleop_v1_pos45"
ROOT = Path.home() / "so101_datasets" / "so101_redblock_box_teleop_v1_pos45"  # git の外 (KIOXIA には lerobot_safe_259 が作らせない)
TASK = "Put the red block into the white box"
RECORD = [f"--dataset.repo_id={REPO_ID}", f"--dataset.root={ROOT}", f"--dataset.single_task={TASK}",
          "--dataset.fps=30", f"--dataset.num_episodes={N_EP}", f"--dataset.episode_time_s={EP_S:g}",
          "--dataset.reset_time_s=3600", "--dataset.no_stamp=true"]
KEY_RIGHT, KEY_LEFT = (63235, 2555904, 65363), (63234, 2424832, 65361)  # cv2.waitKeyEx の →・← (mac / win / linux)
PROMPT_TIMEOUT_S = 20 * 60  # 手順の前の待ち (アームは動いていない). 過ぎたら終える
MOTORS = ["shoulder_pan", "shoulder_lift", "elbow_flex", "wrist_flex", "wrist_roll", "gripper"]
JA = {"shoulder_pan": "肩の左右", "shoulder_lift": "肩の上げ下げ", "elbow_flex": "ひじ",
      "wrist_flex": "手首の曲げ", "wrist_roll": "手首のひねり", "gripper": "爪"}
EVENTS = HERE / "events_278.jsonl"


def place(ep_index):
    """dataset の episode index (0 始まり) → 場所の番号."""
    return 4 if ep_index < N_PLACE else 5


def now():
    return time.strftime("%H:%M:%S")


def ev(kind, **kw):
    row = {"t": time.time(), "clock": now(), "kind": kind, **kw}
    with EVENTS.open("a") as fh:
        fh.write(json.dumps(row, ensure_ascii=False, default=str) + "\n")
    print(f"[278] {row['clock']} {kind} {json.dumps(kw, ensure_ascii=False, default=str)[:400]}", flush=True)


# ---- 画面 -------------------------------------------------------------------------------------

class Screen:
    def __init__(self):
        import cv2
        from PIL import ImageFont
        self.cv2 = cv2
        self.f_big = ImageFont.truetype(FONT, 96)
        self.f_mid = ImageFont.truetype(FONT, 50)
        cv2.namedWindow(WIN, cv2.WINDOW_NORMAL)
        cv2.resizeWindow(WIN, W, H)
        cv2.moveWindow(WIN, 30, 30)
        self._key = None
        self._img = None

    def render(self, title, lines, color=(0, 220, 255), log=True):
        key = (title, tuple(lines), color)
        if key != self._key:
            import numpy as np
            from PIL import Image, ImageDraw, ImageFont
            img = Image.new("RGB", (W, H), (0, 0, 0))
            d = ImageDraw.Draw(img)
            f_t = self.f_big
            if f_t.getlength(title) > W - 100:  # 依頼278: 場所を足して題が長くなったので, 入らないときだけ縮める
                f_t = ImageFont.truetype(FONT, max(40, int(96 * (W - 100) / f_t.getlength(title))))
            d.text((50, 40), title, font=f_t, fill=color)
            for i, ln in enumerate(lines):
                d.text((50, 200 + 72 * i), ln, font=self.f_mid, fill=(255, 255, 255))
            self._img = self.cv2.cvtColor(np.asarray(img), self.cv2.COLOR_RGB2BGR)
            self._key = key
            if log:
                ev("screen", title=title, lines=lines)
        self.cv2.imshow(WIN, self._img)

    def poll(self, ms=1):
        return self.cv2.waitKey(ms) & 0xFF

    def poll_ex(self, ms=1):
        """→・← も見分ける (waitKeyEx). 押されていなければ -1."""
        return self.cv2.waitKeyEx(ms)

    def ask(self, title, lines, keys, color=(0, 220, 255), timeout=None):
        """keys (文字) のどれかが押されるまで待つ. 押された文字を返す. timeout を過ぎたら None."""
        t0 = time.time()
        self.render(title, lines, color)
        while True:
            k = self.poll(50)
            if k != 255 and chr(k) in keys:
                ev("key", title=title, key=chr(k))
                return chr(k)
            if timeout is not None and time.time() - t0 > timeout:
                ev("timeout", title=title)
                return None
            self.render(title, lines, color, log=False)

    def space(self, title, lines, color=(0, 220, 255), timeout=PROMPT_TIMEOUT_S):
        return self.ask(title, lines + ["", "準備ができたら スペース"], " ", color, timeout) == " "

    def yn(self, question, extra=()):
        """見た物で答える問い. はい = y, いいえ = n."""
        k = self.ask("見た物で答える  y / n", [question, *extra, "", "はい = y     いいえ = n"], "yn",
                     timeout=PROMPT_TIMEOUT_S)
        return None if k is None else k == "y"


# ---- 実行中の記録 -----------------------------------------------------------------------------

class Run:
    """1回の lerobot_safe_259.main() の記録と, 毎コマの画面."""

    def __init__(self, name, screen, on_frame=None):
        self.name, self.screen, self.on_frame = name, screen, on_frame
        self.frames = []       # step_limit の呼ばれ方 (毎コマ)
        self.obs = []          # get_observation の結果
        self.a_reads = []      # A の前後の読み
        self.torque_on = []    # 力が入った直後 0.5秒の今の位置
        self.gate = []         # rest_gate・_auto_return の出入り
        self.big_text = []     # lerobot_safe_259 のウィンドウに出た字 (変わったときだけ)
        self.rest_checks = []
        self.torque_kept = False
        self.in_gate = False
        self.label = "start"
        self.t0 = time.perf_counter()
        self.stop_sent = False

    def sigint(self, why):
        ev("sigint", run=self.name, why=why)
        self.stop_sent = True
        os.kill(os.getpid(), signal.SIGINT)

    def save(self):
        out = HERE / f"{self.name}.json"
        out.write_text(json.dumps({k: v for k, v in vars(self).items()
                                   if k not in ("screen", "on_frame")}, ensure_ascii=False, indent=1, default=str))
        return out


CUR = {"run": None}


def install_hooks():
    import lerobot_safe_259 as ls
    from lerobot.robots.so_follower.so_follower import SOFollower

    orig_step = ls.step_limit

    def step_limit(goal, last, limit=ls.STEP_LIMIT):
        out = orig_step(goal, last, limit)
        r = CUR["run"]
        if r is not None:
            g = {m: float(v) for m, v in goal.items()}
            cut = {m: (round(g[m], 2), round(out[m], 2)) for m in g if abs(out[m] - g[m]) > 1e-6}
            r.frames.append({"t": time.perf_counter() - r.t0, "label": r.label, "gate": r.in_gate,
                             "goal": {m: round(v, 2) for m, v in g.items()},
                             "last": {m: round(float(last[m]), 2) for m in g},
                             "sent": {m: round(float(out[m]), 2) for m in g},
                             "present": ({m: r.obs[-1].get(f"{m}.pos") for m in g} if r.obs else None),
                             "cut": cut})
            if r.on_frame is not None and not r.in_gate:
                r.on_frame(r)
        return out

    ls.step_limit = step_limit

    orig_hold = ls.hold_goal_at_present

    def hold_goal_at_present(bus, motors=None, retry=ls.A_RETRY):
        r = CUR["run"]
        pre = {}
        if r is not None:
            try:  # 読むだけ (A の前に Goal が何を指していたか = A がなければ力が入る瞬間に向かった先)
                pre["goal"] = bus.sync_read("Goal_Position", motors, normalize=False, num_retry=2)
                pre["present"] = bus.sync_read("Present_Position", motors, normalize=False, num_retry=2)
            except Exception as e:
                pre["error"] = repr(e)
        raw = orig_hold(bus, motors, retry)
        if r is not None:
            row = {"port": bus.port, "t": time.perf_counter() - r.t0, "written": dict(raw), **pre}
            if "goal" in pre:
                row["goal_minus_present_deg"] = {m: round((int(pre["goal"][m]) - int(pre["present"][m])) * RAW2DEG, 2)
                                                 for m in pre["goal"]}
            r.a_reads.append(row)
        return raw

    ls.hold_goal_at_present = hold_goal_at_present

    orig_guard = ls.guard_bus

    def guard_bus(bus, role, on_connect, on_before_torque=None, lock=None):
        orig_guard(bus, role, on_connect, on_before_torque, lock)
        if role != "follower" or getattr(bus, "_p278", False):
            return
        enable = bus.enable_torque

        def enable_torque(motors=None, num_retry=0):
            enable(motors, num_retry=num_retry)
            r = CUR["run"]
            if r is None:
                return
            fa = [a for a in r.a_reads if a["port"] == bus.port]
            base = fa[-1]["written"] if fa else None
            t_on = time.perf_counter()
            samples = []
            while time.perf_counter() - t_on < 0.5:  # 力が入った直後 0.5秒の今の位置 (読むだけ)
                try:
                    p = bus.sync_read("Present_Position", motors, normalize=False, num_retry=2)
                    samples.append({"dt": round(time.perf_counter() - t_on, 3), **{m: int(v) for m, v in p.items()}})
                except Exception as e:
                    samples.append({"error": repr(e)})
                time.sleep(0.02)
            mx = {}
            if base:
                for m in base:
                    vals = [s[m] for s in samples if m in s]
                    if vals:
                        mx[m] = round(max(abs(v - int(base[m])) for v in vals) * RAW2DEG, 2)
            r.torque_on.append({"t": t_on - r.t0, "base": dict(base or {}), "max_diff_deg": mx, "samples": samples})
            ev("torque_on", run=r.name, max_diff_deg=mx)

        bus.enable_torque = enable_torque
        bus._p278 = True

    ls.guard_bus = guard_bus

    orig_gate = ls.rest_gate

    def rest_gate(follower, leader=None, **kw):
        r = CUR["run"]
        t = time.perf_counter()
        if r is not None:
            r.in_gate = True
            r.gate.append({"what": "rest_gate_start", "t": t - r.t0, "leader": leader is not None})
        try:
            res = orig_gate(follower, leader, **kw)
            if r is not None:
                r.gate.append({"what": "rest_gate_end", "t": time.perf_counter() - r.t0, "result": res,
                               "dur_s": round(time.perf_counter() - t, 2)})
            return res
        except BaseException as e:
            if r is not None:
                r.gate.append({"what": "rest_gate_exc", "t": time.perf_counter() - r.t0, "exc": repr(e),
                               "dur_s": round(time.perf_counter() - t, 2)})
            raise
        finally:
            if r is not None:
                r.in_gate = False

    ls.rest_gate = rest_gate

    orig_auto = ls._auto_return

    def _auto_return(follower, ui, center, tol, sleep):
        r = CUR["run"]
        t = time.perf_counter()
        res = orig_auto(follower, ui, center, tol, sleep)
        if r is not None:
            r.gate.append({"what": "auto_return", "t": t - r.t0, "result": res,
                           "dur_s": round(time.perf_counter() - t, 2)})
        return res

    ls._auto_return = _auto_return

    orig_rc = ls.rest_check

    def rest_check(pos, center, tol):
        ok, diff = orig_rc(pos, center, tol)
        r = CUR["run"]
        if r is not None and r.in_gate:
            r.rest_checks.append({"t": round(time.perf_counter() - r.t0, 3), "ok": ok,
                                  "diff": {m: round(v, 2) for m, v in diff.items()}})
        return ok, diff

    ls.rest_check = rest_check

    orig_close = ls.close_without_torque_off

    def close_without_torque_off(follower):
        r = CUR["run"]
        if r is not None:
            r.torque_kept = True
            ev("torque_kept_port_closed", run=r.name)
        return orig_close(follower)

    ls.close_without_torque_off = close_without_torque_off

    orig_show, orig_key = ls.BigTextUI.show, ls.BigTextUI.key

    def show(self, title, lines, color=(0, 200, 255)):
        r = CUR["run"]
        if r is not None and (not r.big_text or r.big_text[-1]["title"] != title):
            r.big_text.append({"t": time.perf_counter() - r.t0, "title": title, "lines": list(lines)})
            ev("lerobot_safe_window", run=r.name, title=title)
        if r is not None and r.in_gate and getattr(self, "cv2", None) is not None and r.rest_checks:
            return show_rest_big(self, title, lines, color, r)
        return orig_show(self, title, lines, color)

    def key(self, ms=1):
        k = orig_key(self, ms)
        r = CUR["run"]
        if r is not None and k in (ord("q"), 27):
            r.sigint("q (lerobot_safe のウィンドウ)")
        return k

    ls.BigTextUI.show, ls.BigTextUI.key = show, key

    orig_obs = SOFollower.get_observation

    def get_observation(self):
        obs = orig_obs(self)
        r = CUR["run"]
        if r is not None:
            r.obs.append({"t": round(time.perf_counter() - r.t0, 3), "label": r.label,
                          **{k: round(float(v), 2) for k, v in obs.items() if k.endswith(".pos")}})
        return obs

    SOFollower.get_observation = get_observation
    return ls


def run_safe(ls, name, argv, screen, on_frame=None):
    r = Run(name, screen, on_frame)
    CUR["run"] = r
    ev("run_start", run=name, argv=argv)
    result = {"name": name, "exc": None}
    try:
        result["ret"] = ls.main(argv)
    except KeyboardInterrupt:
        result["exc"] = "KeyboardInterrupt"
    except BaseException as e:  # 通信が返らない など
        result["exc"] = repr(e)
    finally:
        CUR["run"] = None
        try:
            screen.cv2.destroyWindow(ls.WIN)
        except Exception:
            pass
    result["torque_kept"] = r.torque_kept
    result["file"] = str(r.save())
    ev("run_end", **result)
    return r, result


# ---- 読むだけで力の状態を見る ---------------------------------------------------------------

def torque_all_zero():
    p = subprocess.run([PY, str(SO101 / "read_servos_248.py")], capture_output=True, text=True, timeout=60)
    text = p.stdout
    (HERE / "read_servos_last.txt").write_text(text)
    blocks = {}
    port = None
    for ln in text.splitlines():
        if ln.startswith("== "):
            port = ln[3:].strip()
            blocks[port] = []
        m = re.match(r"^\s+(\d)\s+777\s+\S+\s+(\d+)\s+\S+\s+\d+\s+(\d)\s+\d", ln)
        if m and port:
            blocks[port].append((int(m.group(1)), int(m.group(2)), int(m.group(3))))
    fol = blocks.get("/dev/tty.usbmodem5CBC4321631", [])
    ok = len(fol) == 6 and all(t == 0 for _, _, t in fol)
    ev("read_servos", follower=fol, leader=blocks.get("/dev/tty.usbmodem5CBC4323581", []), ok=ok)
    return ok, fol




# ---- 休みの姿勢の待ちの絵 (lerobot_safe_259 の BigTextUI.show を包む) ---------------------------

_REST_FONTS = {}


def show_rest_big(ui, title, lines, color, r):
    """幅の外の関節名とずれを大きく出す. 値は rest_check の記録 (lerobot_safe_259 の判定そのもの) から取る."""
    import numpy as np
    from PIL import Image, ImageDraw, ImageFont
    import lerobot_safe_259 as ls
    if not _REST_FONTS:
        _REST_FONTS.update(big=ImageFont.truetype(FONT, 64), huge=ImageFont.truetype(FONT, 76),
                           mid=ImageFont.truetype(FONT, 34))
    _, tol = ls.load_rest_pose()
    diff = r.rest_checks[-1]["diff"]
    out = [m for m in MOTORS if abs(diff[m]) > tol[m]]
    img = Image.new("RGB", (1280, 720), (0, 0, 0))
    d = ImageDraw.Draw(img)
    d.text((40, 30), title, font=_REST_FONTS["big"], fill=color)
    y = 130
    if out:
        d.text((40, y), "幅の外 (ここを戻す):", font=_REST_FONTS["mid"], fill=(255, 255, 255))
        y += 50
        for m in out[:4]:
            d.text((40, y), f"{JA[m]}  {diff[m]:+.0f}°  (幅 {tol[m]:.0f})", font=_REST_FONTS["huge"],
                   fill=(60, 60, 255))
            y += 100
    else:
        d.text((40, y + 40), "全部 幅の中. そのまま止める", font=_REST_FONTS["huge"], fill=(80, 255, 80))
        y += 200
    y = max(y + 10, 560)
    d.text((40, y), "爪を閉じる・腕を机の上まで下ろしてたたむ", font=_REST_FONTS["mid"], fill=(255, 255, 255))
    for i, ln in enumerate(lines[-2:]):
        d.text((40, y + 45 + 40 * i), ln, font=_REST_FONTS["mid"], fill=(180, 180, 180))
    ui.cv2.imshow(ls.WIN, ui.cv2.cvtColor(np.asarray(img), ui.cv2.COLOR_RGB2BGR))
    try:
        ui.cv2.moveWindow(ls.WIN, 60, 60)
    except Exception:
        pass
    key = tuple(out)
    if getattr(r, "_rest_out_last", None) != key:  # 幅の外の顔ぶれが変わったときだけ記録
        r._rest_out_last = key
        ev("rest_out_joints", run=r.name, out={m: diff[m] for m in out})


# ---- 手順 -----------------------------------------------------------------------------------

RESULTS = {}
REC = {"phase": None, "ep": 0, "try": 0, "t": None, "events": None, "wait": None, "n": 0, "attempts": [],
       "place5_ok": False}


def stop_screen(screen):
    """止まった・通信が返らない・力を入れたままポートを閉じた ときの画面."""
    screen.ask("支える → 電源を切る", ["フォロワーを手で支える", "フォロワーの電源を切る",
                                     "", "電源を切ったら スペース"], " ", color=(0, 0, 255), timeout=1800)


def big(sc, top, mid, small, color=(0, 220, 255)):
    """回数と残り秒を大きな字で."""
    import numpy as np
    from PIL import Image, ImageDraw, ImageFont
    if not hasattr(sc, "f_sizes"):
        sc.f_sizes = {}

    def fit(text):  # 横幅に入る一番大きな字 (最大 200. 依頼278 は字が長いので縮める)
        for size in (200, 170, 140, 120, 100):
            if size not in sc.f_sizes:
                sc.f_sizes[size] = ImageFont.truetype(FONT, size)
            if sc.f_sizes[size].getlength(text) <= W - 100:
                break
        return sc.f_sizes[size]
    img = Image.new("RGB", (W, H), (0, 0, 0))
    d = ImageDraw.Draw(img)
    d.text((50, 20), top, font=fit(top), fill=color)
    d.text((50, 260), mid, font=fit(mid), fill=(255, 255, 255))
    for i, ln in enumerate(small):
        d.text((50, 560 + 66 * i), ln, font=sc.f_mid, fill=(200, 200, 200))
    sc._img = sc.cv2.cvtColor(np.asarray(img), sc.cv2.COLOR_RGB2BGR)
    sc._key = None
    sc.cv2.imshow(WIN, sc._img)


def on_frame(r):
    """毎コマ (send_action のたび) 画面を出し, キーを見る."""
    REC["n"] += 1
    sc = r.screen
    k = sc.poll_ex(1)
    if k in (ord("q"), 27) and not r.stop_sent:
        r.sigint("q (手順のウィンドウ)")
        return
    ph, ev_, w = REC["phase"], REC["events"], REC["wait"]
    n = REC["ep"] + 1
    if ev_ is not None and k in KEY_LEFT and ph in ("episode", "reset", "end"):
        ev("key", phase=ph, ep=n, key="left")
        ev_["rerecord_episode"] = True
        if ph == "episode":
            ev_["exit_early"] = True
        if ph == "end":  # 10回目のあと ← : LeRobot の reset (録り直しの画面) へ進む
            w["exit_early"] = True
    if ev_ is not None and k in KEY_RIGHT and ph == "episode":
        ev("key", phase=ph, ep=n, key="right")
        ev_["exit_early"] = True
    p = place(REC["ep"])
    if ph == "start" and p == 5 and not REC["place5_ok"]:  # 11回目の前: 場所が 4 → 5 に変わる所で止める
        r.label = "start_wait"
        big(sc, "場所5 に変わる", "ブロックを場所5の点に置く",
            ["マジックの点 (場所5 = 右の奥) に置く", "置いたら スペース (まだ録らない)", "(止めたいとき: q)"],
            color=(0, 160, 255))
        if k == ord(" "):
            ev("key", phase="place5", ep=n, key="space")
            REC["place5_ok"] = True
    elif ph == "start":
        r.label = "start_wait"
        sc.render(f"{n}回目／{N_EP}　場所{p}　スペースで始める",
                  [f"ブロックは 場所{p} の点 (ときどき 向きを少し変えて置く)",
                   "リーダーとフォロワーの姿勢を近づける",
                   f"スペースで 録り始める (最長 {EP_S:g}秒)", "入れ終わったら → で早めに終える",
                   "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"])
        if k == ord(" ") and w is not None:
            ev("key", phase=ph, ep=n, key="space", place=p)
            w["exit_early"] = True
    elif ph == "episode":
        r.label = f"ep{n}_try{REC['try']}"
        if REC["n"] % 3 == 0:
            left = max(0.0, EP_S - (time.perf_counter() - REC["t"]))
            big(sc, f"{n}回目／{N_EP} 場所{p}", f"残り {left:4.1f} 秒",
                ["入れ終わったら → で終える", "うまくいかなかったら ← で録り直す", "(止めたいとき: q)"],
                color=(60, 60, 255))
    elif ph == "reset":
        r.label = "reset"
        nxt = place(REC["ep"] + 1)
        if ev_ is not None and ev_["rerecord_episode"]:
            sc.render(f"{n}回目 を録り直す", [f"ブロックを 場所{p} の点に置き直して", "腕を休みの姿勢へ",
                                           f"スペースで もう一度 {n}回目へ"], color=(0, 160, 255))
        elif nxt != p:
            sc.render(f"{n}回目 終わり (場所{p} はこれで終わり)",
                      [f"次は 場所{nxt}", "腕を休みの姿勢へ", "スペースで次へ (次の画面で 場所の置き直し)",
                       "うまくいかなかった回は ← で録り直す"])
        else:
            sc.render(f"{n}回目 終わり", [f"ブロックを 場所{p} の点に置き直して (ときどき 向きを少し変える)",
                                       "腕を休みの姿勢へ",
                                       "スペースで次へ", "うまくいかなかった回は ← で録り直す"])
        if k == ord(" "):
            ev("key", phase=ph, ep=n, key="space", rerecord=bool(ev_ and ev_["rerecord_episode"]))
            w["exit_early"] = True
    elif ph == "end":
        r.label = "end_wait"
        sc.render(f"{n}回目 終わり (これで{N_EP}回)", ["リーダーで 爪を閉じる",
                                                 "腕を机の上まで下ろして たたむ (休みの姿勢)",
                                                 "たたんだら スペース (保存して 力が抜ける)",
                                                 "幅の外だと 赤い字で関節名が出る → そこを戻す",
                                                 "うまくいかなかったら ← で録り直す"])
        if k == ord(" "):
            ev("key", phase=ph, ep=n, key="space")
            w["exit_early"] = True
    if w is not None and ev_ is not None and ev_["stop_recording"]:
        w["exit_early"] = True


def install_record_hooks():
    """LeRobot の record_loop・save_episode を包む (lerobot_record.py は書き換えない)."""
    import lerobot.scripts.lerobot_record as rec
    from lerobot.datasets.lerobot_dataset import LeRobotDataset
    orig_loop = rec.record_loop

    def wait(kw, phase):
        REC["phase"], REC["wait"] = phase, {"exit_early": False, "rerecord_episode": False, "stop_recording": False}
        ev("phase", phase=phase, ep=REC["ep"] + 1)
        t = time.perf_counter()
        orig_loop(**dict(kw, dataset=None, events=REC["wait"], control_time_s=3600 * 4, timer=None))
        ev("phase_end", phase=phase, ep=REC["ep"] + 1, dur_s=round(time.perf_counter() - t, 2))
        REC["wait"] = None

    def record_loop(*a, **kw):
        assert not a, "record_loop はキーワード引数で呼ばれる想定"
        events, ds = kw["events"], kw.get("dataset")
        REC["events"] = events
        if ds is None:  # LeRobot の reset の間
            return wait(kw, "reset")
        ep = ds.num_episodes
        REC["try"] = REC["try"] + 1 if ep == REC["ep"] and REC["attempts"] else 1
        REC["ep"] = ep
        wait(kw, "start")
        if events["stop_recording"]:
            REC["phase"] = None
            return None
        events["exit_early"] = events["rerecord_episode"] = False  # 待ちの間のキーは持ち越さない
        REC["phase"], REC["t"] = "episode", time.perf_counter()
        ev("episode_start", ep=ep + 1, try_=REC["try"])
        try:
            ret = orig_loop(*a, **kw)
        finally:
            dur = time.perf_counter() - REC["t"]
            size = (getattr(ds, "writer", None) and ds.writer.episode_buffer or {}).get("size")
            how = ("left" if events["rerecord_episode"] else "esc" if events["stop_recording"]
                   else "right" if dur < EP_S - 0.2 else "time")
            att = {"ep": ep + 1, "place": place(ep), "try": REC["try"], "dur_s": round(dur, 2), "buffer_frames": size,
                   "end": how,
                   "label": f"ep{ep + 1}_try{REC['try']}"}
            REC["attempts"].append(att)
            ev("episode_end", **att)
            REC["phase"] = None
        if ep == N_EP - 1 and not events["rerecord_episode"] and not events["stop_recording"]:
            wait(kw, "end")  # 10回目のあと: たたんでから保存・力を抜く (例外で抜けたときは通らない)
        return ret

    rec.record_loop = record_loop

    def init_keyboard_listener():
        # LeRobot のキー読み取り (pynput) は別スレッドから macOS の入力の関数を呼び, macOS がプロセスを止める
        # (2回目の実行 17:12:49 に SIGTRAP. crash_171249.ips). 読み取りは始めず, →・← は手順のウィンドウで受ける
        ev("keyboard_listener", note="pynput を使わない (手順のウィンドウで →・← を受ける)")
        return None, {"exit_early": False, "rerecord_episode": False, "stop_recording": False}

    rec.init_keyboard_listener = init_keyboard_listener

    orig_save, orig_clear = LeRobotDataset.save_episode, LeRobotDataset.clear_episode_buffer

    def save_episode(self, *a, **kw):
        sc = CUR["run"].screen if CUR["run"] else None
        n = self.num_episodes + 1
        if sc is not None:
            sc.render(f"{n}回目 を保存中", ["動画を書いている (数秒)", "腕はそのまま"], log=False)
            sc.poll(1)
        t = time.perf_counter()
        out = orig_save(self, *a, **kw)
        ev("saved", ep=n, dur_s=round(time.perf_counter() - t, 2), num_episodes=self.num_episodes)
        if REC["attempts"]:
            REC["attempts"][-1]["saved_as"] = self.num_episodes - 1
        return out

    def clear_episode_buffer(self, *a, **kw):
        ev("discarded", ep=self.num_episodes + 1)
        if REC["attempts"]:
            REC["attempts"][-1]["saved_as"] = None
        return orig_clear(self, *a, **kw)

    LeRobotDataset.save_episode, LeRobotDataset.clear_episode_buffer = save_episode, clear_episode_buffer


def label_stats(frames, label):
    fs = [f for f in frames if f["label"] == label and not f["gate"]]
    out = {"frames": len(fs), "cut_frames": sum(1 for f in fs if f["cut"]),
           "cut_examples": [f["cut"] for f in fs if f["cut"]][:5]}
    if len(fs) > 1:
        out["hz"] = round((len(fs) - 1) / (fs[-1]["t"] - fs[0]["t"]), 2)
        step = {m: 0.0 for m in MOTORS}
        for a, b in zip(fs, fs[1:]):
            for m in MOTORS:
                step[m] = max(step[m], abs(b["goal"][m] - a["goal"][m]))
        out["leader_step_max"] = {m: round(v, 2) for m, v in step.items()}
    return out


def ask_numbers(screen, question, maxv=N_EP):
    """番号を数字で答える (20回あるので2桁). 数字を打って スペース で足す・同じ番号をもう一度足すと外れる.
    Backspace で打ちかけを1字消す. Enter で決める (打ちかけがあれば足してから)."""
    chosen, buf = [], ""

    def commit():
        if buf and 1 <= int(buf) <= maxv:
            v = int(buf)
            chosen.remove(v) if v in chosen else chosen.append(v)
    while True:
        k = screen.ask("見た物で答える  番号", [question, f"数字を打って スペース で足す (1〜{maxv})",
                                               "同じ番号をもう一度足すと外れる・Backspace で1字消す",
                                               "打っている: " + (buf or "-"),
                                               "選んだ: " + (" ".join(str(c) for c in sorted(chosen)) or "なし"),
                                               "", "決めたら Enter"], "0123456789 ,\r\n\x08\x7f",
                       timeout=PROMPT_TIMEOUT_S)
        if k is None:
            return sorted(chosen)
        if k in "\r\n":
            commit()
            return sorted(chosen)
        if k in " ,":
            commit()
            buf = ""
        elif k in "\x08\x7f":
            buf = buf[:-1]
        elif len(buf) < 2:
            buf += k


def gate_summary(r, out):
    out["gate"] = r.gate
    waits = [g for g in r.gate if g["what"] in ("rest_gate_end", "rest_gate_exc")]
    out["rest_wait_s"] = round(sum(g["dur_s"] for g in waits), 2) if waits else None
    out["rest_wait_each_s"] = [(g.get("result") or g.get("exc"), g["dur_s"]) for g in waits]
    out["torque_on"] = [x["max_diff_deg"] for x in r.torque_on]
    out["cut_frames_gate"] = sum(1 for f in r.frames if f["gate"] and f["cut"])


def step0(screen):
    ok, fol = torque_all_zero()
    RESULTS["0"] = {"torque_zero": ok, "follower": fol}
    if not ok:
        screen.ask("力が入っている (始めない)", ["フォロワーの Torque が 0 ではない", f"{fol}",
                                            "支える → 電源を切る", "", "スペースで終える"], " ",
                   color=(0, 0, 255), timeout=1800)
        return False
    return screen.space("0. 始める前", ["ブロックを 場所4 (まん中の手前) の点に置く",
                                       "リーダーとフォロワーの姿勢を近づける",
                                       "フォロワーのまわりを空ける・電源をすぐ切れるようにする",
                                       "次のスペースで つなぐ (力が入る. まだ録らない)",
                                       "(止めたいとき: q キー = Ctrl-C)"])


def write_labels(not_in_box):
    """episode_labels.json (依頼276 と同じ形 + 場所の列) を dataset のフォルダに置く. dataset 本体は変えない."""
    n = json.loads((ROOT / "meta" / "info.json").read_text())["total_episodes"]
    eps = [{"episode_index": i, "place": place(i), "label": "fail" if i + 1 in not_in_box else "success"}
           for i in range(n)]
    out = ROOT / "episode_labels.json"
    if out.exists():
        ev("labels_skip", why=f"{out} がすでにある")
        return None
    out.write_text(json.dumps({
        "dataset": REPO_ID, "judged_by": "エイイチ", "date": time.strftime("%Y-%m-%d"),
        "note": "ブロックが箱に入ったか (エイイチが録った回を見て答えた. 依頼278). place は机の点の番号 "
                "(4 = まん中の手前, 5 = 右の奥). dataset 本体は変えていない",
        "episodes": eps}, ensure_ascii=False, indent=1))
    ev("labels", file=str(out), fail=[e["episode_index"] for e in eps if e["label"] == "fail"])
    return eps


def step1(screen, ls):
    r, res = run_safe(ls, "step1_record", ["record", *RECORD], screen, on_frame)
    out = {"run": res, "attempts": REC["attempts"]}
    for a in REC["attempts"]:
        a.update(label_stats(r.frames, a["label"]))
    out["cut_frames_by_label"] = {}
    for f in r.frames:
        if f["cut"]:
            key = ("gate:" if f["gate"] else "") + f["label"]
            out["cut_frames_by_label"][key] = out["cut_frames_by_label"].get(key, 0) + 1
    gate_summary(r, out)
    RESULTS["1"] = out
    if res["torque_kept"] or res["exc"] not in (None, "KeyboardInterrupt"):
        stop_screen(screen)
        return False
    all_in = screen.yn(f"{N_EP}回とも, ブロックが箱に入った？")
    out["yn_all_in_box"] = all_in
    out["not_in_box"] = ask_numbers(screen, "ブロックが箱に入らなかった回の番号は？") if all_in is False else []
    out["yn_jump"] = screen.yn("録っている最中に, フォロワーが ガクッと飛んだ回は あった？",
                               ["(y = 飛んだ回があった / n = なかった)"])
    if out["yn_jump"]:
        out["jump_eps"] = ask_numbers(screen, "ガクッと飛んだ回の番号は？ (分からなければ そのまま Enter)")
    out["yn_hard_place"] = screen.yn("場所4・5 で, 届きにくい・つかみにくい所は あった？",
                                     ["(y = あった / n = なかった)"])
    if out["yn_hard_place"]:
        out["hard_places"] = ask_numbers(screen, "それは どの場所？ (4 か 5. 両方なら 4 と 5)", maxv=5)
    if all_in is not None:
        out["labels"] = write_labels(out["not_in_box"])
    return True


def replay_one(screen, ls, k):
    """dataset の episode index k を replay する (子のプロセスの中)."""
    n, p = k + 1, place(k)
    if not screen.space(f"replay ({n}回目・場所{p} を再生)",
                        ["フォロワーのまわりを空ける", f"ブロックを 場所{p} の点に置く",
                         "スペースで replay を始める (力が入る)", "終わると 休みの姿勢へ自動で戻る",
                         "(止めたいとき: q)"]):
        return False
    st = {"n": 0}

    def on_rep(r):
        st["n"] += 1
        sc = r.screen
        kk = sc.poll(1)
        if kk in (ord("q"), 27) and not r.stop_sent:
            r.sigint("q (手順のウィンドウ)")
            return
        r.label = "replay"
        if st["n"] % 3 == 1:
            big(sc, f"replay {n}回目 場所{p}", f"{st['n'] / 30:4.1f} 秒",
                ["終わると 休みの姿勢へ自動で戻る", "当たりそうなら q (= Ctrl-C)"])

    argv = ["replay", f"--dataset.repo_id={REPO_ID}", f"--dataset.root={ROOT}", f"--dataset.episode={k}",
            "--dataset.fps=30"]
    r, res = run_safe(ls, f"step2_replay_ep{k}", argv, screen, on_rep)
    out = {"episode_index": k, "place": p, "run": res, "replay": label_stats(r.frames, "replay")}
    gate_summary(r, out)
    RESULTS["replay"] = out
    if res["torque_kept"] or res["exc"] not in (None, "KeyboardInterrupt"):
        stop_screen(screen)
        return False
    out["yn_block_in_box"] = screen.yn("replay で, ブロックは箱に入った？")
    out["yn_replay_same"] = screen.yn("フォロワーは 録ったとおりに動いた？")
    return True


def check_torque(screen):
    """フォロワーの Torque_Enable が全軸 0 なら True. サーボが見えなければ電源を入れてもらって読み直す (run_276 と同じ)."""
    while True:
        ok, fol = torque_all_zero()
        RESULTS.setdefault("read_servos", []).append({"ok": ok, "follower": fol})
        if ok:
            return True
        if fol:
            screen.ask("力が入っている・数が合わない (始めない)",
                       ["フォロワーの Torque が 0 ではない (またはサーボが6個でない)", f"{fol}", "",
                        "スペースで終える"], " ", color=(0, 0, 255), timeout=1800)
            return False
        if not screen.space("フォロワーの電源を入れて スペース",
                            ["フォロワーのサーボが読めない (電源が切れている)", "フォロワーの電源を入れる"]):
            return False


def step2(screen):
    """場所4・場所5 の成功の回を1回ずつ, record と別のプロセスで replay する."""
    bad = set(RESULTS["1"].get("not_in_box") or [])
    n = json.loads((ROOT / "meta" / "info.json").read_text())["total_episodes"]
    picks = []
    for pl in (4, 5):
        ok = [i for i in range(n) if place(i) == pl and i + 1 not in bad]
        if ok:
            picks.append(ok[0])
        else:
            ev("replay_skip", place=pl, why="成功の回がない")
    out = RESULTS["2"] = {"picks": picks, "children": []}
    screen.cv2.destroyWindow(WIN)  # 子のプロセスの窓だけを出す
    screen.cv2.waitKey(1)
    for k in picks:
        ev("replay_child_start", episode_index=k)
        p = subprocess.run([PY, str(Path(__file__).resolve()), "--replay-ep", str(k)])
        rp = HERE / f"results_278_replay_ep{k}.json"
        child = {"episode_index": k, "returncode": p.returncode,
                 "results": json.loads(rp.read_text()) if rp.exists() else None}
        out["children"].append(child)
        ev("replay_child_end", episode_index=k, returncode=p.returncode)
        if p.returncode != 0:
            return False
    return True


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("--dry", action="store_true")
    ap.add_argument("--replay-ep", type=int, default=None,
                    help="dataset の episode index を replay だけする (record と同じプロセスで2回目の main() を呼ぶと, "
                         "record のカメラの設定が残って止まるため. 親が子のプロセスで呼ぶ)")
    args = ap.parse_args()
    screen = Screen()
    ev("start", dry=args.dry, replay_ep=args.replay_ep)
    if args.dry:
        class R:
            pass
        r = R()
        r.screen, r.stop_sent, r.label = screen, False, ""
        for ep, ph, tag in ((2, "start", "start_p4"), (2, "episode", "episode"), (9, "reset", "reset_p4end"),
                            (10, "start", "place5"), (10, "start", "start_p5"), (4, "reset", "reset"),
                            (19, "end", "end")):
            REC.update(phase=ph, ep=ep, t=time.perf_counter(), place5_ok=(tag == "start_p5"))
            t0 = time.perf_counter()
            while time.perf_counter() - t0 < 1.5:
                on_frame(r)
                time.sleep(0.03)
            screen.cv2.imwrite(str(HERE / f"dry_{tag}.png"), screen._img)
        return 0
    if args.replay_ep is not None:
        import lerobot_safe_259 as _  # noqa: F401,F811
        ls = install_hooks()
        k = args.replay_ep
        try:
            if not screen.space("replay の前", ["フォロワーのまわりを空ける",
                                              "次のスペースで 力が入っていないか読む (読むだけ)"]):
                return 1
            if not check_torque(screen):
                return 1
            if not replay_one(screen, ls, k):
                return 2
            return 0
        finally:
            (HERE / f"results_278_replay_ep{k}.json").write_text(json.dumps(RESULTS, ensure_ascii=False, indent=1,
                                                                         default=str))
            ev("end", replay_ep=k)
    if ROOT.exists():
        ev("abort", why=f"{ROOT} がすでにある")
        print(f"[278] {ROOT} がすでにある. 止める")
        return 3
    ROOT.parent.mkdir(parents=True, exist_ok=True)
    import lerobot_safe_259 as _  # noqa: F401  (先に読み込んでから包む)
    ls = install_hooks()
    install_record_hooks()
    try:
        if not step0(screen):
            return 1
        if not step1(screen, ls):
            return 2
        (HERE / "results_278.json").write_text(json.dumps(RESULTS, ensure_ascii=False, indent=1, default=str))
        ok = step2(screen)
        screen = Screen()
        if not ok:
            screen.space("replay で止まった", ["フォロワーの電源を切ってよい", "スペースで終える"], color=(0, 0, 255),
                         timeout=600)
            return 2
        screen.space("おわり", ["手順はすべて終わった", "フォロワーの電源を切ってよい"], timeout=600)
        return 0
    finally:
        (HERE / "results_278.json").write_text(json.dumps(RESULTS, ensure_ascii=False, indent=1, default=str))
        ev("end")


if __name__ == "__main__":
    sys.exit(main())
```

### so101/check_278/analyze_278.py

```python
"""依頼 278: 録ったお手本 (~/so101_datasets/so101_redblock_box_teleop_v1_pos45) を読むだけで確かめる.

  - 回数・各回のコマ数と長さ・1秒あたりのコマ数 (記録の timestamp と, run_278 が測った実際の周期)
  - 映像2台が全部の回にあるか. 真っ黒・白飛び・止まったコマ. 各回の最初・真ん中・最後の1コマを frames/ に保存
  - 角度 (observation.state・action) が全部の回にあるか. 1コマ 10° を超える差 (爪は 20)
結果は analysis_278.json に書く. 記録は書き換えない.

使い方 (conda の lerobot 環境で):  python so101/check_278/analyze_278.py
"""

import json
import sys
from pathlib import Path

import av
import numpy as np
import pandas as pd
from PIL import Image

HERE = Path(__file__).resolve().parent
ROOT = Path.home() / "so101_datasets" / "so101_redblock_box_teleop_v1_pos45"
N_PLACE = 10  # 1〜10回目 = 場所4, 11〜20回目 = 場所5 (run_278 と同じ)
MOTORS = ["shoulder_pan", "shoulder_lift", "elbow_flex", "wrist_flex", "wrist_roll", "gripper"]
JUMP = {m: 10.0 for m in MOTORS} | {"gripper": 20.0}  # B と同じ幅 (関節 10°, 爪 20)
BLACK, WHITE = 16, 245  # 画素の明るさ (0〜255). 真っ黒・白飛びの目安
BAD_FRAC = 0.9          # コマの 9割がこれなら「真っ黒」「白飛び」とする
STILL_DIFF = 0.3        # 前のコマとの差 (縮めた灰色の平均の絶対差) がこれ未満なら「止まった」とみる


def read_parquets(pattern):
    files = sorted(ROOT.glob(pattern))
    return pd.concat([pd.read_parquet(f) for f in files], ignore_index=True) if files else pd.DataFrame()


def decode(path):
    """mp4 の全部のコマを (時刻, 灰色を縮めたもの, 元の RGB は呼ぶ側で必要なときだけ) で返す."""
    out = []
    with av.open(str(path)) as c:
        s = c.streams.video[0]
        for fr in c.decode(s):
            out.append((float(fr.pts * s.time_base), fr))
    return out


def main():
    global ROOT, HERE
    if len(sys.argv) > 2:  # 試し: 別の記録と書き出し先 (python analyze_278.py <root> <out>)
        ROOT, HERE = Path(sys.argv[1]), Path(sys.argv[2])
        HERE.mkdir(parents=True, exist_ok=True)
    info = json.loads((ROOT / "meta" / "info.json").read_text())
    fps = info["fps"]
    eps = read_parquets("meta/episodes/*/*.parquet").sort_values("episode_index")
    data = read_parquets("data/*/*.parquet")
    cams = [k for k, v in info["features"].items() if v["dtype"] == "video"]
    res = {"root": str(ROOT), "fps": fps, "total_episodes": info.get("total_episodes"),
           "total_frames": info.get("total_frames"), "cameras": cams, "episodes": []}
    run = {}
    rp = HERE / "results_278.json"
    if rp.exists():
        att = json.loads(rp.read_text()).get("1", {}).get("attempts", [])
        run = {a["saved_as"]: a for a in att if a.get("saved_as") is not None}
    (HERE / "frames").mkdir(exist_ok=True)
    videos = {}
    for _, e in eps.iterrows():
        i = int(e["episode_index"])
        d = data[data.episode_index == i].sort_values("frame_index")
        row = {"ep": i + 1, "place": 4 if i < N_PLACE else 5, "length": int(e["length"]), "rows": len(d)}
        ts = d["timestamp"].to_numpy()
        row["dur_s"] = round(len(d) / fps, 2)
        row["ts_step_ms"] = [round(float(np.diff(ts).min()) * 1000, 2), round(float(np.diff(ts).max()) * 1000, 2)] \
            if len(ts) > 1 else None
        if i in run:
            row["real_hz"] = run[i].get("hz")
            row["real_dur_s"] = run[i].get("dur_s")
            row["cut_frames"] = run[i].get("cut_frames")
            row["try"] = run[i].get("try")
            row["end"] = run[i].get("end")
        for col in ("observation.state", "action"):
            a = np.stack(d[col].to_numpy()) if len(d) else np.zeros((0, 6))
            ok = a.shape == (len(d), 6) and bool(np.isfinite(a).all())
            step = np.abs(np.diff(a, axis=0)) if len(a) > 1 else np.zeros((0, 6))
            row[col] = {"present": ok,
                        "step_max": {m: round(float(step[:, j].max()), 2) if len(step) else 0.0
                                     for j, m in enumerate(MOTORS)},
                        "jumps": {m: int((step[:, j] > JUMP[m]).sum()) for j, m in enumerate(MOTORS)
                                  if len(step) and (step[:, j] > JUMP[m]).any()}}
        for cam in cams:
            k = f"videos/{cam}/"
            p = ROOT / info["video_path"].format(video_key=cam, chunk_index=int(e[k + "chunk_index"]),
                                                file_index=int(e[k + "file_index"]))
            if p not in videos:
                videos[p] = decode(p)
            t0, t1 = float(e[k + "from_timestamp"]), float(e[k + "to_timestamp"])
            frs = [fr for t, fr in videos[p] if t0 - 1e-4 <= t < t1 - 1e-4]
            v = {"file": str(p.relative_to(ROOT)), "frames": len(frs), "black": 0, "white": 0, "still": 0,
                 "still_run_max": 0, "mean": None}
            prev, run_len, means = None, 0, []
            for fr in frs:
                g = np.asarray(fr.to_image().convert("L").resize((160, 120)), dtype=np.float32)
                means.append(float(g.mean()))
                v["black"] += int((g < BLACK).mean() >= BAD_FRAC)
                v["white"] += int((g > WHITE).mean() >= BAD_FRAC)
                if prev is not None and float(np.abs(g - prev).mean()) < STILL_DIFF:
                    v["still"] += 1
                    run_len += 1
                    v["still_run_max"] = max(v["still_run_max"], run_len)
                else:
                    run_len = 0
                prev = g
            if means:
                v["mean"] = [round(min(means), 1), round(float(np.mean(means)), 1), round(max(means), 1)]
            for tag, j in (("first", 0), ("mid", len(frs) // 2), ("last", len(frs) - 1)):
                if frs:
                    frs[j].to_image().save(HERE / "frames" / f"ep{i + 1:02d}_{cam.split('.')[-1]}_{tag}.png")
            row[cam] = v
        res["episodes"].append(row)
    (HERE / "analysis_278.json").write_text(json.dumps(res, ensure_ascii=False, indent=1))
    print(f"episodes={len(res['episodes'])} fps={fps}")
    for r in res["episodes"]:
        vs = " ".join(f"{c.split('.')[-1]}:{r[c]['frames']}f 黒{r[c]['black']} 白{r[c]['white']} "
                      f"止{r[c]['still']}(最長{r[c]['still_run_max']})" for c in cams)
        print(f"ep{r['ep']:2d} 場所{r['place']} len={r['length']} {r['dur_s']}s hz={r.get('real_hz')} cut={r.get('cut_frames')} "
              f"state_jumps={r['observation.state']['jumps']} action_jumps={r['action']['jumps']} | {vs}")
    return 0


if __name__ == "__main__":
    sys.exit(main())
```
