<div dir="ltr">It isn't reproduceable with ffmpeg. Am i in the wrong mailing-list?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 3 Oct 2019 at 07:47, Paul B Mahol <<a href="mailto:onemda@gmail.com">onemda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Please provide input samples that allow to reproduce this issue with ffmpeg.<br>
<br>
On 10/2/19, Jonathan Noble <<a href="mailto:jonnobleuk@gmail.com" target="_blank">jonnobleuk@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am trying to encode to dnxhd with libavcodec. The result is quite glitchy<br>
> with stuttering and anomalies on most frames.<br>
><br>
> During encoding I see the following message almost continuously.<br>
><br>
>> Internal error, put_bits buffer too small<br>
><br>
> I have tried to understand what this buffer is, how it is set up and I am<br>
> struggling. From what I can understand the puts_bit buffer is<br>
> DNXHDEncContext->m->pb which is initialised via init_put_bits() in<br>
> dnxhd_encode_thread().<br>
><br>
> The 2 arguments used in init_put_bits() are DNXHDEncContext->slice_offs and<br>
> DNXHDEncContext->slice_size. These 2 are configured in<br>
> dnxhd_setup_thread_slices() with 2 variables MpegEncContext->mb_width and<br>
> MpegEncContext->mb_bits.<br>
><br>
> If my understanding is correct the 2 aforementioned variables in<br>
> MpegEncContext are the variables I need to set. However, I have no idea<br>
> what they mean or how they are accessed outside of<br>
> AVCodecContext->priv_data.<br>
><br>
> Is my understanding correct? How does one setup the puts_bit buffer<br>
> correctly for a dnxhd encode?<br>
><br>
> Kind regards<br>
><br>
> Jon Noble<br>
><br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>