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.

No A/V/ delay taken into account
#11
Sorry, but that is not detailed enough for me to reproduce it.
Hybrid will take the delay you set and adjust it to compensate the delay of the encoder.
I wrote how you can check what delay is used in the audio queue.
A delay of 1000ms after encoding sounds like the source is buggy and either audio or audio&video couldn't be properly decoded.

Cu Selur
Reply
#12
New tests done, as I mentionned previously.

A source file with 0 delay is correctly encoded (video and audio). The audio is not out of sync. All is OK.

When I encode one more time the same source file, but with a 1000 ms delay specified in the frontend (of course, I delete the audio by clicking on -, and click on the + after I changed the delay), there is no delay between the audio and the video in the outpout file reencoded.

So I think that hybrid MacOS version does not read the delay in the frontend, and always takes what it is written in the source file (in principle, it is enough, but sometimes, you have to specify a delay because nothing is written in the metadata for te A/V sync, or is wrong).

I am looking forward to hearing from you, and what you propose.

Best regards,

(22.09.2021, 21:30)frederic Wrote: New tests done, as I mentionned previously.

A source file with 0 delay is correctly encoded (video and audio). The audio is not out of sync. All is OK.

When I encode one more time the same source file, but with a 1000 ms delay specified in the frontend (of course, I delete the audio by clicking on -, and click on the + after I changed the delay), there is no delay between the audio and the video in the outpout file reencoded.

So I think that hybrid MacOS version does not read the delay in the frontend, and always takes what it is written in the source file (in principle, it is enough, but sometimes, you have to specify a delay because nothing is written in the metadata for te A/V sync, or is wrong).

I am looking forward to hearing from you, and what you propose.

Best regards,

I tested another source file, different of the previous one I used ...
Reply
#13
Quote:I am looking forward to hearing from you, and what you propose.
Since I can't produce this here at all, do the following with your 1000ms source:
  1. Start Hybrid.
  2. Set either a default output folder or an output file to a folder or your choice.
  3. Enable the debug output.
  4. Load your source.
  5. Set "Base->Audio->Processing" to "Custom".
  6. Enable "Audio->Base->Audio Encoding".
  7. Configure the audio settings according to your preferences. (setting compression, adjusting delay)
  8. Press "Audio->Base->Add current".
  9. Rename the HybridDebugOutput.txt to 'HybridDebugOutput_1.txt' and zip compress that file.
  10. Configure the Video Settings according to your preferences.
  11. Set and output file if you haven't done it so inside the folder you chose before.
  12. Press "Base->Add to Queue"
  13. Rename the HybridDebugOutput.txt to 'HybridDebugOutput_2.txt' and zip compress that file.
  14. Start the job processing.
  15. Once it finished, rename the HybridDebugOutput.txt to 'HybridDebugOutput_2.txt' and zip compress that file.
  16. Answer this post and attach the three HybridDebugOutput_X.zip files to that post.

Cu Selur
Reply
#14
(23.09.2021, 05:06)Selur Wrote:
Quote:I am looking forward to hearing from you, and what you propose.
Since I can't produce this here at all, do the following with your 1000ms source:
  1. Start Hybrid.
  2. Set either a default output folder or an output file to a folder or your choice.
  3. Enable the debug output.
  4. Load your source.
  5. Set "Base->Audio->Processing" to "Custom".
  6. Enable "Audio->Base->Audio Encoding".
  7. Configure the audio settings according  to your preferences. (setting compression, adjusting delay)
  8. Press "Audio->Base->Add current".
  9. Rename the HybridDebugOutput.txt to 'HybridDebugOutput_1.txt' and zip compress that file.
  10. Configure the Video Settings according  to your preferences.
  11. Set and output file if you haven't done it so inside the folder you chose before.
  12. Press "Base->Add to Queue"
  13. Rename the HybridDebugOutput.txt to 'HybridDebugOutput_2.txt' and zip compress that file.
  14. Start the job processing.
  15. Once it finished, rename the HybridDebugOutput.txt to 'HybridDebugOutput_2.txt' and zip compress that file.
  16. Answer this post and attach the three HybridDebugOutput_X.zip files to that post.

Cu Selur

Procedure carried out.
Here you'll find all outputs as you wish. Hope this helps. The video has a delay of 1000ms, even if 0 was specified.

Frédéric
Reply
#15
Looking at HybridDebugOutput_1:
2021.09.23 - 08:33:35_macOS 10.15 (64bit)_2021.07.18.1 - level 9: adding(1): /Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv;0;aac;6;bitrate;192;FDK;low complexity;48000;3.00;fr;-50;7966.080;ac3;0;0;toStereo (dpl2);;false;;false;2;false;;;;false;false;;;false;48000;0;ac-3;;false;true;false;3/2/0.1;1/1;;0;0;;None;54:_:15;10;20;0;1000;;false;;pcm;false;1;;;;;;16;-n;4;GPU;NVIDIA CUDA;;6;false;/Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv;true;false;;;false;2;;;-1;
-> delay is set to -50 (due to encoder delay), so far everything looks correct.

Looking at HybridDebugOutput_2:

Audio extraction call:
mkvextract tracks "/Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv" 0:"/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_01.ac3"
looks correct.

Audio encoding call:
ffmpeg -y -threads 4 -loglevel fatal -nostdin -i "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_01.ac3" -t 02:12:06.635 -ac 6 -ar 48000 -f sox - | sox --multi-threaded  --temp "/Users/Famille/Films-Apple/2021-09-23@08_35_14_511001" --buffer 524288 -S -t sox - -b 16 -t wav - remix -m 1v0.3254,3v0.2301,5v0.2818,6v0.1627 2v0.3254,3v0.2301,5v-0.1627,6v-0.2818 gain -n 3.00 | fdkaac --bitrate 192000 --profile 2 --transport-format 0 --gapless-mode 2 --ignorelength -o "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_02.aac" -
looks fine too.

Muxing call:
MP4Box -add "/Users/Famille/Films-Apple/2021-09-23@08_35_14_5110_04.264"#video:fps=24000/1001:delay=50:name="":lang="" -brand avc1 -add "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_ms_2021-09-23@08_35_14_5110_02.aac"#audio:name="":lang="fr" -mpeg4 -itags tool="Hybrid 2021.07.18.1" -tmp "/Users/Famille/Films-Apple" -new "/Users/Famille/Films-Apple/_JOBID.mp4"
Looks fine too. (-50ms -> video is delayed by 50ms)

Looking through HybridDebugOutput_3 there are no error or similar that would explain the problem.

All the calls look fine.

Have you another source? Might be an issue with the source file.
-> If you enable "Config->Automation->On Load->Always extact time codes from input" before loading the source Hybrid will extract the time codes and check whether they indicate that the source is vfr even when MediaInfo reports the source as cfr.
Ignored time codes could be an issue, other than that I see no problem in the way Hybrid is processing the source.


Cu Selur
Reply
#16
(23.09.2021, 17:10)Selur Wrote: Looking at HybridDebugOutput_1:
2021.09.23 - 08:33:35_macOS 10.15 (64bit)_2021.07.18.1 - level 9: adding(1): /Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv;0;aac;6;bitrate;192;FDK;low complexity;48000;3.00;fr;-50;7966.080;ac3;0;0;toStereo (dpl2);;false;;false;2;false;;;;false;false;;;false;48000;0;ac-3;;false;true;false;3/2/0.1;1/1;;0;0;;None;54:_:15;10;20;0;1000;;false;;pcm;false;1;;;;;;16;-n;4;GPU;NVIDIA CUDA;;6;false;/Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv;true;false;;;false;2;;;-1;
-> delay is set to -50 (due to encoder delay), so far everything looks correct.

Looking at HybridDebugOutput_2:

Audio extraction call:
mkvextract tracks "/Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv" 0:"/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_01.ac3"
looks correct.

Audio encoding call:
ffmpeg -y -threads 4 -loglevel fatal -nostdin -i "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_01.ac3" -t 02:12:06.635 -ac 6 -ar 48000 -f sox - | sox --multi-threaded  --temp "/Users/Famille/Films-Apple/2021-09-23@08_35_14_511001" --buffer 524288 -S -t sox - -b 16 -t wav - remix -m 1v0.3254,3v0.2301,5v0.2818,6v0.1627 2v0.3254,3v0.2301,5v-0.1627,6v-0.2818 gain -n 3.00 | fdkaac --bitrate 192000 --profile 2 --transport-format 0 --gapless-mode 2 --ignorelength -o "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_02.aac" -
looks fine too.

Muxing call:
MP4Box -add "/Users/Famille/Films-Apple/2021-09-23@08_35_14_5110_04.264"#video:fps=24000/1001:delay=50:name="":lang="" -brand avc1 -add "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_ms_2021-09-23@08_35_14_5110_02.aac"#audio:name="":lang="fr" -mpeg4 -itags tool="Hybrid 2021.07.18.1" -tmp "/Users/Famille/Films-Apple" -new "/Users/Famille/Films-Apple/_JOBID.mp4"
Looks fine too. (-50ms -> video is delayed by 50ms)

Looking through HybridDebugOutput_3 there are no error or similar that would explain the problem.

All the calls look fine.

Have you another source? Might be an issue with the source file.
-> If you enable "Config->Automation->On Load->Always extact time codes from input" before loading the source Hybrid will extract the time codes and check whether they indicate that the source is vfr even when MediaInfo reports the source as cfr.
Ignored time codes could be an issue, other than that I see no problem in the way Hybrid is processing the source.


Cu Selur

Yes, everything looks fine. I agree.

I did the same test with another source file (I mentioned it previously, see above),since this source file could be corrupted. With another source file, without delay (delay 0 in the metadata), the encoded video is fine with 0 as A/V delay; this video reencoded with 1000 ms of delay produces a file without delay, like the file with 0 delay. So it seems as if the field "A/V delay" is not read in the frontend, and takes what is is written in the metadata, when loading the source file at the very beginning.

I will test the tip you gives just here. I will come back again.

BR
Reply
#17
Hmm,.. might be a mixup.
The clip as two streams.

Audio #1 with:
Delay                                    : 1000
Delay                                    : 1 s 0 ms
Delay                                    : 1 s 0 ms
Delay                                    : 1 s 0 ms
Delay                                    : 00:00:01.000
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 1000
Delay relative to video                  : 1 s 0 ms
Delay relative to video                  : 1 s 0 ms
Delay relative to video                  : 1 s 0 ms
Delay relative to video                  : 00:00:01.000

Audio #2 with:
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 0
Delay relative to video                  : 00:00:00.000
Looks like there's a mixup somewhere.
Can you provide a small sample which allows to reproduce the issue?

Cu Selur
Reply
#18
Please, check what "Base->Show All Data" reports about the input.
Hmmm,... it might be that the encoder Delay overwrites instead of adjusts the input delay.
-> looking into it. Smile

=> nope that's not it. Need a sample to reproduce this.

Cu Selur
Reply
#19
(23.09.2021, 17:27)frederic Wrote:
(23.09.2021, 17:10)Selur Wrote: Looking at HybridDebugOutput_1:
2021.09.23 - 08:33:35_macOS 10.15 (64bit)_2021.07.18.1 - level 9: adding(1): /Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv;0;aac;6;bitrate;192;FDK;low complexity;48000;3.00;fr;-50;7966.080;ac3;0;0;toStereo (dpl2);;false;;false;2;false;;;;false;false;;;false;48000;0;ac-3;;false;true;false;3/2/0.1;1/1;;0;0;;None;54:_:15;10;20;0;1000;;false;;pcm;false;1;;;;;;16;-n;4;GPU;NVIDIA CUDA;;6;false;/Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv;true;false;;;false;2;;;-1;
-> delay is set to -50 (due to encoder delay), so far everything looks correct.

Looking at HybridDebugOutput_2:

Audio extraction call:
mkvextract tracks "/Users/Famille/Downloads/The.Suicide.Squad.2021.MULTi.TRUEFRENCH.1080p.WEB.H264.WwW.ZoNe-TelecharGement.CaM (1).mkv" 0:"/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_01.ac3"
looks correct.

Audio encoding call:
ffmpeg -y -threads 4 -loglevel fatal -nostdin -i "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_01.ac3" -t 02:12:06.635 -ac 6 -ar 48000 -f sox - | sox --multi-threaded  --temp "/Users/Famille/Films-Apple/2021-09-23@08_35_14_511001" --buffer 524288 -S -t sox - -b 16 -t wav - remix -m 1v0.3254,3v0.2301,5v0.2818,6v0.1627 2v0.3254,3v0.2301,5v-0.1627,6v-0.2818 gain -n 3.00 | fdkaac --bitrate 192000 --profile 2 --transport-format 0 --gapless-mode 2 --ignorelength -o "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_DELAY_-50ms_2021-09-23@08_35_14_5110_02.aac" -
looks fine too.

Muxing call:
MP4Box -add "/Users/Famille/Films-Apple/2021-09-23@08_35_14_5110_04.264"#video:fps=24000/1001:delay=50:name="":lang="" -brand avc1 -add "/Users/Famille/Films-Apple/iId_1_aid_0_lang_fr_ms_2021-09-23@08_35_14_5110_02.aac"#audio:name="":lang="fr" -mpeg4 -itags tool="Hybrid 2021.07.18.1" -tmp "/Users/Famille/Films-Apple" -new "/Users/Famille/Films-Apple/_JOBID.mp4"
Looks fine too. (-50ms -> video is delayed by 50ms)

Looking through HybridDebugOutput_3 there are no error or similar that would explain the problem.

All the calls look fine.

Have you another source? Might be an issue with the source file.
-> If you enable "Config->Automation->On Load->Always extact time codes from input" before loading the source Hybrid will extract the time codes and check whether they indicate that the source is vfr even when MediaInfo reports the source as cfr.
Ignored time codes could be an issue, other than that I see no problem in the way Hybrid is processing the source.


Cu Selur

Yes, everything looks fine. I agree.

I did the same test with another source file (I mentioned it previously, see above),since this source file could be corrupted. With another source file, without delay (delay 0 in the metadata), the encoded video is fine with 0 as A/V delay; this video reencoded with 1000 ms of delay produces a file without delay, like the file with 0 delay. So it seems as if the field "A/V delay" is not read in the frontend, and takes what is is written in the metadata, when loading the source file at the very beginning.

I will test the tip you gives just here. I will come back again.

BR

The tip did not solve the problem.

Do you have any idea to overcome this problem ? Is it due to the program that does not retrieve settings you give in parameters in command line?

BR
Reply
#20
What does "Base->Show All Data" report about the file, I supect that the file is correctly analysed, but there is a small bug/typo in Hybrid, but I need a sample to reproduce and debug this.

Quote:Do you have any idea to overcome this problem ?
Once I can reproduce it, I can fix it.

Cu Selur
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)