Commit Graph

8 Commits

Author SHA1 Message Date
Hill Ma
8a721ace46 Fix video recording. (#2139) 2021-01-11 09:58:46 -08:00
Justin Terry
eec7d3354a Remove Python 3.5 support, travis and setup.py maintenance (#2084)
* remove python 3.5, update travis

* add travis

* add cmake during tests

* add swig

* disable python 3.8 removal?

* remove depricated failover

* add opencv and pillow minimum versions

* try removing pillow minimum version

* try older version of ubuntu

* reup ubuntu

* make pillow version suitable for pyglet version range

* remove extraneous run

* rerun stalled CI
2020-11-06 17:04:23 -08:00
pzhokhov
67212547ac remove six and __future__ imports (#1840)
* remove six

* remove __future__ imports

* remove six from setup.py, python 2.7 from README.rst
2020-04-10 17:10:34 -05:00
Edouard Leurent
242eb2ac2c Video recorder: distinguish input and output fps (#1817)
* Video recorder: distinguish input and output fps

Common video players such as VLC, or Quicktime struggle to play videos
with low framerate, which is problematic for environments where the
policy
frequency is low (e.g. 1 Hz).
See: https://superuser.com/a/601916

This commit sets:
- The input image sequence framerate to the metadata
'video.frames_per_second'
- The output video framerate to at least 30 fps

* Use a configurable output video framerate

This output video framerate is different from the image sequence
framerate:
- when the environment fps is low, the output video fps can be increased
so that players like VLC or Quicktime handle them more gracefully (they
struggle at low fps)
- when the environment fps is very high, the output video can still be
recorded at a lower fps to better compression.

It is configured through the 'video.output_frames_per_second' metadata
and defaults to 'video.frames_per_second' (which itself defaults to 30)
2020-02-29 01:05:18 +01:00
Lilian Besson
53e4b2c65d Typo in a error message in gym/wrappers/monitoring/video_recorder.py (#952) 2019-02-25 17:21:32 -07:00
Peter Zhokhov
e65b61fd08 make recent text env changes python 2/3 compatible 2019-02-08 17:50:34 -08:00
William Woof
8bcd125156 Fix to enable use with odd image dimensions (#1101) 2019-02-08 17:35:01 -08:00
John Schulman
4c460ba6c8 Cleanup, removal of unmaintained code (#836)
* add dtype to Box

* remove board_game, debugging, safety, parameter_tuning environments

* massive set of breaking changes
- remove python logging module
- _step, _reset, _seed, _close => non underscored method
- remove benchmark and scoring folder

* Improve render("human"), now resizable, closable window.

* get rid of default step and reset in wrappers, so it doesn’t silently fail for people with underscore methods

* CubeCrash unit test environment

* followup fixes

* MemorizeDigits unit test envrionment

* refactored spaces a bit
fixed indentation
disabled test_env_semantics

* fix unit tests

* fixes

* CubeCrash, MemorizeDigits tested

* gym backwards compatibility patch

* gym backwards compatibility, followup fixes

* changelist, add spaces to main namespaces

* undo_logger_setup for backwards compat

* remove configuration.py
2018-01-25 18:20:14 -08:00