Music Video is Extremely Out of Sync!

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
The Wise 1
Posts: 2
Joined: Thu Dec 28, 2017 5:12 am

Music Video is Extremely Out of Sync!

Post by The Wise 1 »

I am trying to compress a video down from 3 gb to be able to upload onto youtube. It is a music video for a song I've created, but once it is processed by Handbrake the audio and visuals are off. The audio starts at around 50 seconds from where it is supposed to start, but the visuals start at the correct time. No tinny-ness or loss of audio quality can be heard, just the audio-visuals being clearly out of sync.

I made the video with ZGameEditor Visualizer in Fl Studio 12, and rendered it into a 60 fps 1920 x 1080 mp4. I run it through handbrake on the "normal" preset and I get a video with the above-mentioned error.


Handbrake Version 1.0.7


I am using Windows 7.


Here is the activity log:

https://pastebin.com/GziksvDZ
User avatar
JohnAStebbins
HandBrake Team
Posts: 5722
Joined: Sat Feb 09, 2008 7:21 pm

Re: Music Video is Extremely Out of Sync!

Post by JohnAStebbins »

When is the audio suppose to start? The first audio timestamp (which we can see in the log) says the audio starts about 52 seconds after the start of video.
The Wise 1
Posts: 2
Joined: Thu Dec 28, 2017 5:12 am

Re: Music Video is Extremely Out of Sync!

Post by The Wise 1 »

That's exactly the problem. The audio is supposed to start at 0 seconds, yet it is starting at ~52 seconds
WhatZit
Experienced
Posts: 77
Joined: Sat Feb 13, 2016 2:45 am

Re: Music Video is Extremely Out of Sync!

Post by WhatZit »

The Wise 1 wrote: Thu Dec 28, 2017 5:25 amI made the video with ZGameEditor Visualizer in Fl Studio 12, and rendered it into a 60 fps 1920 x 1080 mp4. I run it through handbrake on the "normal" preset and I get a video with the above-mentioned error.

Code: Select all

Input #0, asf, from 'C:\Users\user\Desktop\Don't You Want Chinese Food.wmv':
  Metadata:
    creation_time   : 2017-12-27 21:50:55
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:07:42.16, start: 0.000000, bitrate: 57262 kb/s
    Stream #0:0(eng): Video: vc1 (Advanced) [WVC1 / 0x31435657]
      yuv420p, 1920x1080
      60 fps, 1k tbn
    Metadata:
      IsVBR           : 0
      DeviceConformanceTemplate: AP@L4
    Stream #0:1(eng): Audio: wmapro [b[1][0][0] / 0x0162]
      44100 Hz, stereo, fltp, 440 kb/s
    Metadata:
      IsVBR           : 0
      DeviceConformanceTemplate: M2
      WM/WMADRCPeakReference: 32767
      WM/WMADRCPeakTarget: 32767
      WM/WMADRCAverageReference: 4041
      WM/WMADRCAverageTarget: 4041
So, the source is an "MP4", eh? Look again...

We're proceeding on the basis that this Vista-era Media Foundation source is actually synced in the first place, yes?

There's a whole bunch of reasons why this might not be working, from absolutely using the wrong HB preset, to not using the HB Nightly, to using an inappropriate or incompatible export format from ZGameEditor.

I have my own suspicions, so please do the following:

1. Download FFMPEG from https://ffmpeg.zeranoe.com/builds/

2. Copy what's in the BIN\ directory to somewhere in your path (or into the dir with the source video)

3. Open a Command Line in the same directory as the source file

4. Enter: ffmpeg -i "Don't You Want Chinese Food.wmv" -c:a aac -c:v h264 SyncedOrNot.mp4

5. Tell me if SyncedOrNot.mp4 still lags the audio at the start.

This result will narrow all the possibilities down by at least half.
Post Reply