correct horizon in 360 rectilinear video
I think that you would have to wrap the rectilinear image onto a world texture using emission, then change orientation with the Mapping node. Use Cycles and reduce samples to 1 for speed. Cycles supports rectilinear rendering. I have tried this before but not rotation around x axis only z.