Update to latest version.
Not sure what to do with the sample since:
a. you wrote that you fed Hybrid with an mkv (the attached is a mov)
b. the sample is too short (800ms) to see any sync issues.
Reading that you cut the file before processing it with Hybrid: Does the problem also happen if you process the uncut file with Hybrid?
Looking at the debug output, I noticed, that the MediaInfo output reports:
Code:
Delay : 0
Delay : 00:00:00.000
Delay : 00:00:00:00
Delay : 00:00:00.000 (00:00:00:00)
Delay, origin : Container
Delay, origin : Container
Delay_Original : 1520
Delay_Original : 1 s 520 ms
Delay_Original : 1 s 520 ms
Delay_Original : 1 s 520 ms
Delay_Original : 00:00:01.520
Delay_Original : 00:00:01:13
Delay_Original : 00:00:01.520 (00:00:01:13)
Delay_Original_DropFrame : No
Delay_Original_Source : Stream
Time code of first frame : 00:00:01:13
So container reports a delay of 0ms while the video stream itself report 1520ms, which seems strange.
The Audio stream reports a delay of 40ms to the video and will turn into -3ms delay due to the aac encoder delay.
This is the only delay Hybrid cares about and later uses:
Code:
mkvmerge --ui-language en -o "C:\Users\Darek\Documents\2024-10-01@23_48_30_7510__07.mkv" --global-tags "C:\Users\Darek\AppData\Local\Temp\mkvtags_2024-10-01@23_48_30_7510__07.xml" -d 0 --default-track 0:yes --color-matrix-coefficients 0:5 --color-range 0:1 --color-transfer-characteristics 0:1 --color-primaries 0:5 --track-name 0:"Core Media Video" --default-duration "0:50/1fps" --aspect-ratio-factor 0:16/15 --fourcc 0:MP4V --no-chapters --compression -1:none --forced-track 0:yes --field-order 0:0 --no-audio --no-subtitles "C:\Users\Darek\AppData\Local\Temp\2024-10-01@23_48_30_7510_05.264" --track-name 0:"Core Media Audio" --default-track 0:yes --sync 0:-3 --forced-track 0:no -a 0 --compression -1:none --no-video --no-subtitles --no-chapters "C:\Users\Darek\AppData\Local\Temp\iId_2_aid_0_DELAY_-3ms_2024-10-01@23_48_30_7510_02.aac" --track-order 0:1,1:2
The used scripts and calls look fine to me, can't see any issues, error messages or warnings.
Only thing that I noticed it that Hybrid assumes the output to have 172612 frames, but x264 reports to have encoded 177516 frames.(which is ~98 seconds), so my suspicion is that there is some problem decoding the source.
A few things come to mind that you can test:
- if you set Video&Audio processing to passthrough and just remux the file, is it still sync?
- if the Vapoursynth Preview shows the expected number of frames (I suspect not). Does this change if you use another decoder? (FFMS2 or Bestsource?)
- if you use your setting and additionally enable "Config->Input->Decoding->CFR output", does that help with the sync issue?
- if you use some elaborate 'monster' antivirus suite, try whether it helps to disable it.
If that does not help, share a sample of the source that you feed into Hybrid, which allows reproducing the issue. (Test with that sample before sharing it. You can upload the file, for example, to GoogleDrive or similar and share a link here or via pm.)
Cu Selur