<div dir="ltr"><div>yes and i was able to solve the issue, basically ordering error. Thanks for your reply.<br><br></div>Ratin <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 28, 2013 at 10:56 PM, Xiang, Haihao <span dir="ltr"><<a href="mailto:haihao.xiang@intel.com" target="_blank">haihao.xiang@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
You can encode a stream with I frame only by avcenc. could you give a<br>
try ?<br>
<br>
Thanks<br>
Haihao<br>
<div><div class="h5"><br>
<br>
> I am trying to encode bitstreams from a YUV file same way as avcenc<br>
> does, I followed pretty much all the steps in my code except I am<br>
> forcing I-frame only, but my file won't play on mplayer and error out<br>
> with messages like :<br>
><br>
> FPS forced to be 30.000 (ftime: 0.033).<br>
> Starting playback...<br>
> [h264 @ 0x7ffff1591a80]top block unavailable for requested intra4x4<br>
> mode -1 at 0 0<br>
> [h264 @ 0x7ffff1591a80]error while decoding MB 0 0, bytestream (60613)<br>
> [h264 @ 0x7ffff1591a80]concealing 1584 DC, 1584 AC, 1584 MV errors<br>
> VDec: vo config request - 704 x 576 (preferred colorspace: Planar<br>
> YV12)<br>
> VDec: using Planar YV12 as output csp (no 0)<br>
> Movie-Aspect is undefined - no prescaling applied.<br>
> VO: [xv] 704x576 => 704x576 Planar YV12<br>
> [h264 @ 0x7ffff1591a80]top block unavailable for requested intra4x4<br>
> mode -1 at 0 0<br>
> [h264 @ 0x7ffff1591a80]error while decoding MB 0 0, bytestream (59875)<br>
> [h264 @ 0x7ffff1591a80]mmco: unref short failure<br>
> [h264 @ 0x7ffff1591a80]concealing 1584 DC, 1584 AC, 1584 MV errors<br>
> [h264 @ 0x7ffff1591a80]number of reference frames exceeds max<br>
> (probably corrupt input), discarding one<br>
> [h264 @ 0x7ffff1591a80]top block unavailable for requested intra4x4<br>
> mode -1 at 0 0<br>
> [h264 @ 0x7ffff1591a80]error while decoding MB 0 0, bytestream (59896)<br>
><br>
><br>
><br>
> I stepped thru the libav code to find where its having issues and<br>
> problem is in this function:<br>
><br>
> int ff_h264_check_intra4x4_pred_mode(H264Context *h){<br>
> MpegEncContext * const s = &h->s;<br>
> static const int8_t top [12]= {-1, 0,LEFT_DC_PRED,-1,-1,-1,-1,-1,<br>
> 0};<br>
> static const int8_t left[12]= { 0,-1, TOP_DC_PRED, 0,-1,-1,-1,<br>
> 0,-1,DC_128_PRED};<br>
> int i;<br>
><br>
> if(!(h->top_samples_available&0x8000)){<br>
> for(i=0; i<4; i++){<br>
> int status= top[ h->intra4x4_pred_mode_cache[scan8[0] + i]<br>
> ];<br>
> if(status<0){<br>
> av_log(h->s.avctx, AV_LOG_ERROR, "top block<br>
> unavailable for requested intra4x4 mode %d at %d %d\n", status,<br>
> s->mb_x, s->mb_y);<br>
> return -1;<br>
> } else if(status){<br>
> h->intra4x4_pred_mode_cache[scan8[0] + i]= status;<br>
> }<br>
> }<br>
> }<br>
><br>
><br>
> > p i<br>
> > 2<br>
><br>
> > p status<br>
> > -1<br>
><br>
> > p h->intra4x4_pred_mode_cache[scan8[0] + i]<br>
> > 6<br>
><br>
><br>
> My question is what would cause something like this? When I look at<br>
> the bitstream, it all looks normal, the headers look ok.<br>
><br>
><br>
> Ratin<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Libva mailing list<br>
> <a href="mailto:Libva@lists.freedesktop.org">Libva@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a><br>
<br>
<br>
</blockquote></div><br></div>