Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Pro Tools Post Production > Post - Surround - Video
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-16-2021, 03:07 PM
dcoffset dcoffset is offline
Member
 
Join Date: Jul 2017
Location: London
Posts: 29
Default H264 audio sync

I've noticed this on several projects previously where H264 video files appear to introduce a small offset on the corresponding audio file of 1-2 frames compared to a more reliable codec eg. ProRes.

On a recent project, time was of the essence and so I grudgingly accepted an H264 to reconform (with timecode burned in the frame). Before using the H264 file, I convert it using Shutterencoder to MXF (Avid DNX HD codec, OP-atom format) and then import it into PT. The strange thing is the video was in sync and I could verify this with the timecode, but the audio had been pushed back by a frame compared to the ProRes audio reference and the OMF (admittedly different edits so could be an issue caused elsewhere).

So I decided to try this myself, and I made a test video file in Premiere (same NLE as the project). I insert academy leader with tone and timecode... I export MXF and everything lines up on import. However, with H264 the video is in the right place but this time the audio is early by ~520 samples (huh?!?!?).

Anyone else observed this? Is H264 audio sync altered on encoding or is it an issue with the conversion back to MXF or via direct audio import into Pro Tools? Either way, it basically means H264 cannot be trusted as a reference for audio sync.

ps. I knew H264 couldn't be trusted beforehand just wanted to confirm this, and I know 520 samples is not much altho' I've seen up to 1-2 frames diff... I'm hoping I missed something here :/
pps. On my test, H264 export setting in Premiere were High Quality 720p on a 23.976fps sequence (Avid DNX).
Reply With Quote
  #2  
Old 07-18-2021, 03:28 AM
Wizzoboy's Avatar
Wizzoboy Wizzoboy is offline
Member
 
Join Date: Nov 2010
Location: United Kingdom
Posts: 659
Default Re: H264 audio sync

H264, due to the nature of Long GOP codecs, is not a good codec to work with in PT. Sync can be haphazard when stopping and starting playback, especially if you are trying to spot fx etc. I've found that DNxHD 36 is reliable every time.
__________________
Dell Precision 490 Workstation, dual 4 core 5355 Xeon, 16gb Samsung DDR2 ECC Ram - Windows 7 Ultimate - Nvidia GTX 650 - 3 x Internal WD Blacks - PT 2018.3 - Digi 002R - Original Mackie HUI - 3 screens - JBL Monitoring.
Dell XPS 8700 i7-4790 - 24gb RAM - Windows 10 - Nvidia GTX 1060 6GB with Studio driver 546.01 - 2 x Internal Samsung 860 EVO SSDs, and MSATA card - Davinci Resolve Studio 18.6.4 - 3 screens - Blackmagic Speed Editor - MK1 Presonus Faderport - Canon C100 mk2 - Atomos Ninja 2 - Zoom H2n
Reply With Quote
  #3  
Old 07-18-2021, 03:35 AM
JFreak's Avatar
JFreak JFreak is online now
Moderator
 
Join Date: Jan 2003
Location: Tampere, Finland
Posts: 24,901
Default Re: H264 audio sync

520 samples is over 10ms, it is a lot. Monitoring voiceover would be impossible while it does not yet lose lip sync (one frame at 48k = 1920 samples)
__________________
Janne
What we do in life, echoes in eternity.
Reply With Quote
  #4  
Old 07-18-2021, 06:45 AM
dcoffset dcoffset is offline
Member
 
Join Date: Jul 2017
Location: London
Posts: 29
Default Re: H264 audio sync

Quote:
Originally Posted by Wizzoboy View Post
H264, due to the nature of Long GOP codecs, is not a good codec to work with in PT. Sync can be haphazard when stopping and starting playback, especially if you are trying to spot fx etc. I've found that DNxHD 36 is reliable every time.
I'm not working with an H264 file, as I state in my original msg the file has been converted to DNxHD 36 prior to import in the session. I only tested importing an H264 to see if there was any difference if the file was converted externally or via Pro Tools (audio import).

My observation is that when an H264 is decoded (or even perhaps encoded) it introduces an audio offset, and therefore there is no way of using it for sync reference when importing in Pro Tools. I understand GOP codecs cannot be used for sync from a visual standpoint, but I did expect the audio would be correct...
__________________
Studio: Mac Pro | OSX Monterey | PT 2023.9 HDX | DAD AX32
Remote: Macbook Pro | OSX Ventura | PT 2023.9 Ultimate | UAD X8
Reply With Quote
  #5  
Old 07-18-2021, 07:37 AM
its2loud its2loud is offline
Member
 
Join Date: Dec 2014
Location: Los Angeles
Posts: 2,336
Default Re: H264 audio sync

Quote:
Originally Posted by dcoffset View Post
I'm not working with an H264 file, as I state in my original msg the file has been converted to DNxHD 36 prior to import in the session. I only tested importing an H264 to see if there was any difference if the file was converted externally or via Pro Tools (audio import).

My observation is that when an H264 is decoded (or even perhaps encoded) it introduces an audio offset, and therefore there is no way of using it for sync reference when importing in Pro Tools. I understand GOP codecs cannot be used for sync from a visual standpoint, but I did expect the audio would be correct...
I do recall seeing this anomaly a few years back. The work around was to ask the provider of the video reference to place an accurate 2 pop in the audio reference. This way you can always accurately move it back where it needs to be.
Reply With Quote
  #6  
Old 07-19-2021, 01:53 AM
dcoffset dcoffset is offline
Member
 
Join Date: Jul 2017
Location: London
Posts: 29
Default Re: H264 audio sync

Quote:
Originally Posted by its2loud View Post
I do recall seeing this anomaly a few years back. The work around was to ask the provider of the video reference to place an accurate 2 pop in the audio reference. This way you can always accurately move it back where it needs to be.
Yes that's what I thought as a workaround, although I tried that in my Premiere test and the 2Pop ended in the right place but started early (I assume this is a bug as the pop should be 1 frame long)
__________________
Studio: Mac Pro | OSX Monterey | PT 2023.9 HDX | DAD AX32
Remote: Macbook Pro | OSX Ventura | PT 2023.9 Ultimate | UAD X8
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
H264 conversion to DNxHD MIKEROPHONICS Post - Surround - Video 21 06-30-2016 08:47 AM
H264 Codec zoing123 Post - Surround - Video 23 04-08-2013 02:16 PM
Need Help with 59.94 H264 pix with 29.97 OMF amptbuddy Post - Surround - Video 6 01-27-2009 05:34 PM
Need Help with 59.94 H264 pix with 29.97 OMF amptbuddy Post - Surround - Video 2 01-26-2009 09:06 PM
qt h264 tape2tape Post - Surround - Video 1 02-08-2007 05:32 PM


All times are GMT -7. The time now is 12:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com