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

john_dennis wrote on 8/27/2022, 4:52 PM

"Has no one noticed yet that the Voukoder soundtrack is slightly shifted?"

Some of us have noticed. Click on my ugly mug and look for my posts and comments over the last few years.

My main system:
Motherboard: Asus X99-AII
CPU: Intel i7-6850K
GPU: Sapphire Radeon RX480-8GB
RAM: Corsair Dominator (4 x 4 GB) DDR4 2400
Disk O/S & Programs: Intel SSD 750 (400 GB)
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 Hydro series H115i
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: Crystal Sound 3 on motherboard. Recording done on another system.
Primary Monitor: Asus ProArt PA248q (24" 1920 x 1200)
O/S: Windows 10 Pro 190943
Camera: Sony RX10 Model IV

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

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

Magix Movie Studio Platinum 2023 - from 2004-ish - Latest version,
Vegas Pro 20
Vegas Pro/Post 19 (Latest build), HitFilm Pro,  
Boris Continuum, Sapphire, Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 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

I'm 53, I've been a UK joiner for 37yrs, 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 S21 Ultra 5G

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 1050ti 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 Hero8 and Hero5 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 👍

Magix Movie Studio Platinum 2023 - from 2004-ish - Latest version,
Vegas Pro 20
Vegas Pro/Post 19 (Latest build), HitFilm Pro,  
Boris Continuum, Sapphire, Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 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

I'm 53, I've been a UK joiner for 37yrs, 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 S21 Ultra 5G

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 X99-AII
CPU: Intel i7-6850K
GPU: Sapphire Radeon RX480-8GB
RAM: Corsair Dominator (4 x 4 GB) DDR4 2400
Disk O/S & Programs: Intel SSD 750 (400 GB)
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 Hydro series H115i
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: Crystal Sound 3 on motherboard. Recording done on another system.
Primary Monitor: Asus ProArt PA248q (24" 1920 x 1200)
O/S: Windows 10 Pro 190943
Camera: Sony RX10 Model IV

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

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.

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 1050ti 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 Hero8 and Hero5 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.