<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><pre>><i> I forgot to mention that I am using FFMPEG through OpenCV. Since an earlier<o:p></o:p></i></pre><pre>><i> version of FFMPEG was giving problems while decoding H.264 based RTSP<o:p></o:p></i></pre><pre>><i> stream, I updated to the latest FFMPEG version (recompiled it by self) and<o:p></o:p></i></pre><pre>><i> it worked fine. Not sure if this serves your purpose.<o:p></o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><i> --<o:p></o:p></i></pre><pre>><i> Regards,<o:p></o:p></i></pre><pre>><i> Saurabh Gandhi<o:p></o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><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:<o:p></o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>>><i> Thanks for the reply.<o:p></o:p></i></pre><pre>>><i><o:p> </o:p></i></pre><pre>>><i> Apart from updating to latest ffmpeg version, did you do anything else<o:p></o:p></i></pre><pre>>><i> for it to work? I'm still experiencing the same visual glitches.<o:p></o:p></i></pre><pre>>><i><o:p> </o:p></i></pre><pre>>><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>><o:p></o:p></i></pre><pre>>><i> wrote:<o:p></o:p></i></pre><pre>>><i> > Are you using the latest version of FFMPEG. We had similar issues here<o:p></o:p></i></pre><pre>>><i> which<o:p></o:p></i></pre><pre>>><i> > got resolved by updating to the latest version<o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><i> > --<o:p></o:p></i></pre><pre>>><i> > Regards,<o:p></o:p></i></pre><pre>>><i> > Saurabh Gandhi<o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><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:<o:p></o:p></i></pre><pre>>><i> >><o:p></o:p></i></pre><pre>>><i> >> Hello,<o:p></o:p></i></pre><pre>>><i> >> I'm having troubles trying to decode H264 by feeding<o:p></o:p></i></pre><pre>>><i> >> avcodec_decode_video with data coming from an RTP stream. I'm going to<o:p></o:p></i></pre><pre>>><i> >> describe the visual result, maybe it can help find out where the<o:p></o:p></i></pre><pre>>><i> >> problem lies:<o:p></o:p></i></pre><pre>>><i> >><o:p></o:p></i></pre><pre>>><i> >> The image is perfect in the first frame of the stream. From that point<o:p></o:p></i></pre><pre>>><i> >> on, it looks as if only p-frames got decoded: the image begins to get<o:p></o:p></i></pre><pre>>><i> >> progressively more blurred with each frame whenever something in the<o:p></o:p></i></pre><pre>>><i> >> image changes or moves position.<o:p></o:p></i></pre><pre>>><i> >> Every 10-20 seconds of stream, the image starts a quick reconstruction<o:p></o:p></i></pre><pre>>><i> >> process. the image gets corrected (visual trails removed) in a sweep<o:p></o:p></i></pre><pre>>><i> >> from left to right that takes about half a second or two.<o:p></o:p></i></pre><pre>>><i> >><o:p></o:p></i></pre><pre>>><i> >> Reading the same RTP stream with other software (also based on ffmpeg)<o:p></o:p></i></pre><pre>>><i> >> works correctly, with no visual corruption at all, so I must be<o:p></o:p></i></pre><pre>>><i> >> missing something.<o:p></o:p></i></pre><pre>>><i> >><o:p></o:p></i></pre><pre>>><i> >> Does anyone have any idea what the problem could stem from? Any<o:p></o:p></i></pre><pre>>><i> >> pointers are appreciated.<o:p></o:p></i></pre><pre>>><i> >><o:p></o:p></i></pre><pre>>><i> >> Thanks in advance.<o:p></o:p></i></pre><pre>>><i> >><o:p></o:p></i></pre><pre>>><i> >> --<o:p></o:p></i></pre><pre>>><i> >> Saludos,<o:p></o:p></i></pre><pre>>><i> >>      Bruno González<o:p></o:p></i></pre><pre>>><i> >><o:p></o:p></i></pre><pre>>><i> >> _______________________________________________<o:p></o:p></i></pre><pre>>><i> >> Jabber: stenyak AT <a href="http://gmail.com">gmail.com</a><o:p></o:p></i></pre><pre>>><i> >> <a href="http://www.stenyak.com/">http://www.stenyak.com</a><o:p></o:p></i></pre><pre>>><i> >> _______________________________________________<o:p></o:p></i></pre><pre>>><i> >> Libav-user mailing list<o:p></o:p></i></pre><pre>>><i> >> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">Libav-user at ffmpeg.org</a><o:p></o:p></i></pre><pre>>><i> >> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><i> > _______________________________________________<o:p></o:p></i></pre><pre>>><i> > Libav-user mailing list<o:p></o:p></i></pre><pre>>><i> > <a href="http://ffmpeg.org/mailman/listinfo/libav-user">Libav-user at ffmpeg.org</a><o:p></o:p></i></pre><pre>>><i> > <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><i> ><o:p></o:p></i></pre><pre>>><i><o:p> </o:p></i></pre><pre>>><i><o:p> </o:p></i></pre><pre>>><i><o:p> </o:p></i></pre><pre>>><i> --<o:p></o:p></i></pre><pre>>><i> Saludos,<o:p></o:p></i></pre><pre>>><i>      Bruno González<o:p></o:p></i></pre><pre>>><i><o:p> </o:p></i></pre><pre>>><i> _______________________________________________<o:p></o:p></i></pre><pre>>><i> Jabber: stenyak AT <a href="http://gmail.com">gmail.com</a><o:p></o:p></i></pre><pre>>><i> <a href="http://www.stenyak.com/">http://www.stenyak.com</a><o:p></o:p></i></pre><pre>>><i> _______________________________________________<o:p></o:p></i></pre><pre>>><i> Libav-user mailing list<o:p></o:p></i></pre><pre>>><i> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">Libav-user at ffmpeg.org</a><o:p></o:p></i></pre><pre>>><i> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><o:p></o:p></i></pre><pre>>><i><o:p> </o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><i> _______________________________________________<o:p></o:p></i></pre><pre>><i> Libav-user mailing list<o:p></o:p></i></pre><pre>><i> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">Libav-user at ffmpeg.org</a><o:p></o:p></i></pre><pre>><i> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><o:p></o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre>><i><o:p> </o:p></i></pre><pre style='margin-left:.5in'><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><br><o:p></o:p></pre><pre style='margin-left:.5in'><o:p> </o:p></pre><pre style='margin-left:.5in'>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><br><o:p></o:p></pre><pre style='margin-left:.5in'><o:p> </o:p></pre><pre style='margin-left:.5in'>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.<o:p></o:p></pre><pre style='margin-left:.5in'><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.<o:p></o:p></pre><pre style='text-align:center'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><hr size=2 width="100%" align=center></span></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></pre><pre><span style='font-size:11.0pt;font-family:Consolas;color:#1F497D'>Matt,<o:p></o:p></span></pre><pre><span style='font-size:11.0pt;font-family:Consolas;color:#1F497D'>My guess is that the frames that are working are the movie’s I frames, the ones that are degraded are the P frames. Or at least that is the case in my scenario. The codec that mine is having an issue with: CODEC_ID_H264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10). Using build ffmpeg-git-39dbe9b from Zeranoe’s builds.<o:p></o:p></span></pre><pre><span style='font-size:11.0pt;font-family:Consolas;color:#1F497D'><o:p> </o:p></span></pre><pre><span style='font-size:11.0pt;font-family:Consolas;color:#1F497D'>I am having the same issue, only with seeking. That is to say, if I continuously decode ‘av_read_frame’ from start to finish the video decodes just fine. If I seek to a frame, and then decode the video quality degrades frame by frame.<o:p></o:p></span></pre><pre><span style='font-size:11.0pt;font-family:Consolas;color:#1F497D'><o:p> </o:p></span></pre><pre><span style='font-size:11.0pt;font-family:Consolas;color:#1F497D'>Suggestions welcome.<o:p></o:p></span></pre><pre style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></pre></div></body></html>