Persistent Issue Unresolved Despite Trying All ... | AIFITLAB Community Forum

Persistent Issue Unresolved Despite Trying All Online Fixes – Any Expert Insights?


  • Map: 100%|███████████████████████████| 297/297 [00:00<00:00, 2197.30 examples/s]

    Creating parquet from Arrow format: 100%|████████| 1/1 [00:00<00:00, 723.90ba/s]

    Unknown encoder 'libsvtav1'

    Traceback (most recent call last):

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/scripts/control_robot.py", line 393, in <module>

        control_robot()

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/configs/parser.py", line 227, in wrapper_inner

        response = fn(cfg, *args, **kwargs)

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/scripts/control_robot.py", line 378, in control_robot

        record(robot, cfg.control)

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/common/robot_devices/utils.py", line 42, in wrapper

        raise e

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/common/robot_devices/utils.py", line 38, in wrapper

        return func(robot, *args, **kwargs)

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/scripts/control_robot.py", line 322, in record

        dataset.save_episode()

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/common/datasets/lerobot_dataset.py", line 880, in save_episode

        video_paths = self.encode_episode_videos(episode_index)

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/common/datasets/lerobot_dataset.py", line 984, in encode_episode_videos

        encode_video_frames(img_dir, video_path, self.fps, overwrite=True)

      File "/home/zzq/lerobot-mainreal/lerobot-main/lerobot/common/datasets/video_utils.py", line 177, in encode_video_frames

        subprocess.run(ffmpeg_cmd, check=True, stdin=subprocess.DEVNULL)

      File "/home/zzq/anaconda3/envs/lerobot/lib/python3.10/subprocess.py", line 526, in run

        raise CalledProcessError(retcode, process.args,

    subprocess.CalledProcessError: Command '['ffmpeg', '-f', 'image2', '-r', '30', '-i', '/home/zzq/.cache/huggingface/lerobot/ZHUZHUXIADDD/so100_test/images/observation.images.laptop/episode_000000/frame_%06d.png', '-vcodec', 'libsvtav1', '-pix_fmt', 'yuv420p', '-g', '2', '-crf', '30', '-loglevel', 'error', '-y', '/home/zzq/.cache/huggingface/lerobot/ZHUZHUXIADDD/so100_test/videos/chunk-000/observation.images.laptop/episode_000000.mp4']' returned non-zero exit status 1.

     

    Has anyone figured out why this is happening? I’ve tried almost all the solutions I found online with no success



  • The issue was resolved by configuring line 134 in common/datasets/video_utils.py to explicitly utilize the installed H.264 encoder.


  • Thanks


Please login to reply to this topic!