<p>No matter how you slice it, this sounds like it's going to be painful if not impossible, mostly because you say the rate changes dynamically. My best suggestion would be to use a software like Adobe Premiere Pro and its "rate stretch" tool to manually adjust individual segments. I'm not aware of any software that can do that sort of thing automatically, mostly because you don't have another (non-corrupted) audio track to compare against. If you did (like, if you had also been recording on an external recorder), you could use Adobe Audition to sync them. </p>

<p>Syncing two audio tracks of varying rates isn't too terribly hard, but syncing a video and audio track of different rates could prove very challenging.</p>

CC BY-SA 3.0
2016-08-02T15:12:38.073Z
I guess I should have mentioned this then: I actually _do_ have an uncorrupted audio track to compare against. How would that be helpful though? Even if I sync the audio tracks, won't the video track still be out-of-sync? Editing to clarify...
Ajedi32
CC BY-SA 3.0
2016-08-02T15:15:12.573Z
The video track will, what I meant was that you could fix bad audio with a good audio track, but not bad video/good audio or good video/bad audio alone.
John Barton
CC BY-SA 3.0
2016-08-02T15:23:23.637Z
Ah, okay; that makes sense. The uncorrupted audio track is much higher quality than the audio from my camera anyway, so maybe I'll just sync the video to that. "Rate stretch" sounds like it might be helpful, but either way I get the feeling this is going to be a really painful process...
Ajedi32
CC BY-SA 3.0
2016-08-02T15:08:49.383Z
2016-08-02T15:08:49.383Z
John Barton
<p>I was recording a moderately long (20-30 minute) video when suddenly my camera died, resulting in a corrupt file. I was able to repair the file by following the steps in <a href="https://superuser.com/a/596402/83682">How to open and repair an m4v or mp4 video file?</a> on SuperUser, but now the audio in the repaired file is horribly out of sync with the video. (Presumably because the data keeping the video in sync was lost.)</p>

<p>The video seems to play at a variable speed, with some portions appearing sped up, and other portions appearing to play at a normal speed. The audio does not appear to have this issue, playing at a seemingly normal rate for the duration of the video.</p>

<p>I tried stretching the video to align two audio events with the video near the start and end of the recording, but because the playback speed of the video appears to be variable, the audio in the middle portion of the recording is still very much out of sync.</p>

<p>Is there a good way to fix this? Maybe a program or something that I can use to go through the recording and manually identify multiple "sync points" between the audio and video to ensure they stay in sync throughout the recording? I'm guessing the video speed will need to change dynamically throughout the recording to compensate for this sync problem.</p>

<p>I suppose I could try doing this completely manually with a video editor, but I imagine doing it that way (at least in Adobe Premiere Elements, which is what I'm using) would require me to make a cut every time the video speed is adjusted, and that sounds like it'd be extremely time consuming. Is there a better way?</p>

CC BY-SA 3.0
2016-08-02T15:30:03.967Z
Try recovering with this [tool](http://video.stackexchange.com/a/18527/1871). It's more up to date. Maybe the PTS might be salvaged.
Gyan
<video-editor><editing><sync>
Resynchronizing audio in a variable framerate video with missing timing data
Ajedi32
# Resynchronizing audio in a variable framerate video with missing timing data

(Asked by: username_0 on 2016-08-02)

I was recording a moderately long (20-30 minute) video when suddenly my camera died, resulting in a corrupt file. I was able to repair the file by following the steps in [How to open and repair an m4v or mp4 video file?](https://superuser.com/a/596402/83682) on SuperUser, but now the audio in the repaired file is horribly out of sync with the video. (Presumably because the data keeping the video in sync was lost.)

The video seems to play at a variable speed, with some portions appearing sped up, and other portions appearing to play at a normal speed. The audio does not appear to have this issue, playing at a seemingly normal rate for the duration of the video.

I tried stretching the video to align two audio events with the video near the start and end of the recording, but because the playback speed of the video appears to be variable, the audio in the middle portion of the recording is still very much out of sync.

Is there a good way to fix this? Maybe a program or something that I can use to go through the recording and manually identify multiple "sync points" between the audio and video to ensure they stay in sync throughout the recording? I'm guessing the video speed will need to change dynamically throughout the recording to compensate for this sync problem.

I suppose I could try doing this completely manually with a video editor, but I imagine doing it that way (at least in Adobe Premiere Elements, which is what I'm using) would require me to make a cut every time the video speed is adjusted, and that sounds like it'd be extremely time consuming. Is there a better way?

**Tags:** video-editor, editing, sync

> **Comments:**
> **username_1**: Try recovering with this [tool](http://video.stackexchange.com/a/18527/1871). It's more up to date. Maybe the PTS might be salvaged.  

---

## 1 answers

### Answer by username_2 on 2016-08-02. Score: 2

No matter how you slice it, this sounds like it's going to be painful if not impossible, mostly because you say the rate changes dynamically. My best suggestion would be to use a software like Adobe Premiere Pro and its "rate stretch" tool to manually adjust individual segments. I'm not aware of any software that can do that sort of thing automatically, mostly because you don't have another (non-corrupted) audio track to compare against. If you did (like, if you had also been recording on an external recorder), you could use Adobe Audition to sync them.

Syncing two audio tracks of varying rates isn't too terribly hard, but syncing a video and audio track of different rates could prove very challenging.

> **Comments:**
> **username_0**: I guess I should have mentioned this then: I actually _do_ have an uncorrupted audio track to compare against. How would that be helpful though? Even if I sync the audio tracks, won't the video track still be out-of-sync? Editing to clarify...  
> **username_2**: The video track will, what I meant was that you could fix bad audio with a good audio track, but not bad video/good audio or good video/bad audio alone.  
> **username_0**: Ah, okay; that makes sense. The uncorrupted audio track is much higher quality than the audio from my camera anyway, so maybe I'll just sync the video to that. "Rate stretch" sounds like it might be helpful, but either way I get the feeling this is going to be a really painful process...  

---

