Extract GPS Metadata from .MP4 and create .GPX using Exiftool

Sdílet
Vložit
  • čas přidán 21. 07. 2024
  • Learn how to extract GPS Metadata from an .MP4 video file and create a .GPX file using the free and open source tool, Exiftool.
    exiftool.org/
    Documentation - exiftool.org/exiftool_pod.html
    gpx.fmt file - github.com/franchyze923/Code_...
    0:00 Intro
    3:22 Extract Embedded from .MP4 file
    4:25 Extract Embedded from .MP4 file and write to a text file
    6:06 Extract Embedded from .MP4 file and print to screen in .GPX format
    8:23 Extract Embedded from .MP4 file and write .GPX format to a file.
    12:50 Create .GPX files from a directory of .MP4 files
    ___________________________________________________________________________
    GitHub - github.com/franchyze923/Code_...
    Instagram - / franchyze923
    Twitter - / franchyze923
    Discord - / discord
  • Věda a technologie

Komentáře • 103

  • @tokyokyotoyt
    @tokyokyotoyt Před rokem +1

    You’re a life saver! Very informative but still calm and not rushing through all subjects. Can’t understand why people are paying a ton of money for that telemetry extractor which does virtually the same thing

  • @samspade7360
    @samspade7360 Před 10 měsíci

    Thank you so much for the two walkthroughs on Exiftool and Exiftool with Python. You also made a subscriber out of me and revived my interest in Python! 😀

  • @paulcelmare6926
    @paulcelmare6926 Před 2 lety

    Great video and the way how you described everything. Actually this is what I was looking for for quite long time. One again, thanks!

    • @Franchyze923
      @Franchyze923  Před 2 lety

      Awesome! Glad to hear it was helpful.

    • @paulcelmare6926
      @paulcelmare6926 Před 2 lety

      @@Franchyze923 BTW is there a video where you explain how to merge a mp4 or any other video with gpx? Or to converted video (actually, in not sure if e.g. original video source with gps data converted to Avi will still contain gps data).

  • @Sandz12
    @Sandz12 Před 2 lety

    Thanks a lot. I did this with my insta pro 2 video and it worked. Much support for your channel!

  • @digicinematic
    @digicinematic Před rokem

    Thanks for your GREAT video. I hate technology documentation. Your demonstration saved me days of head-scratching and frustration. BTW, your instructions worked for me.

    • @Franchyze923
      @Franchyze923  Před rokem +1

      You’re welcome! Thanks for watching, glad it helped

  • @MosheEliyahu
    @MosheEliyahu Před 2 lety

    Thanks for this video - I am searching for a long time a solution for my gopro videos which I take while I am riding my dirt bike. being able to extract the GPX for a batch of files is a really important information I need.

    • @Franchyze923
      @Franchyze923  Před 2 lety

      That sounds cool, let me know if you run into any issues.

  • @renesachse4037
    @renesachse4037 Před 2 lety +1

    Many thanks for the great explaination! That is working with my VIOFO A119 V3.

  • @cjhoyle
    @cjhoyle Před 2 lety

    Great tutorial, very easy to follow.

    • @Franchyze923
      @Franchyze923  Před 2 lety

      Thanks for watching! Glad it was helpful.

  • @AtherrAlam
    @AtherrAlam Před měsícem

    Dude that voice! :) You should be narrating stuff, a story teller. Great video

  • @fzgarcia
    @fzgarcia Před rokem

    Top video, thanks for the examples.

  • @harsdensus88
    @harsdensus88 Před rokem

    Thank YOUThank YOUThank YOUThank YOU!!!! your tutorial is very clear to understand! You are lifesaver!

  • @wahidin6911
    @wahidin6911 Před rokem

    Thank you very much Sir. Very Helpful and very well explained.

  • @doyt2023
    @doyt2023 Před 11 měsíci

    You're the best Man! :)

  • @satanaz
    @satanaz Před měsícem

    great tutorial man! many thanks!!!!!!!!!!

  • @julitocas85
    @julitocas85 Před 2 lety

    Thanks for this explanation. I’m no expert in computers and I was able to follow your instructions. I have been able to pull out that information from a GoPro video but I was wondering if it’s posible to get information from gyroscope… I have seen it in videos so I’m pretty positive it’s embedded somewhere in the video

    • @Franchyze923
      @Franchyze923  Před 2 lety +1

      That's a good question and something I'm interested in as well. So when you use the -ee flag, the results don't have any telemetry data? Are you able to provide a small sample that I can take a look at? I'll do some googling and see if I can find anything.

  • @admfotad
    @admfotad Před měsícem

    Thnx, it helped me a lot

  • @kasandraleiva101
    @kasandraleiva101 Před 2 lety

    Muchas gracias, me funciono ok!

  • @asidmahmood2881
    @asidmahmood2881 Před 2 lety

    Hi can it convert video file like mp4 to gpx file will it give me latitude and longitude also my question is if mp4 video is long can I pause it at specific point to get latitude and longitude by converting video file to gpx

  • @yuriyvolkov2391
    @yuriyvolkov2391 Před 2 lety

    Great explanation and video! Thanks!
    Could you please advise how to add the "largefilesupport" option, otherwise my gpx files are turning out cutted off?

    • @Franchyze923
      @Franchyze923  Před 2 lety +2

      Try adding: -api LargeFileSupport=1 as a parameter to the command. Below is an example -
      exiftool -api LargeFileSupport=1 -p /Users/fpolig01/Documents/gpx.fmt -ee /Users/fpolig01/Downloads/myvideo.MP4 > /Users/fpolig01/Downloads/myvideo.gpx
      Here is a discussion on it - exiftool.org/forum/index.php?topic=11906.0
      Let me know how it goes. I'm curious, I've never used that parameter before. How big is your video file?

    • @fdelpupo
      @fdelpupo Před 2 lety

      @@Franchyze923 Hi, excelent video.
      but, my files are returning
      Warning: Truncated '\x00\x02\x00\x00' data - G:/trabalho temp/henrique/convertidos (1)/VID_20220622_075209_00_001.insv
      Warning: [Minor] Insta360 accelerometer data is huge. Processing only the first 20000 records - G:/trabalho temp/henrique/convertidos (1)/VID_20220622_075209_00_001.insv
      i'm using the largefilesuport
      you can help me?

  • @mattiazammarchi6294
    @mattiazammarchi6294 Před 2 lety

    Thank you so much! Very helpful and very well explained! Have you ever tried to create a .bat file with this command?

    • @Franchyze923
      @Franchyze923  Před 2 lety +1

      Thanks! No, I've never used it with a .bat but that's a good idea. I've called exiftool from Python though.

  • @jitenanand4899
    @jitenanand4899 Před rokem +1

    gps ,,metadata per frame is very useful to recreate a scene. captures and to exaclty locate the spot captured in the frame.

  • @doubleu23
    @doubleu23 Před 2 lety

    Thanks for the video, I can confirm that your instructions worked for me. Do you have any advice on how to get this to work on a Mac? Specifically the read all mp4 within a folder command. Thanks in advance.

    • @Franchyze923
      @Franchyze923  Před 2 lety

      Hey, thanks for watching. Check out this video - czcams.com/video/HXS1FN7ywYg/video.html&ab_channel=franchyze923. I show how to use it with Python, but I'm basically just calling it from the command line on my mac. Does that make sense? For example, a command would be exiftool -ee -m -p "/Users/fpolig01/Videos/dashcam_footage/gpx.fmt" full_mp4_path

    • @doubleu23
      @doubleu23 Před 2 lety +1

      @@Franchyze923 Thanks for responding, I will give it a try later. Thanks again!

  • @Kblunt333
    @Kblunt333 Před 2 lety +1

    Thank you alot for posting this!! I'm trying to process a video about 400Mb and the code seems to stop outputting at 180 data points even though there are much more stored in the file, any idea if there is a timeout issue or max runtime I could override?

    • @Franchyze923
      @Franchyze923  Před 2 lety

      hmm interesting, no I don't know if there is any sort of time out. 400MB doesn't seem too big of a file. If you're willing to share the video I can try to take a look. Also, you can post on the exiftool forums - exiftool.org/forum/index.php?PHPSESSID=e04117e128098707a77aeaf8d8f89261&#c1

    • @Kblunt333
      @Kblunt333 Před 2 lety

      @@Franchyze923 hey I figured it out, user error, I thought the video covered a much longer timeframe so it works as intended, thanks!

    • @clayjeansen5502
      @clayjeansen5502 Před rokem

      ​@@Kblunt333hey I have also downloaded the exiftool but when i tried to execute on some files.. it only decrypted the basic metadata of the picture.. It didn't give full information about the picture (like gps, device information and other stuff) can you tell me what's the issue?
      I'm on windows 11

  • @user-xq6yw7lv2e
    @user-xq6yw7lv2e Před 2 lety +1

    thanks for the video and i know how to extract gps information right now. But If i want to import these GPS information to a video, what command should I use

    • @Franchyze923
      @Franchyze923  Před 2 lety

      I've never tried that before, check out these posts -
      exiftool.org/forum/index.php?topic=7826.0
      exiftool.org/forum/index.php?topic=12720.0

  • @burakyilmaz_net
    @burakyilmaz_net Před 7 měsíci

    Now we are need to add that gpx data in to mp4 file because of gopro 12 has not a gps chip and quick app not add gps label with out gps data combined with mp4. is ist posible to add gpx data coming from android phone to mp4 file and uploud the gopro cloud than add label use quick app

  • @vidakgrujic827
    @vidakgrujic827 Před rokem

    Hello. 😊 Can this tool take the coordinates from video where we used IPhone 12 Pro Max instead Go Pro? Thank you so much 😊

    • @Franchyze923
      @Franchyze923  Před rokem

      You should be able to, try exiftool -ee /path/to/.mov file and see what kinda data you get back.

  • @offthebeatenpanel9418
    @offthebeatenpanel9418 Před 2 lety +1

    so when i run mine it pulls metadata but no GPD does that mean there is no gpd data on this mp4 or shoudl i see the values with 0

    • @Franchyze923
      @Franchyze923  Před 2 lety

      Yep, pretty sure that means your video has no GPS data in it. I just tried running exiftool -ee video_with_no_gps.mp4 and there was no GPS data in the output.

  • @AbhishekYadav-uo3hg
    @AbhishekYadav-uo3hg Před 7 měsíci

    How to save file with .fmt on mac?
    When i am running code as .txt it is working fine
    I have downloaded gpx.fmt but when i am saving it, it is getting saved as .doc/ pages .
    However in your video the file type is fmt
    How to do this pl help

  • @Fritz33102
    @Fritz33102 Před měsícem

    Hello Franchyze923,
    Thanks for the detailed explanation, but unfortunately I can't get a usable GPX file!
    I have a DJI Osmo Action 4 and wanted to make an offerlay with the GPX data using Virb Edit, but unfortunately there is no usable data in the GPX file!
    Is it possible that this procedure doesn't work with the DJI?

    • @Fritz33102
      @Fritz33102 Před měsícem

      Hello again,
      I stole a few videos from a GoPro and it all works there, so it's down to the coding from DJI.
      If I open the DJI videos on my phone with the Mimo app, it works too, but it's very limited!
      Nevertheless, a great video and very objectively explained, even understandable for someone from abroad.

  • @monstersaint
    @monstersaint Před rokem

    I got some data returned but no gps coordinates. I did use the "-ee". Any thoughts? The video was excellent.

    • @Franchyze923
      @Franchyze923  Před rokem

      is it possible the device doesnt record gps?

  • @AbhishekYadav-uo3hg
    @AbhishekYadav-uo3hg Před 7 měsíci

    I have downloaded the tool..however the complete procedure is different due to terminal in mac instead of Cmd prompt…
    I am not able to follow the same.. request if the complete procedure of how to do in mac can be explained
    Thanks

  • @steadywhoop
    @steadywhoop Před 2 lety +1

    Thanks for the video: do you know if we can extract gyro datas from an action cam with Exiftool ?

    • @Franchyze923
      @Franchyze923  Před 2 lety +1

      There is probably a way. I'm trying to take a look at the documentation but it looks like exiftool.org/ is down at the moment. Have you tried using the -ee flag? That should give you more info about what's in the file. Might also want to look for IMU/accelerometer data. If you have a file sample, I can try to take a look.

    • @steadywhoop
      @steadywhoop Před 2 lety

      @@Franchyze923 did you look at the video file ? Did you try to extract gyros datas ?

    • @Franchyze923
      @Franchyze923  Před 2 lety

      @@steadywhoop no, I know my video files don't have that sort of data embedded. It's dependent on the video file. If you have a sample file I can take a look.

    • @steadywhoop
      @steadywhoop Před 2 lety

      @@Franchyze923 Sorry, I tried again to share the link here but CZcams removes the link

    • @Franchyze923
      @Franchyze923  Před 2 lety +1

      @@steadywhoop you can send to franchyze923@gmail.com

  • @Guthbutter
    @Guthbutter Před rokem

    What an excellent video, very informative and easy to follow especially for someone like me who is very new to a lot of this so thank you! Is it possible for you to post a tutorial on how to export to .csv from .mp4 file using exiftool? I tried to replicate the same steps from this video but must not be doing a step wrong.

    • @Franchyze923
      @Franchyze923  Před rokem

      Thanks! I'll look into making a video on exporting to .csv.

    • @Franchyze923
      @Franchyze923  Před rokem

      Try this -
      exiftool -p '$gpslatitude,$gpslongitude,$gpsspeed' -n -ee /video.mp4 > /output.csv
      If you are on windows you will need double quotes around '$gpslatitude,$gpslongitude,$gpsspeed' instead of single quotes.
      Check these threads out too -
      exiftool.org/forum/index.php?topic=5095.60 (scroll way to the bottom, refer to last post by Phil)
      exiftool.org/forum/index.php?topic=10702.0
      Hope that helps!

  • @nguyenhoangha582
    @nguyenhoangha582 Před měsícem

    Excuse me, when I tried extracting data from a video with the -ee command, I got this returned: "Wildcards don't work in the directory specification. No matching files". Do you what is the problem and how to fix this?

  • @nkrumahminsinga1541
    @nkrumahminsinga1541 Před rokem

    good morning and thank you for the video. i've followed your instructions but for me it doesn't work, i still have problems to extract gps information. Do you know the possible causes please?

  • @DanialADHOfficial
    @DanialADHOfficial Před 2 lety +2

    hi do you know any similar apps that have simple user interface

    • @Franchyze923
      @Franchyze923  Před 2 lety +1

      I know some companies have software that does this like GoPro and Garmin. Not sure what device you are using but might want to see if the manufatucer has some sort of software that can do it. You just gave me a good idea! I might try to look into making a simple web app that can do this.
      goprotelemetryextractor.com/free/

    • @DanialADHOfficial
      @DanialADHOfficial Před 2 lety

      @@Franchyze923 i tested out and its now work with my insta350 X2 format. its saying that processing is limited to 2000 lines

  • @timsdd
    @timsdd Před rokem

    wild stuff. well beyond my typical scope!
    My stupid *** new Ricoh Theta X WILL NOT import mp4's correctly into Street View Studio...."no gps data found" - even though the location icon on the camera is solid white.
    In any case, I was able to create GPX files and upload the video finally....not sure if they will track properly yet as they are still being processed by SVS
    BUT! very cool. thanks a bunch!!

  • @K12war
    @K12war Před 6 měsíci

    Does not work for me. A video sent to me on facebook that was shot with an iphone = no gps data to be found

  • @andrewholder4539
    @andrewholder4539 Před 7 měsíci

    I'm trying to get GPS data from an mp4 video clip. The command exiftool -ee filename.mp4 doesn't give any GPS data in the list. Does this mean there's no GPS in the file or am I not using the right command? Thank you for an excellent video.

    • @Franchyze923
      @Franchyze923  Před 7 měsíci

      yea probably no GPS, what kind of device did the video come from?

    • @andrewholder4539
      @andrewholder4539 Před 7 měsíci

      Thank you for your speedy reply. I don't know where the original came from. I'm guessing it was a phone camera as it's in portrait mode. It was just emailed to me by a third party as an attachment.@@Franchyze923

    • @andrewholder4539
      @andrewholder4539 Před 7 měsíci

      I'll try and get the original.

  • @aashish92
    @aashish92 Před 2 lety

    Couldn't get GPS coordinates, threw warning of GPS Encryption and coordinates were jebrish.

  • @ivilsa7904
    @ivilsa7904 Před rokem

    Gotta be honest: did not watched full video cause I am in a hurry. (will do later probably) but heres my rushed stupid question:
    Can I "hypothetically" use this for any vid and find out the GPS data?
    thanks in advance

    • @Franchyze923
      @Franchyze923  Před rokem

      The camera used to shoot the video needs to support GPS

  • @antonios5572
    @antonios5572 Před 2 měsíci

    Hi, I'm experiencing an issue with my Android phone as a video capture device. It appears to only register singular GPS information points rather than embedding frame by frame. Do you have any insights on this

    • @Franchyze923
      @Franchyze923  Před 2 měsíci +1

      It's possible your Android phone doesn't embed that data. What kind of phone?

    • @antonios5572
      @antonios5572 Před 2 měsíci

      @@Franchyze923 It's a Oneplus Nord (i think the first, from 2020 or so), do you know for sure what kind of phone can do this?

    • @Franchyze923
      @Franchyze923  Před 2 měsíci +1

      @@antonios5572 hmm I'm actually not sure, the video I was using came from a dashcam. I'm not sure how common it is for phones to record that type of detailed metadata. I just checked an iPhone video and I can only find one GPS point.

    • @antonios5572
      @antonios5572 Před 2 měsíci

      @@Franchyze923 I understand, maybe it's how smartphone works, many thanks for the quick tryout

  • @AbhishekYadav-uo3hg
    @AbhishekYadav-uo3hg Před 7 měsíci

    Can u pl help if i want to do the same on mac book… i am in urgent need
    Thanks

    • @Franchyze923
      @Franchyze923  Před 7 měsíci

      works on mac as well, you can download for mac here - exiftool.org/index.html

    • @AbhishekYadav-uo3hg
      @AbhishekYadav-uo3hg Před 7 měsíci

      I have downloaded the tool..however the complete procedure is different due to terminal in mac instead of Cmd prompt…
      I am not able to follow the same.. request if the complete procedure of how to do in mac can be explained
      Thanks

  • @r6u356une56ney
    @r6u356une56ney Před 2 lety

    This would have been more useful if it had been a typed page. As presented the resolution is too high to even read what you're typing, and of course impossible to copy/paste.

    • @Franchyze923
      @Franchyze923  Před 2 lety

      github.com/franchyze923/Code_From_Tutorials/tree/master/Misc%20Projects

  • @user-td9bu6kd8j
    @user-td9bu6kd8j Před rokem +1

    Can you share the .MP4 file?

    • @Franchyze923
      @Franchyze923  Před rokem

      I’ll see if I can find it

    • @jeanchris1594
      @jeanchris1594 Před 11 měsíci

      we would really appreciate if you could share the .mp4 file or guide us on where to get sample mp4 files with gps metadata@@Franchyze923

  • @CruiseW
    @CruiseW Před 2 lety

    12:20 Yes can you make a quick video on this

    • @Franchyze923
      @Franchyze923  Před 2 lety

      Here ya go! - czcams.com/video/HXS1FN7ywYg/video.html&ab_channel=franchyze923
      Let me know how it goes

    • @CruiseW
      @CruiseW Před 2 lety +1

      @@Franchyze923 Thank you so much, will do.

  • @BandungStreetView
    @BandungStreetView Před rokem

    Rieut dak euy

  • @jeanmi8184
    @jeanmi8184 Před 2 lety +1

    bonjour

  • @danoslehoy
    @danoslehoy Před 2 lety

    Porqué habla con esa voz de misterio y terror ?