@@ -99,6 +99,7 @@ def __init__(
9999 image_batch_size : int = DEFAULT_IMAGE_BATCH_SIZE ,
100100 per_robot_arm_dim : int = DEFAULT_PER_ROBOT_ARM_DIM ,
101101 video_encoding : bool = False ,
102+ video_backend : str | None = None ,
102103 ):
103104 self .root = Path (root )
104105 self .conn = duckdb .connect ()
@@ -133,6 +134,7 @@ def __init__(
133134 features = self ._build_features (),
134135 image_writer_threads = 10 ,
135136 image_writer_processes = 5 ,
137+ video_backend = video_backend ,
136138 )
137139
138140 def _build_features (self ) -> dict [str , dict [str , Any ]]:
@@ -416,6 +418,7 @@ def run_conversion(
416418 success : bool = True ,
417419 n : int = - 1 ,
418420 video_encoding : bool = False ,
421+ video_backend : str | None = None ,
419422) -> None :
420423 robot_type_converted = RobotType (robot_type )
421424 gripper_type_converted = GripperType (gripper_type )
@@ -432,6 +435,7 @@ def run_conversion(
432435 image_batch_size = image_batch_size ,
433436 per_robot_arm_dim = per_robot_arm_dim ,
434437 video_encoding = video_encoding ,
438+ video_backend = video_backend
435439 )
436440 converter .generate_examples (success = success , n = n )
437441
0 commit comments