I'm creating a windows client server application where a H264 video stream is being streamed to a client in real time via RTP. I'm using FFMEPG for the decoder on the client side.
The problem I'm having is the video frame size can change at anytime. I believe that I've setup the encoder (X264) to make every I frame an IDR and when the frame size changes I simply restart the encoder with the new frame size but continue to send the data via the the same RTP link. It seems that the FFMPEG H264 decoder should be able to handle these asynchronous frame size changes as it will get the new frame sizes in the next IDR frame it receives, and generally it does seem to work just fine. However, every so often when the frame size changes I get an access violation exception from avcodec_decode_video(). Since I'm on windows it's impossible to debug this and I don't even know if I should expect this to really work or if this is the best way to deal with this. Can anyone tell me if what I'm doing should work, how I might go about debugging this problem or if there is a better way to deal with these frame size changes. Thanks Matt S. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
