> It i take out the codec or put copy it gives error in header... > ANy idea where i am wrong? What's the input codec? Maybe it's not compatible with flv. (I assume your goal is to stream, and that you're running out of cpu?)