diff --git a/docs/source/video_encoding_parameters.mdx b/docs/source/video_encoding_parameters.mdx index b3ffcf86c..eb0d1f7f4 100644 --- a/docs/source/video_encoding_parameters.mdx +++ b/docs/source/video_encoding_parameters.mdx @@ -67,27 +67,90 @@ All flags below are prefixed with `--dataset.rgb_encoder.` on the CLI. Depth maps (Intel RealSense, Reachy 2) are stored as their **own video streams** alongside the RGB streams. Raw depth (`uint16` millimetres or `float32` metres) can't survive an 8-bit codec, so LeRobot **quantizes** each map to a 12-bit code (`[0, 4095]`) — logarithmically by default, to match the `1/depth` error profile of depth sensors — then packs it into a high-bit-depth pixel format (`gray12le`) and encodes it with a 12-bit codec.
video.codec, video.pix_fmt, video.height, video.width, video.fps — must match across sources, otherwise FFmpeg's concat demuxer fails.
+
+ Must match
+
+
+ Stream-derived fields — video.codec,{" "}
+ video.pix_fmt,{" "}
+ video.height,{" "}
+ video.width,{" "}
+ video.fps — must match across
+ sources, otherwise FFmpeg's concat demuxer fails.
+
video.g, video.crf, video.preset, video.fast_decode, video.extra_options. If every source agrees, the value is kept; if not, it's set to null (or {} for video.extra_options) and a warning is logged.
+
+ Merged loosely
+
+
+ Encoder-tuning fields — video.g,{" "}
+ video.crf,{" "}
+ video.preset,{" "}
+ video.fast_decode,{" "}
+ video.extra_options. If every source
+ agrees, the value is kept; if not, it's set to{" "}
+ null (or{" "}
+ {} for{" "}
+ video.extra_options) and a warning is
+ logged.
+