ffmpeg-logo

FFmpeg error: [libx264] width not divisible by 2

Example command: ffmpeg -i "'/var/www/html/videos/6262775de2277232154e3a03" -vf scale=-1:360 -r 16 "/var/www/html/videos/6262775de2277232154e3a03_360p.mp4" Error output: Fix: use filter scale=-2:yourheight Example: ffmpeg -i "'/var/www/html/videos/6262775de2277232154e3a03" -vf scale=-2:360 -r 16 "/var/www/html/videos/6262775de2277232154e3a03_360p.mp4"