Set the w component to 1 in Float to Vector implicit conversion for the Realtime Compositor. That's because the Vector Output node expects a vector for the velocity input, but the CPU compositor fakes it as a color input, while assumes a fourth component of 1.