<p>On Nov 8, 2011 7:59 PM, "Piox" <<a href="mailto:noxylene@gmail.com">noxylene@gmail.com</a>> wrote:<br>
><br>
> Hi, <br>
><br>
> I want to build a very specific application using the FFmpeg API. I would like to open the H.264 codec with some basic parameters, encode a few frames, then modify the encoding parameters, and then encode other frames. I looked on the Internet, but I didn't find a solution. According to the standard, it's possible, but I don't know (didn't find ?) how to do this properly with the FFmpeg API.<br>

><br>
> Is there a solution to do this ? or some tips on how to proceed ?<br>
><br>
> Best regards<br>
> noxylene</p>
<p>There is no special solution you need to simply destroy the codec instance at some point and create a new one. The question is what you will be doing to the results of encoding. If you are building a container with interleaved audio stream, etc., like mp4 file, such switch will not work out of the box.But for are streaming a raw h274 video the simple approach is enough.</p>

<p>Good luck,<br>
Alex</p>