[Bug?] Part of the Video is time shifted on export (out of sync)

fxhomer269733
fxhomer269733 Posts: 3 Just Starting Out

Hi community,

I recorded an interview and imported both mp4 files (interviewer and interviewee) to a fresh Hitfilm Express project. After having trimmed all the unneeded bits and cut it all together in the timeline I clicked on "Export" -> "Contents". I created a new preset 1080x1920.

The exported video looks "fine" at the first glance:

  • aspect-ratio: perfect
  • audio: perfect
  • interviewer: perfect
  • interviewee: the video is not in sync with the audio (by far!). It seems like moving the video on the timeline was not registered by Hitfilm in some way... The video cuts are correct (coincide with the audio cuts). But the video of the interviewee shown is shifted in time, so that the audio does not fit to what the interviewee is actually saying in the video. When I play the video before exporting within Hitfilm Express, the viewer shows it all perfectly as it should be! I am confused why it works with one video in the project (interviewer) and not with the other one (interviewee)...

Is this a Bug or did I miss an important setting?

Best Answers

  • fxhomer269733
    fxhomer269733 Posts: 3 Just Starting Out
    Answer ✓
    Okay I solved it myself... :D
    For anyone who faces the same issue:

    You have to make sure, that your video footage is recorded with a constant framerate! I used Handbrake to convert my screenrecorded video from a variable to constant framerate - now everything works like a charm :blush:
  • Triem23
    Triem23 Posts: 20,279 Power User
    edited October 2021 Answer ✓

    I'm going to guess you recorded the problem clip with a phone, tablet, or screen capture.

    Phones, tablets and most screen capture apps record "Variable Frame Rate" (VFR), while NLEs, like Hitfilm, want a Constant Frame Rate (CFR).

    VFR... If you recorded at "30fps" a VFR file is going "30, 22, 32, 28, 28, 30, 20, etc" which leaves Hitfilm trying to fit, say 28 frames of a second of video into a 30 frame Timeline.

    VFR can cause audio/video desynch on export.

    The best way to check for VFR is to use MediaInfo (free) to create a "Tree" report which you can paste here.

    Tutorial..

    If you have VFR, the solution is to transcode to CFR before import to Hitfilm.

    23:40 in this video shows how to use Handbrake to transcode to CFR and shows tested/optimized settings to get good playback on Hitfilm.

    Since you've already edited, let's talk about preserving your work.

    Once transcoded, you can open your project, right click the original problem file in the Media Bin and click "Relink." Choose the transcoded file. This swaps the original file for the transcode in the project and preserves your edits.

    Because of the possible VFR drift you'll have to step through the edit again, but, if anything drifted, the "Slide" edit tool will let you nudge the drifted clips back into place. This shouldn't take TOO long, and is a lot faster than having to re-edit.

    Phones and tablets always record VFR, and should be transcoded. For a screen recorder, some (Shadowplay) always record VFR, some (OBS) record VFR by default, but can be set to record CFR in the future.

Answers

  • fxhomer269733
    fxhomer269733 Posts: 3 Just Starting Out
    [{"insert":{"embed-external":{"data":{"recordID":168407,"recordType":"comment","body":"<p>I'm going to guess you recorded the problem clip with a phone, tablet, or screen capture. <\/p><p>Phones, tablets and most screen capture apps record "Variable Frame Rate" (VFR), while NLEs, like Hitfilm, want a Constant Frame Rate (CFR). <\/p><p>VFR... If you recorded at "30fps" a VFR file is going "30, 22, 32, 28, 28, 30, 20, etc" which leaves Hitfilm trying to fit, say 28 frames of a second of video into a 30 frame Timeline. <\/p><p>VFR can cause audio\/video desynch on export.<\/p><p>The best way to check for VFR is to use MediaInfo (free) to create a "Tree" report which you can paste here. <\/p><p>Tutorial.. <\/p><p><a href=\"https:\/\/m.youtube.com\/watch?v=Ivy9ckSX1M0\" rel=\"nofollow noreferrer ugc\">https:\/\/m.youtube.com\/watch?v=Ivy9ckSX1M0<\/a><\/p><p>If you have VFR, the solution is to transcode to CFR before import to Hitfilm. <\/p><p>23:40 in this video shows how to use Handbrake to transcode to CFR and shows tested\/optimized settings to get good playback on Hitfilm. <\/p><p><a href=\"https:\/\/youtu.be\/Yqhl0mRuTng\" rel=\"nofollow noreferrer ugc\">https:\/\/youtu.be\/Yqhl0mRuTng<\/a><\/p><p>Since you've already edited, let's talk about preserving your work.<\/p><p>Once transcoded, you can open your project, right click the original problem file in the Media Bin and click "Relink." Choose the transcoded file. This swaps the original file for the transcode in the project and preserves your edits.<\/p><p>Because of the possible VFR drift you'll have to step through the edit again, but, if anything drifted, the "Slide" edit tool will let you nudge the drifted clips back into place. This shouldn't take TOO long, and is a lot faster than having to re-edit. <\/p><p>Phones and tablets always record VFR, and should be transcoded. For a screen recorder, some (Shadowplay) always record VFR, some (OBS) record VFR by default, but can be set to record CFR in the future.<\/p>","bodyRaw":"[{\"insert\":\"I'm going to guess you recorded the problem clip with a phone, tablet, or screen capture. \\nPhones, tablets and most screen capture apps record \\\"Variable Frame Rate\\\" (VFR), while NLEs, like Hitfilm, want a Constant Frame Rate (CFR). \\nVFR... If you recorded at \\\"30fps\\\" a VFR file is going \\\"30, 22, 32, 28, 28, 30, 20, etc\\\" which leaves Hitfilm trying to fit, say 28 frames of a second of video into a 30 frame Timeline. \\nVFR can cause audio\\\/video desynch on export.\\nThe best way to check for VFR is to use MediaInfo (free) to create a \\\"Tree\\\" report which you can paste here. \\nTutorial.. \\n\"},{\"insert\":\"https:\\\/\\\/m.youtube.com\\\/watch?v=Ivy9ckSX1M0\",\"attributes\":{\"link\":\"https:\\\/\\\/m.youtube.com\\\/watch?v=Ivy9ckSX1M0\"}},{\"insert\":\"\\n\"},{\"insert\":\"If you have VFR, the solution is to transcode to CFR before import to Hitfilm. \\n23:40 in this video shows how to use Handbrake to transcode to CFR and shows tested\\\/optimized settings to get good playback on Hitfilm. \\n\"},{\"insert\":\"https:\\\/\\\/youtu.be\\\/Yqhl0mRuTng\",\"attributes\":{\"link\":\"https:\\\/\\\/youtu.be\\\/Yqhl0mRuTng\"}},{\"insert\":\"\\n\"},{\"insert\":\"Since you've already edited, let's talk about preserving your work.\\nOnce transcoded, you can open your project, right click the original problem file in the Media Bin and click \\\"Relink.\\\" Choose the transcoded file. This swaps the original file for the transcode in the project and preserves your edits.\\nBecause of the possible VFR drift you'll have to step through the edit again, but, if anything drifted, the \\\"Slide\\\" edit tool will let you nudge the drifted clips back into place. This shouldn't take TOO long, and is a lot faster than having to re-edit. \\nPhones and tablets always record VFR, and should be transcoded. For a screen recorder, some (Shadowplay) always record VFR, some (OBS) record VFR by default, but can be set to record CFR in the future. \\n\"}]","format":"rich","dateInserted":"2021-10-25T19:50:37+00:00","insertUser":{"userID":8254,"name":"Triem23","title":"Moderator","url":"https:\/\/community.fxhome.com\/profile\/Triem23","photoUrl":"https:\/\/us.v-cdn.net\/6032382\/uploads\/userpics\/MYNJ9U226TO3\/nNZHTWOQ9J077.jpg","dateLastActive":"2021-10-25T19:59:50+00:00","banned":0,"punished":0,"private":false},"displayOptions":{"showUserLabel":false,"showCompactUserInfo":true,"showDiscussionLink":false,"showPostLink":false,"showCategoryLink":false,"renderFullContent":false,"expandByDefault":false},"url":"https:\/\/community.fxhome.com\/discussion\/comment\/168407#Comment_168407","embedType":"quote"},"loaderData":{"type":"link","link":"https:\/\/community.fxhome.com\/discussion\/comment\/168407#Comment_168407"}}}},{"insert":"That answer was just perfect...! Thank you so much 😀\n"}]
  • Triem23
    Triem23 Posts: 20,279 Power User

    Glad to help! 👍