Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-python gst-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gst-pythongst-python
  • Issues
  • #59

Closed
Open
Created Jan 05, 2022 by Matteo Foglio@foglio.matteo

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.

Edited Jan 05, 2022 by Matteo Foglio
Assignee
Assign to
Time tracking