AC3 in Australia (Was Re: [mythtv] DVB 3.4 report)
markjanderson at mail.com
Fri Jan 7 04:33:15 EST 2005
> > >2. Still can't change between stream types AC3->PCM or PCM->AC3, I am
> > > tracking this one down and understand why it is happening, just need to
> > > work out how to fix it. Streams from the previous channel are still in
> > > the list of available streams and so it chooses it instead of the
> > > correct one. Need to clear them out when the channels change.
> > Ah!! So that's the problem, what files and functions are you looking at?
> Actually, I was wrong. It only adds new stream types as they are found. So
> typically you have twp streams, PCM and AC3 after selecting an AC3 channel
> and then a PCM channel. However, the audio is not re-initialised when you
> change between streams... still looking. I am looking at
> autoSelectAudioTrack, mainly when it is being called.
Fixed it! Added code to GetFrame in avformatdecoder.cpp to switch to the next
audio track if it detects the audio codec is different to what it was
initialised with. I can now go from PCM->AC3->PCM and AC3->PCM->AC3 without
All I have to do is sort out the stutter and we are set to rock and roll. Will
put a patch together soon.
More information about the mythtv-dev