[mythtv] [Experimental PATCH] BIG DVB PATCH V3.2 Released
Tj
htpc at treblid.dyndns.org
Tue Dec 21 04:26:56 UTC 2004
Mark Anderson wrote:
>I am also in Australia and actively trying to get AC3 passthrough working with
>this patch. I have been monitoring this thread for help.
>
>I found the problem in the avcodec_find_decoder function last night. The
>problem is actually in the ScanStreams function which doesn'y correctly
>handler invalid codecs. I hacked the following changes in to fix the problem
>
>
Are you using the dvb patch? If yes, try patching mpeg.c according to
the diff I posted earlier in this thread... It should allow scanstream
to load the ac3 decoder properly. Try it and see if it works (note that
the patch is a workaround and will break other parts of myth that
depends on that function to work correctly, but watching live TV is fine
on my computer).
On my system, if I enable ac3 passthru in myth setup, it will go into
the first if block (which is what you want rite?)..
if (do_ac3_passthru)
{
data_size = pkt->size;
ret = EncodeAC3Frame(ptr, len, audioSamples,
data_size);
}
else
{
ret = avcodec_decode_audio(&curstream->codec,
audioSamples, &data_size,
ptr, len);
}
Again I didn't even look at this properly so I'm not sure what it does.
Hopefully it wouldn't encode AC3 into another AC3 frame.
If you get that working, tell me if you can switch channels that uses
different audio formats.. And also do you hear "correct sounds" when you
turn off ac3 passthru in myth setup for different audio formats?
Regards.
More information about the mythtv-dev
mailing list