Hi All,
I am using "output-example.c" to encode raw yuv to motion jpeg, mpeg4 and
h.264. I retained all the default setting in output-example.c file for mjpeg
and mpeg4 encoding. For h.264, i added few more settings as follows,
c->coder_type = FF_CODER_TYPE_AC;
c->flags2 = CODEC_FLAG2_MBTREE;
c->weighted_p_pred = 0;
c->partitions = X264_PART_I8X8 | X264_PART_P8X8 | X264_PART_I4X4;
c->me_method = 7;
c->me_range = 16;
c->refs = 1;
c->flags = CODEC_FLAG_4MV | CODEC_FLAG_LOOP_FILTER;
c->qcompress = 0.0;
c->max_qdiff = 4;
Also to get constant QP, i fixed the qmin and qmax values to some value, ex:
qmin = qmax = 4.
When i checked all the output file sizes, h.264 filesize > mjpeg filesize >
mpeg4 filesize. But h.264 filesize should be smaller than the other two
output files right? Any mistake in my settings? pls help me to solve this
problem.
Thanks,
Srinivasan.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user