<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div><br></div><div>I have one question about sending rtmp stream.</div><div><br></div><div>If audio/video encoding settings are not changed, I can send only once one data message of '@setDataFrame', one audio message of 'AAC sequence header', and one video message of 'AVC sequence header'. But I want to change audio or video encoding setting in the middle, such as width, height, and sample rate. Then I need send the three important RTMP messages again, i.e. '@setDataFrame', 'AAC sequence header', 'AVC sequence header'. But I can't call twice avformat_write_header(). How to update my new A/V encoding setting in the same RTMP session?</div><div><br></div><div>Thanks!</div><div><br></div><div>Regards</div><div><br></div><div>Andrew</div></div><br><br><span title="neteasefooter"><p> </p></span>