Resolves FFmpeg hstack height mismatch errors by scaling portrait and landscape videos to a common height for side-by-side composite images.