This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] Hybrid introducing audio delay that is not present in source material
#53
(12.10.2021, 17:20)Selur Wrote: As far as I know that argument is only correct if you keep the timing of the source, which does not work with Hybrid since it demuxes audio&video the the time stamps in the output container are created by the muxer.
So I don't think Hybrid is doing anything wrong.
-> If you think otherwise simply disable the option. Smile

Cu Selur

I created a short (6 sec) test avi file (24 fps) where the sound (PCM) starts exactly at the 2nd sec.
I encoded it (x264) directly with ffmpeg using: -c:a aac -b:a 192k
Then I encoded it with Hybrid again with AAC audio using 192k.

As usual Hybrid introduced the -43 ms delay:
iId_2_aid_1_DELAY_-43ms_2021-10-13@01_30_17_6910_01.wav

However, the offsets of the audio in both mp4 files are different.
Also, MediaInfo and ffprobe give different info.
The ffmpeg file: Duration: 6 s 0 ms, Source duration: 6 s 21 ms, Source_Duration_LastFrame: -16 ms
The Hybrid file: Duration: 6 s 37 ms (!)

When imported back in the NLE, the ffmpeg audio seems 1 frame earlier, while the Hybrid audio seems 0.5 frame earlier. (See screenshot.)

If the offset formula used in Hybrid is correct, shouldn’t it produce the same audio offset as ffmpeg?

Here’s the MediaInfo for the audio streams of the 2 files:


ffmpeg Audio
ID                                      : 2
Format                                  : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                : mp4a-40-2
Duration                                : 6 s 0 ms
Source duration                          : 6 s 21 ms
Source_Duration_LastFrame                : -16 ms
Bit rate mode                            : Variable
Bit rate                                : 66.2 kb/s
Maximum bit rate                        : 192 kb/s / 192 kb/s
Channel(s)                              : 2 channels
Channel layout                          : L R
Sampling rate                            : 48.0 kHz
Frame rate                              : 46.875 FPS (1024 SPF)
Compression mode                        : Lossy
Stream size                              : 48.6 KiB (9%)
Source stream size                      : 48.6 KiB (9%)
Default                                  : Yes
Alternate group                          : 1
mdhd_Duration                            : 6000
Hybrid Audio
ID                                      : 2
Format                                  : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                : mp4a-40-2
Duration                                : 6 s 37 ms
Bit rate mode                            : Variable
Bit rate                                : 66.2 kb/s
Maximum bit rate                        : 192 kb/s
Channel(s)                              : 2 channels
Channel layout                          : L R
Sampling rate                            : 48.0 kHz
Frame rate                              : 46.875 FPS (1024 SPF)
Compression mode                        : Lossy
Stream size                              : 48.6 KiB (16%)
Encoded date                            : UTC 2021-10-12 22:30:36
Tagged date                              : UTC 2021-10-12 22:30:36


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: Hybrid introducing audio delay that is not present in source material - by 4i4oVi40 - 13.10.2021, 01:51

Forum Jump:


Users browsing this thread: 4 Guest(s)