<div>Hi, I found that avformat_write_header() changed (AVStream)streams[video_index]->time_base, when <span style="line-height: 1.5;">I mux .h246 stream into mp4 file. I already set time_base for the AVCodecContext:</span></div><div><pre style="font-family: 'YaHei Consolas Hybrid'; font-size: 13px; background: rgb(239, 239, 239);">out_stream->codec->time_base = av_make_q(1, ctx->param->v_frame_rate);</pre></div>How to avoid that ?<div>Thanks.<br><div><br></div></div>