[Libav-user] Invalid data found when processing input - UPDATE

francesco at bltitalia.com francesco at bltitalia.com
Fri Feb 19 17:37:53 CET 2016


HI
it seems that the cause is in h264 format. It's not annex b but avc1.
The question is: how can I supply to avcodec_decode_video2 this format ?
Either setting the flag is_avc to one:

   if(av_opt_set_int(pCodecCtx_qt->priv_data,"is_avc",(int64_t)1,AV_OPT_TYPE
_INT)!=0)
         { strerr.printf("##### Wrong Option  format");}

the results is the same. Where I can find an example for decoding h264-avc1
using avcodec_decode_video2 ?
Francesco 
/*******************************************************************\
*    Ing. Francesco  Cuzzocrea
*    company:    BLT Italia srl        web:  http://www.blt.it
*    address:    via Rosselli, 91     city:  Lido di CAMAIORE
*    country:    ITALY                 zip:  55043-i
*      Tel. :    +39 0584 904788       Fax:  +39 0584 904789  
*     e-mail:   francesco at bltitalia.com
\*******************************************************************/
--  BLT will be at NAB2016 (18 ~ 21 April 2016)  -  Booth  C7806   --

 



More information about the Libav-user mailing list