From 2b371b58ed111c94066f1097187e07b8ff689781 Mon Sep 17 00:00:00 2001 From: Fridtjof Date: Wed, 15 Nov 2023 10:56:49 +0100 Subject: [PATCH] hailoexportfile_pts added PTS to hailoexportfile --- core/hailo/plugins/export/export_file/gsthailoexportfile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hailo/plugins/export/export_file/gsthailoexportfile.cpp b/core/hailo/plugins/export/export_file/gsthailoexportfile.cpp index d8ac0d4..5d6199a 100644 --- a/core/hailo/plugins/export/export_file/gsthailoexportfile.cpp +++ b/core/hailo/plugins/export/export_file/gsthailoexportfile.cpp @@ -187,6 +187,10 @@ gst_hailoexportfile_transform_ip(GstBaseTransform *trans, encoded_roi.AddMember("timestamp (ms)", rapidjson::Value(timenow), encoded_roi.GetAllocator()); encoded_roi.AddMember("buffer_offset", rapidjson::Value(hailoexportfile->buffer_offset), encoded_roi.GetAllocator()); + // Add a pts + GstClockTime pts = GST_BUFFER_PTS(buffer); + encoded_roi.AddMember("pts (ns)", rapidjson::Value(pts), encoded_roi.GetAllocator()); + // Add the stream-id std::string stream_id = hailo_roi->get_stream_id();