[mythtv] Software AC3 decoding when watching TV

Marcus Metzler mocm at mocm.de
Fri Dec 17 13:31:50 UTC 2004


>>>>> "htpc" == htpc  <htpc at treblid.dyndns.org> writes:

    htpc> htpc wrote: Sorry for mangling the subject in my previous
    htpc> post.. :(

    >> >> have a MUCH easier time doing subtitles as well so I am
    >> completely sold.. Sorry >Well yes, we could save on the
    >> trickery. :) More trickery... From the posts I realised that
    >> 0xbd is a private stream (and not AC3 as I previously
    >> thought). But If I modified transform.c and treat 0xbd as an
    >> audio stream, the function find_next_start_code will return
    >> that. Myth then detects this AC3 audio stream correctly and
    >> loads the A52 decoder. I can even change to a channel using
    >> MPEG2 stream and Myth will automatically use the MPEG2
    >> decoder. All provided that bit_rates, frequencies, etc computes
    >> to some non zero values in get_ainfo or get_vinfo. Otherwise,
    >> backend will crash in the function ps_pes() somewhere at line
    >> 1981 (all in transform.c):

    htpc> Forgot to mention that I took out the first loop in
    htpc> correctstreams to preserve the 0xbd value...


Why is CorrectStreamNumber needed? If you really want to set all video
streams to 0xe0 and the MPEG audio streams to 0xc0 you should do it in
transfom.c (in send_ipack after the if (p->cid == PRIVATE_STREAM1)
block) with a check if it is 
		case VIDEO_STREAM_S ... VIDEO_STREAM_E:	
			case AUDIO_STREAM_S ... AUDIO_STREAM_E:
.

I will see that I rewrite the necessary transform.c routines into an
ipack c++ class, better adapted to mythtvs needs.

Marcus

-- 
/--------------------------------------------------------------------\
| Dr. Marcus O.C. Metzler        |                                   |
| mocm at metzlerbros.de            | http://www.metzlerbros.de/        |
\--------------------------------------------------------------------/
 |>>>             Quis custodiet ipsos custodies                 <<<|


More information about the mythtv-dev mailing list