nerfstudio icon indicating copy to clipboard operation
nerfstudio copied to clipboard

Unrecognized option 'qp'. Error splitting the argument list: Option not found

Open Angelalilyer opened this issue 2 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is. Traceback (most recent call last): File "/data/nerfstudio/nerfstudio/scripts/render.py", line 203, in _render_trajectory_video writer.add_image(render_image) File "/home/huangzhiqi/.local/lib/python3.8/site-packages/mediapy/init.py", line 1648, in add_image if self._proc.stdin.write(data) != len(data): BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/huangzhiqi/.local/bin/ns-render", line 8, in sys.exit(entrypoint()) File "/data/nerfstudio/nerfstudio/scripts/render.py", line 808, in entrypoint tyro.cli(Commands).main() File "/data/nerfstudio/nerfstudio/scripts/render.py", line 407, in main _render_trajectory_video( File "/data/nerfstudio/nerfstudio/scripts/render.py", line 203, in _render_trajectory_video writer.add_image(render_image) File "/usr/lib/python3.8/contextlib.py", line 525, in exit raise exc_details[1] File "/usr/lib/python3.8/contextlib.py", line 510, in exit if cb(*exc_details): File "/home/huangzhiqi/.local/lib/python3.8/site-packages/mediapy/init.py", line 1610, in exit self.close() File "/home/huangzhiqi/.local/lib/python3.8/site-packages/mediapy/init.py", line 1661, in close raise RuntimeError(f"Error writing '{self.path}': {s}") RuntimeError: Error writing 'renders/poster/2023-10-20_150821.mp4': Unrecognized option 'qp'. Error splitting the argument list: Option not found To Reproduce Steps to reproduce the behavior: run the command " ns-render camera-path --load-config outputs/poster/nerfacto/2023-10-20_150821/config.yml --camera-path-filename /data/nerfstudio/data/nerfstudio/poster/camera_paths/2023-10-20_150821.json --output-path renders/poster/2023-10-20_150821.mp4"

Expected behavior A clear and concise description of what you expected to happen.

Screenshots 8b05c99e4f2e7f58c4a52ac8412a785c

Additional context

my ffmpeg version is: ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.2) configuration: --enable-shared --enable-libx264 --enable-gpl --prefix=/usr/bin/ffmpeg libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100

Angelalilyer avatar Oct 20 '23 12:10 Angelalilyer

Hello, have you solved this problem yet?

baekhyun77 avatar Nov 05 '23 03:11 baekhyun77

I had a same problem but I could fix it with conda install ffmpeg. I installed ffmpeg 4.2.2 with above command. How about remove and reinstall ffmpeg?

yukyeongmin avatar Jan 25 '24 12:01 yukyeongmin

This fix works! I'm able to render once ffmpeg version is 4.2.2

For others, if your conda environment is running ffmpeg version 4.3, simply reinstall with version 4.2.2 using the command: conda install -c conda-forge ffmpeg=4.2.2

AntonioMacaronio avatar Apr 07 '24 01:04 AntonioMacaronio