On Wed, Jan 7, 2009 at 3:35 PM, Luca Abeni <[email protected]> wrote:
> Edwin van der Horst wrote:
> [...]
>> However, i would like to increase the quality of the JPEG images produces.
>> The current video contains little color, and pretty large blocks.
>>
>> For encoding I use:
>>
>>    encContext             = avcodec_alloc_context();
>>    encContext->width      = 320;
>>    encContext->height     = 240;
>>    encContext->time_base  = (AVRational){1,10};
>>    encContext->pix_fmt    = PIX_FMT_YUVJ420P;
>>
>> Are there any more parameters that affect the output quality of the
>> images, or is this a fixed setting?
>
> Try increasing the bitrate (the bit_rate field in the AVCodecContext).
> The default value is pretty low, and MJPEG requires high bitrates to
> give reasonable quality.
>
>
>                                Luca
> _______________________________________________

Thanks for the hint,but it didn't seem to work very well, quality
didn't seem to get better.
I'm now using AVContext->qmin / qmax  fields, which increase the
quality big time.

A list of usable fields for the MJPEG codec would come in handy, or I
just have to spend some more time digging in the code ;-)

Thanks for the help.

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

Reply via email to