Hi, I've found an issue with the MKV encoder. The point of using the MKV container is that it doesn't require a finalizing process, so in case of crash, bsod, etc the video isn't corrupted. This is important as my goal is to record a live podcast that can't be re-recorded. MKV also supports uncompressed audio stream.
The issue is that OBS doesn't record the FPS values correctly in MKV while it's working perfectly in MP4. I've even remuxed my MKV files to MP4 using ffmpeg and the correct timecode comes back after remux is done. Pretty strange...
MKV(x264/pcm_s24le) - 59.94 FPS
https://www84.zippyshare.com/v/wMcyNFeY/file.html
MKV(x264/pcm_s24le) - 60 FPS
https://www84.zippyshare.com/v/N44PIPZS/file.html
MP4(x264/aac) - 59.94 FPS
https://www84.zippyshare.com/v/wMcyNFeY/file.html
MP4(x264/aac) - 60 FPS
https://www84.zippyshare.com/v/Fh3sKuzq/file.html
As you can see the framerate isn't respected recording in MKV format where 59.94 FPS ends up as 60 FPS and 60 FPS ends up as 60.119 FPS.
Thank you for the person who'll explain me the science behind this intriguing behavior!
The issue is that OBS doesn't record the FPS values correctly in MKV while it's working perfectly in MP4. I've even remuxed my MKV files to MP4 using ffmpeg and the correct timecode comes back after remux is done. Pretty strange...
MKV(x264/pcm_s24le) - 59.94 FPS
https://www84.zippyshare.com/v/wMcyNFeY/file.html
Format profile : High@L4.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 min 0 s
Bit rate : 9 374 kb/s
Nominal bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Full MediaInfo https://pastebin.com/Ctkv1vAw
MKV(x264/pcm_s24le) - 60 FPS
https://www84.zippyshare.com/v/N44PIPZS/file.html
Format profile : High@L4.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 min 0 s
Bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.119 FPS
Full MediaInfo https://pastebin.com/zSRRccYZ
MP4(x264/aac) - 59.94 FPS
https://www84.zippyshare.com/v/wMcyNFeY/file.html
Format profile : High@L4.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 min 0 s
Bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Full MediaInfo https://pastebin.com/BkshFD6N
MP4(x264/aac) - 60 FPS
https://www84.zippyshare.com/v/Fh3sKuzq/file.html
Format profile : High@L4.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 min 0 s
Bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Full MediaInfo https://pastebin.com/GcwJSZPU
As you can see the framerate isn't respected recording in MKV format where 59.94 FPS ends up as 60 FPS and 60 FPS ends up as 60.119 FPS.
Thank you for the person who'll explain me the science behind this intriguing behavior!