bbwera.blogg.se

Ffmpeg change codec to h264
Ffmpeg change codec to h264












I have tried various combinations, still avcode_open() fails.ĭoes anyone have some advice on what to do or some settings that are current? I then came across a few posts on here that say I should set nothing (with exception of code_id, codec_type, width, height and perhaps bit_rate and pix_fmt) as the library now chooses the best settings itself. I have tried these, without setting pix_fmt, avcodec_open() still fails but if I additionally set c->pix_fmt = PIX_FMT_YUV420P then I get a divide by zero exception. I found a list of possible settings How to encode h.264 with libavcodec/x264?. Simply changing CODEC Id to H264 causes avcodec_open() to fail (-1).

ffmpeg change codec to h264

It is recording fine in MPEG4 using the following settings: c->codec_id = CODEC_ID_MPEG4

ffmpeg change codec to h264 ffmpeg change codec to h264

I am using a recent windows (Jan 2011) ffmpeg build and trying to record video in H264.














Ffmpeg change codec to h264