[x264-devel] Error when height not divisible by 2

Ketil Froyn ketil at froyn.name
Fri May 28 00:42:22 CEST 2010


Hi,

I'm trying to use ffmpeg with x264 to create some h.264 video clips
that are pretty small, just 144x81. When I try to create this with
ffmpeg, I get this error:

[libx264 @ 0x8902d10]width or height not divisible by 2 (144x81)

However, I am able to generate clips with those dimensions with
another commercial tool. Is there anything I can tune to get this to
work with ffmpeg/x264? Here's my ffmpeg command line:

ffmpeg -y -i "$INPUT" -an -pass 1 -vcodec libx264 -b 200k -r 25 -g 150
-bf 3 -refs 6 -b_strategy 1 -coder 1 -qmin
 10 -qmax 51 -sc_threshold 40 -flags +loop -cmp +chroma -me_range 16
-me_method umh -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -directpred
3 -flags2 +dct8x8+wpred+bpyramid+mixed_refs -trellis 1 -partitions
+parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 -s 144x81 "$OUTPUT"

If I change -s 144x81 to 144x82, it works. Both ffmpeg and x264 were
checked out a couple of hours ago from svn and git, respectively.

Cheers, Ketil


More information about the x264-devel mailing list