Gstreamer application example. Buffer probes can do the job too, yes.