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

Anyone has build a tool that can changed the SRT file that DJI makes?

Ducatinus

Well-Known Member
Joined
Mar 30, 2020
Messages
50
Reactions
3
Age
64
Location
Netherlands
Hi

My mini 5 pro produce an SRT file with very much(to much) information.
I would like to display only hight and speed that is in this SRT file.
Anyone build an extractor or scriopt that easily can alter the SRT file?

Hope there is sometning out there and you can poiint me in the right direction
 
Hi

My mini 5 pro produce an SRT file with very much(to much) information.
I would like to display only hight and speed that is in this SRT file.
Anyone build an extractor or scriopt that easily can alter the SRT file?

Hope there is sometning out there and you can poiint me in the right direction
DaVinci Resolve/Premiere Pro: Don't use the raw SRT as a subtitle. Instead, use a "Telemetry Overlay" software. It reads the SRT and creates a high-quality graphical overlay (gauges, bars, etc.) which looks much better than just text.
 
I have recently used Telemetry Overlay software with great result. Be aware that it costs $199.00 USD and it comes from a company in Spain. Link - App Prototyping Barcelona. I recently had a wildlife survey of a property I own. I took the thermal image file and used Telemetry Overlay to extract GPS data to produce a .mp4 file that displays the GPS data contained in the DJI .mp4 file provided to me my the survey company. See attached screenshot of Telemetry Overlay (TO) display produced. TO produced file can be configured to display the following information:

Image of total flight path flown
Associated GPS data of any point along flight path
Drone camera angle view along flight path
Compass display of drone flight path
Continuous Altitude display
Continuous distance of flight path
Camera vertical angle display
Camera aperture used
Drone speed (ft/min) at any point along flight path
Dial display of drone speed at any point along flight path
 

Attachments

Last edited:
  • Like
Reactions: mavictk
Hi

My mini 5 pro produce an SRT file with very much(to much) information.
I would like to display only hight and speed that is in this SRT file.
Anyone build an extractor or scriopt that easily can alter the SRT file?

Hope there is sometning out there and you can poiint me in the right direction
If you have PowerShell installed, you can write a script to edit the SRT file. That script would work on Windows, MacOS, and Linux. If you can PM me and send me a copy of a SRT, I can write the basics of the script.
 
I have recently used Telemetry Overlay software with great result. Be aware that it costs $199.00 USD and it comes from a company in Spain. Link - App Prototyping Barcelona. I recently had a wildlife survey of a property I own. I took the thermal image file and used Telemetry Overlay to extract GPS data to produce a .mp4 file that displays the GPS data contained in the DJI .mp4 file provided to me my the survey company. See attached screenshot of Telemetry Overlay (TO) display produced. TO produced file can be configured to display the following information:

Image of total flight path flown
Associated GPS data of any point along flight path
Drone camera angle view along flight path
Compass display of drone flight path
Continuous Altitude display
Continuous distance of flight path
Camera vertical angle display
Camera aperture used
Drone speed (ft/min) at any point along flight path
Dial display of drone speed at any point along flight path
**** that's a bit over priced for something you can do for free in DaVinci Resolve. people get a bit greedy with this stuff, they would sell 100x more if they charged 10% of that.
 
Thanks for your timely and speedy reply. Some of us, me included, do not have the scripting skills you elude to. Seems to be somewhat a little complex if I have to send you a file for you to write a custom script for. Yes Telemetry Overview may be a little expensive but it was plug and play and I was able to get what I wanted in about 5 minutes after running the program. I don't have the time or experience to experiment with scripting and I find this as a very viable solution for what I wanted to accomplish. Never heard of DaVinci Resolve.
 
would like to display only hight and speed that is in this SRT file.
Anyone build an extractor or scriopt that easily can alter the SRT file?
I have a converter that will take the flight log and let you create an SRT file with any data you choose.

 
  • Like
Reactions: RRB and MS Coast
Thanks for your timely and speedy reply. Some of us, me included, do not have the scripting skills you elude to. Seems to be somewhat a little complex if I have to send you a file for you to write a custom script for. Yes Telemetry Overview may be a little expensive but it was plug and play and I was able to get what I wanted in about 5 minutes after running the program. I don't have the time or experience to experiment with scripting and I find this as a very viable solution for what I wanted to accomplish. Never heard of DaVinci Resolve.
I only asked for the OP to send the file to see what the data looked like. I have written scripts to work on transcript files, and while it would be custom, it would be reusable. If you had a folder with 40 srtt files, it would do them all.

Da Vinci Resolve is a commercial-grade video editor that has a free edition. It's mentioned on here.
 
  • Like
Reactions: Ducatinus
If you have PowerShell installed, you can write a script to edit the SRT file. That script would work on Windows, MacOS, and Linux. If you can PM me and send me a copy of a SRT, I can write the basics of the script.
thanks mate. I send you the SRT file. Maybe you can write a script for me to show the various options on screen
 
Not the most fool proof or consistent, but i bet you could tell ChatGPT to only retain those 2 data points and remove everything else, and paste the SRT contents into the chat - 95% sure it would be able to do it.
 
Not the most fool proof or consistent, but i bet you could tell ChatGPT to only retain those 2 data points and remove everything else, and paste the SRT contents into the chat - 95% sure it would be able to do it.
The right prompt could do that. It becomes a little tedious when you have a folder of file,s and you want to do them all.
 
  • Like
Reactions: Ducatinus
Here is a link to a PowerShell script that will filter an SRT file to only show a small set of fields,
Extract absolute altitude (abs_alt) from DJI SRT files

This is written for PowerShell 7 and tested on Windows with an SRT file supplied by @Ducatinus. It should work for other versions of PowerShell and on Linux or MacOS. The instructions on how to use it are in the script.

It's hard-coded for the fields, but it shows how to extract multiple fields. It can also optionally remove the font style, timestamp, and frame counts.

It can also reduce the file size by excluding certain rows. DJI writes a new row every 16 ms. That's roughly 60 frames a second, or faster than you can read. You can change that interval. If you set it to 500, then you get a row every half-second.
 
  • Like
Reactions: Ducatinus
Here is a link to a PowerShell script that will filter an SRT file to only show a small set of fields,
Extract absolute altitude (abs_alt) from DJI SRT files

This is written for PowerShell 7 and tested on Windows with an SRT file supplied by @Ducatinus. It should work for other versions of PowerShell and on Linux or MacOS. The instructions on how to use it are in the script.

It's hard-coded for the fields, but it shows how to extract multiple fields. It can also optionally remove the font style, timestamp, and frame counts.

It can also reduce the file size by excluding certain rows. DJI writes a new row every 16 ms. That's roughly 60 frames a second, or faster than you can read. You can change that interval. If you set it to 500, then you get a row every half-second.
Nice work and thank you for this. Will try it and thanks for the effort for the community and sharing
 
  • Like
Reactions: anotherlab
Nice work and thank you for this. Will try it and thanks for the effort for the community and sharing
There was a bug that caused the script to crash on small files. I updated the git to fix it.
 

DJI Drone Deals

New Threads

Forum statistics

Threads
140,229
Messages
1,656,869
Members
168,234
Latest member
djieastcoaster
Want to Remove this Ad? Simply login or create a free account