Post subject: How to record synced control inputs + screenshots
TOHN
He/Him
Joined: 1/11/2017
Posts: 7
Hi, I would like to know that if it is possible to record the control input e.g. Input Log.txt in the .bk2 file which each record has a screenshot that syncs to it. If it is possible, how could I do that? I tried to record the .bk2 file along with AVI but it seems the frames from the AVI file don't sync with the records in the bk2 file. PS. I am very new to the Bizhawk and emulator world, I don't know if this is a very straightforward question, but I have tried to search for the solution. Thank you very much.
Post subject: Re: How to record synced control inputs + screenshots
Player (171)
Joined: 7/1/2016
Posts: 263
TOHN wrote:
I tried to record the .bk2 file along with AVI but it seems the frames from the AVI file don't sync with the records in the bk2 file.
Pause the emulator -> start movie replay (autopause on last frame) -> start avi recording -> unpause emulator -> movie will autostop on last frame -> stop avi recording This way it will be 100% sync edit: you can also record avi with frame counter, input display and other stuff
Amaraticando
It/Its
Editor, Player (159)
Joined: 1/10/2012
Posts: 673
Location: Brazil
From your post it's not clear what you want. Do you want a sequence of screenshots with input display? Or a video with input display? In any case, this should do the job: 1) Go to the View menu and select what should appear on screen and where. 2) Go to File > AVI/WAV and select Capture OSD to make those drawings (and Lua drawings too) appear in the dumped video. 3) In the same place, go to Config and Record AVI/WAV. You can choose the video format and even the image sequence writer. 4) Go to Record AVI/WAV to start the job and to Stop AVI/WAV when you're done.
Post subject: Re: How to record synced control inputs + screenshots
TOHN
He/Him
Joined: 1/11/2017
Posts: 7
Koh1fds wrote:
TOHN wrote:
I tried to record the .bk2 file along with AVI but it seems the frames from the AVI file don't sync with the records in the bk2 file.
Pause the emulator -> start movie replay (autopause on last frame) -> start avi recording -> unpause emulator -> movie will autostop on last frame -> stop avi recording This way it will be 100% sync edit: you can also record avi with frame counter, input display and other stuff
Thank you very much. I still have some questions? 1. By start movie replay, you mean start record movie (.bk2 file)? 2. After the unpause emulator is when I play the game? 3. How to indicate the last frame? let's say I want to stop recording at this point so I just go to menu and select save AVI? Thanks again
TOHN
He/Him
Joined: 1/11/2017
Posts: 7
Amaraticando wrote:
From your post it's not clear what you want. Do you want a sequence of screenshots with input display? Or a video with input display? In any case, this should do the job: 1) Go to the View menu and select what should appear on screen and where. 2) Go to File > AVI/WAV and select Capture OSD to make those drawings (and Lua drawings too) appear in the dumped video. 3) In the same place, go to Config and Record AVI/WAV. You can choose the video format and even the image sequence writer. 4) Go to Record AVI/WAV to start the job and to Stop AVI/WAV when you're done.
Hi. thank you for answering. I want screenshots which syncs to the records in "Input Log.txt" file of the .bk2. Edit: I don't want screenshot with overlayed text because I would like to use the pure screenshots to train my bot.
Post subject: Re: How to record synced control inputs + screenshots
Player (171)
Joined: 7/1/2016
Posts: 263
TOHN wrote:
1. By start movie replay, you mean start record movie (.bk2 file)? 2. After the unpause emulator is when I play the game? 3. How to indicate the last frame? let's say I want to stop recording at this point so I just go to menu and select save AVI? Thanks again
1.2 It's better to make .bk2 file first. You start the emulator. You pause it. You open the rom. You start .bk2 file recording. You unpause the emulator and plays the game. After you record what you want - you stops the .bk2 file recording. Now you can use that bk2 file to do whatever you want. Record avi, make screenshots everything. 3. You just select those when you starts movie replay. So if you pause emulator before you starts bk2 movie replay - you have unlimited time to go avi record menu and starts recording. After you do everything - you unpase emulator and now it starts bk2 movie replay from frame #0 and at the same time it starts avi record (so it would frame #0 in avi file). Then if you select in movie replay to stop on last frame - you have unlimited time to stop avi recording after movie ends. That will give you exactly frame to frame bk2 file and avi file
TOHN
He/Him
Joined: 1/11/2017
Posts: 7
Thank you very much @Koh1fds and @Amaraticando. Now I can create perfectly synced screenshots and Input Log. +image sequence writer +display frame counter +@Koh1fd's latest post Thanks again.