Question / Help how to use OBS to record some window by c++/python in Ubuntu16.04?

Tong

New Member
Hello everyone,
Now I want use obs to develop a program containing record some window function by c++/python in ubuntu 16.04.I have read the developer docs but i cannot find a clearly way to complete it.I have some questions:
1.how should i initialize obs to before i select window?
2. If i want to record some window. firstly, I should know the target window id.I got the id by "xdotool selectwindow", but I don't know how to use it.
3. if the window is not top window, how to get the rendered picture ?
Anyone can help me ? or is there a example ? Thank a lot!
 
Top