Open hasifast opened 6 years ago
There are two command line options that can be used for saving a video:
--save_video
for example python3 -m minos.tools.pygame_client --save_video test.avi
--save_png
for example python3 demo.py --env_config pointgoal_suncg_sf --task point_goal --save_png
The first encodes a video on the fly, while the latter saves numbered sequences of png images for each of the enabled sensors in the logs/<timestamp>
directory for the given run. You can convert these image sequences into videos using ffmpeg
or similar tools. The latter option is recommended for higher quality and for converting to videos of a desired resolution and format.
By using the command "python3 -m minos.tools.pygame_client --save_video test.avi" i get the error
2018-05-24 11:11:40,688 INFO {'sim_git_hash': '3bf7fb6', 'machine': 'latif-Lenovo-ideapad-310-15IKB', 'stk_git_hash': '3bf7fb6', 'sim_id': 'sim00'}
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/latif/Desktop/minos/minos/tools/pygame_client.py", line 457, in
The above error is due to the system not having ffmpeg
installed. Please install ffmpeg through apt-get
, brew
or other package manager depending on your OS.
I want to record the video of navigation similar to the one given in the demo video of MINOS. Please guide me if there is any option available to record it without using desktop screen recorder etc.