AdrianEddy / telemetry-parser

A tool to parse real-time metadata embedded in video files or telemetry from other sources like Betaflight blackbox. Supported formats: Sony, GoPro GPMF, Insta360, Betaflight blackbox (csv and binary)
Apache License 2.0
134 stars 13 forks source link

DJI *.srt new feature #25

Open Rufics opened 1 year ago

Rufics commented 1 year ago

Hi, will gyroflow work with DJI *.srt files? If this data is useful, I will be happy to write the code for this part.

AdrianEddy commented 1 year ago

What's in these files? Do you have a sample?

Rufics commented 1 year ago

Sorry, I made a mistake in the name, it will be *.srt correctly. This is a telemetry file from dji 2nd and 3rd generation drones.
Creates a text file with flight data. Here is an example of a file, and immediately its text version:

1
00:00:00,000 --> 00:00:00,033
<font size="28">SrtCnt : 1, DiffTime : 33ms
2023-06-05 19:46:33.590
[iso : 370] [shutter : 1/30.0] [fnum : 170] [ev : 0.7] [ct : 5816] [color_md : default] [focal_len : 240] [dzoom_ratio: 10000, delta:0],[latitude: 51.085609] [longitude: 17.077633] [rel_alt: 46.000 abs_alt: 119.811] </font>

2
00:00:00,033 --> 00:00:00,067
<font size="28">SrtCnt : 2, DiffTime : 34ms
2023-06-05 19:46:33.624
[iso : 370] [shutter : 1/30.0] [fnum : 170] [ev : 0.7] [ct : 5816] [color_md : default] [focal_len : 240] [dzoom_ratio: 10000, delta:0],[latitude: 51.085609] [longitude: 17.077633] [rel_alt: 46.000 abs_alt: 119.811] </font>

3
00:00:00,067 --> 00:00:00,100
<font size="28">SrtCnt : 3, DiffTime : 33ms
2023-06-05 19:46:33.657
[iso : 370] [shutter : 1/30.0] [fnum : 170] [ev : 0.7] [ct : 5813] [color_md : default] [focal_len : 240] [dzoom_ratio: 10000, delta:0],[latitude: 51.085609] [longitude: 17.077633] [rel_alt: 46.000 abs_alt: 119.811] </font>

I also give an example of a site that can visualize this: https://djitelemetryoverlay.com/srt-viewer/.
I think that these additional data can be used in the same way as with gopro. But I noticed that without smoothing in entry-level drones, the data is not very accurate.

DJI_0004.zip

AdrianEddy commented 1 year ago

well it is telemetry so it's in scope of telemetry-parser. If you want to write a parser for it, then feel free, I'll accept a PR. But in terms of Gyroflow, it's not useful for stabilization, because it's too low frequency, and it doesn't have camera angles