Answers.Body: <p>A way to solve this is to first losslessly change the frame rate of the GoPro video to 1 frame/sec, which changes it from 4 minutes to real time (96 minutes).</p>
  
  <p><a href="https://stackoverflow.com/a/45465730/13365">This answer</a> explains how to extract the raw bitstream from the GoPro video using <strong>ffmpeg</strong>:</p>
  
  <pre><code>ffmpeg -y -i gopro.mp4 -c copy -f h264 gopro_raw.h264
  </code></pre>
  
  <p>.. and then remux it with a 1 frame/sec frame rate:</p>
  
  <pre><code>ffmpeg -y -r 1 -i gopro_raw.h264 -c copy gopro_remuxed.mp4
  </code></pre>
  
  <p>Import the remuxed file into VIRB Edit [VE], add the GPX file and add some G-Metrix gauges.  Finally speed it up again in VE.</p>
  
  <p>VE can only speed up 800%, so the video has to be re-imported<b>*</b> after the initial export.  Speed it up and export again to come back to the original 4 minute length.  Not ideal, but it works.</p>
  
  <p><sub><b>*</b> I actually had to use iMovie in the second step, since VE kept crashing</sub></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-19T08:15:51.990Z
Answers.LastActivityDate: 2020-02-20T11:28:29.177Z
Answers.LastEditDate: 2020-02-20T11:28:29.177Z
Answers.UserDisplayName: neu242
Body: <p>I have imported a time-lapse (1 frame/sec resolution) video from my GoPro Hero4 into VIRB Edit. It's from a 96 minute bike ride, which shows up as a 4 minute video.</p>
  
  <p>When I import GPS/GPX data from my Garmin Fenix 5, it does not align with the video. It sees it as a 4 minute bike ride.  (VIRB Edit use this data to make route overlays on the video.)</p>
  
  <p>How to make VIRB Edit properly recognize the video as a time-lapse? Or how do I "compress" the GPX so that it matches the video?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-19T02:37:43.487Z
Comments.Text: Does this answer your question? [Imported time-lapse from bike ride does not sync with G-Metrix data in VIRB Edit](https://video.stackexchange.com/questions/29546/imported-time-lapse-from-bike-ride-does-not-sync-with-g-metrix-data-in-virb-edit)
Comments.UserDisplayName: stib
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-19T08:01:52.270Z
Comments.Text: @stib Nope, it was a duplicate :)
Comments.UserDisplayName: neu242
Tags: <time-lapse><gopro>
Title: Imported GoPro Hero4 time-lapse from bike ride does not sync with GPS data in VIRB Edit
UserDisplayName: neu242
ThreadText: # Imported GoPro Hero4 time-lapse from bike ride does not sync with GPS data in VIRB Edit
  
  (Asked by: username_0 on 2020-02-18)
  
  I have imported a time-lapse (1 frame/sec resolution) video from my GoPro Hero4 into VIRB Edit. It's from a 96 minute bike ride, which shows up as a 4 minute video.
  
  When I import GPS/GPX data from my Garmin Fenix 5, it does not align with the video. It sees it as a 4 minute bike ride. (VIRB Edit use this data to make route overlays on the video.)
  
  How to make VIRB Edit properly recognize the video as a time-lapse? Or how do I "compress" the GPX so that it matches the video?
  
  **Tags:** time-lapse, gopro
  
  > **Comments:**
  > **username_1**: Does this answer your question? [Imported time-lapse from bike ride does not sync with G-Metrix data in VIRB Edit](https://video.stackexchange.com/questions/29546/imported-time-lapse-from-bike-ride-does-not-sync-with-g-metrix-data-in-virb-edit)  
  > **username_0**: @username_1 Nope, it was a duplicate :)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-02-19. Score: 0 | Accepted answer
  
  A way to solve this is to first losslessly change the frame rate of the GoPro video to 1 frame/sec, which changes it from 4 minutes to real time (96 minutes).
  
  [This answer](https://stackoverflow.com/a/45465730/13365) explains how to extract the raw bitstream from the GoPro video using **ffmpeg**:
  
  ```
  ffmpeg -y -i gopro.mp4 -c copy -f h264 gopro_raw.h264
  
  ```
  
  .. and then remux it with a 1 frame/sec frame rate:
  
  ```
  ffmpeg -y -r 1 -i gopro_raw.h264 -c copy gopro_remuxed.mp4
  
  ```
  
  Import the remuxed file into VIRB Edit [VE], add the GPX file and add some G-Metrix gauges. Finally speed it up again in VE.
  
  VE can only speed up 800%, so the video has to be re-imported**\*** after the initial export. Speed it up and export again to come back to the original 4 minute length. Not ideal, but it works.
  
  **\*** I actually had to use iMovie in the second step, since VE kept crashing
  
  
  ---
  
  