<div>Hello again!</div><div><br></div><div>The issue is that i can't perform avformat_seek_file on video that i have transcoded before(with my application).
</div>I've tracked down the cause of the error and it is ff_index_search_timestamp which returns -1. I have no idea what is stream index(except stream index in AVFormatContext) and why it can be -1.  I guess that i'm doing transcoding wrong or i just don't store some valuable information into new AVFormatContext before closing it. Any ideas what could it be?<div>

<br></div><div>And another question,</div><div>I have one video that flips horizontally after i copy some of it's frames to another AVFormatContext. How can i avoid that? Where is the information about flipping stored? I tried to determine codec manually and change priv_data manually by using corresponding struct, but that was of no help. </div>
<div><br></div><div>all code is here <a href="http://www.pasteall.org/33080/cpp">http://www.pasteall.org/33080/cpp</a></div><div><br></div><div>I think, main parts in this issue are methods openOutput and cutVideo. </div>
<div><br></div><div>Any help would be much appreciated!</div><div><br></div><div>best regards,</div><div>gavlig</div>