<div dir="ltr">Dear Experts,<div><br></div><div>I used x264 r1629 to encode video for ipad. when played in quicktime, it occasionally reboots (goes into &quot;panic mode&quot; in apple terms).</div><div>apple has identified the bug on their side as something to do with the idr_pic_id being very large.</div>
<div>is there some way to tweak x264 settings so as to workaround the bug in ipad?</div><div><br></div><div>original message from apple below:</div><div><br></div><div><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote">
<div style="word-wrap:break-word"><div><div><br><div>Begin forwarded message:</div>
<br><blockquote type="cite"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:&#39;Helvetica&#39;;font-size:medium"><b>From: </b></span><span style="font-family:&#39;Helvetica&#39;;font-size:medium">Apple Developer Bug Reporting &lt;<a href="mailto:devbugs@apple.com" target="_blank">devbugs@apple.com</a>&gt;<br>

</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:&#39;Helvetica&#39;;font-size:medium"><b>Date: </b></span><span style="font-family:&#39;Helvetica&#39;;font-size:medium">August 26, 2010 7:55:39 PM GMT+03:00<br>

</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:&#39;Helvetica&#39;;font-size:medium"><b>Subject: </b></span><span style="font-family:&#39;Helvetica&#39;;font-size:medium"><b>Attention: Bug ID 8296253: Live HTTP stream causes iPad to reboot after some time</b></span></div>
<br><div style="word-wrap:break-word"><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span class="Apple-style-span" style="font-family: Helvetica; font-size: 11.6667px; ">This is a courtesy email regarding Bug ID# 8296253. </span><span class="Apple-style-span" style="font-family: Helvetica; font-size: 11.6667px; "><span> </span></span></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Engineering has provided the following feedback regarding this issue:</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">This issue will be addressed in an upcoming release. Until then here&#39;s a possible workaround:</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">The idr_pic_id in the slice header for IDR frame is very large and is encoded using lots of<span>  </span>bits (which of course is legal).<span>  </span>We would suggest making idr_pic_id as small as possible so that it is encoded using fewer in the slice header .</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Bug reports requiring your attention will appear under ‘My Originated Problems’.<span>  </span>Please review this bug report and provide the requested information via the Apple Bug Reporter. Once your report has been updated, engineering will be alerted of the new information.</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">&lt;<a href="http://bugreport.apple.com/" target="_blank">http://bugreport.apple.com</a>&gt;</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Thank you for your assistance in helping us discover and isolate bugs within our products.<span> </span></font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Best Regards,</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Apple Developer Connection<span> </span></font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Worldwide Developer Relations</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:12.0px Helvetica"><a href="http://developer.apple.com/" target="_blank">http://developer.apple.com</a></font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:12.0px Helvetica"><a href="http://devforums.apple.com/" target="_blank">http://devforums.apple.com</a></font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:12.0px Helvetica">**************************************************************************</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:12.0px Helvetica">THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">**************************************************************************</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">-------------------------------------------------------</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:12.0px Helvetica">Bug ID #: 8296253</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Bug Title: Live HTTP stream causes iPad to reboot after some time</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">-------------------------------------------------------</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Helvetica" size="3" style="font:12.0px Helvetica">&lt;GMT11-Aug-2010 09:37:24GMT&gt; Ofer Shem-Tov:</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">&#39;iPad_ts.zip&#39; was successfully uploaded</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">&lt;GMT11-Aug-2010 09:37:24GMT&gt; Ofer Shem-Tov:</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Summary: Our encoder produce a stream using H.264 main profile level 3.1 in our proprietary protocol. This stream converted to Live HTTP Streaming format causes the iPad to reboot after some time (seconds or minutes). Those streams will play without a problem on iPhone 3GS with iOS 4.1 beta 3 or iOS 3.1.2. Streams with baseline profile from our encoder play without problems on iPhone and iPad. The encoder is X.264 based.</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Steps to Reproduce:</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">This stream is generated by our encoder and packaged as Live HTTP Stream by Wowza media server. After sometime of playing this stream the iPad reboots:</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">This attached stream fragment iPad_ts.zip (includes playlist file and several ts files in a zip archive) is generated by our code on the iPad itself by converting from our protocol to Live HTTP Stream. It is a fragment from a stream that will reboot the iPad if it continues but itself does not cause reboot.</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Expected Results:<span> </span></font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">The stream should play on the iPad or stop with error.</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Actual Results:</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">The stream plays ok for some time (seconds or minutes) and then the iPad reboots.</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Regression:</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">Notes:</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:12.0px Helvetica">The problem might be caused by packet loss and thats why its not always reboots on the same location.</font></div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:14px"><br></div></div></div></blockquote></div></div></div></div></div></div>
</div></div>