Franco Amato wrote:
> Hi to all,
> I'm trying to build an audio/video encoder. Now I'm working at video part
> and I would create a mpg1 video file as output.
> When I launch the application I get the following error:
>
> [mpeg1video @ 0x8de880]bitrate tolerance too small for bitrate
> Segmentation fault
Is this segfault in libavcodec, or in your own code? In the first case,
you should submit a bugreport (explaining how to reproduce the bug).
In the second case, you are probably using an AVCodecContext without
checking if it has been properly allocated/initialised.
> How can I specify the bitrate tolerance?
It is bit_rate_tolerance, in AVCodecContext
> And which value must I use?
According to the documentation, it indicates the
"number of bits the bitstream is allowed to diverge from the reference.
the reference can be CBR (for CBR pass1) or VBR (for pass2)"
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user