Real-time video, recording and data management
UAT 454 UAS for Surveillance, Monitoring and Security
Lesson
By the end of this module you will be able to
- Compute bit rate, data volume and the latency budget of real-time video
- Explain the role of KLV metadata under MISB ST 0601
- Compute frame-centre coordinates from camera position, depression and azimuth, and assess the error
- Set up recording, naming, integrity checking and retention of data
Why this matters
An image showing a fire that does not reach the centre in time, or arrives with nobody knowing where it is, does not help put the fire out. A recording that cannot be found, or cannot be shown to be unaltered, is useless as evidence. This module covers the path of imagery from camera to archive.
Bit rate, bandwidth and latency
Video is compressed by an encoder such as H.264 or H.265. The bit rate needed depends on resolution, frame rate and scene complexity: a forest with moving leaves and smoke needs more bits than a clear sky. Edition 0601.8 (2014) of the MISB ST 0601 standard notes that UAS video with metadata is typically sent over medium-bandwidth wireless links of about 1–5 Mb/s (the standard has since been revised, so check the current edition).
Example 1 Can both cameras be sent?
The 1080p EO camera is encoded at 4 Mb/s and the thermal camera at 1.5 Mb/s; the video link carries 4 Mb/s; flights last 72 usable minutes.
# video bit rates (Mb/s): EO 1080p camera and thermal camera
eo, ir = 4.0, 1.5
flight_min = 72
link = 4.0 # video link capacity (Mb/s)
total = eo + ir
gb = total * 1e6 * flight_min * 60 / 8 / 1e9
print(f"recording on board: {total} Mb/s x {flight_min} min = {gb:.2f} GB")
print(f"both streams fit the {link} Mb/s link? {total <= link}")
# latency budget (ms)
latency = {"encode": 100, "radio": 20, "relay to ops centre": 150, "decode + display": 80}
print("latency", sum(latency.values()), "ms")
recording on board: 5.5 Mb/s x 72 min = 2.97 GB
both streams fit the 4.0 Mb/s link? False
latency 350 ms
On-board recording totals 5.5 Mb/s, or 2.97 GB per flight, but the 4 Mb/s link cannot carry both streams at full quality. The team therefore sends the thermal stream at full quality and reduces the EO stream to 2 Mb/s for live viewing, while full-quality video is recorded on board for later review. The 350 ms total latency is acceptable for watching, but if the pilot used live video to avoid obstacles, much lower latency would be needed.
The relay from ground station to centre in forest areas often depends on patchy mobile networks. Design so that losing live video does not fail the mission, for example by sending still images with coordinates at intervals when the signal is weak (principles from UAT 207).
KLV metadata
An image without coordinates is just a nice picture. Metadata says when the image was taken, from where, and where the camera was pointing. The MISB ST 0601 standard (UAS Datalink Local Set) defines how to encode this as KLV (key-length-value) in the same stream as the video, including time, aircraft position and height, camera heading and angles, field of view, slant range and frame-centre coordinates. The standard notes that synchronising metadata with each video frame is the system designer’s responsibility; if the times drift, the coordinates will be wrong even when every value is correct.
Locating the frame centre
On flat ground, the horizontal distance from the aircraft to the frame centre is , where is height above ground and the depression angle. Split it into north and east by the camera azimuth , then convert to degrees with the Earth radius .
Example 2 What are the fire’s coordinates?
Metadata show the aircraft at 18.90° N 98.80° E, 120 m above ground, with the camera depressed 21.8° and pointing at azimuth 45° (north-east). The fire is at the frame centre.
import math
# metadata from the KLV stream: camera position, height above ground, depression and azimuth
lat0, lon0, h = 18.90, 98.80, 120 # degrees, degrees, m
dep, az = 21.8, 45.0 # degrees
R = 6_378_137.0 # WGS 84 Earth radius (m)
d = h / math.tan(math.radians(dep)) # horizontal distance to the frame centre (flat ground)
dn, de = d * math.cos(math.radians(az)), d * math.sin(math.radians(az))
lat = lat0 + math.degrees(dn / R)
lon = lon0 + math.degrees(de / (R * math.cos(math.radians(lat0))))
print(f"ground distance {d:.1f} m, north {dn:.1f} m, east {de:.1f} m")
print(f"frame centre {lat:.6f}, {lon:.6f}")
for err in (-1, 1): # depression off by 1 degree
d2 = h / math.tan(math.radians(dep + err))
print(f"depression {err:+d} deg -> {d2:.1f} m ({d2 - d:+.1f} m)")
ground distance 300.0 m, north 212.1 m, east 212.1 m
frame centre 18.901906, 98.802014
depression -1 deg -> 315.9 m (+15.9 m)
depression +1 deg -> 285.5 m (-14.6 m)
The fire is 300 m away, 212.1 m north and 212.1 m east, at 18.901906, 98.802014. A depression error of just 1° shifts the distance by 15–16 m, still within the 50 m requirement from module 1. Looking 1,500 m away, the depression angle is much smaller and the same angular error grows several times, and on mountains where the ground is not flat a terrain elevation model is needed.
Recording and managing data
The team manages data from every flight as follows:
- Use one naming pattern, such as
2026-03-14_S2_EO.mp4(date, sortie, camera), with the flight log and metadata - Keep originals separate from working copies, and compute a SHA-256 hash of each original right after landing, to show later that files were not altered
- Restrict access: zoomed EO imagery that may show people is opened only by staff with a duty to, with a record of who opened it and when
- Set retention: imagery with no incident is deleted on schedule, while fire-incident imagery is kept as long as needed for reports and investigations. Thailand’s Personal Data Protection Act B.E. 2562 (2019) requires personal data to be kept only as necessary for its purpose (module 5)
- Size the storage: about 3 GB per flight, 6 flights a day over a 60-day fire season comes to about 1 TB, with off-site backup too
Module lab
Lab: streaming, recording and locating
- Connect the camera on a drone or training rig to the ground station, and measure latency by filming a stopwatch and comparing with the screen
- Try three bit rates, watch image quality when the camera pans fast, and compute data volume with the code in Example 1
- Fly over a target with known GNSS coordinates; use the aircraft log and camera angles to compute its position with the code in Example 2, and measure the error
- Organise the data folder following this module, compute SHA-256 of the originals, and check again after copying
Common mistakes
Watch out
- Adding up camera bit rates without comparing with link capacity, so all live video stutters
- Sending video without metadata, leaving the centre to guess coordinates from the image
- Metadata time not matching the video, so coordinates are off even with correct angles
- Assuming flat ground on mountains, putting coordinates tens of metres out
- Working on original files with no hash, so nobody can show they were not altered
Summary
- Data volume ; total bit rate must not exceed link capacity, otherwise record full quality on board and send a reduced stream
- MISB ST 0601 encodes KLV metadata in the same stream as the video, and its time must match the frames
- Frame-centre coordinates come from and the camera azimuth; errors grow as depression shrinks
- Manage data with standard file names, originals with SHA-256, restricted access and defined retention
Check your understanding
- A 3 Mb/s stream is recorded for 60 minutes. How many GB is that?
- At 100 m height with the camera depressed 45°, how far horizontally is the frame centre?
- From question 2, with the camera at azimuth 90°, in which direction is the frame centre and how far north or south?
- Why compute a SHA-256 hash of original files right after landing?
- What link bandwidth does MISB ST 0601 give for video with metadata?
Answers
- bytes, or 1.35 GB
- m
- East, with a north-south offset of m
- To show later that the files used in reports match the originals and were not altered
- Medium bandwidth of about 1–5 Mb/s
Key formulas
| Recorded data volume | |
| Horizontal distance to frame centre (flat ground) | |
| Frame-centre coordinates |
Key references
- Motion Imagery Standards Board. (2014). UAS datalink local set (MISB ST 0601.8). link
- Fahlstrom, P. G., Gleason, T. J., & Sadraey, M. H. (2022). Introduction to UAV systems (5th ed.). Wiley. link
- พระราชบัญญัติคุ้มครองข้อมูลส่วนบุคคล พ.ศ. 2562. ราชกิจจานุเบกษา, 136(69 ก), 52–95. link
- สำนักงานการบินพลเรือนแห่งประเทศไทย. (2568). แนวปฏิบัติในการขอปฏิบัติการบินอากาศยานซึ่งไม่มีนักบินโดยใช้การประเมินความเสี่ยงที่เป็นไปตามเงื่อนไขที่กำหนดสำหรับการบินเกินกว่าระยะสายตา (CAAT-GM-UAS-PDRA101 ปรับปรุงครั้งที่ 00). link
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
การออกแบบ C2 link และ lost-link
Communications and data transfer when networks fail
Originals, hashes and traceable reports
In class / field
Lab or field practice from worksheets with a safety checklist
Learning evidence: Checked worksheets and quiz results