Voukoder -- shifted audio

rgr wrote on 8/27/2022, 4:39 PM

Has no one noticed yet that the Voukoder soundtrack is slightly shifted?
Pictures below:
File 1: Original MTS from the camera
File 2: Voukoder rendered file
File 3: Mediaconcept AVC rendered file

You can see that the audio in file 2 is sped up by 1.5 frames (i.e. about 0.02s = 2ms)

This is, of course, an unnoticeable glitch, but a bit of an annoying.

Comments

Gid wrote on 8/27/2022, 4:54 PM

@rgr Hi n yeah, interesting, i can't say why, sure somebody will know

Voukoder 4:2:0 8 bit H.264 (NVIDIA NVENC) Good Quality (Recommended) on the left

Voukoder on the 3rd & 4th tracks

Vegas Pro 21 
Magix Movie Studio Platinum 2024 - from 2004-ish - Latest version,
Magix VPX14
Boris Continuum & Sapphire, 
Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 
Boris Optics,
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans
Dell SE3223Q 31.5 Inch 4K UHD (3840x2160) Monitor, 60Hz, 

I'm 55, I've been a UK joiner for 39yrs, apprentice trained & time served, I make videos about my work & post them on Youtube so that I can share what I've learnt over the yrs,
https://www.youtube.com/c/Gidjoiner

At the moment my filming is done with a Samsung Galaxy S23 Ultra 

wwaag wrote on 8/27/2022, 6:48 PM

This was an issue when Voukoder was first launched. A similar issue can be found when using Handbrake for transcoding since they both use FFmpeg libraries. Having said that, I thought the problem had been fixed in later builds.

Because of this issue and differences in formats, I have included an option in most HOS rendering tools to adjust audio offset as shown in this example.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Gid wrote on 8/27/2022, 8:45 PM

@wwaag 👍 When i've got some cash i'll buy, everything's tied up a bit in a job I'm on 👍

Vegas Pro 21 
Magix Movie Studio Platinum 2024 - from 2004-ish - Latest version,
Magix VPX14
Boris Continuum & Sapphire, 
Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 
Boris Optics,
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans
Dell SE3223Q 31.5 Inch 4K UHD (3840x2160) Monitor, 60Hz, 

I'm 55, I've been a UK joiner for 39yrs, apprentice trained & time served, I make videos about my work & post them on Youtube so that I can share what I've learnt over the yrs,
https://www.youtube.com/c/Gidjoiner

At the moment my filming is done with a Samsung Galaxy S23 Ultra 

john_dennis wrote on 8/27/2022, 11:14 PM

My past analysis.

https://www.vegascreativesoftware.info/us/forum/vegas-pro-voukoder-11-audio-sync-analysis--135046/#ca842998

 

My main system:
Motherboard: ASUS ProArt Z790-CREATOR WIFI
CPU: Intel Core i9-13900K - Core i9 13th Gen Raptor Lake 24-Core (8P+16E) P-core Base Frequency: 3.0 GHz E-core Base Frequency: 2.2 GHz LGA 1700 125W Intel UHD Graphics 770 Desktop Processor - BX8071513900K
GPU: Currently intel on-die video adapter
RAM: CORSAIR Vengeance 64GB (2 x 32GB) 288-Pin PC RAM DDR5 5600 (PC5 44800) Desktop Memory Model CMK64GX5M2B5600C40
Disk O/S & Programs: WD Black SN850 NVMe SSD WDS100T1X0E - SSD - 1 TB - PCIe 4.0 x4 (NVMe)
Disk Active Projects: 1TB & 2TB WD BLACK SN750 NVMe Internal PCI Express 3.0 x4 Solid State Drives
Disk Other: WD Ultrastar/Hitachi Hard Drives: WDBBUR0080BNC-WRSN, HGST HUH728080ALE600, 724040ALE640, HDS3020BLA642
Case: LIAN LI PC-90 Black Aluminum ATX Full Tower Case
CPU cooling: CORSAIR - iCUE H115i RGB PRO XT 280mm Radiator CPU Liquid Cooling System
Power supply: SeaSonic SS-750KM3 750W 80 PLUS GOLD Certified Full Modular Active PFC Power Supply
Drive Bay: Kingwin KF-256-BK 2.5" and 3.5" Trayless Hot Swap Rack with USB 3
Sound card: Realtek S1220A on motherboard. Recording done on another system.
Primary Monitor: ASUS ProArt 31.5" 1440p HDR10 Monitor PA328QV
O/S: Windows 10 Pro 10.0.19045 Build 19045
Camera: Sony RX10 Model IV

https://www.youtube.com/user/thedennischannel

Magix Service Center

https://www.vegascreativesoftware.info/us/forum/mpg-file-sound-track-absent-on-timeline--135335/#ca895123

View Reliability History

https://www.vegascreativesoftware.info/us/forum/not-responding--142806/#ca893148

RogerS wrote on 8/28/2022, 2:54 AM

I also thought the Voukoder author concluded that the issue was when the files are brought back in to Vegas so there wasn't going to be a fix on that end.

Maybe we'll get a manual audio offset option in Vegas for such files.

Custom PC (2022) Intel i5-13600K with UHD 770 iGPU with latest driver, MSI z690 Tomahawk motherboard, 64GB Corsair DDR5 5200 ram, NVIDIA 2080 Super (8GB) with latest studio driver, 2TB Hynix P41 SSD, Windows 11 Pro 64 bit

Dell XPS 15 laptop (2017) 32GB ram, NVIDIA 1050 (4GB) with latest studio driver, Intel i7-7700HQ with Intel 630 iGPU (latest available driver), dual internal SSD (256GB; 1TB), Windows 10 64 bit

VEGAS Pro 19.651
VEGAS Pro 21.108

VEGAS 4K "sample project" benchmark: https://forms.gle/ypyrrbUghEiaf2aC7
VEGAS Pro 20 "Ad" benchmark: https://forms.gle/eErJTR87K2bbJc4Q7

rgr wrote on 8/28/2022, 3:54 AM

My past analysis.

https://www.vegascreativesoftware.info/us/forum/vegas-pro-voukoder-11-audio-sync-analysis--135046/#ca842998

 

 

I turned on the "AVC legacy decoder" and the problem is actually gone https://imgur.com/a/gKzGWjb

BUT

I decided to check the files in DaVinci Resolve as well. And here is the real surprise (look @ attachment)
1. You can't see it in the picture, but both paths are synchronized perfectly.
2. But the first 20 seconds of audio from the Voukoder file are "missing"!
a) but only the graph is missing - the sound is actually playing!
b) but it isn't played from the beginning - less than the first second is missing (it is exactly played from frame 58 - from the red line in the picture)
(Summarizing: frames 0-57 - no graph and no audio, frame 58 to ~20s - only the graph is missing, sound is playing, from 20s - everything is ok)

There may be a problem with the new decoder in Vegas, but it looks like the encoder in Voukoder is just causing some problems for other programs.

(Edit: I corrected the wrong attachment)

3POINT wrote on 8/28/2022, 4:18 AM

As I use Voukoder only for final renders, which play absolutely in-sync on my TV, I really don't care how Vegas or other NLE's interpret those renders when re-imported on their timelines. To my opinion and experience, don't trust blindly how Vegas interprets those re-imports.

vkmast wrote on 8/28/2022, 4:44 AM

@rgr FYI, your "wrong" attachment link includes a closing bracket giving error 404.

Howard-Vigorita wrote on 8/28/2022, 9:20 AM

I might be side-stepping the issue by relying primarily on externally recorded audio. Has anyone tested Voukoder audio alignment with externally recorded wav tracks or camera clips with pcm audio?

Musicvid wrote on 8/28/2022, 10:03 AM

It's a bug that has been around as long as ffmpeg / libavcodec. I documented and tested and submitted thorough bug reports in 2012, never was acted on, it's even worse with PCM audio source.

Howard-Vigorita wrote on 9/2/2022, 7:21 PM

Just tested it with some mov/pcm footage and can confirm the bug's still there in ffmpeg4, ffmpeg5, and Voukoder 11.

Also noticed Voukoder 11 lost its Intel/qsv hardware support... even the one that's marked Intel Arc beta. That's an ffmpeg5 bug. Probably going to back-pedal Voukoder on my systems to the one built on the last ffmpeg4, which I think is v4.4.1. UPDATE!!!: There's a trick to making qsv available in Voukoder... gotta go into Windows, Graphics, Advanced and set Vegas to use an Intel igpu or Arc board... then the Vegas plugin sees it and menu items appear. Similar trick works for ffmpeg v5 decoding... just point ffmpeg to an Intel gpu in Windows and use "-hwaccel auto".

wwaag wrote on 9/2/2022, 8:58 PM

Just found the original test I did a few years ago showing a 44msec delay.

As I recall, you can render your aac audio using Sony AVC (audio only) and then remux with the video to eliminate the audio sync problem.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.