Gstreamer doesn't pipeline graph
I am working with Gstreamer and its Python bindings. I am trying to save the pipeline graph, but the code does not generate any file nor it does throw any error.
import os
dst_folder = os.path.abspath(os.environ.get("GST_DEBUG_DUMP_DIR_DIR", ""))
os.makedirs(dst_folder, exist_ok=True)
graph_filename = "pipeline"
graph_filepath = os.path.join(dst_folder, graph_filename)
print(f"Saving pipeline in folder {dst_folder}")
Gst.debug_bin_to_dot_file(pipeline, Gst.DebugGraphDetails.ALL, graph_filename)
print("Files in dst folder:", os.listdir(dst_folder))
Gst.debug_bin_to_dot_file_with_ts(pipeline, Gst.DebugGraphDetails.ALL, graph_filename)
print("Files in dst folder:", os.listdir(dst_folder))
os.system(f"dot -Tpng -o {graph_filepath}.png {graph_filepath}.dot")
Output:
Saving pipeline in folder /graph
Files in dst folder: []
Files in dst folder: []
Error: dot: can't open /graph/pipeline.dot
I am working within the Docker container for Nvidia Deepstream: nvcr.io/nvidia/deepstream:6.0-triton
.
I also installed:
apt install -y graphviz graphviz-dev
pip3 instal pygraphviz
I also let the pipeline run for a while but nothing happened.