Étiquette | Explication | Type de données |
Input Video
| The FMV-compliant input video file containing essential metadata for each frame of the video data. The supported video file types include PS, TS, MPG, MPEG, MP2, MPG2, MPEG2, MP4, MPG4, MPEG4, H264, VOB, and M2TS. | File |
Output Metadata File
(Facultatif) | A comma-separated values (CSV) file containing metadata about the video frames for specific times. This metadata file is in the same format used by the Video Multiplexer tool. | File |
Output Flight Path Feature Class (Facultatif) | The feature class containing the sensor's flight path information. | Feature Class |
Flight Path Feature Class Type (Facultatif) | Specifies the feature class type for the flight path.
| String |
Output Image Path Feature Class
(Facultatif) | The output feature class containing the image path information. | Feature Class |
Image Path Feature Class Type (Facultatif) | Specifies the feature class type for the image path. If you're using a point output, the center of each video frame image will appear on the map.
| String |
Output Image Footprint Feature Class
(Facultatif) | The output feature class containing the video image footprint information. | Feature Class |
Metadata Capture Start Time (Facultatif) | The metadata recording start time from the beginning of the video. The input format is d.hh:mm:ss, and the default start time is 0.00:00:00. Metadata time stamps are not used in this field; the time of the video file is used. | Time Unit; Date |
Metadata Capture Stop Time (Facultatif) | The metadata recording end time. The input format is d.hh:mm:ss. If not set, the value will default to the end of the video. Metadata time stamps are not used in this field. | Time Unit; Date |
Minimum Distance Between Features (Facultatif) | The distance between the features in sequential video frames. If left blank, every metadata feature will be extracted and added to the feature class. | Linear Unit |
Minimum Time Between Features (Facultatif) | The time interval between the features in sequential video frames. If left blank, every metadata feature will be extracted and added to the feature class. | Time Unit |
Disponible avec une licence Image Analyst.
Synthèse
Extracts the platform, frame center, frame outline, and attributes metadata from an FMV-compliant video. The output geometry and attributes are saved as feature classes.
Utilisation
This tool exports FMV-compliant video metadata as feature classes, with all the metadata as fields in an attribute table. These features can be used for sensor location, video frame outline, and video frame center to verify proper data coverage, perform spatial queries, and to perform attribute queries to quickly find video frames of interest.
The tool only accepts archived video files as input, not live video streams.
The tool requires that an FMV-compliant video file be used as input. The tool will fail if the video does not contain MISB 0601 metadata in the video stream, or if that stream contains no metadata packets.
The tool can have four types of outputs, and you must specify at least one output. The tool will fail if all four outputs are left empty.
Paramètres
VideoMetadataToFeatureClass(in_video, {csv_file}, {flightpath}, {flightpath_type}, {imagepath}, {imagepath_type}, {footprint}, {start_time}, {stop_time}, {min_distance}, {min_time})
Nom | Explication | Type de données |
in_video | The FMV-compliant input video file containing essential metadata for each frame of the video data. The supported video file types include PS, TS, MPG, MPEG, MP2, MPG2, MPEG2, MP4, MPG4, MPEG4, H264, VOB, and M2TS. | File |
csv_file (Facultatif) | A comma-separated values (CSV) file containing metadata about the video frames for specific times. This metadata file is in the same format used by the Video Multiplexer tool. | File |
flightpath (Facultatif) | The feature class containing the sensor's flight path information. | Feature Class |
flightpath_type (Facultatif) | Specifies the feature class type for the flight path.
| String |
imagepath (Facultatif) | The output feature class containing the image path information. | Feature Class |
imagepath_type (Facultatif) | Specifies the feature class type for the image path. If you're using a point output, the center of each video frame image will appear on the map.
| String |
footprint (Facultatif) | The output feature class containing the video image footprint information. | Feature Class |
start_time (Facultatif) | The metadata recording start time from the beginning of the video. The input format is d.hh:mm:ss, and the default start time is 0.00:00:00. Metadata time stamps are not used in this field; the time of the video file is used. | Time Unit; Date |
stop_time (Facultatif) | The metadata recording end time. The input format is d.hh:mm:ss. If not set, the value will default to the end of the video. Metadata time stamps are not used in this field. | Time Unit; Date |
min_distance (Facultatif) | The distance between the features in sequential video frames. If left blank, every metadata feature will be extracted and added to the feature class. | Linear Unit |
min_time (Facultatif) | The time interval between the features in sequential video frames. If left blank, every metadata feature will be extracted and added to the feature class. | Time Unit |
Exemple de code
This example extracts and saves the platform, frame center, frame outline, and attributes metadata from a FMV-compliant video.
import arcpy
arcpy.ia.VideoMetadataToFeatureClass(
r"C:\test\input_video.ts", r"C:\output\outmeta.csv",
r"C:\test\meta.gdb\flight_path", "POLYLINE", r"C:\test\meta.gdb\image_path",
"POINT", r"C:\test\meta.gdb\image_footprint")
This example extracts and saves the platform, frame center, frame outline, and attributes metadata from a FMV-compliant video.
import arcpy
arcpy.CheckOutExtension("ImageAnalyst")
in_video = "c:\\test\\drone_vid.ts"
out_metadata = "c:\\output\\outmeta.csv"
flight_path = "C:\\test\\meta.gdb\\flight_path"
flight_path_type = "POLYLINE"
image_path = "C:\\test\\meta.gdb\\image_path"
image_path_type = "POINT"
image_footprint = "C:\\test\\meta.gdb\\image_footprint"
start_time = "1 Seconds"
stop_time = "60 Seconds"
distance_between = "2 Meters"
min_time_between = "20 Seconds"
arcpy.ia.VideoMetadataToFeatureClass(
in_video, out_metadata, flight_path, flight_path_type, image_path,
image_path_type, image_footprint, start_time, stop_time, distance_between,
min_time_between)
Informations de licence
- Basic: Nécessite Image Analyst
- Standard: Nécessite Image Analyst
- Advanced: Nécessite Image Analyst
Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?