Welcome to PhantomPilots.com

Sign up for a weekly email of the latest drone news & information

Extracting GPS location from video?

Discussion in 'Pro/Adv Discussion' started by jb497, May 8, 2016.

  1. jb497

    Joined:
    May 8, 2016
    Messages:
    6
    Likes Received:
    0
    Hey all,

    I've been at this for hours and I can't quite figure this one out on my own. I'm sorry if the answer is simple, but I have a feeling it isn't.

    What is most important to me, is that I want to be able to watch a video from my flight, and at a certain point in that video, be able to determine GPS location, and time. Ideally I'd also like drone height, but it's not entirely necessary, I can easily get that info from the DJI Go app the hard way.

    I'd also like to be able to import the flight paths into GIS. I think for that one I need to access the .DAT files from the drone and use a file converter to convert it to a .CSV file, but at the moment I can't get the drone itself to mount to either my macbook pro, or a laptop running Windows 10. I might have to call DJI support for this one though.

    Other information:
    I'm running a 2015 macbook pro OSX Yosemite, but have access to a laptop running Windows 10 Home.
    I have a DJI Phantom 3 Professional

    Thanks for any help anyone can give me.
     
  2. Oso

    Oso

    Joined:
    May 19, 2015
    Messages:
    2,522
    Likes Received:
    1,475
    Location:
    Sacramento CA
    If you enable video caption it will generate an SRT file that includes coords for home and for current location, date, time, barometer, and camera settings. You can view it like subtitles. I don't know if there is an easy way to extract the data from that file as you asked.
     
    #2 Oso, May 8, 2016
    Last edited: May 8, 2016
    jb497 likes this.
  3. RCPILOT

    Joined:
    Aug 14, 2015
    Messages:
    36
    Likes Received:
    6
    Location:
    Winnipeg, MB Canada
    As Oso said enable video caching then when you download the video file and the SRT file place them in the same folder. Then open up the video file with VLC video player. The SRT file information including GPS coordinates will be displayed in the lower third portion of the video...
     
    jb497 likes this.
  4. jb497

    Joined:
    May 8, 2016
    Messages:
    6
    Likes Received:
    0
    Thanks guys. Lucky enough, I must have had video caching on the whole time. Is this something that I can turn off and on via the app?

    I did what you said, RCPILOT, and I opened it up in VLC with the associated SRT file in the same folder and it displays GPS info.

    I cannot thank you guys enough. This has been killing me all day.
     
  5. Oso

    Oso

    Joined:
    May 19, 2015
    Messages:
    2,522
    Likes Received:
    1,475
    Location:
    Sacramento CA
    You're welcome.
    You can enable or disable the video captions (not called caching) at any time in the app settings. Alternately, if you do keep it enabled and generate the SRT files, you can disable them in VLC so you can either see the data display or not. You can also keep video captions enabled, but just save the generated SRT files in a different folder so the data is not visible when watching the videos.
     
  6. jb497

    Joined:
    May 8, 2016
    Messages:
    6
    Likes Received:
    0
    Seriously, I cannot thank you enough. I'm trying to use this for a part of a college program I'm in, and I was seriously stuck.
     
  7. Crystal

    Joined:
    Jul 14, 2016
    Messages:
    4
    Likes Received:
    1
    Location:
    Northern California
    I have a question along these lines. I have fairly large non-conformal areas that I am working in. I have been using video, hoping to decrease the amount of pictures taken. In so doing, I would like to export the videos to images that maintain/contain their GPS information as I am hoping to use the images in ArcGIS. I appreciate any help. I have tried using my Lightroom, which worked once, but now it isn't working at all.
    Thanks.
     
  8. jb497

    Joined:
    May 8, 2016
    Messages:
    6
    Likes Received:
    0
    Try looking at VLC, it's a real power-house when it comes to this type of stuff. Also, are you saving the flight data while you are doing the flights? Basically my work around was that I had DJI recording the flight data, and when I would pull the DCIM files, I would put EVERYTHING in a folder. Then you open the video in VLC, and if you have caption on, it'll give you GPS info wherever it is at.

    You can also use VLC to extract high-res images. You know the DJI is going to take images that are a few MB big. Well, it's basically the same thing when you extract the images from the video. Should be able to get the GPS data associated with it as well. Let me know if you need help with any of this.
     
  9. Mark The Droner

    Joined:
    Aug 26, 2015
    Messages:
    3,961
    Likes Received:
    1,157
    Location:
    Brookeville, MD, USA
    Litchi keeps a log of GPS coordinates. You can overlay it onto your video with dashware.

    Litchi can also display the coordinates onto your FPV screen as you fly...