Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

还有一个问题,怎么关闭test.py,怎么录制视频? #49

Open
aijunzhao opened this issue Apr 26, 2023 · 2 comments
Open

还有一个问题,怎么关闭test.py,怎么录制视频? #49

aijunzhao opened this issue Apr 26, 2023 · 2 comments

Comments

@aijunzhao
Copy link

有人知道吗

@aijunzhao
Copy link
Author

注 2:如果想要录制智能代理的对战视频,还需要安装 ffmpeg

conda install ffmpeg

已经安装,怎么录制呢?完全代码小白,该怎么录制

@Datou
Copy link

Datou commented May 1, 2023

我使用的方法是先生成一个纯文本的bk2录像文件,然后再把这个文件渲染成视频。

优点有两个,一是关闭画面渲染对战速度会更快,二是利用bk2渲染视频可以得到声音。

生成bk2录像很简单,在retro.make里加上一个record='.'
retro.make(game='StreetFighterIISpecialChampionEdition-Genesis', use_restricted_actions=retro.Actions.FILTERED, record='.')

从bk2渲染视频也很简单,一条命令行搞定
python3.8 -m retro.scripts.playback_movie StreetFighterIISpecialChampionEdition-Genesis-Champion.Level1.RyuVsGuile-000014.bk2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants