Audio out of sync with Videos

Rivas wrote on 12/23/2022, 4:34 PM

Guys, I have a very annoying problem with a glitch where the audio in the final rendered file is out of sync with the video, once I solved it by disabling the (So4 Compound Reader).

Now using VegasPro20 I saw that this option was removed from the internals. I heard that messing with the legacy settings would solve my problem, but it didn't.

The original file is perfect as well as the editor's timeline, checking with mediainfo the original file has a constant framerate without any changes, I already had a problem similar to this because of a file with a variable frame rate, but now it's not the case.

Please, I love Vegas and recently I bought the pro version 20, I don't want to change editors, I need to solve this, any knowledge you have please pass me on.

About the video, it's a gameplay recorded in OBS direct to mp4 recorded in CBR at 90000 Mbps, key frame = 2.

That's it, if I can provide more information just ask.

Update: By exporting Videos AVC h264 with legacy HEVC enabled and exporting in HEVC, the out-of-sync issue is resolved.

Comments

RogerS wrote on 12/23/2022, 7:50 PM

Enable legacy AVC disables so4compound reader.

Can you share MediaInfo for the source file?

Rivas wrote on 12/23/2022, 8:29 PM

Ativar AVC herdado desabilita o leitor so4compound.

Você pode compartilhar MediaInfo para o arquivo de origem?

Good evening, I just performed a rendering, and I did the following, I performed using the settings for HEVC and the problem disappeared. obs:some names will be in portuguese

Rivas wrote on 12/23/2022, 8:39 PM

What I do know is, the original file was recorded in constant CFR frames, using OBS exporting to mp4. I'm going to perform one more test, disabling legacy for HEVC and enabling for AVC, anyway, HEVC seems to have solved my problem.

Musicvid wrote on 12/23/2022, 9:08 PM

You appear to be using a hardware encoder in OBS. I would opt for software x264 if speed isn't a huge issue for you.

Rivas wrote on 12/23/2022, 9:20 PM

Você parece estar usando um codificador de hardware no OBS. Eu optaria por software x264 se a velocidade não é um grande problema para você.

but what would be the possible explanation? Within OBS I use AMD AVC h264, what's the difference for the file when using x264? what is more bizarre is that in the past disabling SO4 solved this type of problem.

Rivas wrote on 12/24/2022, 8:22 AM

Você parece estar usando um codificador de hardware no OBS. Eu optaria por software x264 se a velocidade não é um grande problema para você.

but what would be the possible explanation? Within OBS I use AMD AVC h264, what's the difference for the file when using x264? what is more bizarre is that in the past disabling SO4 solved this type of problem.

recording in x264 for me is horrible, no way! I depend on using my AMD video card, I know that AMD is not ideal for these cases, but it is very strange that even enabling the legacy for AVC the audio continues with this problem.

RogerS wrote on 12/24/2022, 8:30 AM

Share MediaInfo for both files and see what's different. https://www.vegascreativesoftware.info/us/forum/faq-how-to-post-mediainfo-and-vegas-pro-file-properties--104561/

Rivas wrote on 12/24/2022, 8:44 AM

Share MediaInfo for both files and see what's different. https://www.vegascreativesoftware.info/us/forum/faq-how-to-post-mediainfo-and-vegas-pro-file-properties--104561/

Original:

Geral
Nome completo                            : D:\Youtube\Kenshi #15\2022-12-22 16-47-49.mp4
Formato                                  : MPEG-4
Perfil do Formato                        : Base Media
ID do Codec                              : isom (isom/iso2/avc1/mp41)
Tamanho do arquivo                       : 27.7 GiB
Duração                                  : 43 min 51s
Taxa de Bits Total, Modo                 : Variável
Taxa de Bits Total                       : 90.3 Mb/s
Programa usado                           : Lavf58.76.100

Vídeo
ID                                       : 1
Formato                                  : AVC
Formato/Informações                      : Advanced Video Codec
Perfil do Formato                        : High@L5.1
Conf. do Formato                         : CABAC / 1 Ref Frames
Conf do Formato, CABAC                   : Sim
Conf do Formato, Quadros de Ref.         : 1 quadro
Format settings, GOP                     : M=1, N=120
ID do Codec                              : avc1
ID do Codec/Informações                  : Advanced Video Coding
Duração                                  : 43 min 51s
Taxa de bits                             : 90.0 Mb/s
Largura                                  : 2 560 pixels
Altura                                   : 1 440 pixels
Proporção da imagem                      : 16:9
Modo de taxa de quadros                  : TConstante
Taxa de quadros                          : 59.940 (60000/1001) FPS
Padrão                                   : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Tipo de Scan                             : Progressivo
Bits/(Pixels*Quadros)                    : 0.407
Tamanho da Faixa                         : 27.6 GiB (100%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Áudio #1
ID                                       : 2
Formato                                  : AAC LC
Formato/Informações                      : Advanced Audio Codec Low Complexity
ID do Codec                              : mp4a-40-2
Duração                                  : 43 min 51s
Modo da taxa de bits                     : Variável
Taxa de bits                             : 179 kb/s
Taxa de bits máxima                      : 192 kb/s
Nº de canais                             : 2 canais
Channel layout                           : L R
Taxa de amostragem                       : 48.0 kHz
Taxa de quadros                          : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Tamanho da Faixa                         : 56.1 MiB (0%)
Título                                   : Desktop
Default                                  : Sim
Alternate group                          : 1

Áudio #2
ID                                       : 3
Formato                                  : AAC LC
Formato/Informações                      : Advanced Audio Codec Low Complexity
ID do Codec                              : mp4a-40-2
Duração                                  : 43 min 51s
Modo da taxa de bits                     : Variável
Taxa de bits                             : 109 kb/s
Taxa de bits máxima                      : 192 kb/s
Nº de canais                             : 2 canais
Channel layout                           : L R
Taxa de amostragem                       : 48.0 kHz
Taxa de quadros                          : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Tamanho da Faixa                         : 34.2 MiB (0%)
Título                                   : Microfone
Default                                  : Não
Alternate group                          : 1

----------------------------------------------------------------------------------------------------------------------------------------

The file with the problem, I deleted it yesterday, I'll make a new render and send it.

Musicvid wrote on 12/25/2022, 6:26 AM

Within OBS I use AMD AVC h264, what's the difference for the file when using x264? 

All hardware AVC encoders are horrible. They require at least double the bitrate to achieve even barely usable quality, but they are fast 😮. x264, a software encoder, is not horrible, but it may need some tweaking to keep up with gameplay. Your other alternative is hardware HEVC, which is slightly less horrible.

That's the takeaway, as I see it.

Musicvid wrote on 12/25/2022, 6:50 AM

Here's my lean x264 preset in OBS. Curious to see how it works for you. Pay attention to the x264 parameters, they must have perfect syntax.

That said, I haven't played games on my computer since I had Stella on a 486 😏

Rivas wrote on 12/25/2022, 9:59 AM

well, using HEVC solved my problem, that's very strange, but in the end, I believe that's my way out, using x264 for me is a problem, despite using a good processor, I need it totally dedicated to the game.

Musicvid wrote on 12/25/2022, 12:51 PM

Not strange at all. It's a choice many game players make.