<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 26, 2015 at 9:29 PM, Reddi, Praveen <span dir="ltr"><<a href="mailto:preddi@tridium.com" target="_blank">preddi@tridium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="margin-right:0in;margin-bottom:12.0pt;margin-left:0in;line-height:14.65pt;background:white;word-spacing:0px"><span style="font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222">.<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt;line-height:14.65pt;background:white;word-spacing:0px">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222">Then I prepended 4 bytes<span> </span><b><span style="font-family:"Helvetica","sans-serif";border:none windowtext 1.0pt;padding:0in">[0x00,
 0x00 , 0x00, 0x01]</span></b><span> </span>to the byte buffer before sending to the decoder, because I didnt receive any SPS, PPS NAL bytes.<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt;line-height:14.65pt;background:white;word-spacing:0px">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222">When I send this byte buffer to the decoder, decoder fails when it tries to<span> </span><b><span style="font-family:"Helvetica","sans-serif";border:none windowtext 1.0pt;padding:0in">initialize
 sws Context</span></b>.<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:12.0pt;margin-left:0in;line-height:14.65pt;background:white;word-spacing:0px">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222">Am I sending the NAL bytes and video frame data </span></p></blockquote></div><br><br></div><div class="gmail_extra">Decoder needs SPS and PPS data iroder to get initialized and get decoded. Utll it gets thsoe values, it wont get initialized. If its H264 stream, there should be values in sprop of SDP for sure. <br></div></div>