A few changes to the executables firstly
I also made a few modifications to the way gst-switch is installed. The process puts a copy of gst-switch-srv and gst-switch-ui at /usr/local/bin. These are from the master branch of gst-switch. But, I needed these executables from the speaker-track branch. So I just copied these to the folder replacing the already placed ones. Thus, now I am able to shoot off gst-switch-srv (from the speaker-track branch) just by doing it in the terminal.
Changing PIPs
I have been testing the dbus connection so that it works properly. I concertrated mostly on changing PIP modes. For testing the modules that I made earlier were a LOT of help. It surely saved me the headache of starting gst-switch-srv along with 3 to 4 more processes to feed video input as well as to view the processes. My test script looks simple enough like this Here I avoided attaching the gst-switch-ui and directly connected a gst-launch element to the output port.
In another terminal I am running my other script interacting with the gst-switch-srv module over dbus. I added a few screenshots to show these:
Firstly I start off my testing script which turns on the gst-switch-srv and adds some input test sources to it. The video output of the gst-switch is shown in the gst-launch windows in the left bottom corner. In the left terminal, I am running this script. This is the default output of gst-switch:
Now, I run my script which does the work of communicating messages over dbus. Setting Mode 0
Now, Mode 1
Ah, now Mode 2
Mode 3
And now back to Mode 0 :D
Things left
-
As you can see the sources don't look pretty. This is evident from the first screenshot. This indicates that there is some problem in the pipelines feeding into the gst-switch-srv. For example videotestsrc pattern=10 looks like this:
But actually or ideally it should be looking like this:
- Make an object structure out of this crude script which turns communicates over the dbus with the gst-switch.
Comments Section
Feel free to comment on the post but keep it clean and on topic.
blog comments powered by Disqus