[mythtv] [PATCH] -- picking wrong AC-3 audio stream to play

John Pullan jmp at tarantella.com
Thu Feb 17 13:32:48 UTC 2005


On Thu, 2005-02-17 at 08:00 -0500, Doug Larrick wrote:
> Brad Templeton wrote:
> > [Whoops, somehow I sent this to users instead of dev]
> >
> > This is a patch that seems to work for the problem I described in
> > a recent message to mythtv-users entitled:
> >
> >     "Picking the wrong audio stream from multi-stream AC3 causing no sound?"
> >
> >
> > This patch makes the code do what the comments say it does, in that
> > the comments say it scans through the streams and picks the first adequate
> > audio stream.  The code has a countdown loop which breaks out at the first
> > match, which thus will be the highest numbered stream.
> 
> I submitted roughly the same patch a month or so ago (indeed, I have it
> in my local tree), which was not accepted because apparently the
> existing code does the "right" thing for most DVDs.
<snip>
> playback time, so this approach is not entirely straightforward either.
>   I suppose the recorder could make an entry in the database indicating
> which audio stream to prefer, but that doesn't help (a) older recordings
> or (b) dvds.
> 
We put in a preferredLanguages setting in the db (comma separated list
of language codes). We use it for the choosing which epg language to
grab from the dvb stream,  and I *think* also for choosing which audio
stream to record.



More information about the mythtv-dev mailing list