<div>Looks loke i broke index table during transcoding. How can i fix it?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello again!<br><blockquote>The issue is that i can't perform avformat_seek_file on video that i have transcoded before(with my application).<br><span style>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?<br>
</span>And another question,<br>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. <br>
all code is here <a href="http://www.pasteall.org/33080/cpp" target="_blank" style="color:rgb(17,85,204)">http://www.pasteall.org/33080/cpp<br></a>I think, main parts in this issue are methods openOutput and cutVideo. <br>
Any help would be much appreciated!<br>best regards,<br>gavlig<br></blockquote></blockquote>