Hello,
I'd like to use libavcodec api in my standalone application. Using ffmpeg I have following options

ffmpeg  -f image2 -r 8 -i img%03d.jpg \
        -an \
        -s cif \
        -b 100000 \
        -r 8 \
        -me_method zero \
        -f 3gp \
        -vcodec h263 \
        -g 100 \
        vid.3gp \

Could you please give me any advice about specifiyng these parameters in C code? In api example there is shown how to set basic attributes like video size, but I can't figure it out how to set for example me_metod or container format.

AVCodecContext *c= NULL;
c= avcodec_alloc_context();
c->bit_rate = 400000;
c->width = 352;
c->height = 288;

Mpeg4 (h263) parametres seems to be defined in MpegEncContext structure provided through c->priv_data, but it is not a part of the API afaik.

There exist many examples on libavcodec but they concern mainly decoding, are there also any with encoding?

any help appreciated.


regards
Jan


--
Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to