diff --git a/gym_pybullet_drones/envs/BaseAviary.py b/gym_pybullet_drones/envs/BaseAviary.py index 4cb661250..d10645798 100755 --- a/gym_pybullet_drones/envs/BaseAviary.py +++ b/gym_pybullet_drones/envs/BaseAviary.py @@ -527,10 +527,8 @@ def _startVideoRecording(self): """ if self.RECORD and self.GUI: - VIDEO_FOLDER = os.path.join(self.OUTPUT_FOLDER, "recording_" + datetime.now().strftime("%m.%d.%Y_%H.%M.%S")) - os.makedirs(os.path.dirname(VIDEO_FOLDER), exist_ok=True) self.VIDEO_ID = p.startStateLogging(loggingType=p.STATE_LOGGING_VIDEO_MP4, - fileName=os.path.join(VIDEO_FOLDER, "output.mp4"), + fileName=os.path.join(self.OUTPUT_FOLDER, "video-"+datetime.now().strftime("%m.%d.%Y_%H.%M.%S")+".mp4"), physicsClientId=self.CLIENT ) if self.RECORD and not self.GUI: