You cannot both use ffmpeg-compat and ffmpeg. If motion is fixed to use current ffmpeg, please remove the BR ffmpeg-compat-devel and the tweak at %build steap to use ffmpeg-compat. But please do runtime testing before to switch back to current ffmpeg.