Post subject: SNES9x 1.52 in-game audio/video desync on AVI recording
Joined: 11/3/2010
Posts: 3
Whenever I try to directly record an AVI movie, the in-game audio and video seem to slowly desync so that after a few minutes, there is evident A/V desync where I believe the audio is playing ahead of the video. This only gets worse with longer recordings. I can do a movie file, but that requires twice as much time to create the final AVI file and the emulator can crash at random when replaying the smv file. What audio/video settings, codecs, etc can I try to use to avoid A/V desyncing when I directly record an AVI? Thanks.
Editor, Expert player (2073)
Joined: 6/15/2005
Posts: 3282
Which settings are you using for audio/video codecs? In general, some types of codecs don't work well. I recommend using H264 lossless from ffdshow, because that works in general for me. Not that I've tested on Snes9x v1.52, however.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
The issue is in sample rate. Set SNES9x to 44kHz or 48kHz. That should fix the sync issues.
Active player (279)
Joined: 4/30/2009
Posts: 791
It might just be you are using the default sound setting. SNES games use 32 kHz, which is the default setting on the emulator, but that is a problem with getting audio/video to sync. Try setting the sound to 48 kHz and recording again, it should sync. If I can get DKC3 encode to sync @ 48 kHz, I'm sure you can too.
Emulator Coder, Skilled player (1113)
Joined: 5/1/2010
Posts: 1217
Note that H.264 lossless isn't truly lossless because it has lower chroma resolution. Not a big issue if you are not going to resize it, but if you are, the result is going to be quite bad. If you are looking at resizing the result, use some type of lossless RGB codec (FFV1, Lagarith, Camstudio or even uncompressed) when dumping.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
Ilari wrote:
Note that H.264 lossless isn't truly lossless because it has lower chroma resolution. Not a big issue if you are not going to resize it, but if you are, the result is going to be quite bad. If you are looking at resizing the result, use some type of lossless RGB codec (FFV1, Lagarith, Camstudio or even uncompressed) when dumping.
We would prefer that you dump to RGB anyway, so that more advanced YV12 reduction algorithms can be used.