For average to good quality you should have between 0.15 and 0.22 bits/pixel
(bpp).
Use the formula
bpp = bps / (width * height * fps)
<=> bps = bpp * width * height * fps
bps is bits/s (bitrate), fps is frames/s
Am 14.09.2010 11:26, schrieb Kulti:
> Hi, all.
>
> I used add_video_stream() function from output_example.c for
> tuning AVCodecContext. bit_rate field is set to some value, but I can't
> understand what value I need? How to calculate output bit-rate for my
> concrete format and width x hight?
>
> May be ffmpeg can automatically set optimal bit-rate? I try to set this
> field to 0, but it was not work.
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user