<div dir="ltr">Hello Team,<div><br></div><div>I want to encode two times my input video file while decoding it juste one time.</div><div>I use <h3 class="gmail-m_8331897662626600603gmail-LC20lb" style="color:rgb(102,0,153);font-family:arial,sans-serif;font-size:18px;font-weight:normal;margin:0px;padding:0px;display:inline-block"><a href="https://ffmpeg.org/doxygen/trunk/doc_2examples_2transcoding_8c-example.html" target="_blank" style="color:rgb(102,0,153)">doc/examples/transcoding.c</a></h3></div><div>What I want to do is to decode and encode like the transcoding.c examples does.</div><div>Then, when I finished the decoding and encoding loop (while(1)).</div><div>I want to call only the encoding function again in an other loop to encode a second time without </div><div>decoding.</div><div>Ex: </div><div>First time : </div><div>while(1)</div><div>{ </div><div>       if (there is a frame in the input file)</div><div>        {</div><div>              decode input video;</div><div>              encode output file;</div><div>              next streamindex;</div><div>         }</div><div><br></div><div>}</div><div><br></div><div>Second time :</div><div>while(1)</div><div>{       encode another outputfile;</div><div>}</div><div><br></div><div>What I want to know, is if it's possible to do that (decode only one time an input file in a whille loop and encode it two times). </div><div>If yes, can you tell me how to do it ?</div><div><br></div><div>To remind you I used doc/examples/transcoding.c which decode and encode only one time.<br></div><div>What I want to do is to add an other while loop to encode a second time the same input video.</div><div><br></div><div>I need your help please.</div><div>Regards</div></div>