DJI Mavic, Air and Mini Drones
Friendly, Helpful & Knowledgeable Community
Join Us Now

New DJI log parsing library

lvauvill

Member
Joined
Jun 25, 2024
Messages
6
Reactions
7
Age
38
Location
France
Hi,

I'm Luc, from France and I developed a .txt log parser in my free time to learn the Rust language.

Features :
  • Parse records and extract embedded images from DJI logs
  • Normalize records across different log versions for a consistent frame format
  • Export frames to CSV for easy analysis
  • Generate flight tracks in GeoJSON and KML formats
  • Support for all log versions, including encrypted logs (version 13+)

As far as I know, this is the only free tool that supports all log versions and decryption:
GitHub - lvauvillier/dji-log-parser: A library to parse records from DJI .txt logs

You will find in the release section, a free binary that works on all platforms, which can export log data to JSON, CSV, Kml and GeoJSON.

If you want to build more with it, there is a NodeJS binding also available here:
dji-log-parser-js

I have already tested the library on quite a few logs, but I am open to your feedback!

Luc
 
Last edited:
Greetings from Birmingham Alabama USA, welcome to the forum! We look forward to hearing from you!

Very interesting.
 
  • Like
Reactions: lvauvill and sarahb
Super interesting, thanks! I typically use DroneLogBook for logging, but it's cool to see a Node version. Will have to check it out, especially since DJI turned off sync for US users.
 
Downloading dji-log-x86_64-pc-windows-msvc.zip Failed - Virus detected!!!
There is no virus in the file. Your antivirus reports a false positive.
 
Downloading dji-log-x86_64-pc-windows-msvc.zip Failed - Virus detected!!!
What tool did you use that reported that file contained a virus? I uploaded that zip file to Virus Total and that did not detect any malware. This is not my project, but it's open source and the OP is using GitHub actions to generated the downloadable files.

You may want to run a deep scan on your own machine to see if you have a malware on your machine that is corrupting your downloads.
 
What tool did you use that reported that file contained a virus? I uploaded that zip file to Virus Total and that did not detect any malware. This is not my project, but it's open source and the OP is using GitHub actions to generated the downloadable files.

You may want to run a deep scan on your own machine to see if you have a malware on your machine that is corrupting your downloads.
1721667008124.png1721667023044.png
 
Super interesting, thanks! I typically use DroneLogBook for logging, but it's cool to see a Node version. Will have to check it out, especially since DJI turned off sync for US users.

You're welcome! I can't wait to see what the community will create with it. In the next release, I'll add browser support as well. My next major goal is to provide a complete log viewer that runs directly in the browser, which is great for privacy since it eliminates the need for log uploads.


What tool did you use that reported that file contained a virus? I uploaded that zip file to Virus Total and that did not detect any malware. This is not my project, but it's open source and the OP is using GitHub actions to generated the downloadable files.

You may want to run a deep scan on your own machine to see if you have a malware on your machine that is corrupting your downloads.
I don't know why the file is flagged as a virus. Honestly, I only tested it on Linux and macOS. As mentioned above, the release files are built by a GitHub workflow. Everything can be checked on GitHub.

If you are not comfortable, you can build the project from the sources:

cargo build --release -p dji-log-cli
 
You're welcome! I can't wait to see what the community will create with it. In the next release, I'll add browser support as well. My next major goal is to provide a complete log viewer that runs directly in the browser, which is great for privacy since it eliminates the need for log uploads.



I don't know why the file is flagged as a virus. Honestly, I only tested it on Linux and macOS. As mentioned above, the release files are built by a GitHub workflow. Everything can be checked on GitHub.

If you are not comfortable, you can build the project from the sources:

cargo build --release -p dji-log-cli
Very cool! I see it is licensed under MIT, does that mean commercial usage is allowed? I just launched our site fpvtrails.com and it would be a cool feature (down the road when we get the time!) to integrate the ability to view log files both in browser (no upload) and store as well.
 
You're welcome! I can't wait to see what the community will create with it. In the next release, I'll add browser support as well. My next major goal is to provide a complete log viewer that runs directly in the browser, which is great for privacy since it eliminates the need for log uploads.



I don't know why the file is flagged as a virus. Honestly, I only tested it on Linux and macOS. As mentioned above, the release files are built by a GitHub workflow. Everything can be checked on GitHub.

If you are not comfortable, you can build the project from the sources:

cargo build --release -p dji-log-cli
I was able to download the Windows one yesterday. When I try today I now get virus warnings and the downloads abort. I downloaded the Windows .zip to my Mac and uploaded it again to Virus Total. No viruses have been reported from the multiple tools that Vius Total uses.

This is probably a false positive report unless you are using a library that may have been tampered with.

You can report false positives to Microsoft at Submit a file for malware analysis - Microsoft Security Intelligence
 
So for numpties like me what, explicitly, does someone have to download to get this running on windows ?
 
So for numpties like me what, explicitly, does someone have to download to get this running on windows ?
Go here: Releases · lvauvillier/dji-log-parser
and download the file named: dji-log-x86_64-pc-windows-msvc.zip
Inside the zip is an .exe file, that you run in the usual way. You may get a warning that Windows protected your PC and won't run it, just ignore it.
 
  • Like
Reactions: Yorkshire_Pud
So for numpties like me what, explicitly, does someone have to download to get this running on windows ?
For some reason, Windows Defender appears to be flagging the app as malware. On my Windows machine, I couldn't download it at all. It's probably a false positive and the developer should submit it to Microsoft. I've had that happen with Semantec and a app that we wrote. We submitted it to Semantec and they whitelisted it.

The OP wrote it in the Rust language. You could download the Rust compiler and build the tool yourself.
 
I was able to download the Windows one yesterday. When I try today I now get virus warnings and the downloads abort. I downloaded the Windows .zip to my Mac and uploaded it again to Virus Total. No viruses have been reported from the multiple tools that Vius Total uses.

This is probably a false positive report unless you are using a library that may have been tampered with.

You can report false positives to Microsoft at Submit a file for malware analysis - Microsoft Security Intelligence
Apparently, to solve the issue, I need to register as a developer and sign the binary with a certificate. I will address this issue, but not now. Did someone manage to make it work on Windows despite this warning?
 
Apparently, to solve the issue, I need to register as a developer and sign the binary with a certificate. I will address this issue, but not now. Did someone manage to make it work on Windows despite this warning?
Not on windows 7 :-(
 
Did someone manage to make it work on Windows despite this warning?
On my Windows 10 machine, no.
I extract the zip and get a file named dji-log.exe
I run it, but nothing happens, nothing at all. I had two process monitor apps open to keep an eye on what it did, but it is "dead". It seems it does nothing.
I have a slightly customized Win 10 with a few security measures, but I have never seen this behaviour from an .exe-file before.
 
Looks like I was able to download, but not sure how to call or install it

If I run
```
dji-log --api-key __DJI_API_KEY__ DJIFlightRecord.txt > frames.json

```
I get
```
dji-log : The term 'dji-log'
is not recognized as the name
of a cmdlet, function, script
file, or operable program.
```

To run on windows, after downloading and extracting the .exe, move the .exe to the same folder as your DJI Flight record and run in command prompt

```
. ./dji-log --api-key {your api key} DJIFlightRecord.txt > frames.json
```

You need to add . and ./ before the command
See here: PowerShell The term is not recognized as cmdlet function script file or operable program
 
Last edited:
  • Like
Reactions: lvauvill
Lycus Tech Mavic Air 3 Case

DJI Drone Deals

New Threads

Forum statistics

Threads
134,341
Messages
1,593,830
Members
162,922
Latest member
brenthconroy