360 stereo left right combining images problems

Hello, I am able to render left and right eye pngs. I can create movie using ffmpeg as well. I CANT combine the left and right eye using the C++ code provided despite I modified my SceneCapture.cpp. Any ideas?

Other question, Any outside software to combine these two images if I cant do it with C++?