Trying to use `libobs` and `OBSQTDisplay` to show what it's capturing

weiqi_chen_zy

New Member
Hello everyone.

I started learning obs from source code, for days, and wanted to use libobs to capture a window and preview the result in realtime.

I'm so new to libobs and the way how OBS Studio internally works.

I clone the source code from github, read the source code of OBS Studio and the manual of libobs(https://obsproject.com/docs/).

I codeed a very simple demo, and It did not not work as I wanted. Apparently, I don't know OBS Studio and libobs very well. I'm so stupid...

After I compiled and run the program, The window shows, but there is no image in OBSQTDisplay..
2019-10-09 (2).png


Here is the source code of my demo: https://github.com/WeiqiChenZY/obs-studio/blob/my_changes/UI/weiqi/weiqi-obs.cpp

I hope that someone whom is not too busy, could review my code and help me out a little. Please...

At the meantime, I still keep trying to make that demo work as I want.

Best Regards,
Weiqi Chen.
 
Top