FFmpeg records A/V just a little out of sync

Hello,

RetroArch (mupen64plus core) FFmpeg records audio and video just a little out of sync. video came later than audio. but gameplay is fine. Do you have any solution?

RetroArch : v.1.0.0.2 libretro : mupen64plus command line : retroarch -L libretro/mupen64plus_libretro.dll --record records/record.mkv --recordconfig records/config.cfg “roms/n64/Wave Race 64 (J) [!].zip”

Added the following to default settings. [retroarch.cfg] video_gpu_record = “true”

[records/config.cfg] vcodec = libx264rgb acodec = flac sample_rate = 48000 threads = 0 video_preset = ultrafast

[.retroarch-core-options.cfg] mupen64-framerate = “fullspeed” (original: audio and video are not synchronized after recording.)

Thanks :slight_smile:

Mupen might not be reporting the exact correct refresh rates. You might be able to remux the mkv with exact refresh rate to fix it, but dunno.

Thank you for your reply :slight_smile:

I added approximately 333ms delay audio track during muxing. The results are that the problem this time has been resolved.