exiftool to manage DJI media files

DJI Drones don’t seem to remember the image count between formats of a media card. This creates a problem for me when I’m trying to backup and maintain my images and video.

Because the dates are all correct in the media files, retrieved from GPS data, organizing the files by naming them based on the date works for me.

Using ExifTool by Phil Harvey is a great solution for pulling the metadata from the files and renaming the files.

The command line that I was initially using is:

exiftool "-FileName<${CreateDate}.$filetype" -d %Y%m%d-%H%M%S%%-c -ext mp4 -ext dng -ext jpg dji*

It’s problem is that it orphans the SRT subtitle files from my videos that I’d like to keep matching the video files.

I’ve tried this variation to do it in one step but it doesn’t work, because the SRT files get renamed as MP4 files.

exiftool -verbose "-FileName<${CreateDate}" -d %Y%m%d-%H%M%S%%-c.%%le -ext mp4 -ext dng -ext jpg dji* -srcfile %f.srt

If anyone has a suggestion for how to rename all the media files in one directory I’d appreciate it. Even running two commands in sequence would be fine.


I’ve figured out that running these two commands in sequence will get me the results I am looking for:

exiftool "-FileName<${CreateDate}" -d %Y%m%d-%H%M%S%%-c.srt -ext mp4 -srcfile %f.srt dji*
exiftool "-FileName<${CreateDate}" -d %Y%m%d-%H%M%S%%-c.%%le -ext mp4 -ext dng -ext jpg dji*

I’m still looking for a way of doing it in a single command that may leave less room for error, but this is working for now.

Best Buy and DJI Accessories

I don’t shop too much locally for technology, because it always seems that what I want is not available locally. Yesterday I was wandering around killing time and went into the local Best Buy.  Instead of just looking at the normal things I might go for in a best buy, I looked around to see what was new. They now have an aisle dedicated to drones. There were complete drones from DJI, Yuneec, and several other manufacturers. More interesting to me was that they carried accessories for those drones as well.  I knew that they sold drones on-line, it just never occurred to me to look at them in person in the store.

I bought a Mavic Pro directly from DJI soon after they were released. I got the Fly-More package that entails several items including spare propellers. I’ve not needed to replace a propeller in my first 7 hours of flight time but it’s nice to know that propellers are available locally. DJI charges slightly less, $9.00, but they charge for shipping, and you have to wait for the item to arrive.