[mythtvnz] Question about building Pauls Mythtv + Patches

Steven Ellis steven at openmedia.co.nz
Sun Aug 24 23:17:25 BST 2008


On 24/08/2008, at 7:12 PM, Paul Kendall wrote:

> On Sunday 24 August 2008 17:46:28 Steven Ellis wrote:
>> On 24/08/2008, at 5:10 PM, Steven Ellis wrote:
>>
>> My current patch to  libs/libmythtv/avformatdecoder.cpp around line
>> 1588  is as follows
>>
>>                 if (CODEC_ID_H264 == enc->codec_id)
>>                 {
>>                    VERBOSE(VB_PLAYBACK, LOC + "Turning off loop
>> filter");
>>                      enc->skip_loop_filter = AVDISCARD_ALL;
>>                    VERBOSE(VB_PLAYBACK, LOC + "Enabling Fast decode
>> mode");
>>                      enc->flags           |= CODEC_FLAG2_FAST;
>>                  }
>>
>> This appears to give me a 4-5 % boost on the SD channels, and  
>> possibly
>> 15-30% on the HD channels. It is hard to tell on TV One HD at the
>> moment as the bitrate for the sports is all over the place. TV3 is
>> almost watch-able on my CPU so hopefully Graeme will get full support
>> on his 5600 X2. Watching TV2 now sits at an average of 70-80% rather
>> than close to 100%.
>>
>> Paul - I'd love to get any additional patches you have to stabilise
>> the audio. I haven't had time to play with debug builds to trace the
>> audio segfaults yet.
>>
>> Steve
>>
>
> The main problem with the audio is that it seems the sse2 version of
> float_to_int16_interleave_sse2 causes the segfault. What I did to  
> fix this was
> to go the end of libavcodec/i386/dsputil_mmx.c change the assignment
> c->float_to_int16_interleave = float_to_int16_interleave_sse2;
> on line 2864 to
> c->float_to_int16_interleave = float_to_int16_interleave_sse;
>
> That fixed the audio for me. YMMV.
>
>

Thanks Paul for that tip. It does appear to be a more stable if I use  
the SSE call.

Steve


Steven Ellis - Technical Director
OpenMedia Limited
email   - steven at openmedia.co.nz
website - http://www.openmedia.co.nz

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ourshack.com/pipermail/mythtvnz/attachments/20080825/70cf692d/attachment.htm 


More information about the mythtvnz mailing list