I've been looking for a way to modify a GStreamer stream in order to display the quality (by showing the raw video next to the result of the subtraction between the raw video and the enc/dec stream for example). I've been learning GStreamer for a week and so far I was able to do what I was asked but right now I'm stuck.
I looked into the compositor
element that seems to mix streams but I'm pretty sure it cannot do what I need.
Then I checked appsrc
and appsink
in some code. I tried to build a pipeline: filesrc - appsink - appsrc - filesink
. But for obvious reasons it did not work. I browsed github projects but most of appsrc/appsink
uses were just to programmaticaly do a task like reading a file.
Lastly I found someone with the same problem like me. He "solved" it by creating 2 pipelines (filesrc - appsink
& appsrc - filesink
) but he still got allocation errors. I was not even able to run the code he shared.
Does anyone have any idea on how to get it done in a clean way?