13.10.2021, 01:51
(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.
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
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