Hello everyone<div><br></div><div>Thanks for everybody's suggestion.</div><div><br></div><div>Looks i have made it start to do something instead on no frame, fail to decode. I m keep getting something like this. Is it because of i m putting the wrong NAL units to decoder?</div>
<div><br></div><div>My nal structure is</div><div>0x1sps0x1pps</div><div><br></div><div><br></div><div><p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]slice type too large (2) at 0 0</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]non-existing PPS 0 referenced</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]B picture before any references, skipping</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]B picture before any references, skipping</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]B picture before any references, skipping</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]B picture before any references, skipping</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]slice type too large (3) at 0 0</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]non-existing PPS 0 referenced</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]B picture before any references, skipping</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]B picture before any references, skipping</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]slice type too large (3) at 0 0</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]decode_slice_header error</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]AVC: nal size 0</b></p>
<p style="margin:0px 0px 0px 28.0px;font:11.0px Menlo"><b>[h264 @ 0x700f400]AVC: nal size 8459</b></p></div><div><br></div><div>Thank you very much</div><div>Best regards</div><div><br></div><div>James</div><div><br><br>
<div class="gmail_quote">On 31 January 2012 22:05, Jon Burgess <span dir="ltr"><<a href="mailto:jkburges@gmail.com">jkburges@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">><br>
> SPropRecord * data to a NSData and send into extradata to decode?<br>
<br>
I don't know what a "NSData" is (it's apparently something outside our libraries), but I hope it should be obvious from the implementation of the function in "liveMedia/H264VideoRTPSource.cpp" how it works.<br>
<br></blockquote><div><br></div></div><div>"NSData" is basically a glorified byte buffer available on cocoa/Mac/iOS.</div><div><br></div><div>Cheers,</div><span class="HOEnZb"><font color="#888888"><div>Jon Burgess</div>
<div><br></div><div><br></div></font></span></div>
<br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>James Zhang<br><br>BE (Hons)<br>Department of Electrical and Computer Engineering<br>THE UNIVERSITY OF AUCKLAND<br>
</div>