<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 11 Jul 2014, at 17:34, Paul B Mahol <<a href="mailto:onemda@gmail.com">onemda@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On 7/11/14, Info || Non-Lethal Applications<br><<a href="mailto:info@non-lethal-applications.com">info@non-lethal-applications.com</a>> wrote:<br><blockquote type="cite">Hey guys,<br><br>I want to use the V210 encoder now to prepare data for playout.<br>However, I'm getting a bug I don't understand.<br>Maybe someone can help, here's the code:<br><br>AVCodec* _pV210Codec = avcodec_find_encoder(AV_CODEC_ID_V210);<br>AVCodecContext* _pV210CodecCtx = avcodec_alloc_context3(_pV210Codec);<br>_pV210CodecCtx->codec_type = AVMEDIA_TYPE_VIDEO;<br>_pV210CodecCtx->codec_id = AV_CODEC_ID_V210;<br>_pV210CodecCtx->bits_per_raw_sample = 10;<br>_pV210CodecCtx->width = 1920;<br>_pVideoCodecCtx->height = 1080;<br></blockquote><br>Are you sure about this?<br></blockquote><div><br></div>There was the typo, already found it. Thanks!</div><div><br><blockquote type="cite"><blockquote type="cite">_pV210CodecCtx->pix_fmt = AV_PIX_FMT_YUV422P10LE;<br>_pV210CodecCtx->gop_size = 1;<br>_pV210CodecCtx->time_base.den = 24;<br>_pV210CodecCtx->time_base.num = 1;<br><br>// Open codec<br>if(avcodec_open2(_pV210CodecCtx, _pV210Codec,NULL)<0)<br>{<br>    printf("ERROR: Could not open codec!\n");<br>    exit(105);<br>}<br><br>The error I'm getting is:<br><br>[NULL @ 0x11a800000] [IMGUTILS @ 0x7fff5fbff2a0] Picture size 0x0 is<br>invalid<br>[NULL @ 0x11a800000] Ignoring invalid width/height values<br>[NULL @ 0x11a800000] [IMGUTILS @ 0x7fff5fbff2a0] Picture size 0x0 is<br>invalid<br>[v210 @ 0x11a800000] dimensions not set<br><br>I already tried to not set the resolution but then it also fails.<br>I don't see why the width/height values would not be valid.<br><br>Thanks!<br></blockquote>_______________________________________________<br>Libav-user mailing list<br><a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>http://ffmpeg.org/mailman/listinfo/libav-user<br><br></blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">---------------------------------------------------------------------------------------------------------</div><span style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br class="Apple-interchange-newline"><span><img height="35" width="366" apple-inline="yes" id="81D933C7-831F-4683-8A48-E1553E838C0B" apple-width="yes" apple-height="yes" src="cid:AD5C0090-A2B9-4A42-A912-B84D1EDDDABD@fritz.box"></span><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 15px; "><br class="Apple-interchange-newline">Non-Lethal Applications</span><span style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; "> </span><span style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">- high quality multimedia software</span><div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; "><br></span></div><div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; "><div>Flo Loferer / Developer, Owner</div><div><br></div><div><a href="https://twitter.com/nonlethalapp">Follow us on Twitter</a></div><div><a href="https://www.facebook.com/NonLethalApplications">Friend us on Facebook</a></div></span></div>
</span></div>
<br></body></html>