Answers.Body: <p>It sounds like your source media went through quite a lot of different operations, which makes it difficult to say what exactly has upset the audio/video sync. </p>
  
  <p>I would start by trying to isolate the problem: repeat the process on a smaller scale (just one cut/edit, instead of the whole thing) and verify the output at each stage. That will help you understand where exactly things have gone wrong. Then, you could edit your question and present us with an isolated example of an operation that affects the sync. That should make it easy to resolve the problem.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-20T15:39:32.737Z
Answers.LastActivityDate: 2017-06-20T15:39:32.737Z
Answers.UserDisplayName: Tony Sepia
Body: <p>I have an MKV video with a few out-of-sync points caused, probably, by a 3rd-party program, used to remove some commercials from it directly from the MKV.</p>
  
  <p>So watched the video several times in VLC manually adjusting the delay while taking notes of the different amounts needed.</p>
  
  <p>Then I started the slicing proccess, but first, because Premiere is "cocky" and don't handle MKV files directly, I converted it to an MP4 with FFmpeg:</p>
  
  <pre><code>ffmpeg -i /path/to/video.mkv -c:v copy -c:a copy /path/to/save/video.mp4
  </code></pre>
  
  <p>After slicing all pieces needed and creating Subclips from them, I exported them all, manually instead of using Adobe Media Encore, with the exact same settings.</p>
  
  <p>However, analyzing them with MediaInfo, although most of the files where in CBR, a few were in VBR.</p>
  
  <p>I ignored this and applied the delays, individually, with FFMPEG again:</p>
  
  <pre><code>ffmpeg.exe -i "/path/to/slice.mp4" -itsoffset 0.05 -i "/path/to/slice.mp4" \
             -map 0:v -map 1:a -c:v copy -c:a copy "/path/to/sliced.mp4"
  </code></pre>
  
  <p>(Being 0.05 an advancing of +50ms)</p>
  
  <p>Since I already used FFmpeg to join files in past, for commodity, I used it again to concatenate the modified files:</p>
  
  <pre><code>ffmpeg -f concat -i list.txt -c:v copy -c:a copy "video.mp4"
  </code></pre>
  
  <p>(Being <strong>list.txt</strong> a list of each adjusted file, one per line)</p>
  
  <p>Some of the cuts occurred during action scenes and when joined with <code>concat</code> it's pretty noticeable a "click" where two of the clips were concatenated. Other than that the result was perfectly synced.</p>
  
  <p>But those "clicks" were annoying me so much that I imported this file into Premiere again and added a centered Constant Power Audio Effect at the junction of the two clips to get rid of them.</p>
  
  <p>At first, I didn't notice and rendered this faded audio file. But when watching it on VLC, going straight to the first junction, it was completely out-of-sync-again.</p>
  
  <p>Then I watched it on Premiere and found the problem in there.</p>
  
  <p>I've searched for a solution and one of them suggested me to use Handbrake to convert it from VBR to CBR, but didn't show how &lt;_&lt;</p>
  
  <p>The other suggested to rename the file changing the .MP4 extension to .MOV to counteract an apparent bug in Premiere Importer. This didn't work for me, perhaps because I'm using the CC version and the "tutorial" was with the Pro version (if there was indeed a bug, it might've be fixed between versions).</p>
  
  <p>And now I don't know what to do because the meticulously adjusted clip segments can't be fine tuned in Premiere because it is undoing all this hard work.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-20T15:38:37.757Z
Comments.Text: Pardon if I didn't catch all the details, but you have a video with out-of-sync audio? Load it in Premiere, perform all the audio sync adjustments. Don't touch the video. Export the audio only. Make sure your render region corresponds to the video track length. Mux the rendered audio with the original video in ffmpeg.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-20T15:59:33.647Z
Comments.Text: At first I opted to re-sync with FFMPEG because I already did that easily in past and because I didn't find a way in Premiere to adjust the audio by milliseconds. There were seven segments that needed to be adjusted by tiny amounts, from -200ms to -500ms
Comments.UserDisplayName: Bruno Augusto
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-20T16:17:30.573Z
Comments.Text: 200ms to 500ms corresponds to 5-15 video frames. Premiere must allow you that.
Comments.UserDisplayName: Gyan
Tags: <ffmpeg><premiere><sync>
Title: Imported video getting out-of-sync audio in Adobe Premiere
UserDisplayName: Bruno Augusto
ThreadText: # Imported video getting out-of-sync audio in Adobe Premiere
  
  (Asked by: username_0 on 2017-06-20)
  
  I have an MKV video with a few out-of-sync points caused, probably, by a 3rd-party program, used to remove some commercials from it directly from the MKV.
  
  So watched the video several times in VLC manually adjusting the delay while taking notes of the different amounts needed.
  
  Then I started the slicing proccess, but first, because Premiere is "cocky" and don't handle MKV files directly, I converted it to an MP4 with FFmpeg:
  
  ```
  ffmpeg -i /path/to/video.mkv -c:v copy -c:a copy /path/to/save/video.mp4
  
  ```
  
  After slicing all pieces needed and creating Subclips from them, I exported them all, manually instead of using Adobe Media Encore, with the exact same settings.
  
  However, analyzing them with MediaInfo, although most of the files where in CBR, a few were in VBR.
  
  I ignored this and applied the delays, individually, with FFMPEG again:
  
  ```
  ffmpeg.exe -i "/path/to/slice.mp4" -itsoffset 0.05 -i "/path/to/slice.mp4" \
             -map 0:v -map 1:a -c:v copy -c:a copy "/path/to/sliced.mp4"
  
  ```
  
  (Being 0.05 an advancing of +50ms)
  
  Since I already used FFmpeg to join files in past, for commodity, I used it again to concatenate the modified files:
  
  ```
  ffmpeg -f concat -i list.txt -c:v copy -c:a copy "video.mp4"
  
  ```
  
  (Being **list.txt** a list of each adjusted file, one per line)
  
  Some of the cuts occurred during action scenes and when joined with `concat` it's pretty noticeable a "click" where two of the clips were concatenated. Other than that the result was perfectly synced.
  
  But those "clicks" were annoying me so much that I imported this file into Premiere again and added a centered Constant Power Audio Effect at the junction of the two clips to get rid of them.
  
  At first, I didn't notice and rendered this faded audio file. But when watching it on VLC, going straight to the first junction, it was completely out-of-sync-again.
  
  Then I watched it on Premiere and found the problem in there.
  
  I've searched for a solution and one of them suggested me to use Handbrake to convert it from VBR to CBR, but didn't show how <\_<
  
  The other suggested to rename the file changing the .MP4 extension to .MOV to counteract an apparent bug in Premiere Importer. This didn't work for me, perhaps because I'm using the CC version and the "tutorial" was with the Pro version (if there was indeed a bug, it might've be fixed between versions).
  
  And now I don't know what to do because the meticulously adjusted clip segments can't be fine tuned in Premiere because it is undoing all this hard work.
  
  **Tags:** ffmpeg, premiere, sync
  
  > **Comments:**
  > **username_1**: Pardon if I didn't catch all the details, but you have a video with out-of-sync audio? Load it in Premiere, perform all the audio sync adjustments. Don't touch the video. Export the audio only. Make sure your render region corresponds to the video track length. Mux the rendered audio with the original video in ffmpeg.  
  > **username_0**: At first I opted to re-sync with FFMPEG because I already did that easily in past and because I didn't find a way in Premiere to adjust the audio by milliseconds. There were seven segments that needed to be adjusted by tiny amounts, from -200ms to -500ms  
  > **username_1**: 200ms to 500ms corresponds to 5-15 video frames. Premiere must allow you that.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-06-20. Score: 1
  
  It sounds like your source media went through quite a lot of different operations, which makes it difficult to say what exactly has upset the audio/video sync.
  
  I would start by trying to isolate the problem: repeat the process on a smaller scale (just one cut/edit, instead of the whole thing) and verify the output at each stage. That will help you understand where exactly things have gone wrong. Then, you could edit your question and present us with an isolated example of an operation that affects the sync. That should make it easy to resolve the problem.
  
  
  ---
  
  