'Libx264 width not divisible by 2

I have this ffmpeg command:

ffmpeg -framerate 1 \
-i \"path/to/background\" \
-i \"path/to/source/mp3\" \
-filter_complex \"[1:v]scale=600:-1, pad=(16/15)*iw:(16/15)*ih:(ow-iw)/2:(oh-ih)/2:white, [0:v]overlay=(W-w)/7:(H-h)/2:shortest=1,drawtext=fontsize={fontsize}:fontfile={font}:fontcolor=white:text=\'{artist} - {title}\':x=W/2+W/10.5:y=H/11,drawtext=fontsize={fontsize}:fontfile={font}:fontcolor=white:text=\'{album}\':x=W/2+W/10.5:y=2*(H/10),drawtext=fontsize={fontsize}:fontfile={font}:fontcolor=white:text=\'{date}\':x=W/2+W/10.5:y=3*(H/10),format=yuv420p\" \
-c:v libx264 \
-r 30 \
-movflags +faststart \"{output}\"

It should convert the music into a video that will contain the cover art and various metadata.

However, I am getting the error indicated in the title and, at the same time, various changes to the pad and scale filter unfortunately didn't work. Moreover, no matter what part of the command I change, I still get an error like this:

[libx264 @ 000001581b1d7b80] width not divisible by 2 (555x260)

And at the same time, the dimensions are always the same - 555x260



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source