<div dir="ltr"><div><div><div>Hi,<br><br></div>Using muxing sample that comes with documentation, inside open_audio() function, this is called:<br><br>    /* open it */<br>    ret = avcodec_open2(c, codec, NULL) ;<br>    if ( ret < 0)<br>
    {<br>        fprintf(stderr, "could not open codec\n");<br>        return -1;<br>        //exit(1);<br>    }<br><br>    if (c->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE)<br>        audio_output_frame_size = 10000;<br>
    else<br>        audio_output_frame_size = c->frame_size;<br><br></div>For an encoder like Vorbis, according to their docs (<a href="http://www.xiph.org/vorbis/doc/Vorbis_I_spec.html">http://www.xiph.org/vorbis/doc/Vorbis_I_spec.html</a>):<br>
<br></div><div>" legal frame sizes are powers of two from 64 to 8192 samples", but after avcodec_open2() function returns, I get c->frame_size equal to 64.<br><br></div><div>How can I increase codec's frame size to a higher value as allowed by it's documentation?<br>
<br></div><div>Thanks in advance<br></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none"></span><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none"></span></div>
<div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none"></span></div>
</div>