Hey everyone. Here is an interesting puzzle for you: I have over 200 mp4 files all shot on the google pixel 3xl phone in 4k. All of these have audio out of sync by about 0.35 sec. How could I batch fix the sync issue? HandBrake doesn't seem to be helping as in cases with various framerates.
+ Reply to Thread
Results 1 to 10 of 10
-
Last edited by pandalina; 7th Feb 2022 at 19:28.
-
Thanks so much!
General
Complete name : D:\PXL_20211028_174319619.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/mp42)
File size : 49.5 MiB
Duration : 9 s 15 ms
Overall bit rate : 46.0 Mb/s
Encoded date : UTC 2021-10-28 17:43:30
Tagged date : UTC 2021-10-28 17:43:30
Video
ID : 2
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L5.1@Main
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 9 s 15 ms
Bit rate : 45.9 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 28.175 FPS
Minimum frame rate : 3.006 FPS
Maximum frame rate : 30.070 FPS
FrameRate_Real : 30.000 FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.196
Stream size : 49.3 MiB (100%)
Title : VideoHandle
Language : English
Encoded date : UTC 2021-10-28 17:43:30
Tagged date : UTC 2021-10-28 17:43:30
Color range : Full
Color primaries : BT.601 PAL
Transfer characteristics : BT.709
transfer_characteristics_Original : BT.601
Matrix coefficients : BT.601
Codec configuration box : hvcC
Audio
ID : 1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 8 s 976 ms
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 210 KiB (0%)
Title : SoundHandle
Language : English
Encoded date : UTC 2021-10-28 17:43:30
Tagged date : UTC 2021-10-28 17:43:30 -
The file shows
Code:Frame rate mode : Variable
-
Last edited by pandalina; 8th Feb 2022 at 21:05.
-
My PC is too slow to properly play this file, so I played it on my TV via the DLNA network.
The audio follows the video properly, but may be a fraction, I don't think it's as much as a 1/3 of a second, early
Is this what you see?
Is this re-encoded version in sync?Last edited by davexnet; 7th Feb 2022 at 20:04.
-
-
Yet in the re-encoded version above, the sync is better (or so it appears to me).
I did not adjust the sync at all, just re-encoded the video and copied over the existing audio
If you want to experiment with an audio offset, get FFmpeg and test with this command. This example delays audio for 200ms
Code:ffmpeg -i source.mp4 -itsoffset 0.200 -i source.mp4 -map 0:v -map 1:a -c:v copy -c:a newfile.mp4
Last edited by davexnet; 7th Feb 2022 at 21:10.
-
-
yes this doesn't surprise me, especially since these files are straight out of the phone and should be good.
Even in my case, playing over the network, it was so close it was questionable if it was just a performance problem.
2nd clue is the video reencode/audio passthrough to a less demanding file, no problems there
Similar Threads
-
Demux .mp4 (video+audio) to 2 separate files (video.mp4) + (audio.mp4)
By kalemvar1 in forum Video ConversionReplies: 3Last Post: 15th Dec 2021, 07:05 -
need to sync many audio clips from aac(mp4) to mp3 ,what could i use ?
By rama in forum AudioReplies: 1Last Post: 10th Mar 2020, 10:02 -
MP4 audio out of sync when streamed only
By Yonahinthewhale in forum Video ConversionReplies: 6Last Post: 4th Sep 2019, 20:17 -
Batch combining multiple audio files with same picture to create mp4 files
By MD_89 in forum AudioReplies: 25Last Post: 1st Dec 2018, 22:29 -
Converting WMV to MP4 - audio out of sync
By wasser in forum Newbie / General discussionsReplies: 5Last Post: 23rd May 2017, 17:40