A DJI .SRT file is a subtitle file that the drone saves beside a video, with the same name. It is plain text. For each moment of the video it records where the drone was, how high, and how the camera was set. Video players show it as captions. Mapping and GIS tools read it as the track of the flight.
How to get one
The drone writes the file only when the setting is on before you record.
| App | Setting |
|---|---|
| DJI Fly | Video Subtitles, in the camera settings |
| DJI GO 4 | Video Caption, in the camera settings |
After the flight the memory card holds two files for each recording, for example DJI_0012.MP4 and DJI_0012.SRT. Copy both. The file cannot be made afterwards for a video recorded without it.
Some models store the same text inside the video file and save no separate .SRT file.
What is inside
Open the file in any text editor. It is a list of numbered entries, each with a time in the video and a line of data.
| Value | Meaning |
|---|---|
| latitude, longitude | Position of the drone in decimal degrees. |
| rel_alt | Height above the take-off point, in metres. |
| abs_alt | Height above sea level, in metres. |
| iso, shutter, fnum | Camera settings for that moment. |
| Date and time | The drone's clock, in local time. |
The layout differs between models. Newer drones write an entry for every frame. Older ones, such as the Mavic Pro and the Phantom 4, write one entry a second, with the position as "GPS(longitude, latitude, satellites)" to four decimal places, which is about ten metres. On those the height is above the take-off point.
What it is used for
- Showing speed, height and settings over the video in an editor.
- Drawing the flight on a map.
- Giving a position to frames taken from the video. Video to Geotagged Frames reads the .SRT file and saves frames as JPG photos with GPS. How to get geotagged photos from drone video has the steps.
The heights have the same limits as in DJI photos. DJI altitude fields explained covers what each height means, and why the altitude is wrong in DJI photos covers the air-pressure height.
Questions
Can I delete the .SRT files?
Yes. The video plays without them. Keep them if you may want the flight data or geotagged frames later, because they cannot be made again.
Why is there no .SRT file on my card?
The setting was off, or your model stores the text inside the video file. Check the camera settings in the app before the next flight.
Does the file hold the camera direction?
Only on some models, such as the Phantom 4 RTK, which add the gimbal angles. Most record position, height and camera settings.
Is the time in the file UTC?
No. It is the drone's local clock, with no time zone written.