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
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to