2008/11/11 Luca Abeni <[EMAIL PROTECTED]> > 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)"
Yes thanx. I set the bitrate_tolerance = bitrate / 5 but I'm sure is an incorrect value. The error is disappeared but now I got lots of buffer underflow errors as I post in another mail.... Can you show me a simple example of setting this param? Thanx in advance > > > > Luca Franco > > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > -- Franco Amato _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
