allenai / allenai/ai2thor

How to generate a video

Abierto
#498 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C#
Estrellas
1.8k
Forks
296
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

I find that there is no document or tutorial which shows how to generate a video. I can get the frames after each event and then merge to a video, but it's choppy. Or I can use a screen recording software to record a video from the renderer, but the actions (such as move ahead, rotate and pick up something etc) perform suddenly.

Is there another way to generate a video? I find a file called "video controller.py", but when I run the following code, some errors occur:

from ai2thor.controller import VideoController
with VideoController() as vc:
vc.play(vc.MoveAhead())
vc.wait(5)
vc.play(vc.MoveAhead())
vc.exportVideo('thor.mp4')

And if I want to get a smooth video, what should I do?

Thank you!

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.