<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,<br><br>I want to use mb tree, and use two pass to encode video sequence. However, I must encode video sequence twice, i.e. one for 1st pas and the other for 2nd pass.<br><br>There are many commercial h264 encoder, where video sequence is encoded only once with two-pass option. It seems redundant that video sequence is encoded twice for x264 encoder.<br><br>If I change x264 source code, so that video sequence is encoded only once with two-pass option like other commercial encoder, is there larger memory cost or big change in x264 algorithm?<br><br>Thanks!<br><br>B.R.<br><br>Andrew<br><br><br><br></div></div><br><br><span title="neteasefooter"><p> </p></span>