Finally getting some fingers moving. I am pushing code at here. Worked out an initial class structure for getting the things working. I am trying to put in little bit of documentation in the function itself.
Currently there are three main classes: Server, UI and Controller.
The Server
The Server is the interaction module with gst-switch-srv. It is capable of controlling the server. The Server class has a contructor where the user can specify the video port, audio port, control port and the output record file.
from gstswitch import * #importing all modules
server = Server() #simple enough thing, gets the server running with default parameters.
control = server.connectController()
server.newTestVideo() #adds a new test source to the gst-switch
server.getAllTestVideo() #displays all test sources feeding in the gst-switch
server.end() #kills off the server process
server.endAllTestVideo() #kills off all test videos that have been defined. server.end() takes care of this
The UI
Now the server is running and the input sources have been specified, we need to view the output that is getting generated. For this the gst-switch-ui can be invoked. Simply the UI is run using:
ui = UI()
Comments Section
Feel free to comment on the post but keep it clean and on topic.
blog comments powered by Disqus