diff --git a/src/emu/recording.cpp b/src/emu/recording.cpp index a395aaabcfb..6613b069b90 100644 --- a/src/emu/recording.cpp +++ b/src/emu/recording.cpp @@ -179,8 +179,8 @@ bool avi_movie_recording::initialize(running_machine &machine, std::unique_ptrframe_period().as_hz() : screen_device::DEFAULT_FRAME_RATE); - info.video_sampletime = 1000; + info.video_timescale = 0x3fff'fffc; // multiple of 60, for screenless machines + info.video_sampletime = screen() ? screen()->frame_period().as_ticks(info.video_timescale) : 0x0111'1111; info.video_numsamples = 0; info.video_width = width; info.video_height = height; @@ -195,7 +195,7 @@ bool avi_movie_recording::initialize(running_machine &machine, std::unique_ptr