From e934bf46fd9e62d0e16f4964a4d72c43bbbb013c Mon Sep 17 00:00:00 2001 From: Barzan Hayati Date: Mon, 7 Jul 2025 13:41:07 +0000 Subject: [PATCH 1/2] TEMP: total execution time --- src/pipeline_manager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pipeline_manager.cpp b/src/pipeline_manager.cpp index 961ec09..4f51686 100644 --- a/src/pipeline_manager.cpp +++ b/src/pipeline_manager.cpp @@ -354,6 +354,7 @@ bool PipelineManager::create_pipeline_elements(int num_sources, get_fps_buffer_probe(); get_fps_probe(); get_fps_osd(); + auto start = std::chrono::system_clock::now(); status_playing = playing_pipeline(num_sources, url_camera); if (status_playing == false) { return -1; @@ -392,6 +393,10 @@ bool PipelineManager::create_pipeline_elements(int num_sources, // g_free (uri); g_mutex_clear(&eos_lock); rtsp_streaming_manager->destroy_sink_bin(); + auto end = std::chrono::system_clock::now(); + std::cout <<" Overall running time = " << + std::chrono::duration_cast(end - start).count() << + "us" << std::endl; return true; } \ No newline at end of file From b74f48a0cc921aba64229b67b0e3f47e574e2950 Mon Sep 17 00:00:00 2001 From: Barzan Hayati Date: Sun, 6 Jul 2025 23:39:38 +0000 Subject: [PATCH 2/2] Revert "Uridecodebin3" This reverts commit 9c217ce6766aaf765cd4efeb09870ba5fffca686. --- src/source_bin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/source_bin.cpp b/src/source_bin.cpp index 08da45c..99207e0 100644 --- a/src/source_bin.cpp +++ b/src/source_bin.cpp @@ -95,11 +95,11 @@ GstElement *SourceBin::create_uridecode_bin(guint index, gchar *filename, StreamData *stream_data = new StreamData{(int)index, streammux, prop}; // g_print ("creating uridecodebin for [%s]\n", filename); - g_print("Creating uridecodebin3 for stream_id %d or stream %s \n", index, + g_print("Creating uridecodebin for stream_id %d or stream %s \n", index, filename); // g_source_id_list[index] = index; g_snprintf(decodebin_name, 15, "source-bin-%02d", index); - decodebin = gst_element_factory_make("uridecodebin3", decodebin_name); + decodebin = gst_element_factory_make("uridecodebin", decodebin_name); g_object_set(G_OBJECT(decodebin), "uri", filename, NULL); g_signal_connect(G_OBJECT(decodebin), "pad-added", G_CALLBACK(cb_newpad), stream_data); //&g_source_id_list[index]