<pre>><i> I forgot to mention that I am using FFMPEG through OpenCV. Since an earlier
</i>><i> version of FFMPEG was giving problems while decoding H.264 based RTSP
</i>><i> stream, I updated to the latest FFMPEG version (recompiled it by self) and
</i>><i> it worked fine. Not sure if this serves your purpose.
</i>><i>
</i>><i> --
</i>><i> Regards,
</i>><i> Saurabh Gandhi
</i>><i>
</i>><i>
</i>><i>
</i>><i>
</i>><i>
</i>><i> On Thu, Jun 2, 2011 at 4:47 AM, STenyaK <<a href="http://ffmpeg.org/mailman/listinfo/libav-user">stenyak at gmail.com</a>> wrote:
</i>><i>
</i>>><i> Thanks for the reply.
</i>>><i>
</i>>><i> Apart from updating to latest ffmpeg version, did you do anything else
</i>>><i> for it to work? I'm still experiencing the same visual glitches.
</i>>><i>
</i>>><i> On Mon, May 30, 2011 at 11:53, Saurabh Gandhi <<a href="http://ffmpeg.org/mailman/listinfo/libav-user">saurabhg84 at gmail.com</a>>
</i>>><i> wrote:
</i>>><i> > Are you using the latest version of FFMPEG. We had similar issues here
</i>>><i> which
</i>>><i> > got resolved by updating to the latest version
</i>>><i> >
</i>>><i> > --
</i>>><i> > Regards,
</i>>><i> > Saurabh Gandhi
</i>>><i> >
</i>>><i> >
</i>>><i> >
</i>>><i> >
</i>>><i> > On Mon, May 30, 2011 at 2:30 AM, STenyaK <<a href="http://ffmpeg.org/mailman/listinfo/libav-user">stenyak at gmail.com</a>> wrote:
</i>>><i> >>
</i>>><i> >> Hello,
</i>>><i> >> I'm having troubles trying to decode H264 by feeding
</i>>><i> >> avcodec_decode_video with data coming from an RTP stream. I'm going to
</i>>><i> >> describe the visual result, maybe it can help find out where the
</i>>><i> >> problem lies:
</i>>><i> >>
</i>>><i> >> The image is perfect in the first frame of the stream. From that point
</i>>><i> >> on, it looks as if only p-frames got decoded: the image begins to get
</i>>><i> >> progressively more blurred with each frame whenever something in the
</i>>><i> >> image changes or moves position.
</i>>><i> >> Every 10-20 seconds of stream, the image starts a quick reconstruction
</i>>><i> >> process. the image gets corrected (visual trails removed) in a sweep
</i>>><i> >> from left to right that takes about half a second or two.
</i>>><i> >>
</i>>><i> >> Reading the same RTP stream with other software (also based on ffmpeg)
</i>>><i> >> works correctly, with no visual corruption at all, so I must be
</i>>><i> >> missing something.
</i>>><i> >>
</i>>><i> >> Does anyone have any idea what the problem could stem from? Any
</i>>><i> >> pointers are appreciated.
</i>>><i> >>
</i>>><i> >> Thanks in advance.
</i>>><i> >>
</i>>><i> >> --
</i>>><i> >> Saludos,
</i>>><i> >>      Bruno González
</i>>><i> >>
</i>>><i> >> _______________________________________________
</i>>><i> >> Jabber: stenyak AT <a href="http://gmail.com">gmail.com</a>
</i>>><i> >> <a href="http://www.stenyak.com/">http://www.stenyak.com</a>
</i>>><i> >> _______________________________________________
</i>>><i> >> Libav-user mailing list
</i>>><i> >> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">Libav-user at ffmpeg.org</a>
</i>>><i> >> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</i>>><i> >
</i>>><i> >
</i>>><i> > _______________________________________________
</i>>><i> > Libav-user mailing list
</i>>><i> > <a href="http://ffmpeg.org/mailman/listinfo/libav-user">Libav-user at ffmpeg.org</a>
</i>>><i> > <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</i>>><i> >
</i>>><i> >
</i>>><i>
</i>>><i>
</i>>><i>
</i>>><i> --
</i>>><i> Saludos,
</i>>><i>      Bruno González
</i>>><i>
</i>>><i> _______________________________________________
</i>>><i> Jabber: stenyak AT <a href="http://gmail.com">gmail.com</a>
</i>>><i> <a href="http://www.stenyak.com/">http://www.stenyak.com</a>
</i>>><i> _______________________________________________
</i>>><i> Libav-user mailing list
</i>>><i> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">Libav-user at ffmpeg.org</a>
</i>>><i> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</i>>><i>
</i>><i>
</i>><i>
</i>><i> _______________________________________________
</i>><i> Libav-user mailing list
</i>><i> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">Libav-user at ffmpeg.org</a>
</i>><i> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</i>><i>
</i>><i>
</i><br>Hi,<br>I'm having the exact same issue as you when decoding x264 with the avcodec_decode_video2 function. I only get 1/3 of the frames, the video degrades progressively around the areas where motion occurs <br>

and then suddenly fixes itself and then slowly degrades again and so on.<br>I was using the Jun 3 windows dlls built here:<a href="http://ffmpeg.zeranoe.com/builds/">http://ffmpeg.zeranoe.com/builds/</a>. I also posted this problem on the Zeranoe forum: <a href="http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=15&t=54">http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=15&t=54</a><br>

but it's pretty quiet over there. I have posted there some of the code I'm using to show the problem. In particular, from the log that gets logged when the code runs (posted over there)<br>you'd see that the pts of the last packet is 1/3 of the duration. I thought that I was missing some operation after calling avcodec_decode_video2, but I guess the problem is something else.
<br>Thanks,<br>Matt E<br>Btw, sorry if the formatting comes out wrong because this is my first time posting to a mailing list.<br></pre>