[mythtv] [patch] multi channel audio patch 1

Steve Adeff adeffs at gmail.com
Mon Jan 2 12:21:43 EST 2006


On Monday 02 January 2006 07:26, Mark Spieth wrote:
> woops spotted a bug already.
> attached is another patch.
> mark
>
> > ok this patch will convert PCM to AC3/DTS (whatever the original codec
> > is) It is untested as I dont have an AC3 setup to test with. If things go
> > badly
> > Ill have to think how I can test this without such a setup.
> > turn on audio and playback to get more info in the log. perhaps timestamp
> > too.
> > how it behaves is as per normal with ac3passthru until timestretch is
> > changed the first time. after that the new functionality kicks in.
> > avformatdecoder decodes the packets but lets audiooutput know about the
> > codec type and settings so the encoder can be configured. then everything
> > from the timestretch engine is reencoded in suitable blocks and thrown
> > into
> > the output buffer.
> > should work with dts too.
> > I may also have to guide in a specific break in gdb with certain data
> > structures dumped.
> > I dont think its too far away but cross your fingers.
> > no mmx support  as yet of course.
> > dont forget to change maxchannels in audio setup too otherwise youll only
> > get 2
> > mark
> >
> >> On Sun, 01 Jan 2006 10:15:48 +1100, Mark Spieth wrote:
> >>>> On Saturday 31 December 2005 14:37, Allan Stirling wrote:
> >>>> bummer. Maybe then just convert the AC3 to stereo PCM for timestretch?
> >>>> At least you'd get sound...
> >>>>
> >>>> I dunno, I've never used timestretch, so I don't know what the needs
> >>>> of people
> >>>> that do are, just throwing ideas out there...
> >>>
> >>> ok then how about if passthru is on, if the output is reencoded to AC3
> >>> so
> >>> you get the multichannel audio that is desirable?
> >>
> >> That would be great. I'm keen to try your patch but I only have digital
> >> output on my system and no way of hooking up multichannel analogue.
> >>
> >> Cheers,
> >>
> >> Martin.

so your actually encoding *back* to AC3/DTS?

-- 
Steve


More information about the mythtv-dev mailing list