I am trying to convert a .avi file into a .mp4 one using FFMPEG using the libx264 codec.
This is the command I am running:
ffmpeg -i filename.avi -c:v libx264 -crf 19 -strict experimental filenameAvi.mp4
I sometimes get the following error:
[libx264 @ 0x85b460] height not divisible by 2 (176x99)
I used the following answer:
and modified the command accordingly as follows:
ffmpeg -i filename.avi -c:v libx264 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -crf 19 -strict experimental filenameAvi.mp4