[RESOLVED] Audio out of sync for iPhone 11 videos

Support forum for DGDecNV
Post Reply
DAE avatar
olex99
Posts: 10
Joined: Sat Jan 30, 2016 4:17 am

[RESOLVED] Audio out of sync for iPhone 11 videos

Post by olex99 »

Trying to play around with a few videos of a concert that i recorded on my iPhone 11 however the audio in the output video is out of sync. Mediainfo is reporting the framerate as 29.706 fps, however it seems to be detected in DGIndexNV as 29.970fps. I think this might be why the audio is out.

Specs:
Windows 10 1903
DGIndexNV 2053.0.0.191
Geforce GTX 1050 Ti 388.71

I can cut the video and upload it somewhere if required but thought it might be a simple config option i've missed?
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Re: Audio out of sync for iPhone 11 videos

Post by Rocky »

Please upload a sample that I can use to duplicate the issue.
DAE avatar
olex99
Posts: 10
Joined: Sat Jan 30, 2016 4:17 am

Re: Audio out of sync for iPhone 11 videos

Post by olex99 »

I couldn't cut the video as it wouldn't play once cut so here is the smallest video i could get to reproduce the issue. Its about 450mb.

https://1drv.ms/u/s!AlPNVpwJyv_fjeUp5UQ ... g?e=Xcz45c

The video when loading through DGIndexNV is about a second shorter as its playing at 29.970fps where i believe the framerate is around 29.7fps.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Re: Audio out of sync for iPhone 11 videos

Post by Rocky »

Thank you for your stream. First thing, you are lucky it actually works with DGDecNV as it does not formally claim to support MOV containers. But here the stream is close enough to an MP4, with supported audio, that things work.

The stream has a frame rate of 29.77 fps. DGDecNV normalizes all rates that are close to standard rates to those standard ones, so it gets "corrected" to 29.97. This normalization is something needed for compatibility with Vapoursynth. But do not despair. You can simply add AssumeFPS(29.77) after the DGSource() call in your script. You will end up with that weird rate of 29.77 but there will be AV sync. You'll have to use an encoder and container that can honor that rate. High priority is to first try to find out why the device is not using a standard rate. Perhaps it can't keep up and you need to sacrifice something. Or, worst case, consider an encoding process that converts the 29.77 stream to 29.97.
DAE avatar
olex99
Posts: 10
Joined: Sat Jan 30, 2016 4:17 am

Re: Audio out of sync for iPhone 11 videos

Post by olex99 »

Thank you very much for your help. I didn't even think of using AssumeFPS to get it back to the original Frame Rate. I'm actually trying to convert it to 29.970 so it can work on the tv so i might try do AsumeFPS(29.77) and then ChangeFPS(29.970). Hopefully that will do the trick.

Yeah i've never had an issue with the iphone files before. This is the first night time recording though i've done on the iphone 11. I did notice there is a flag in the settings called "Auto Low Light FPS" which apparently reduces the frame rate to 24fps in low light for "improved low light video". I've turned this off so hopefully it will stick to 30fps from now on.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Audio out of sync for iPhone 11 videos

Post by admin »

Cool, oleg99, sounds like you are rocking and rolling. Maybe it might help to reduce the bitrate (if possible), as you are capturing UHD. Bullwinkle would say: 29.77? Snort!

Best Thanksgiving wishes to you and all!
User avatar
Boris
Posts: 92
Joined: Sun Nov 10, 2019 2:55 pm

Re: Audio out of sync for iPhone 11 videos

Post by Boris »

admin?!?!?! This forum's Mr Big? :P
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Re: Audio out of sync for iPhone 11 videos

Post by Bullwinkle »

Big is as big does. Give it serious thought.

Still waiting for my gold coins. Snort.
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: Audio out of sync for iPhone 11 videos

Post by Sharc »

Rocky wrote:
Sat Nov 16, 2019 7:31 pm
High priority is to first try to find out why the device is not using a standard rate. Perhaps it can't keep up and you need to sacrifice something. Or, worst case, consider an encoding process that converts the 29.77 stream to 29.97.
Is the video file reported as VFR rather than CFR? The .mp4 files of my mobile phone are always reported as VFR just because one or two frames are off the expected time stamp, resulting in an odd framerate which is slightly off the standard value and reported as VFR.
Post Reply