Many environmental and industrial processes depend on how fluids displace each other in porous materials. However, the flow dynamics that govern this process are still poorly understood, hampered by the lack of methods to measure flows in optically opaque, microscopic geometries. We introduce a 4D microvelocimetry method based on high-resolution X-ray computed tomography with fast imaging rates (up to 4 Hz). We use this to measure flow fields during unsteady-state drainage, injecting a viscous fluid into rock and filter samples. This provides experimental insight into the nonequilibrium energy dynamics of this process. We show that fluid displacements convert surface energy into kinetic energy. The latter corresponds to velocity perturbations in the pore-scale flow field behind the invading fluid front, reaching local velocities more than 40 times faster than the constant pump rate. The characteristic length scale of these perturbations exceeds the characteristic pore size by more than an order of magnitude. These flow field observations suggest that nonlocal dynamic effects may be long-ranged even at low capillary numbers, impacting the local viscous-capillary force balance and the representative elementary volume. Furthermore, the velocity perturbations can enhance unsaturated dispersive mixing and colloid transport and yet, are not accounted for in current models. Overall, this work shows that 4D X-ray velocimetry opens the way to solve long-standing fundamental questions regarding flow and transport in porous materials, underlying models of, e.g., groundwater pollution remediation and subsurface storage of CO
2
and hydrogen.