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

Tutorial: Workaround for mini SE subtitle problem

indigo141

Member
Joined
Dec 21, 2021
Messages
8
Reactions
2
Location
New Zealand
Hi, I’m new to the world of drones.

This thread is a continuation from here. Me and other mini se users are finding that the data provided in the subtitles of our recorded videos a lot more data than the telemetry. So much data that it covers the screen (Figure 1). This will surely be fixed, or has been fixed in an updated DJI Fly version. I use DJI Fly version 1.4.12, more recent versions have been unusable for me). Thanks to suggestions from Dronut I have been able to edit the sub titles to get the telemetry data to show on play back of video recordings.

1641280067085.png1641280139031.png
Figure 1a, b: Before and after subtitle editing
I've created this tutorial on how I am getting around the problem (I'm using VLC and can't even get subtitles to play on Windows Media player at the moment). This method is undesirable as it requires an internet connection, and silly as it uses a program to open and then export, which achieves something not understood by me. I welcome suggestions on how to improve upon this method, and hope to edit this tutorial with improvements. Hopefully DJI will put out a version of Fly that corrects this problem and I am able to use it (I'm using DJI Fly 1.4.12). I have had my first drone for a week, and have average computer skills.

Apps used:

Subtitle Extractor Subtitle Extractor for DJI Drones Free​
Excel​
Subtitle Edit – Described as free, Open source, very good but difficult for beginners​
Notepad – Far as I know comes with every version of Windows​

Steps

Step1.

Go to Subtitle Extractor for DJI Drones Choose the video file you want the subtitles .srt file extracted from. Fortunately, you don’t have to upload your video and the process is quite fast. Find your downloaded file (Wherever your browser downloads to), named YourVideoTitle.srt, mine is called DJI_0009.srt. Left click for me gives the option of open with Notepad. Right click >> 'Open with' should also give the option of opening in Notepad.

Figure 2 shows what I get in my .srt file. There are 30 of these per second, so I presume this is per frame of video. Making for a huge .srt file.

1641280970071.png
Figure 2:
AFAIK the rest of the data is about the camera, which may be useful to you. Myself, I just want the telemetry data on the last 2 lines. Excel can use delimiters to separate text into cells which can be used to edit the text. As there are no semicolons ”;” in the subtitle data a semicolon makes for a good delimiter here. As I want to remove the data after the timeline (00:00:00,000 --> 00:00:00,000) and before the GPS I want semi colons in the places indicated with arrows (and red) in Figure 3.

1641281310199.png
Figure 3:
I do this in Notepad by clicking Edit >> Replace… >> Replace All along with the text entries shown in Figures 4 and 5.

1641281518470.png
Figure 4:

1641281562986.png
Figure 5:
Then save file.
Click File >> Save

Step 2
1641282024926.png
So that Excel can open this file it needs to be in a .txt form. On the subtitle file click File >> Save as, the option to save the file as a text file should be there by default. Click OK. My file was named DJI_0009.srt. It is now named DJI_0009.srt.txt.

This file can now be opened by excel. Open a new workbook in Excel. Go File >> Open >> Browse. In the Open File dialogue box find the ‘All Excel Files’ drop-down list and click on ‘Text Files’. Navigate to the folder your 'name.srt.txt' file is in and click on it. The ‘Text Import Wizard’ opens, follow Figures 6, and 7.

1641281782687.png
Figure 6. Click Delimited >> Next

1641281860605.png
Figure 7. Deselect Tab, select semicolon >> Finish.

Your Excel sheet should look like Figure 8. The timeline is in column A, the data to be removed in column B, the data I want in column C.

1641282024926.png
Figure 8:

Right click the top of column B, and hit delete. It should look like Figure 9.

1641282209081.png
Figure 9:

Click File >> Save as >> Browse, Figure 9 for me comes up by default (I changed DJI_0009.srt.txt -> DJI_0009(1).srt.txt.

1641282315489.png
Figure 10:

VLC and probably other media players need a subtitle file so I rename DJI_0009(1).srt.txt -> DJI_0009(1).srt, and say yes to the warning that pops up. In VLC attempt to add DJI_0009(1).srt to the video by clicking Subtitle >> Add, then navigate to the file. If that works for you, you’re welcome. Alas it doesn’t work for me. I seem able to add the file but the subtitles don’t show up. Dronut was able to make an .srt file that worked just from what I posted here. This was encouraging, but try as I might I could not. I even reinstalled VLC but no success.

Step 3

Now for the silly part. I’m sure with a better solution this step will be unnecessary. I will attach the before and after files of this step in the hopes that someone may be able to find what I have done wrong (unable to attach srt files. Changed 'Before SE app used .srt' to 'Before SE app used .txt' to upload. Should be changed back to get the same results)

Anyway my next step is to open the program subtitle edit Subtitle Edit . I’m using ver 3.6.4. Using Subtitle Edit open your file. Click File >> Export >> Select ‘Plain text’. Fill in ‘Export options’ box as shown in Figure 11, than click save as.

1641283014861.png
Figure 11:
This saves it as a text file which oddly, works. It also works if you change the file extension to .srt. I thought that VLC couldn’t open text files and yet it does open this one (I can rename it to an srt file and it works as well. I thought that UTF-8 or UTF-8 with BOM may make the difference and saved files in Notepad with UTF-8 with BOM. This did not work. I can visually compare the 2 files and see no difference, before and after ‘Subtitle Edit’, but one works for me and the other doesn’t.
 

Attachments

Last edited:
  • Like
Reactions: Dronut
Can't you just turn off subtitles in the app? Or do you need them for something? AFAIK, they are only necessary for telemetry overlay on videos.
 
Yes i can turn them off, but i want the telemetry data on screen sometimes. Now that the software development kit has been released fur mini se, and Litchi and others will make way-points doable. I could use the GPS data to refine a flight path.
 
Last edited:

DJI Drone Deals

New Threads

Members online

Forum statistics

Threads
134,485
Messages
1,595,529
Members
163,013
Latest member
GLobus55
Want to Remove this Ad? Simply login or create a free account