<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 25/08/2008, at 9:45 PM, graeme wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">My current patch to &nbsp;libs/libmythtv/avformatdecoder.cpp around line<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">1588 &nbsp;is as follows<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (CODEC_ID_H264 == enc->codec_id)<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VERBOSE(VB_PLAYBACK, LOC + "Turning off loop<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">filter");<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;enc->skip_loop_filter = AVDISCARD_ALL;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VERBOSE(VB_PLAYBACK, LOC + "Enabling Fast decode<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">mode");<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;enc->flags &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|= CODEC_FLAG2_FAST;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>The above patch appears to have lowered the CPU demand on 720p, doesn't <br>go above 80%.<br>Alias TV3 is still topping out the CPU peaking at 113% at nice -17. &nbsp;<br>Still no cigar.<br>Are there any other fiddles I can do to get TV3 to play without stuttering</div></blockquote><div><br></div><div><br></div><div>Bugger. Well it looks like we need some of the ffmpeg mult-threading enhancements that are still in development.</div><br><blockquote type="cite"><div><br><br><blockquote type="cite"><blockquote type="cite">The main problem with the audio is that it seems the sse2 version of<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">float_to_int16_interleave_sse2 causes the segfault. What I did to fix <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">this was<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">to go the end of libavcodec/i386/dsputil_mmx.c change the assignment<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">c->float_to_int16_interleave = float_to_int16_interleave_sse2;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">on line 2864 to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">c->float_to_int16_interleave = float_to_int16_interleave_sse;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">That fixed the audio for me. YMMV.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>The above change with SSE2 to SSE has made a big difference to the stability<br><br></div></blockquote><br></div><div>Agreed. No more crashes here.</div><div><br></div><div>Did a test record tonight of Private Practice and City Homicide, both of which were in 720p HD. Multirec did its job and I had no issues recording either show. Quality was a serious step up from DVB-S based SD.</div><div><br></div><div>Steve</div><div><br></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Steven Ellis - Technical Director<br>OpenMedia Limited<br>email &nbsp;&nbsp;-&nbsp;<a href="mailto:steven@openmedia.co.nz">steven@openmedia.co.nz</a><br>website -&nbsp;<a href="http://www.openmedia.co.nz/">http://www.openmedia.co.nz</a><br></div></div></span> </div><br></body></html>