Hi,

Placencia wrote:
> I have been working with trying to write video based on stuff from input video
> in different formats. However, when I write frames to the file it always ends
> up in poorer quality than the original. I have tried changing different 
> settings
> individually but it does very little difference.
[...]
> videoStream->codec->codec_id = formatContext->oformat->video_codec;
> videoStream->codec->codec_type = CODEC_TYPE_VIDEO;
> videoStream->codec->bit_rate = bitRate;
> videoStream->codec->width = width;
> videoStream->codec->height = height;
> videoStream->codec->time_base.den = fpsNum;
> videoStream->codec->time_base.num = fpsDen;
> videoStream->codec->gop_size = OVSTREAM_GOP;
> videoStream->codec->pix_fmt = PIX_FMT_YUV420P;
[...]

Try increasing the bitrate... ;-)
Also, why are you setting mb_decision = 2 only for mpeg1 video?


                                Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to