Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 678 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 678 Bytes

gst-dynspect

Quick and dirty example showing how to do dynamic inspection of GStreamer-based applications by using Frida.

Prerequisites

$ sudo easy_install frida

Usage

Open one terminal with:

$ gst-launch-1.0 videotestsrc is-live=true ! glimagesink

Then in another do:

$ python dynspect.py gst-launch-1.0

Note that on Linux you might need to relax the kernel's ptrace policy:

$ sudo sysctl kernel.yama.ptrace_scope=0

TODO

  • Provide more than just "pts vs running_time"
  • Handle applications with multiple pipelines
  • Adapt structure offsets based on architecture (currently assuming x86-64)