Dario wrote: >> What do you mean with this? Are the generated PTSs and DTSs wrong? I use >> libavcodec and libavformat for streaming and receiving MPEG4 video over >> RTP, >> and everything seems to work well. > > When rendering decoded image, decoded image gets more, and more distorted. > Especially if there is a movement in front of the camera.
This looks like the classical problem with lost packets, or out-of-order packets. Is the decoder printing any error message on stderr? Or maybe, it is simply due to a too low bitrate... Anyway, this problem seems to be unrelated with the first thing you described (the first calls to avcodec_decode_video do not decode any frame). > But why does avcodec_decode_video() just decodes every other frame, when > all frames are correct? I don't think thats a intended behaviour, or am I > missing something? You are missing a clear description of the problem ;-) Above, you describe distorted images; here, you talk about avcodec_decode_video() not decoding some frames? >> Maybe you are seeing the usual decoding-order/display-order confusion? >> I had problems streaming video with B frames in the past, but that was >> caused by the fact that I was using DTSs as RTP timestamps (instead of >> PTSs). >> Try to check if you are correctly handling the timestamps... > > The info I got on timestamps is pretty thin. > Anywhere I can read something about it? Maybe some example how to check/set > it? You can find some relevant information on the mailing list archives. Otherwise, you can have a look at http://www.dranger.com/ffmpeg/tutorial05.html Luca _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
