[Solved] FFMPEG – Warning: data is not aligned! This can lead to a speedloss

try use even sizes.

example:
zoompan that will (sometimes) fail:

zoompan=z='min(zoom+0.0015,1.5)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=125

but this wou’t

zoompan=z='min(zoom+0.0015,1.5)':x='(ow-iw)/2-((ow-iw)/zoom/2)':y='(oh-ih)/2-((oh-ih)/zoom/2)':d=125

this is an align, deinterlace, fix chroma, adjust frames to 16:9 by padding, accurate frame-rate and set video-step-speed according to the frame-rate – example:

-vf "setpts=PTS-STARTPTS,yadif=0:-1:0,dejudder=cycle=20,mpdecimate,format=pix_fmts=yuv420p,pad=width=ih*16/9:height=ih:x=(ow-iw)/2:y=(oh-ih)/2:color=#00000000,fps=fps=25,setpts=N/FRAME_RATE/TB-STARTPTS,format=pix_fmts=yuv420p"

Update:
a better solution will be to round up the size of the frame:
-vf "crop=trunc(in_w/2)*2:trunc(in_h/2)*2"

You can combine it in this logical order,
with other filters:

-vf "setpts=PTS-STARTPTS,yadif=0:-1:0,dejudder=cycle=20,mpdecimate,format=pix_fmts=yuv420p,crop=trunc(in_w/2)*2:trunc(in_h/2)*2,fps=fps=25,setpts=N/FRAME_RATE/TB-STARTPTS,format=pix_fmts=yuv420p"

See 25FPS – fix_a_lot_of_stuff_#7_multiarg_ignoreinvalid_smoothmotion_alignsize_croptoeven.cmd for a complete “fix” script (supports multiple files drag&drop).