ffmpeg side by side video
Just use hstack:

ffmpeg -i video.avi -i video2.avi -filter_complex "[0:v] setpts=PTS-STARTPTS, scale=360x288 [left]; [1:v] setpts=PTS-STARTPTS, scale=360x288 [right]; [left][right]hstack=inputs=2" -c:v libx264 -f flv rtmp://192.168.1.1/live/videocrop